Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jed
Hi All, I'm a new Cocoon user and I've come across and I'm having a really bizarre problem at the moment which has stopped my site development in it's tracks. I've got Apache/Tomcat/Cocoon set-up and have got the Tomcat and Cocoon samples running just fine. I've set-up a virtual server with it's

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jeroen Reijn
Yes you are correct here. Remove the / from the beginning. Also use a relative source: Use map:generate src=main/helloworld.xml/ instead of map:generate src=/main/helloworld.xml/ Regards, Jeroen Rainer Pruy wrote: Hi Jed, you might try using map:match pattern=main/*.jhtml (leaving out

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jed
Hi Jeroen, Thanks for the suggestion. I did actually try that but it didn't solve it. :( The problem is that Tomcat still appears to NOT be passing any request for a *.jhtml document in the docroot/main folder to cocoon. As I said, when I ask for http://test.domain/test.jhtml cocoon recieves

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jeroen Reijn
Well then it must be your mod_jk configuration. I do not have a lot of experience with that, since I normally use mod_rewrite or mod_proxy. On the cocoon side the correct way to go is without the preceding /, so map:match pattern=/main/*.jhtml map:generate src=/main/pageTwo.xml/ Should be

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Lehtonen, Mika
Hi, can't you just leave the mod_jk out of this for now on and test directly with Tomcat e.g. configure it to listen port 8080. Another approach might be to leave Cocoon out and test some static material through mod_jk. That way you can assure that it is working properly. mika Jed

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jed
I know mod_jk is working because it's passing the request through to Tomcat. Instead of trying to serve the *.jhtml file from Apache, it's going to Tomcat which is then passing back it's *own* 404 message rather than the default apache version. I've got mod_jk in debug mod and looked at the

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jed
Have done all of those things already. - Jed On 10/04/2008, Lehtonen, Mika [EMAIL PROTECTED] wrote: Hi, can't you just leave the mod_jk out of this for now on and test directly with Tomcat e.g. configure it to listen port 8080. Another approach might be to leave Cocoon out and test some

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Nikolas List
Hi Jed, Jed schrieb: Hi Jeroen, Thanks for the suggestion. I did actually try that but it didn't solve it. :( The problem is that Tomcat still appears to NOT be passing any request for a *.jhtml document in the docroot/main folder to cocoon. As I said, when I ask for

Re: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jed
Well a follow up to say I fixed the problem. As I suspected it was a problem with Tomcat, not Cocoon. Short backstory, basically we had an existing web application using older version of Tomcat/Cocoon and this was part of the process of updating and moving everything to a newer faster

RE: Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jeroen Reijn
Thanks Jed for letting us know how you have solved your problem! Great to hear that it's fixed! Regards, Jeroen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jed Sent: Thursday, April 10, 2008 10:16 PM To: users@cocoon.apache.org Subject: Re: Tomcat