Re: java.lang.NoClassDefFoundError in docbook build
Bob Stayton <[email protected]>
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
I don't see the resolver.jar in your classpath, which is used to resolve paths using an XML catalog file. Bob Stayton [email protected] On 10/24/2019 8:00 AM, Rob Flynn wrote: > java.lang.NoClassDefFoundError in docbook build > > Hi all > > In a build that used to work, a ton of Linux patches were applied to > my server and now I'm getting this not found message: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/xmlgraphics/io/ResourceResolver > > As you can see, I've put everything and thekitchensink in the class > path trying to help java find this class, to no avail. Here's the end > of the build log - any ideas? > > [echo] *************************** > > Â Â Â Â [echo] > > Â Â Â Â [echo] Converting FO file ../output/fo/xyz/xyz-fo.xml to PDF > > Â Â Â Â [echo] > > Â Â Â Â [echo] > product.build.files=/scratch/publishing/hudson/jobs/build-main-xyz-documentation/workspace/serverdoc/WorkingDoc/main/publishing/build-files/document-files-xyz/build-document-list-xyz.xml > > Â Â Â Â [echo] product.build.files.documentFilePath= document-files-xyz > > Â Â Â Â [echo] product.build.files.foXsl= > ../docbook-xsl-customization/gs-fo-book.xsl > > Â Â Â Â [echo] product.build.files.webhelpTemplateDirectory= common-xyz > > Â Â Â Â [echo] product.build.files.buildInitialization= > build-initialize-xyz.xml > > Â Â Â Â [echo] product.build.files.pdfCoverImage= > ../reusable-content/xyz-doc-cover-image-pdf.svg > > Â Â Â Â [echo] product.build.files.packagingSteps= build-package-xyz.xml > > Â Â Â Â [echo] product.build.files.linkedResourceDatabase= > /scratch/publishing/hudson/jobs/build-main-xyz-documentation/workspace/serverdoc/WorkingDoc/main/publishing/build-files/document-files-xyz/linked-resources.xml > > Â Â Â Â [echo] product.build.files.webhelpXsl= > ../docbook-xsl-customization/mdex/mdex-webhelp-book.xsl > > Â Â Â Â [echo] product.build.files.baseDocumentBuild= > build-base-xyz-document.xml > > Â Â Â Â [echo] > > Â Â Â Â [echo] *************************** > > Â Â Â [mkdir] Created dir: > /scratch/publishing/hudson/jobs/build-main-xyz-documentation/workspace/serverdoc/WorkingDoc/main/publishing/output/pdf/config > > Â Â Â Â [java] Executing '/scratch/publishing/jdk1.6.0_37/jre/bin/java' > with arguments: > > Â Â Â Â [java] '-classpath' > > Â Â Â Â [java] > '/scratch/publishing/publishing-tools/fop-2.3/fop/build/fop.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/avalon-framework-4.2.0.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/batik-all-1.7.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/commons-io-1.3.1.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/commons-logging-1.0.4.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/fop-hyph.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/jai_codec.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/jai_core.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/serializer-2.7.0.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/xercesImpl-2.7.1.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/xml-apis-1.3.04.jar:/scratch/p ublishing/publishing-tools/fop-2.3/fop/lib/xml-apis-ext-1.3.04.jar:/scratch/publishing/publishing-tools/fop-2.3/fop/lib/xmlgraphics-commons-1.5.jar' > > Â Â Â Â [java] 'org.apache.fop.cli.Main' > > Â Â Â Â [java] '-d' > > Â Â Â Â [java] '-r' > > Â Â Â Â [java] '-v' > > Â Â Â Â [java] '-fo' > > Â Â Â Â [java] '../output/fo/config/xyzconfig/xyzconfig-fo.xml' > > Â Â Â Â [java] '-pdf' > > Â Â Â Â [java] '../output/pdf/config/xyzconfig.pdf' > > Â Â Â Â [java] '-c' > > Â Â Â Â [java] > '/scratch/publishing/publishing-tools/fop-1.1/conf/userconfig.xml' > > Â Â Â Â [java] > > Â Â Â Â [java] The ' characters around the executable and arguments are > > Â Â Â Â [java] not part of the command. > > Â Â Â Â [java] FOP Version 2.3 > > Â Â Â Â [java] Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/xmlgraphics/io/ResourceResolver > > Â Â Â Â [java] Â Â Â at > org.apache.fop.apps.FopConfParser.(FopConfParser.java:127) > > Â Â Â Â [java] Â Â Â at > org.apache.fop.cli.CommandLineOptions.setUserConfig(CommandLineOptions.java:1024) > > Â Â Â Â [java] Â Â Â at > org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:173) > > Â Â Â Â [java] Â Â Â at org.apache.fop.cli.Main.startFOP(Main.java:169) > > Â Â Â Â [java] Â Â Â at org.apache.fop.cli.Main.main(Main.java:217) > > Â Â Â Â [java] Caused by: java.lang.ClassNotFoundException: > org.apache.xmlgraphics.io.ResourceResolver > > Â Â Â Â [java] Â Â Â at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > > Â Â Â Â [java] Â Â Â at java.security.AccessController.doPrivileged(Native > Method) > > Â Â Â Â [java] Â Â Â at > java.net.URLClassLoader.findClass(URLClassLoader.java:190) > > Â Â Â Â [java] Â Â Â at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > Â Â Â Â [java] Â Â Â at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > > Â Â Â Â [java] Â Â Â at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > Â Â Â Â [java] Â Â Â ... 5 more > > Â Â Â Â Â [ant] Exiting > /scratch/publishing/hudson/jobs/build-main-xyz-documentation/workspace/serverdoc/WorkingDoc/main/publishing/build-files/xyz-build-doc-config.xml. > > BUILD FAILED > > Rob Flynn > > ///Principal Technical Writer/ >