[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with a servlet and SAX
- From: Giota Karadimitriou <giota_kara@hotmail.com>
- To: xml-dev@lists.xml.org
- Date: Thu, 30 Aug 2001 15:15:54 +0000
I have also encountered this exception in the past. It is a common exception
caused by misconfiguration of the jar files at your classpath. it usually
occurs when you mix versions of the same package or jar files. eg jaxp1.0
and jaxp1.1, different versions of the xerces parser etc. This can create a
conflict with your environment resources.Try the following
1) make sure you do not use different versions of the same jar file. Keep
the most recent jar files or the ones you need and delete all others.
Remember you should check all your classpaths for similar jar files and
remove those not wanted
2)Put the necessary jar files to the first entry of your classpath.
Hope this helps.
Giota
>From: José Enrique Zarco <jezarco@futurespace.es>
>To: xml-dev@lists.xml.org
>Subject: Problems with a servlet and SAX
>Date: Thu, 30 Aug 2001 16:49:05 +0200
>
>Hello,
>
>I have a class that it creates a new instance of SAXParserFactory. When I
>execute main (), it works as well as I hope but if I make a servlet and I
>try to execute it ( the same code), I obtain the next error:
>
>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 java.lang.ClassLoader.defineClass0(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>
> at
>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>
> 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
>TSM.MIPG.Multiconferencia.Servlets.MIPGServletEscucha.doGet(MIPGServletEscucha.java:79)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>
> at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
>
> at
>org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>
> at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
>
> at
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
>
> at java.lang.Thread.run(Thread.java:484)
>
>
>
>
>Here you are the code of the constructor.
>
>
>Thanks for all.
>
>
>
>
>
>
>public MIPGParseoXml(){
>
>try {
> factoria=SAXParserFactory.newInstance();
> parseador = factoria.newSAXParser();
> Vector_De_salida= new Vector();
>
> }
> catch (ParserConfigurationException s) {
> s.printStackTrace();
> System.out.println("error ParserConfigurationException:"+s);
> }
> catch (SAXException s) {
> s.printStackTrace();
> System.out.println("error ParserConfigurationException:"+s);
> }
> catch(Exception E) {
> E.printStackTrace();
> }
>
>
>
>
>
>
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp