You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Patrice Bonhomme <pa...@lucid-it.com> on 2001/08/24 15:34:55 UTC
Apache/tomcat : Q about C2 and C1 ?
Hi there,
I have installed under Linux (RH/Mandrake 7) :
- Apache 1.3.20
- Tomcat 3.3m4
- JDK 1.3
- Cocoon2
- mod_jk
and everything is fine.
I used to work with Cocoon1 (with Apache and JServ) and i was wondering some
questions:
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Apache/tomcat : Q about C2 and C1 ?
Posted by Karl Øie <ka...@gan.no>.
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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Apache/tomcat : Q about C2 and C1 ?
Posted by Luca Morandini <l....@tin.it>.
> -----Original Message-----
> From: Patrice Bonhomme [mailto:patb@lucid-it.com]
> Sent: Friday, August 24, 2001 3:35 PM
> To: cocoon-users@xml.apache.org
> Subject: Apache/tomcat : Q about C2 and C1 ?
> 1/ Is it possible to use several sitemap files within Tomcat/C2 ?
Yes, one sitemap and many sub-sitemaps.
> Do i need
> one sitemap for each web application ?
Well, I presume you can handle applications within the sitemap without
building a sub-sitemap... but, frankly, I can't see a reason to do this.
> Is it possible to have a sitemap file in each directory containing XML and
XSL documents ?
I presume yes.... why not ?
> It doesn't seems that c2 is always handling xml-stylesheets/cocoon-process
instructions
> within XML
> documents. Am i wrong ?
The idea is to use the sitemap for this task. If you want to look at a
different point of view, search the mail archives for postings made by Uli
Mayring on the subject.
> 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 ?
No, you can use a single Cocoon context and stil use
www.yourdomain.com/youapp.xml There is an entry in the Cocoon2 FAQ about
this.
> 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).
I'm inclined to say no... but I'm not sure.
> 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 ?
No idea.
> Is it possible to have c2 and c1 working together on apache/Tomcat/mod_jk
?
Mmmm.... no idea, but check the mailing list, I presume the issue has
arisen before.
Best regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
+39 0744 59 85 1 Office
+39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
>
>
>
> Hi there,
>
> I have installed under Linux (RH/Mandrake 7) :
> - Apache 1.3.20
> - Tomcat 3.3m4
> - JDK 1.3
> - Cocoon2
> - mod_jk
>
> and everything is fine.
>
> I used to work with Cocoon1 (with Apache and JServ) and i was
> wondering some
> questions:
>
> 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 ?
>
>
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>