aspose 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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply 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: 285

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: 5528

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: 285

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://zeroturnaround.com/jrebel
 
subject: ANT problem running unit tests
 
Similar Threads
Am I doing unit test right?
Ant + Junit + Log4J Problem
can't generate JUnit report
Junit Task in Ant
Ant+JUnit