[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|