https://bugzilla.novell.com/show_bug.cgi?id=485299 Summary: Ant <xslt> tasks fail with NoClassDefFoundError: org/apache/xml/serializer/SerializerTrace Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: archie@dellroad.org QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 openSUSE 11.1 ant-1.7.0-199.15 ant-nodeps-1.7.0-199.16 Due to some classes being split out into a separate JAR in the xalan-j2 RPM, ant will fail to execute <xslt> tasks. This bug is widely reported on the Internet for over two years, e.g.: http://nuin.blogspot.com/2007/01/ant-problem-no-class-def.html The workaround is simple: $ sudo echo xalan-j2-serializer > /etc/ant.d/serializer Please update your ant (or ant-nodeps?) RPM as follows: (a) Include a "Requires: xalan-j2 >= 2.7.0" in the RPM spec file (b) Include a file /etc/ant.d/serializer in the build containing the string "xalan-j2-serializer" Maybe there is a more elegant fix. If so, I'm all for it. In any case, it's just stupid that a fresh install of openSUSE with ant installed cannot run ant's <xslt> task. Reproducible: Always Steps to Reproduce: 1. Install openSUSE 11.1, and ant RPM 2. Run ant on a build file that contains an <xslt> task 3. Watch it fail. Actual Results: [ivy:resolve] /home/archie/.ivy2/packager/build/org.apache.ant/ivy/2.0.0/build.xml:45: java.lang.NoClassDefFoundError: org/apache/xml/serializer/SerializerTrace [ivy:resolve] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115) [ivy:resolve] at org.apache.tools.ant.Task.perform(Task.java:348) [ivy:resolve] at org.apache.tools.ant.Target.execute(Target.java:357) [ivy:resolve] at org.apache.tools.ant.Target.performTasks(Target.java:385) [ivy:resolve] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) [ivy:resolve] at org.apache.tools.ant.Project.executeTarget(Project.java:1298) [ivy:resolve] at org.apache.ivy.plugins.resolver.packager.PackagerCacheEntry.build(PackagerCacheEntry.java:159) [ivy:resolve] at org.apache.ivy.plugins.resolver.packager.PackagerResolver.findArtifactRef(PackagerResolver.java:230) [ivy:resolve] at org.apache.ivy.plugins.resolver.BasicResolver.getArtifactRef(BasicResolver.java:920) [ivy:resolve] at org.apache.ivy.plugins.resolver.BasicResolver$5.resolve(BasicResolver.java:1016) [ivy:resolve] at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.download(DefaultRepositoryCacheManager.java:774) [ivy:resolve] at org.apache.ivy.plugins.resolver.BasicResolver.download(BasicResolver.java:722) [ivy:resolve] at org.apache.ivy.plugins.resolver.RepositoryResolver.download(RepositoryResolver.java:245) [ivy:resolve] at org.apache.ivy.core.resolve.ResolveEngine.downloadArtifacts(ResolveEngine.java:348) [ivy:resolve] at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:291) [ivy:resolve] at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:172) Expected Results: No exception. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.