under Linux it is quite simple to duplicate cocoon into more webapps, what I
have done is:
in the webapps directory of tomcat I mkdir a new folder for a new webapp,
then inside that I mkdir a WEB-INF folder. inside that folder I have created
a softlink ln -s to the lib folder in the cocoon/WEB_INF/lib and then copy
the web.xml file.
finally I copy the sitemap.xmap and the cocoon.xconf from the original
cocoon/ folder into the new webapp folder. this way I can keep the c2b up to
synch and have several webapps using the cocoon2 system.
next time you start tomcat the new webapp context will be created and the
softlink to the lib folder makes it behave just like the original cocoon/
webapp.
this is for testing only, I haven't tried to create wars from this setup.
mvh karl xie
> 1/ Is it possible to use several sitemap files within Tomcat/C2 ?
> Do i need
> one sitemap for each web application ? Is it possible to have a
> sitemap file
> in each directory containing XML and XSL documents ? It doesn't seems that
> c2 is always handling xml-stylesheets/cocoon-process instructions
> within XML
> documents. Am i wrong ?
>
> 2/ Is it possible de define a new wep application
> (webapps/myapp/) using the
> c2 functionnalities (without duplicating c2) ? Or do i have to install my
> XML documents within the webapps/cocoon directory ?
>
> 3/ Is it possible to put some XML documents (containing
> xml-stylesheets and
> cocoon-process instructions ala c1) within the Apache htdocs directory and
> ask c2 to do the transformation (a la c1). Is it possible to define a
> Handler for XML document linked to c2 within Apache httpd.conf
> (and mod_jk)
> ? Or do i have to install also c1 ? Is it possible to have c2 and
> c1 working
> together on apache/Tomcat/mod_jk ?
>
> Thanks for your help,
> Pat
>
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>