Hello Cory, Christian,

Christian, the error your are running into is the very reason why we switched to Xerces. The issue is that Crimson is incompatible with the xml-apis.jar comming from xml-commons and that we use now. More specifically, the problem came from a change in the SAX helper classes which exercised the error you see in Crimson (whereas previous versions of the SAX helper classes did not exercise that error).

I made my experiments with the Crimson CVS repository a few weeks ago. Note that the problem does not happen on JDK 1.4 because it contains a verysio of the SAX helper classes that does not exercise the problem on Crimson, and the JDK 1.4 crimson comes first in the classpath.

Regarding the security exception you get with Xerces, I guess that Crimson did not try the same access which explains why you did not get that error before.

Vincent.

Cory Sanoy wrote:
I had this same problem a while back and I downloaded the most recent
version of the Crimson parser (http://xml.apache.org/crimson/index.html) and
the problem went away.

Hope this helps...

/Cory

-----Original Message-----
From: Christian Enklaar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 9:39 AM
To: 'Batik Users'
Subject: AW: AW: Batik 1.5beta5 available


Hello,


I did not need to grant any permission when using crimson.
My applet loads everything from a single jarfile containing
the classes from my project as well as everything needed (batik, crimson,
etc.)

I tried to use crimson again now by setting:

SAXSVGDocumentFactory f = new
SAXSVGDocumentFactory("org.apache.crimson.parser.XMLReaderImpl");
StringReader sr = new StringReader(content);
svgDocument = (SVGDocument)f.createDocument(null, sr);
getting this error:


java.io.IOException: can't declare any more prefixes in this context    
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
Source)         
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
Source)         
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
Source)


-----Ursprüngliche Nachricht-----
Von: Vincent Hardy [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. März 2003 15:29
An: Batik Users
Betreff: Re: AW: Batik 1.5beta5 available


Hello Christian,


The XML parser changed in 1.5beta5, so you probably need to change your security settings to grant the permissions to the Xerces jar rather than to the Crimson jar.

Vincent.


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

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






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



Reply via email to