if you can, upgrading to 4.0.4 will resolve the issue

-----Original Message-----
From: Andreas Rittershofer [mailto:[EMAIL PROTECTED]]
Sent: terca-feira, 30 de Abril de 2002 12:21
To: [EMAIL PROTECTED]
Subject: Re: Cocoon will not run


On 30 Apr 2002 at 7:53, Andreas Rittershofer wrote:

> My setup is:
> Java 1.3.1
> Tomcat 4.0.3 (examples are running fine)
> Cocoon 2.0.2
> 
> When I invoke
> http://host:8080/cocoon
> I get:
> 
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
> 
> ----------------------------------------------------------------------
> ----------
> 
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error (Internal Server 
> Error) that prevented it from fulfilling this request.
> 
> exception 
> 
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 
> threw exception
>       at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
> ava:935)
>       at 
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
> :653)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> lve.java:214)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> lve.java:190)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
> 343)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> va:180)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
> Valve.java:170)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:564)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va:170)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:564)
>       at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:4
> 68)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:564)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
> e.java:174)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor
> .java:1012)
>       at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.jav
> a:1107)
>       at java.lang.Thread.run(Thread.java:484)
> 
> 
> root cause 
> 
> java.lang.NoClassDefFoundError: javax/xml/transform/Source
>       at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183)
>       at 
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.jav
> a:1209)
>       at 
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
>       at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
> ava:916)
>       at 
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
> :653)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> lve.java:214)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> lve.java:190)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
> 343)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> va:180)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
> Valve.java:170)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:564)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va:170)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:564)
>       at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:4
> 68)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:564)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
> e.java:174)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :472)
>       at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor
> .java
> :1012)
>       at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.jav
> a:110
> 7)
>       at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> ----------------------------------------------------------------------
> ----------
> 
> 
> Can anybody help?
> 
> mfg ar
> 
> -- 
> mailto:[EMAIL PROTECTED]
> http://www.rittershofer.de/
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

Finally I got it up and running. It was quite easy: I made it like 
mentioned in the installation instructions. :-))
I should have made more RTFM!

Installing on Tomcat 4.0.3 
If you have to use Tomcat 4.0.3, you have to replace its XML parser 
with the one shipped with Cocoon. 

Remove tomcat/common/lib/xerces.jar file. 
Copy following libraries from the cocoon/lib/core directory to the 
tomcat/common/lib directory: 
xalan-XXX.jar 
xercesImpl-XXX.jar 
xml-apis.jar 
Copy cocoon/lib/core/batik-libs-XXX.jar to the tomcat/common/lib 
directory. 
Edit extra-classpath parameter in the cocoon/src/webapp/WEB-
INF/web.xml file: 
For UNIX: 

   
 <init-param>
  <param-name>extra-classpath</param-name>
  <param-value>/tomcat/common/lib/xalan-XXX.jar:
/tomcat/common/lib/xercesImpl-XXX.jar:
/tomcat/common/lib/xml-apis.jar:
/tomcat/common/lib/batik-libs-XXX.jar</param-value>
</init-param>

  
   
That's it!


mfg ar

-- 
mailto:[EMAIL PROTECTED]
http://www.rittershofer.de/



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to