cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Garry <jon.ga...@emapdigital.com>
Subject RE: Apache, Tomcat 4, Cocoon, mod_webapp, and mod_rewrite -- how to get it working?
Date Thu, 29 Nov 2001 10:31:51 GMT
Hello everyone,

I am a newcomer to Cocoon project and installed it a few days ago with
Tomcat 3.2.4/Windows 2000 - everything works fine and I could see the
examples, and got my own files on there and everything worked fine.

However, I downloaded Tomcat 4.0 and decided to install Cocoon v1.8 with it
as well and I've had real problems getting it to work. Basically, it cannot
find the example files (I get 404 errors) at all, no JSPs from Tomcat load
(404 errors) but I don't get any errors when Tomcat starts. I have been
looking at it for ages now and am truly stuck. I have tried installing it on
2/3 different machines, using the install docs on the site and still get the
same errors :(

Has anyone got any tips for installing Cocoon 1.8 with Tomcat 4.0 on Windows
2000 - it would be much appreciated.

Thanks
Jon



-----Original Message-----
From: Andre Juffer [mailto:ajuffer@sun3.oulu.fi] 
Sent: 29 November 2001 10:17
To: cocoon-users@xml.apache.org
Subject: Re: Apache, Tomcat 4, Cocoon, mod_webapp, and mod_rewrite -- how to
get it working?


Liam Morley wrote:

> I'm looking for somebody who is using the above pieces. Or really just 
> anybody who is using mod_rewrite. My mod_rewrite is set up as follows:
> 
> RewriteEngine On
> RewriteLog "E:/apache/Apache/logs/rewrite.log"
> RewriteLogLevel 3
> RewriteRule ^/(.*) /cocoon/cms/$1 [PT]



You are running on Windows, right? Maybe, you should use 
"E:\apache\Apache\logs\rewrite.log" instead ('\' instead of '/').

In my case (on a Linux machine), the [PT} did noy work for me. Instead, 
I have [R] and that worked correctly with Tomcat 4.0.1 and Cocoon2.0rc2.


> 
> These lines are directly after the AddModule section. I want my Cocoon 
> application to seem like it's at the root directory. I'm hoping that's 
> what's getting accomplished here.
> 
> I have mod_webapp set up as follows:
> 
> WebAppConnection conn warp imotic.res.wpi.net:8008 WebAppDeploy cocoon 
> conn /cocoon


Did you also include something like (on Linux):

LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c


> 
> This is at the bottom of my httpd.conf file. I'm getting a 404 when I 
> try accessing the root directory. I checked my Apache error.log file 
> and saw the following:
> 
> [Thu Nov 29 03:55:21 2001] [error] [client 130.215.226.58] File does 
> not
> exist: e:/apache/apache/htdocs/cocoon/cms/
> 
> Why would it be looking in the htdocs folder?? Shouldn't it know from 
> webapp that anything in /cocoon is handled by tomcat?
> 
> I tried setting webapp to be deployed in the root directory, and 
> changed the rewrite rool from /cocoon/cms/$1 to /cms/$1. Upon loading 
> the page, the cocoon website came up; "/cocoon" instead of 
> "/cocoon/cms".
> 
> This leads me to believe that webapp is getting processed before 
> rewrite. This is the opposite order in which I want them to be 
> processed. How do I make sure that rewrite is processed first?
> 
> A huge thank you to anybody who can help out.
> 
> Liam Morley
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the 
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 



-- 
Andre H. Juffer              | Phone: +358-8-553 1683
The Biocenter and            | Fax: +358-8-553-1141
     the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi University of
Oulu, Finland  | WWW: http://www.biochem.oulu.fi/Biocomputing/


---------------------------------------------------------------------
Please check that your question has not already been answered in the FAQ
before posting. <http://xml.apache.org/cocoon/faqs.html>

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