xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rémy Brousset " <r.brous...@sig-image.fr>
Subject SAXParser change problem
Date Fri, 11 Feb 2005 08:46:05 GMT


hi,

i try to use the jdk1.5 SAXParser instead of the xerces one.
i've replaced in the XMLResourceDescriptor.properties the class name with
javax.xml.parsers.SAXParser.

when i lauch my applet, ihave the following error,

java.io.IOException: SAX2 driver class javax.xml.parsers.SAXParser found but
cannot be loaded

the code has not changed:

String vsParser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory vpFactory = new SAXSVGDocumentFactory( vsParser );
        
userAgent = new UserAgentAdapter();
loader    = new DocumentLoader(userAgent);
ctx       = new BridgeContext(userAgent, loader);
        
InputStream is = new ByteArrayInputStream(svgStream);
try {
    svgDoc = vpFactory.createSVGDocument(null,is);
} catch (IOException e) {
    e.printStackTrace();
}

both client/server are locals with jdk 1.5.0. i use tomcat 5.5,

any ideas,
thanks,

Remy.
Mime
View raw message