You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by David Barnes <da...@yahoo.com> on 2000/08/08 04:18:56 UTC

Unable to get Cocoon working

Hello,
I'm setting up Cocoon to be part of a test server for
the St. Louis Unix Users Group. I've got Tomcat going,
and I think I've followed the Cocoon directions, but
it still doesn't seem to be working.

What should my next steps be to debug? I don't see any
obvious error messages. The server, with all the
specs, is here: 

http://64.32.146.231/

The Cocoon pages are here:
http://64.32.146.231/examples/cocoon/

When I start Tomcat, I see the below:

Setting TOMCAT_HOME to bin/..
Using classpath:
.:bin/../lib/xerces_1_0_3.jar:bin/../lib/xalan_1_0_1.jar:bin/../lib/fop_0_12_1.jar:bin/../lib/cocoon.jar:bin/../lib/ant.jar:bin/../lib/bin:bin/../lib/cocoon.jar:bin/../lib/fop_0_12_1.jar:bin/../lib/jasper.jar:bin/../lib/servlet.jar:bin/../lib/servlet_2_2.jar:bin/../lib/stylebook-1.0-b2.jar:bin/../lib/test:bin/../lib/webserver.jar:bin/../lib/xalan_1_0_1.jar:bin/../lib/xerces_1_0_3.jar:bin/../lib/xml.jar:/usr/local/src/java/bin/../lib/tools.jar
[root@pilsner jakarta-tomcat]# Context log:
path="/examples" Adding context path="/examples" 
docBase="webapps/examples"
Context log: path="" Adding context path="" 
docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test" 
docBase="webapps/test"
Starting tomcat. Check logs/tomcat.log for error
messages 
Starting tomcat install="bin/.."
home="/usr/local/src/jakarta-tomcat"
classPath=".:bin/../lib/xerces_1_0_3.jar:bin/../lib/xalan_1_0_1.jar:bin/../lib/fop_0_12_1.jar:bin/../lib/cocoon.jar:bin/../lib/ant.jar:bin/../lib/bin:bin/../lib/cocoon.jar:bin/../lib/fop_0_12_1.jar:bin/../lib/jasper.jar:bin/../lib/servlet.jar:bin/../lib/servlet_2_2.jar:bin/../lib/stylebook-1.0-b2.jar:bin/../lib/test:bin/../lib/webserver.jar:bin/../lib/xalan_1_0_1.jar:bin/../lib/xerces_1_0_3.jar:bin/../lib/xml.jar:/usr/local/src/java/bin/../lib/tools.jar"
Context log: path="/admin" Automatic context load
docBase="/usr/local/src/jakarta-tomcat/webapps/admin"
Context log: path="/admin" Adding context
path="/admin" 
docBase="/usr/local/src/jakarta-tomcat/webapps/admin"

I altered the WEB-INF/web.xml file in the examples
subdirectory to contain the following:

   <servlet>
       
<servlet-name>org.apache.cocoon.Cocoon</servlet-name>
       
<servlet-class>org.apache.cocoon.Cocoon</servlet-class>
        <init-param>
          <param-name>properties</param-name>
          <param-value>
               
/usr/local/src/cocoon/conf/cocoon.properties
          </param-value>
        </init-param>
   </servlet>
   <servlet-mapping>
       
<servlet-name>org.apache.cocoon.Cocoon</servlet-name>
        <url-pattern>*.xml</url-pattern>
   </servlet-mapping>


What should I do next? Any help would be much
appreciated.

Thanks,

David Barnes



__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

Re: Unable to get Cocoon working

Posted by "Walter G. da Cruz" <wd...@pacbell.net>.
Hello!

	This is my first post on the list.  I am not a *.xml
expert, but I think I can help on this:

	First of all, you need to copy cocoon.properties to
/WEB-INF/ directory.  Then, change this line on web.xml
file:

>           <param-value>
> /usr/local/src/cocoon/conf/cocoon.properties
>           </param-value>

	should be:
		<param-value>
			/WEB-INF/cocoon.properties
		</param-value>

			I hope this, helps, 
			Walter
-- 

"We think that when we suffer a defeat, that | (408)294-4750
    all is ended.  Not true.  It is only the |
wdacruz@pacbell.net
         beginning, always." - Richard Nixon |
http://www.wdacruz.com
---------------------------------------------|-----------------------