File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT problem running unit tests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT problem running unit tests" Watch "ANT problem running unit tests" New topic
Author

ANT problem running unit tests

Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 326

Hi,
I have a strange problem when I run my junit target, I get the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/NestedException

but only when I run the tests, the code compiles with out any problems so I would expect the tests to run fine as well (the lib directory contains all the jar the project requires including JUnit). My ANT file looks like:



Can anyone see anything glaringly obvious with it?

Thanks
Willy
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

Willy, welcome to Java Ranch!

See if this recent discussion helps: http://www.coderanch.com/t/419685/Ant-Maven-Other-Build-Tools/Ant-build-With-weblogic


JBoss In Action
Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 326

Hi Peter,
Thanks for the welcome!

Apologies, I did a quick search but failed to find that thread.

Willy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT problem running unit tests