This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166879 - Unable to run Junit test because of multiple Ant versions (EJB Module/Weblogic)
Summary: Unable to run Junit test because of multiple Ant versions (EJB Module/Weblogic)
Status: RESOLVED DUPLICATE of bug 166379
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-10 21:43 UTC by perror
Modified: 2009-07-03 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description perror 2009-06-10 21:43:10 UTC
Maybe this bug belongs to the Weblogic plug-in or Junit. Anyway, when I create an EJB Module project with Weblogic 9.2 as "Server" two versions of Ant will 
be found when I run a simple Junit test from the IDE. The test will fail with the message "Forked Java VM exited abnormally":

WARNING: multiple versions of ant detected in path for junit 
         jar:file:/Applications/NetBeans/NetBeans%206.5.app/Contents/Resources/NetBeans/java2/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
     and jar:file:/Users/admin/bea/weblogic92/server/lib/ant/ant.jar!/org/apache/tools/ant/Project.class

I've checked the properties files under nbproject and build*.xml but can't find where weblogic92/server/lib/ant/ant.jar is coming from. If I rename weblogic92/server/lib/ant/ant.jar the test runs successfully.
Comment 1 Jesse Glick 2009-06-11 01:01:01 UTC
Duplicate of something filed recently...
Comment 2 Milan Kubec 2009-07-03 12:11:48 UTC

*** This issue has been marked as a duplicate of 166379 ***