OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problems with a servlet and SAX



You have conflicting libraries on your classpath. You probably have both SAX and SAX2 libraries on your classpath. Make sure you only have one JAXP library -- and no other libraries including SAX libraries -- on your classpath.
-----Original Message-----
From: José Enrique Zarco [mailto:jezarco@futurespace.es]
Sent: Thursday, August 30, 2001 7:49 AM
To: xml-dev@lists.xml.org
Subject: Problems with a servlet and SAX

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();       
 }