Class not found for DOM2Helper - solved
![Post Post](https://www.docx4java.org/forums/styles/proFormell/imageset/icon_post_target.gif)
- Code: Select all
Mar 21, 2014 2:24:19 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [HelloWorldServlet] in context with path [/FirstServlet] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: org/apache/xml/serializer/utils/DOM2Helper
at org.apache.xml.serializer.TreeWalker.<init>(TreeWalker.java:121)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389)
at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.writeDom(XMLSerializer.java:794)
at com.sun.xml.internal.bind.v2.runtime.property.ArrayReferenceNodeProperty.serializeListBody(ArrayReferenceNodeProperty.java:101)
This had me scratching my head for a while. Code ran OK on development machine (Win8), but refused to export to PDF on the test machine (OpenSUSE 13.1 x64). The jar file serializer-2.7.1.jar was there. The export to PDF sample also ran OK from a commandline where I specified all the jars. What fixed it in the end was me copying avalon-framework.jar manually. Is this a missing dependency in maven?