cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <l.mo...@tin.it>
Subject RE: confusion with C2!
Date Sat, 09 Feb 2002 09:47:52 GMT
Vishal,

actually, you don't need to have your XML files under the cocoon directory.

For instance, I have my Cocoon directory under
"c:\apps\tomcat\webapps\cocoon", but I have my XML fles under
"d:\noria\noria".
The solution to this is just mounting a sub-sitemap under the main sitemap.

For instance, there is this fragment in my sitemap
("c:\apps\tomcat\webapps\cocoon\sitemap.xmap"):

<map:pipeline>
	<map:match pattern="noria/**">
		<map:mount uri-prefix="noria" src="file:///d:/noria/noria/"
			check-reload="yes"
			reload-method="synchron"/>
	</map:match>
</map:pipeline>

This tells Cocoon to process every URI with "noria/<something>" in it, to
the sub-sitemap located under "d:/noria/noria", which will act as the new
root for XML files.

Best regards,

P.S.
On a personal note: while I think Vadim was a bit too harsh on you, I can't
help noticing that there is FAQ entry about this (named: "How could I have
my Cocoon app in a directory other than
$TOMCAT_HOME/webapps/cocoon/<my-app>?").

Since I wrote that FAQ entry I'd like to know:
1) Did you read it ?
2) If yes, was it helpful to you ?
3) If not, how could it be rewritten in a more meaningful way ?

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: vishal@klio.Central.Sun.COM [mailto:vishal@klio.Central.Sun.COM]On
> Behalf Of Vishal Khatnani
> Sent: Saturday, February 09, 2002 8:38 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: confusion with C2!
>
>
> Vadim,
>
> Let me explain. I have worked with java servlets before, and used
> several servlet engines such as jakarta tomcat and iplanet in the past.
> The problem is not deploying these, but understanding specific
> configurations which aren't well documented IMHO. It's been very recent
> since I got into the XML technology (specifically with cocoon) so what
> im really asking for is better sharing of knowledge amongst us...
>
> Thanks for your help,
> Vishal
>
>
>
> Vadim Gritsenko wrote:
> >
> > > From: Vishal.Khatnani@Sun.COM [mailto:Vishal.Khatnani@Sun.COM]
> > >
> > > cocoon users,
> > >
> > > Im confused. I don't understand why my xml files have to be in the
> > cocoon
> > > directory e.g. ...webapps/cocoon/proj/file.xml
> >
> > <snip/>
> >
> > > Please help! I am desperate!
> >
> > Dear Vishal,
> >
> > As Sun employee you should teach everybody how to deploy web
> > applications, were to put all the class files, etc. Now I see that you
> > do not have even slightest understanding of how web applications are
> > working. Before you ask other questions, please read specifications
> > published on Sun's website:
> >
> > http://java.sun.com/products/servlet/download.html
> >
> > Also, consider installing and learning one of the servlet engines
> > available out there. Tomcat is among others available for free under:
> >
> > http://jakarta.apache.org/tomcat/
> >
> > Regards,
> > Vadim
> >
> > ---------------------------------------------------------------------
> > 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>
>
> --
> Vishal Khatnani  -- x74287
> Applications Support/Sys Admin
> Infrastructure Support Group (ESIT)
> Sun Microsystems, Inc.
>
> ---------------------------------------------------------------------
> 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>
>
>


---------------------------------------------------------------------
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