[FrontPage] [TitleIndex] [WordIndex

Common problems when setting up a deegree web service

Here is a place to put solutions to problems commonly encountered when setting up deegree web services.

1. Problem with Batik and its libs

Problem: when using Batik, it needs xml-apis.jar and xerces-x.x.x.jar. These libraries conflict with other XML APIs in modern Java implementations.


Remove both libs from the classpath.

Create a file in the WEB-INF/classes directory:


Put the following lines in it:

org.xml.sax.driver = com.sun.org.apache.xerces.internal.parsers.SAXParser
org.w3c.css.sac.driver = org.apache.batik.css.parser.Parser

That's it, Batik now uses the Java-internal SAX parser.

Note that this solution only works for the Sun JRE/JDKs (it has been tested with 1.5.0_10-b03 and 1.6.0-b105). Other 1.4 or above compliant JDKs should also include a working SAX parser, though the implementation class may be named differently.

2018-04-20 12:04