cocoon path outside cocoon's dir

2001-11-27 Thread Cocoon User

i have install apache cocoon2 and tomcat4

my web site warks when i puut all files into /cocoon/docs/samples/myDir/

but i want to have my website files into /home/myDir/

i have try this:
map:generate src=docs/samples/myDir/{1}.xml/

and work fine

but when i try to modify this line to this one
map:generate src=/home/myDir/{1].xml/

i recieve errors
i think that i can not point to files outside cocoon's path

is this true
how can i have my site files into a directory in /home/?


thanks
kounis stavros



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




RE: cocoon path outside cocoon's dir

2001-11-27 Thread Luca Morandini

 i think that i can not point to files outside cocoon's path


I bet you can... just look at the FAQ entry called How could I have my
Cocoon app in an URI other than you-server/cocoon/my-app?.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 27, 2001 10:28 AM
 To: [EMAIL PROTECTED]
 Subject: cocoon path outside cocoon's dir


 i have install apache cocoon2 and tomcat4

 my web site warks when i puut all files into /cocoon/docs/samples/myDir/

 but i want to have my website files into /home/myDir/

 i have try this:
 map:generate src=docs/samples/myDir/{1}.xml/

 and work fine

 but when i try to modify this line to this one
 map:generate src=/home/myDir/{1].xml/

 i recieve errors
 i think that i can not point to files outside cocoon's path

 is this true
 how can i have my site files into a directory in /home/?


 thanks
 kounis stavros



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




Re: cocoon path outside cocoon's dir

2001-11-27 Thread Martijn Bouterse



Cocoon User wrote:
 
 i have install apache cocoon2 and tomcat4
 
 my web site warks when i puut all files into /cocoon/docs/samples/myDir/
 
 but i want to have my website files into /home/myDir/
 
 i have try this:
 map:generate src=docs/samples/myDir/{1}.xml/
 
 and work fine
 
 but when i try to modify this line to this one
 map:generate src=/home/myDir/{1].xml/
 
 i recieve errors
 i think that i can not point to files outside cocoon's path
 
 is this true
 how can i have my site files into a directory in /home/?
 
 thanks
 kounis stavros

I have a construction where docs/samples/myDir is a symlink (I'm running
Linux) to /home/myDir. In the sitemap I have something like:
map:generate src=docs/samples/myDir/{1}.xml/
That works for me. If this is not desirable or possible, i.e. because
you're running another os, the problem you mentioned could be caused by
file read permissions being too strict. In my installation Tomcat is run
as user www-data and subsequently Cocoon is also running with that
userid. Thus when Cocoon needs to read some file, the file has to be
readable for user www-data (in my case) or for everyone.

Hope this helpes

Martijn Bouterse

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