Tommy Pham wrote:
On Thu, Mar 21, 2013 at 11:10 AM, André Warnier <a...@ice-sa.com> wrote:
Manuel Fernández Panzuela wrote:
To publish your wwwdoc directory you must edit sever.xml and look for
<Host>
tag. Inside this block write a line like::

<Context docBase="D:/wwwroot" path="/wwwroot" reloadable="true" />

Hi.
Don't top-post.
And the page which the original poster apparently mis-read, also says (in
bold) :

It is NOT recommended to place <Context> elements directly in the server.xml
file.

https://tomcat.apache.org/tomcat-7.0-doc/config/context.html



Hi André,

Thanks for the feedback.  I'm still getting the 404 error with this wwwroot.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Context docBase="D:/wwwroot">
</Context>

And the catalina log shows:Mar 21, 2013 11:46:27 AM

org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Mar 21, 2013 11:46:27 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor
D:\apache-tomcat-7.0.26\conf\Catalina\localhost\wwwroot.xml
Mar 21, 2013 11:46:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.26\webapps\docs
Mar 21, 2013 11:46:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory
D:\apache-tomcat-7.0.26\webapps\examples



Like Christopher, I would have expected this to work.
So, a few stupid questions (but one never knows) :
- is there actually something in D:\wwwroot ? if yes, what ?
- is your browser (window) opened on the same host as where you have tomcat 
installed ?
- is it this tomcat that is listening on port 80 ?
- do you have more than 1 (uncommented) <Host> in your server.xml ?
- can you call up http://localhost/docs ?
- what happens if you copy what is now in D:\wwwroot, to D:\apache-tomcat-7.0.26\webapps\wwwroot ?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to