You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by "Alapati, Satyananda R [IT]" <sa...@ssmb.com> on 2001/03/01 21:51:37 UTC
XmlDocument: SecurityException, sealing violation
Hi,
I am using import org.apache.crimson.tree.*;
when I do XmlDocument result = new XmlDocument();
I am getting "SecurityException, sealing violation' error. This was
happening only when I used JRUN3.01. This was not an issue when I was using
JRUN2.3. Can you please help me on this?
Thanks
Satya
Re: XmlDocument: SecurityException, sealing violation
Posted by Edwin Goei <Ed...@eng.sun.com>.
"Alapati, Satyananda R [IT]" wrote:
>
> Hi,
> I am using import org.apache.crimson.tree.*;
>
> when I do XmlDocument result = new XmlDocument();
> I am getting "SecurityException, sealing violation' error. This was
> happening only when I used JRUN3.01. This was not an issue when I was using
> JRUN2.3. Can you please help me on this?
I am not familiar with JRUN, but the recommended way of creating an XML
document is to use the JAXP interfaces. Something like
DocumentBuilder db =
DocumentBuilderFactory().newInstance().newDocumentBuilder();
DOMImplementation domImpl = db.getDOMImplementation();
// use DOM Level 2 to create a DOM Document object
...
This way your code should also run on other JAXP compliant parsers such
as Xerces.
-Edwin