cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Dovydaitis <vi...@foliage.com>
Subject Re: Cocoon / Tomcat / Apache config
Date Wed, 14 Jun 2000 15:22:02 GMT
Never mind. I forgot to use that most basic debugging tool: a total reboot of
the system. Everything now works.

Vincent Dovydaitis wrote:

> I am running Cocoon 1.7.4, Tomcat 3.1, and Apache 1.3.12 on NT 4.0
>
> I installed Apache first, then Tomcat. I can see and run all the Tomcat
> jsp/servlet examples.
>
> I installed Cocoon next. I created a directory "cocoon_stuff" and added
> it as a Context to server.xml. I copied the web.xml template to
> .../cocoon_stuff/WEB-INF and also placed the cocoon.properties in the
> same directory. I copied the samples directory to cocoon_stuff.
>
> http://localhost:8080/cocoon_stuff/Cocoon.xml works.
> http://localhost:8080/cocoon_stuff/index.xml and all the examples work.
>
> When I start Apache, http://localhost/cocoon_stuff/Cocoon.xml gives me a
> file not found error.
> http://localhost/cocoon_stuff/index.xml tries to serve me the file as
> "text/xml". However,
> http://localhost/cocoon_stuff/servlet/org.apache.cocoon.Cocoon/Cocoon.xml
> works.
>
> I added the lines:
>
> AddType text/xml .xml
> AddHandler jserv-servlet .xml
>
> to my httpd.conf file (after the "Include tomcat-apache.conf" line) and
> http://localhost/cocoon_stuff/Cocoon.xml now works. However index.xml
> still returns the raw xml.
> When I tried adding other Action/AddHandler combinations to access
> org.apache.cocoon.Cocoon I haven't been successful in getting the
> samples (or Cocoon.xml) to run.
>
> Two questions:
>
> 1) What am I missing in the config?
> 2) I figure I shouldn't have to muck with httpd.conf to get this to work
> (?) as Tomcat should automatically generate the right files.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message