[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FOLLOW UP: java.lang.SecurityException: sealing violation

  • From: Anne Beug <asbeug@y...>
  • To: xml-dev@l...
  • Date: Thu, 22 Mar 2001 13:37:20 -0800 (PST)

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@A...>
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@y...]
> > Sent: Tuesday, March 20, 2001 10:37 PM
> > To: xml-dev@l...
> > 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/

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.