cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dima berastau <dberas...@openworld.co.uk>
Subject servlet.jar question (was Re: [c2] can't start cocoon)
Date Wed, 07 Mar 2001 18:27:59 GMT

 Yep, that fixes the problem. Without this addition to the web.xml file,
latest CVS of Tomcat 4.0 just keeps throwing "not a servlet" exception on
Cocoon 2.

 Can anyone explain why?

 I mean I build both Tomcat 4.0 and Cocoon 2 with exactly the same
servlet.jar (2.3) in the classpath and it still throws that exception
unless I modify the web.xml as suggested by Colin.

thanks,
dima

On Tue, 6 Mar 2001, Colin Britton wrote:

> To make C2 work with Catalina (current CVS not B1) you need to add the
> following to the cocoon web.xml
>
>   <init-param>
>        <!-- change param value to path to Catalina's servlet.jar -->
>       <param-name>extra-classpath</param-name>
>
> <param-value>D:\xml_technology\jakarta-tomcat-4.0\common\lib\servlet.jar</pa
> ram-value>
>     </init-param>
>
> rgds
> CB
>
> ----- Original Message -----
> From: "Donald Ball" <balld@webslingerZ.com>
> To: <cocoon-dev@xml.apache.org>
> Sent: Tuesday, March 06, 2001 4:02 PM
> Subject: [c2] can't start cocoon
>
>
> > heya. just giving the latest c2 a whirl to take a look at berin's actions
> > in real life. unfortunately, i get the sitemap's handler is not available
> > error (the c2 catchall error, it would seem). running with catalina fresh
> > from cvs. yes, i nuked the cocoon working directory. :). the error is:
> >
> > 2001-03-06 15:45:20 ERROR   24043   [cocoon  ] (Thread-6): Error compiling
> > sitemap
> > org.apache.cocoon.components.language.LanguageException: Error compiling
> > sitemap_xmap:
> > Line 0, column 0:
> >
> /home/balld/src/jakarta-tomcat-4.0/build/work/localhost/cocoon/org/apache/co
> coon/www/_/home/balld/src/jakarta_tomcat_4_0/build/webapps/cocoon/sitemap_xm
> ap.java:21:
> > Class javax.servlet.http.HttpServletRequest not found in import.
> > import javax.servlet.http.HttpServletRequest;
> >        ^
> >
> >         at
> >
> org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
> JavaLanguage.java:201)
> >         at
> >
> org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
> e.load(CompiledProgrammingLanguage.java:132)
> >         at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
> eResource(ProgramGeneratorImpl.java:224)
> >         at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
> ogramGeneratorImpl.java:194)
> >         at org.apache.cocoon.sitemap.Handler.run(Handler.java:174)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > 2001-03-06 15:45:20 ERROR   24051   [cocoon  ] (HttpProcessor[8080][4]):
> > Problem with servlet
> > org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
> > not available.
> >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:107)
> >         at org.apache.cocoon.Cocoon.process(Cocoon.java:212)
> >         at
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:367)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:246)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:191)
> >         at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:254)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
> >         at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
> >         at
> > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2119)
> >         at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> )
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> >         at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
> >         at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :162)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> >         at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
> >         at
> >
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 818)
> >         at
> >
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > that seems simple enough, but my SERVLETAPI_HOME env variable is set
> > properly:
> >
> > [balld@rdu25-4-159 wz-java-library]$ echo $SERVLETAPI_HOME
> > /home/balld/src/jakarta-servletapi-4
> >
> > and it used to work. any quick suggestions before i head over to the
> > catalina list? fyi, the catalina samples _do_ work, it's just c2 that's
> > broken.
> >
> > - donald
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


Mime
View raw message