Hello Scott,
There are issues with Cocoon2 and Tomcat 4.x.x...especially 4.0.2 and
4.0.3. If you want Cocoon to work as promised by the coocon2 website,
try using Tomcat 4.0.2-b2. That is the last version of Tomcat that
allows the loading of XML parsers from the WEB-INF/lib directory.
Apparently, it is against the classloading specification to load an
XML parser in a child classloader. It must be in a partent. So, you
must remove the xml parser from the cocoon2 webapp and make one
available in $TOMCAT_HOME/common/lib or $TOMCAT_HOME/lib.
Also, the classloading change was made to 4.0.2 (and 4.0.3 is a carbon copy of
4.0.2 + a security fix), but it isn't very intelligent. It was made
more intelligent in 4.0.4-b2. I suggest moving to that, even though
it is beta. There are a ton of bug fixes besides classloading issues.
However, you will still need the XML parser in the parent classloader.
YOu probably need the XSL libs in the parent classloader also.
Jake
Wednesday, May 01, 2002, 11:02:15 AM, you wrote:
SP I have been running Tomcat 4.0.3 on my NT box for a few months, and I am pretty
familiar with it. I set the server.xml to run on port 80 not 8080.
SP I tried to install cocoon 2.0.2 and ran into a problem. I read the install guide,
and it basically said to place the cocoon.war file under my $installdir/webapps and
restart the server.
SP After I restart the tomcat, the cocoon.war did decompress and now I have a cocoon
directory with a lot of subdirectories in it. All looks correct. But when I try and
hit the page
SP http://localhost/cocoon/
SP it blows up with the following error:
SP I do not have any other Cocoon 1.x jar in the lib either. I have read and re-read
the docs.
SP Below is the error:
SP If anyone knows what this may be caused from please let me know.
SP Sincerely
SP Scott K Purcell
SP Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
SP type Exception report
SP message Internal Server Error
SP description The server encountered an internal error (Internal Server Error) that
prevented it from fulfilling this request.
SP exception
SP javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
SP at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
SP at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
SP at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
SP at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
SP at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
SP at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
SP at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
SP at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
SP at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
SP at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
SP at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
SP at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
SP at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
SP at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
SP at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
SP at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
SP at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
SP at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
SP at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
SP at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
SP at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
SP at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
SP at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
SP at java.lang.Thread.run(Thread.java:484)
SP root cause
SP java.lang.NoClassDefFoundError: javax/xml/transform/Source
SP at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183)
SP at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1209)
SP