Thomas DeWeese wrote:

> There are a couple of ways to do this.  One is to override
> bridge.UserAgent.getXMLParserClassName to return the name of any
> SAX2 parser.

Hi Thomas.  I actually took the approach of including my own
org/apache/batik/util/resources/XMLResourceDescriptor.properties in my
project's jar file.

> The default implementation looks at:
> batik/util/resources/XMLResourceDescriptor.properties for the
> "org.xml.sax.driver" property.  I think the JVM parser is
> "javax.xml.parsers.SAXParser"

That didn't work for me, I had to use
org.apache.crimson.parser.XMLReaderImpl.  This seemed to work fine for
part of my application.  However with one of our tools I get the
following stacktrace.  Any idea what this could be about?  Is there
some other resource I need to change?


java.io.IOException: Illegal Namespace prefix: "xml".
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:418)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:341)
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:228)
at edu.rutgers.elearning.scribble.ScribbleRecorder.<init>(ScribbleRecorder.java:99)
at edu.rutgers.elearning.presenter.Presenter.<init>(Presenter.java:196)
at edu.rutgers.elearning.presenter.Presenter.main(Presenter.java:1071)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:837)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:797)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:675)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:390)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
at com.sun.javaws.Launcher.run(Launcher.java:167)
at java.lang.Thread.run(Thread.java:534)



Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to