You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by th...@db.com on 2000/03/08 18:19:24 UTC

Cocoon 1.7 and Tomcat 3.1 M1 installation problem


I am trying to get Cocoon 1.7 and Tomcat 3.1 M1 on Win NT 4 running. But I
didn't succeed so far. I
I did the following:
- put all the jar files coming with Cocoon into the lib directory of my tomcat
installation
- edited tomcat.bat to set classpath to the jar files: .lib\cocoon.jar ....
- edited the examples context web.xml file to contain the servlet definition and
mapping
- included the following lines into tomcat.conf which is included into the
apache conf file:
     Action coccon /examples/servlet/org.apache.cocoon.Cocoon
     AddHandler cocoon xml

Now I have tried several scenarios:
1. get  http://localhost/cocoon.xml   or http://localhost/Cocoon.xml resulting
in page not found error
2. get http://localhost/org.apache.cocoon.Cocoon resulting in page not found
error
3. extracted the cocoon.jar file into the examples/Web-inf/classes directory
    try to get http://localhost/examples/servlet/org.apache.cocoon.Cocoon

            Cocoon 1.7           Publishing Engine could not be initialized.
java.lang.RuntimeException: Error loading logicsheet:
resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl.
java.io.IOException: Resource not found:
resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl
     at org.apache.cocoon.processor.xsp.XSPProcessor.init(Compiled Code)
     at org.apache.cocoon.framework.Manager.create(Manager.java:89)
     at org.apache.cocoon.framework.Router.init(Compiled Code)
     at org.apache.cocoon.framework.Manager.create(Manager.java:89)
     at org.apache.cocoon.Engine.(Engine.java:155)
     at org.apache.cocoon.Engine.getInstance(Engine.java:190)
     at org.apache.cocoon.Cocoon.init(Cocoon.java:119)
     at org.apache.tomcat.core.ServletWrapper.handleInit(Compiled Code)
     at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:188)
     at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:202)
     at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:240)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
     at org.apache.tomcat.core.ServletWrapper.handleInvocation(Compiled Code)
     at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:224)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:347)
     at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp
12ConnectionHandler.java:146)
     at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
     at java.lang.Thread.run(Thread.java:479)


     I tried to put in absolute pathes and all sorts of things, but without any
success.

In general I suspect that I have somehow not configured apache correctly to pass
 XML requests properly to Tomcat (servlets and JSP are working well,
so the problem is related to XML files) and on the other hand that somehow my
understanding concerning "path configurations" is not sufficient.

I  am really stuck and would appreciate any help

thomas