Article View: borland.public.jbuilder.java.api
Article #1499Re: javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder() throws Exception
From: Dan Tran
Date: Thu, 15 Nov 2001 15:48
Date: Thu, 15 Nov 2001 15:48
73 lines
3540 bytes
3540 bytes
The main reason is your jaxp is not compatible with you implementation jar file. My guess here is your version of xerces.jar is not what your jaxp expected. What are the version sof your jaxp.jar and xerces.jar?? -Dan "Hans Georg Frey" <HGFrey@t-online.de> wrote in message news:3BF3843E.A05DB1D@t-online.de... > Thanks for answering. > > I've changed the Manifest in my JAXB archive. Throwing > awax th line "Sealed: true" makes my program run with > Xerces again. But that can't be the way in future. > > Dan Tran schrieb: > > > There is an older jaxp.jar and parser.jar (1.0) in your path. Replace them > > with your new version of jaxp > > > > -Dan > > > > "Hans Georg Frey" <HGFrey@t-online.de> wrote in message > > news:3BF2BCE6.83883153@t-online.de... > > > Hi, > > > > > > i get in the following code > > > > > > javax.xml.parsers.DocumentBuilderFactory dbf = > > > javax.xml.parsers.DocumentBuilderFactory.newInstance(); > > > javax.xml.parsers.DocumentBuilder db = > > > dbf.newDocumentBuilder(); > > > > > > the Exception > > > > > > sealing violation > > > java.lang.SecurityException: sealing violation > > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) > > > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:297) > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:253) > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) > > > at > > > > > org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:9 > > 8) > > > > > > at > > > > > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen > > tBuilderFactoryImpl.java:87) > > > > > > at cosima.components.gateway.bluetooth.Main.main(Main.java:67) > > > > > > Does anybody know why? I only get this Message using JBuilder. > > > using CommandPrompt and JDK1.3.1 everything works fine. > > > > > > I use Xerces in different Versions. With each of them I get the same > > > result. I already have checked file Manifest and found no Sealed: true > > > entry. > > > > > > Thanks > > > Hans Georg > > > >
Technical Details
Message-ID:
<3bf3e40e$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!lon1-news.nildram.net!newsfeed.freenet.de!news.dtag.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnewsReferences:
<3BF2BCE6.83883153@t-online.de> <3bf31c54$1_2@dnews> <3BF3843E.A05DB1D@t-online.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,64fb43755a457b6f X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-11-15 07:51:55 PST From: "Dan Tran" <danttran@hotmail.com> Newsgroups: borland.public.jbuilder.java.api References: <3BF2BCE6.83883153@t-online.de> <3bf31c54$1_2@dnews> <3BF3843E.A05DB1D@t-online.de> Subject: Re: javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder() throws Exception Date: Thu, 15 Nov 2001 07:48:08 -0800 Lines: 75 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 65.113.98.34 Message-ID: <3bf3e40e$1_1@dnews> X-Trace: dnews 1005839374 65.113.98.34 (15 Nov 2001 07:49:34 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!lon1-news.nildram.net!newsfeed.freenet.de!news.dtag.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews