Peter Flynn wrote:
> I've been using Tomcat5 with Apache2 under RH5 to run Cocoon, but I
> now need to add Lucene and eXist. Is it possible to run multiple
> applications like this on the same machine using the same Tomcat server?
>
> Someone mentioned something about "another Tomcat instance" but I
> don't know if this is required, and I can't find any documentation
> about it.
>
> At the moment, all Cocoon pages get an extra "cocoon/" token inserted
> in their URI, eg http://myhost.server.domain/cocoon/stuff. I did look
> at just replacing ROOT in webapps but that seems a little
> heavy-handed, and it would seem to defeat any chance of adding Lucene
> and eXist.
>
> Is there another way to get rid of the "cocoon/", because the Cocoon
> pages will be the interface the user sees (but somehow preserve an
> equivalent "lucene/" and "eXist/" because they won't be seen much)?
>
> ///Peter
>

You can name your cocoon webapp ROOT and then add lucene and eXist
webapps.  If lucene or eXist webapps exist, the request will go to
them.  It'll only hit ROOT if those webapps aren't there or running. 
This falls under the requirement of servlet containers to make the
longest match at each stage of the decision making process.  When
choosing which webapp, the longest match is used and then again at the
servlet mapping level, the longest match takes it.

--David


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to