I tried to set this up with TC4.0, w/o getting it to work correctly. I gave
up.
As I recall from the initial setup, this looks wrong:
<param-name>properties</param-name>
<param-value>
/test/cocoon.properties
</param-value>
it should be:
<param-name>properties</param-name>
<param-value>
WEB-INF/cocoon.properties
</param-value>
Refer to the install guide in the Tomcat section.
http://xml.apache.org/cocoon/install.html
If you do get it working let me know.
Thanks,
Mike.
--
Mike Braden
[EMAIL PROTECTED]
-----Original Message-----
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 6:31 PM
To: [EMAIL PROTECTED]
Subject: Cocoon and Tomcat
Greetings, I want to use Cocoon for XSL transforms with Tomcat. I'm fairly
new to Tomcat and have read all available documentation (including the
archives)on intalling Cocoon using Tomcat.
Configuration: Win98, Tomcat3.2.1, Cocoon1.7.4
I have added all necessary Cocoon components to the Tomcat classpath (in
tomcat.bat).
I have created a context in which to test Cocoon and added its definition to
the server.xml
I have defined the Cocoon servlet and its mapping of *.xml extensions in my
contexts respective web.xml.
I have defined init parameters which initializes Cocoon using its
cocoon.properties file
I have added a copy of the cocoon.properties to the web-inf directory.
Directory hierarchy and contents:
c:\work\web\test\names.xml
c:\work\web\test\names.xsl
c:\work\web\test\web-inf\lib
c:\work\web\test\web-inf\classes
c:\work\web\test\web-inf\web.xml
c:\work\web\test\web-inf\cocoon.properties
web.xml excerpt with cocoon definition:
<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>
/test/cocoon.properties
</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>org.apache.cocoon.Cocoon</servlet-name>
<url-pattern>*.xml</url-pattern>
</servlet-mapping>
server.xml excerpt with context definition:
<Context path="/test"
docBase="c:/work/web/test"
debug="0"
reloadable="true"
trusted="false" >
</Context>
Each time I try and access
names.xml( http://localhost:8080/test/names.xml ), I get a 404 error. I
checked the log files, but nothing indicates that Cocoon generated an error.
There is actually nothing to indicate Cocoon was even invoked. I can access
other files in the same directory without any problems.
I have defined and configured other servlets and they work as expected. My
*.jsp files are served up as expected.
If anyone can offer some advice on configuring and using Cocoon with Tomcat
in Win98 environment, it would be greatly appreciated.
Robert Taylor - Senior Developer
MuleWork Technologies, L.L.C.
[EMAIL PROTECTED]
770.891.9858
http://www.mulework.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]