You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by King-Tak CHOW <ck...@yahoo.com> on 2001/04/20 10:26:38 UTC
Pure XML file access.
I'm using apache and tomcat server, and installed
cocoon 1.8.2. The example of the cocoon works fine.
However, when I try to access XML file that is under
the document root directory of apache, I got the file
not find error. I then put the XML file under the
cocoon installation directory, and I can access then.
So my problem is: How to configure my apache and
tomcat server so that I can access XML files that is
under the document root directory.
Thanks in advance.
Tak
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
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: Pure XML file access.
Posted by "Arne Borkowski (borko.net)" <ar...@borko.net>.
Hi,
> I'm using apache and tomcat server, and installed
> cocoon 1.8.2.
so do I
> However, when I try to access XML file that is under
> the document root directory of apache, I got the file
> not find error.
I assume you have JkMount /*.xml ajp13 in you httpd.conf
(maybe ajp12 instead of ajp13)
> I then put the XML file under the cocoon installation
> directory, and I can access then.
The problem is, that Tomcat requires you to have a context
that points to the htdocs directory of apache. I added a
root context in the [tomcat_home]/conf/server.xml file
and restarted Tomcat and Apache. I can now access *.xml
in the Apache root and below.
This may not be the best solution at all, however it
works fine for my needs.
> Thanks in advance.
My pleasure
-Arne
---------------------------------------------------------------------
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>