I should say I'm not at all sure... just suggesting... but if a class is
compiled against one binary, and then run against another wont it get some
error along the lines of invalid class - similar to what happens in 3.x
when a servlet is recompiled with a new compiled version of a bean...

does the spec say that a servlet container must support something compiled
against the 2.2 api?  or just that it must support something coded against
2.2 but compiled against 2.3?

be keen to hear if I am completely off the mark here?

On Wed, 26 Sep 2001, simon wrote:

> Should be.  Part of the 2.3 spec is to be completely backwards compatible with 2.2.
> 
> Maybe cocoon isn't 2.2 compatible.
> 
> ----- Original Message -----
> From: "Red" <[EMAIL PROTECTED]>
> To: "Dmitri Colebatch" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, September 26, 2001 5:43 PM
> Subject: Re: Cocoon 1 and Tomcat 4 -> Cocoon is not a Servlet???
> 
> 
> Isn't Tomcat 4 backward compatible?
> 
> >>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
> 
> Am 26.09.01, 10:38:56, schrieb Dmitri Colebatch <[EMAIL PROTECTED]> zum
> Thema Re: Cocoon 1 and Tomcat 4 -> Cocoon is not a Servlet??? :
> 
> 
> > I would think the error would be because you are using a 2.2 servlet in a
> > 2.3 container.  I'm not sure if cocoon have recompiled against the 2.3
> > api, and I could be wrong here, but that's what it seems to suggest.
> 
> > cheers
> > dim
> 
> 
> > On Wed, 26 Sep 2001, Red wrote:
> 
> > > 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
> > >
> > >
> > >
> 
> 
> 

Reply via email to