Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 88108 invoked by uid 500); 23 Mar 2001 19:02:37 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: tomcat-dev@jakarta.apache.org Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 88066 invoked from network); 23 Mar 2001 19:02:34 -0000 Message-ID: <3ABB9E5E.16E50AA4@eng.sun.com> Date: Fri, 23 Mar 2001 11:05:02 -0800 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.76 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kevin Jones CC: Tomcat-Dev Subject: Re: Still have XML loading problems References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Kevin Jones wrote: > Craig, > > I'm playing with the 22nd March drop of Catalina, and I've come across a > scenario where the new classloading architecture doesn't quite work. > > I'm using Xerces and Xalan (although Xalan is irrelevant to this). If I > access a servlet that uses XML and I don't put Xerces in my > web-app/myapp/lib my code fails (exactly what I'd expect). If I put > Xerces.jar into web-app/myapp/lib it works, again what I'd expect. > > However, if I put my XML code into an application listener then Jasper fails > to load - I get a Security Exception, sealing violation, while it's load the > 'jsp' servlet. It seems that what's happening is that my listener loads, > loads Xerces and executes OK. The jsp Servlet then tries to load > crimson/JAXP and *bang* sealing violation. > I will bet you're using a JDK 1.3 platform, right? It turns out that all the changes we made are very effective for JDK 1.2, but the 1.3 version of URLClassLoader still doesn't like it. :-( > > Sorry about this - the XML stuff had been going so well until then! > I think the only workaround for this is to ship our own copy of the JAXP JAR files, with the "sealed" attribute removed. I'm also going to be talking with the JAXP folks about removing that in their next release. > > Kevin Jones > DevelopMentor > www.develop.com Craig