"SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found" when using Batik in webapp on Tomcat

This may be due to a class problem, but I'm not really sure about this since I am not getting this error on some machines.

Error at the top of the stack SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found. Why should I get this error only in some environments, but not in others? How can I continue to research and / or fix this?

Wednesdays:

  • Jetty on Mac or PC == OK
  • Tomcat 5 or 6 on Mac == OK
  • Tomcat 5 or 6 in Win XP == ERROR
  • Tomcat 6 on CentOS == ERROR

Versions in POM:

  • batik: Batik: jar: 1.5: collect
  • net.sf.saxon: Saxon: jar: 8.7: compile
  • batik: batik transcoder: jar: 1.6-1: compile
    • batik: Batik bridge: jar: 1.6-1: assemble
    • Batik: Batik-GVT: jar: 1.6-1: assemble
    • : --Util: : 1.6-1:
    • : -Util: : 1.6-1:
    • : --Util: : 1.6-1:
    • : -: : 1.6-1:
    • XML-API: xmlParserAPIs: : 2.0.2:
    • : batik- script: : 1.6-1:
    • : -SVG-: : 1.6-1:
    • : -: : 1.6-1:
    • : -CSS: : 1.6-1:
    • : -XML: : 1.6-1:
    • : -: : 1.6-1:
    • : : : 0.20.5:
    • : -1,5-: : 0.20-5:
    • XML-API: XML-API: : 1.0.b2:
    • Xalan: Xalan: : 2.4.1:
    • Xerces: xercesImpl: : 2.2.1:
    • -: -: : 4,0:
+3
3

, XML- Apache Crimson classpath, . Transcoder Apache Batik Apache FOP.

libs Tomcat, FOP Crimson, , Batik .

FOP POM classpath.

+6

, .

Win 7/Tomcat 6 " " . , , , . 10-15 . , , FOP, , . 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>
+8

JDK. :

  • JDK crimson lib ;
  • JDK throw;

maven:

<dependency>
    <groupId>batik</groupId>
    <artifactId>batik-transcoder</artifactId>
    <version>1.6-1</version>
</dependency>
<dependency>
    <groupId>crimson</groupId>
    <artifactId>crimson</artifactId>
    <version>1.1.3</version>
</dependency>
0

Source: https://habr.com/ru/post/1705869/


All Articles