You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/08/06 00:04:04 UTC

DO NOT REPLY [Bug 49712] New: java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/TraXLiaison

https://issues.apache.org/bugzilla/show_bug.cgi?id=49712

           Summary: java.lang.NoClassDefFoundError:
                    org/apache/tools/ant/taskdefs/optional/TraXLiaison
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mail.twerner@googlemail.com


After upgrading from ant 1.8.0 to 1.8.1 the build process of dynalang's
subcomponent mop does no longer build:

/home/twerner/debian/dynalang/mop/build.xml:151:
java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/optional/TraXLiaison
        at
org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:674)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:912)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:347)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:264)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:158)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
        at org.apache.tools.ant.Main.runBuild(Main.java:801)
        at org.apache.tools.ant.Main.startAnt(Main.java:218)
        at org.apache.tools.ant.Main.start(Main.java:180)
        at org.apache.tools.ant.Main.main(Main.java:269)
Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

With ant 1.8.0 I had ant-trax.jar in the CLASSPATH which is no longer
available. I have used the following command:

/usr/lib/jvm/default-java/bin/java -classpath
/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/ant-junit.jar:/usr/share/java/junit.jar:/usr/share/java/emma_ant.jar:/usr/share/java/emma.jar:/usr/lib/jvm/default-java/lib/tools.jar
org.apache.tools.ant.Main test

It does not fail when i use the org.apache.tools.ant.launch.Launcher class
instead. But I still do think this is an important regression.

Torsten

P.S.: I am not sure that I have chosen the correct component.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49712] java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/TraXLiaison

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49712

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-08-05 23:58:42 EDT ---
I think with current svn trunk the problem disappears since TraXLiaison is now
part of ant.jar.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49712] java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/TraXLiaison

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49712

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE
   Target Milestone|---                         |1.8.2

--- Comment #4 from Stefan Bodewig <bo...@apache.org> 2010-08-18 11:16:13 EDT ---


*** This bug has been marked as a duplicate of bug 49287 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49712] java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/TraXLiaison

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49712

Marcus Better <ma...@better.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcus@better.se

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49712] java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/TraXLiaison

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49712

Jesse Glick <jg...@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jglick@netbeans.org

--- Comment #3 from Jesse Glick <jg...@netbeans.org> 2010-08-16 20:40:09 EDT ---
See bug #49287 (revision 944372 and revision 946700).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49712] java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/TraXLiaison

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49712

--- Comment #2 from Torsten Werner <ma...@googlemail.com> 2010-08-16 18:22:10 EDT ---
Do we have a list of svn commit ids that fixes the problem?

Thanks,
Torsten

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.