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.
Add FUN to your email - CLICK HERE!

Reply via email to