cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Britton" <cbrit...@centervilletech.com>
Subject RE: Problems with C2 and Tomcat 4: java.lang.SecurityException
Date Sat, 30 Dec 2000 15:48:13 GMT
Two setup specifics need to be done.

1> you need to remove the crimson and jaxp jar files from the tomcat libs
and server directories and copy from the cocoon libs directory the xerces
jar.

2> you need to set the classpath attribute in the web.xml file located in
%tomcat_home%\webapps\cocoon\WEB-INF

and make it as follows:
 <param-name>classpath-attribute</param-name>
      <param-value>org.apache.catalina.jsp_classpath</param-value>


Catalina is the name for Tomcat 4


If you do these two thinkgs it should work.

rgds
CB



-----Original Message-----
From: aslak.hellesoy@bekk.no [mailto:aslak.hellesoy@bekk.no]
Sent: Saturday, December 30, 2000 10:25 AM
To: cocoon-users@xml.apache.org
Subject: Problems with C2 and Tomcat 4: java.lang.SecurityException


I've just built Cocoon 2.0a3.
I'm trying to get it to work on Tomcat 4.0-m5.
I've copied cocoon.war to Tomcat's webapps directory and pointed my browser
to http://localhost/cocoon/
This is what I get:

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Error instantiating servlet class
org.apache.cocoon.servlet.CocoonServlet
           at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:747)
           at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
           at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:227)

           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
           at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)

           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
           at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2038)
           at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)

           at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
           at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
           at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:159)

           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
           at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
811)

           at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:890)

           at java.lang.Thread.run(Thread.java:484)

Root Cause:
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
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:648)

           at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:987)

           at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:906)

           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
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:648)

           at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:987)

           at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:906)

           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
           at java.lang.Class.newInstance0(Native Method)
           at java.lang.Class.newInstance(Class.java:237)
           at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:740)
           at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
           at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:227)

           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
           at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)

           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
           at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2038)
           at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)

           at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
           at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
           at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:159)

           at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
           at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
811)

           at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:890)

           at java.lang.Thread.run(Thread.java:484)


Does anybody know what I'm doing wrong, and how to fix it?

Cheers, Aslak


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org




Mime
View raw message