tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Class org/w3c/dom/NodeList violates loader constraints
Date Mon, 03 Jun 2002 15:09:22 GMT
Hello Patrick,

Do you have DOM packages in WEB-INF/lib or WEB-INF/classes?  If so,
this violates the Sun classloading spec and, as of Tomcat 4.0.2, this
is enforced....although not very cleanly until the latest betas of
Tomcat 4.0.4 and 4.1.  The solution is to move your DOM classes into a
parent classloader such as TOMCAT_HOME/lib, TOMCAT_HOME/common/lib or
use the ones that come from the JDK (if you use 1.4...either the
default ones or ones you override in JAVA_HOME/jre/lib/endorsed...or
TOMCAT_HOME/common/endorsed if you use Tomcat 4.1).

Jake

Monday, June 03, 2002, 9:24:13 AM, you wrote:

PPlc> hello,

PPlc> i have a class which try to load an xml file on the startup of tomcat 4.0.
PPlc> i receive this error :

PPlc> if someone could help me to resolve it ?

PPlc> java.lang.LinkageError: Class org/w3c/dom/NodeList violates loader
PPlc> constraints
PPlc>         at
PPlc> lds.odata.web.dataconnectivity.JDBC_OdataConnection.initConnectionParameters(JDBC_OdataConnection.java:126)
PPlc>         at
PPlc> lds.odata.web.dataconnectivity.JDBC_OdataConnection.proceedConnection(JDBC_OdataConnection.java:153)
PPlc>         at
PPlc> lds.odata.web.servlets.OdataJDBCinitializer.init(OdataJDBCinitializer.java:50)
PPlc>         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
PPlc>         at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
PPlc>         at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
PPlc> Source)
PPlc>         at org.apache.catalina.core.StandardContext.start(Unknown Source)
PPlc>         at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
PPlc>         at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
PPlc>         at org.apache.catalina.core.StandardHost.install(Unknown Source)
PPlc>         at org.apache.catalina.startup.HostConfig.deployApps(Unknown
PPlc> Source)
PPlc>         at org.apache.catalina.startup.HostConfig.start(Unknown Source)
PPlc>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
PPlc> Source)
PPlc>         at
PPlc> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
PPlc> Source)
PPlc>         at org.apache.catalina.core.ContainerBase.start(Unknown Source)
PPlc>         at org.apache.catalina.core.ContainerBase.start(Unknown Source)
PPlc>         at org.apache.catalina.core.StandardEngine.start(Unknown Source)
PPlc>         at org.apache.catalina.core.StandardService.start(Unknown Source)
PPlc>         at org.apache.catalina.core.StandardServer.start(Unknown Source)
PPlc>         at org.apache.catalina.startup.Catalina.start(Unknown Source)
PPlc>         at org.apache.catalina.startup.Catalina.execute(Unknown Source)
PPlc>         at org.apache.catalina.startup.Catalina.process(Unknown Source)
PPlc>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
PPlc>         at
PPlc> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
PPlc>         at
PPlc> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
PPlc>         at java.lang.reflect.Method.invoke(Method.java:324)
PPlc>         at org.apache.catalina.startup.Bootstrap.main(Unknown Source)



PPlc> Patrick PIERRA
PPlc> Linedata Services Luxembourg
PPlc> 00 352 29 56 65 282
PPlc> patrick.pierra@linedata.com


PPlc> --
PPlc> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
PPlc> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message