I don't see the resolver.jar in your classpath, which is used to resolve
paths using an XML catalog file.
Bob Stayton
b...@sagehill.net
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/publishing/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/