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

Reply via email to