This is possibly related to a classpath problem, but I'm really not sure at this point, since I don't get this error on some machines.
The error at the top of the stack is SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found
. Why would I get this error only in some environments, but not others? How can I further investigate and/or fix this?
Environments:
Versions in the POM:
Thanks, this was very useful.
On Win 7 / Tomcat 6 had the exactly same "missing crimson" thing. Got it working by adding the crimson libraries, but the performance was poor, very slow. It took something like 10-15 seconds for a single image transcoding. Finally solved the problem by removing the FOP as you described, and now it is really fast. This is how it is in my POM:
<dependency>
<groupId>batik</groupId>
<artifactId>batik-transcoder</artifactId>
<version>1.6-1</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<artifactId>fop</artifactId>
<groupId>fop</groupId>
</exclusion>
</exclusions>
</dependency>