OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FOLLOW UP: java.lang.SecurityException: sealing violation



Thank you! That was exactly it. I have WebObjects
installed, which comes with xml4j.jar and was in my
classpath before the jaxp stuff.

Thanks,
Annie


--- Michael Brennan <Michael_Brennan@Allegis.com>
wrote:
> I believe a sealing violation means you have a
> "sealed" package (i.e. a
> package in a library whose manifest specifies that
> all classes for that
> package must be loaded from the same library), but
> for some reason, an
> attempt is being made to load different classes from
> the package from
> different libraries.
> 
> My guess would be you have more than one DOM
> implementation on your
> classpath, and that's the source of the problem.
> 
> > -----Original Message-----
> > From: Anne Beug [mailto:asbeug@yahoo.com]
> > Sent: Tuesday, March 20, 2001 10:37 PM
> > To: xml-dev@lists.xml.org
> > Subject: java.lang.SecurityException: sealing
> violation
> > 
> > 
> > I can get this code to compile fine, but when I
> run
> > it, I get the exception below. Any ideas?
> > 	Thanks,
> > 	Annie
> > 
> > import java.io.*;
> > import org.w3c.dom.*;
> > import javax.xml.parsers.DocumentBuilderFactory;
> > import javax.xml.parsers.DocumentBuilder;
> > import
> javax.xml.parsers.ParserConfigurationException;
> > 
> > public class DOMTest
> > {
> >     public static void main (String argv [])
> >     throws IOException, DOMException,
> > ParserConfigurationException
> >     {
> > 		DocumentBuilderFactory factory =
> > DocumentBuilderFactory.newInstance();
> > 		DocumentBuilder builder =
> > factory.newDocumentBuilder();
> > 		System.exit(0);
> >     }
> > }
> > 
> > Exception in thread "main"
> > java.lang.SecurityException: sealing violation

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/