ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49712] New: java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/TraXLiaison
Date Thu, 05 Aug 2010 22:04:04 GMT
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.

Mime
View raw message