Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 553982 - =dev-java/fop-2.0: emerge fail NoClassDefFoundError DocletTagFactory
Summary: =dev-java/fop-2.0: emerge fail NoClassDefFoundError DocletTagFactory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-05 13:09 UTC by Plüss Roland
Modified: 2015-07-07 18:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
failed build log (build.log,12.45 KB, text/plain)
2015-07-06 17:11 UTC, Plüss Roland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Plüss Roland 2015-07-05 13:09:57 UTC
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
Comment 1 Patrice Clement gentoo-dev 2015-07-05 15:38:07 UTC
I'm experiencing the same problem but I don't know what's causing it to be honest.
Comment 2 Patrice Clement gentoo-dev 2015-07-05 21:52:18 UTC
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.
Comment 3 Plüss Roland 2015-07-06 17:11:43 UTC
Created attachment 406266 [details]
failed build log
Comment 4 Plüss Roland 2015-07-06 17:12:08 UTC
Comment on attachment 406266 [details]
failed build log

Unfortunately it does not work. See build log.
Comment 5 Patrice Clement gentoo-dev 2015-07-06 17:22:32 UTC
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.
Comment 6 Plüss Roland 2015-07-07 18:36:19 UTC
(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.