Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: UDIG 1.3.0
-
Fix Version/s: UDIG 1.3.0
-
Component/s: visualization using map layer and style
-
Labels:None
Description
When trying to view a style that bases on an svg point sybolizer, I get:
java.lang.NoClassDefFoundError: org/apache/batik/util/XMLResourceDescriptor
at org.geotools.renderer.style.SVGGraphicFactory.getIcon(SVGGraphicFactory.java:94)
at org.geotools.renderer.style.SLDStyleFactory.getIcon(SLDStyleFactory.java:1096)
at org.geotools.renderer.style.SLDStyleFactory.getImage(SLDStyleFactory.java:1054)
at org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:525)
at org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:442)
at org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:325)
at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:286)
at net.refractions.udig.ui.Drawing.paint(Drawing.java:325)
Some libs seem to be missing.
RenderableSVG svg = glyphCache.get(svgfile);
if(svg == null) {
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
Document doc = f.createDocument(svgfile.toString());
svg = new RenderableSVG(doc);
glyphCache.put(svgfile, svg);
}
The error is:
- java.io.IOException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
So it is not actually a batik issue... I think we need to pay attention to the version of xerces available; it could be as simple as things changing at the java or eclipse 3.7 level.