tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Red <...@draven.org>
Subject Cocoon 1 and Tomcat 4 -> Cocoon is not a Servlet???
Date Wed, 26 Sep 2001 08:22:40 GMT
Hi there
I need to run Cocoon 1 and it is working fine with Tomcat 3.2.3. Now I 
was trying the same installation under Tomcat 4 and got the following 
errors in the browser:

A Servlet Exception Has Occurred

Exception Report:

javax.servlet.ServletException: Class org.apache.cocoon.Cocoon is not a 
Servlet
        at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
        at org.apache.catalina.core.StandardWrapper.allocate(Unknown 
Source)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at 
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown 
Source)
        at org.apache.catalina.connector.warp.WarpConnection.run(Unknown 
Source)
        at java.lang.Thread.run(Thread.java:484)

Root Cause:

java.lang.ClassCastException: org.apache.cocoon.Cocoon
        at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
        at org.apache.catalina.core.StandardWrapper.allocate(Unknown 
Source)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at 
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown 
Source)
        at org.apache.catalina.connector.warp.WarpConnection.run(Unknown 
Source)
        at java.lang.Thread.run(Thread.java:484)

The web.xml looks like that:

<?xml version="1.0" encoding="ISO-8859-1"?>
 
<!--
     This is the web-app configurations that allow Cocoon to work under
     Apache Tomcat. Please, follow the installation section of the
     documentation for more information about installing Cocoon on Tomcat
-->
 
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
 
<web-app>
 <servlet>
  <servlet-name>Cocoon</servlet-name>
  <servlet-class>org.apache.cocoon.Cocoon</servlet-class>
  <init-param>
   <param-name>properties</param-name>
   <param-value>WEB-INF/conf/cocoon.properties</param-value>
  </init-param>
 </servlet>
 
 <servlet-mapping>
  <servlet-name>Cocoon</servlet-name>
  <url-pattern>*.xml</url-pattern>
 </servlet-mapping>
</web-app>


What could be wrong? 
Greets and thank you
Red 



Mime
View raw message