emerge dev-java/fop-2.0 fails with: /opt/portage_tmp/portage/dev-java/fop-2.0/work/fop-2.0/build.xml:301: java.lang.NoClassDefFoundError: com/thoughtworks/qdox/model/DocletTagFactory at org.apache.fop.tools.EventProducerCollectorTask.execute(EventProducerCollectorTask.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.lang.ClassNotFoundException: com.thoughtworks.qdox.model.DocletTagFactory at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1366) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) Reproducible: Always Steps to Reproduce: see description
I'm experiencing the same problem but I don't know what's causing it to be honest.
This patch fixes the issue: $ cat files/fop-2.0-build.xml.patch --- build.xml.orig 2015-07-05 20:34:00.099000000 +0000 +++ build.xml 2015-07-05 20:34:38.194000000 +0000 @@ -355,18 +355,6 @@ <include name="**/*.xsl"/> </fileset> </copy> - <taskdef name="eventResourceGenerator" classname="org.apache.fop.tools.EventProducerCollectorTask"> - <classpath> - <path refid="libs-tools-build-classpath"/> - <pathelement location="${build.classes.dir}"/> - <pathelement location="${build.codegen-classes.dir}"/> - </classpath> - </taskdef> - <eventResourceGenerator destdir="${build.gensrc.dir}"> - <fileset dir="${src.java.dir}"> - <include name="**/*.java"/> - </fileset> - </eventResourceGenerator> </target> When executed, this task seems to be falling through. No idea why. After taking it off the build.xml file, compilation runs smoothly. See: >>> Install fop-2.0 into /var/tmp/portage/dev-java/fop-2.0/image/ category dev-java >>> Completed installing fop-2.0 into /var/tmp/portage/dev-java/fop-2.0/image/ + 05 Jul 2015; Patrice Clement <monsieurp@gentoo.org> + +files/fop-2.0-build.xml.patch, fop-2.0.ebuild, metadata.xml: + Add patch to remove unneeded (and broken) Ant task. Fix bug 553982. + Give it another try and let me know should it fails. Thanks.
Created attachment 406266 [details] failed build log
Comment on attachment 406266 [details] failed build log Unfortunately it does not work. See build log.
I cannot reproduce the error. I've just emerged the ebuild via Portage and in my sandbox and I didn't run into any issue. Try syncing up Portage with: # emerge --sync And give it another try.
(In reply to Patrice Clement from comment #5) > I cannot reproduce the error. I've just emerged the ebuild via Portage and > in my sandbox and I didn't run into any issue. Try syncing up Portage with: > # emerge --sync > > And give it another try. Now it worked.