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" /> Don't use "debug" as André says :) Un abrazo 2013/3/21 André Warnier <a...@ice-sa.com> > Tommy Pham wrote: > >> Hi, >> >> I'm trying to setup my virtual directory wwwroot as >> http://localhost/wwwroot/ mapped to d:\wwwroot but I'm getting >> >> HTTP Status 404 - /wwwroot/ >> >> type Status report >> >> message /wwwroot/ >> >> description The requested resource (/wwwroot/) is not available. >> Apache Tomcat/7.0.26 >> >> >> >> My wwwroot.xml: >> >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <Context path="/wwwroot" docBase="D:/wwwroot" debug="0" privileged="true"> >> </Context> >> >> and the localhost log: >> >> Mar 21, 2013 10:14:38 AM org.apache.catalina.core.**StandardEngine >> startInternal >> INFO: Starting Servlet Engine: Apache Tomcat/7.0.26 >> Mar 21, 2013 10:14:38 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 10:14:38 AM >> org.apache.catalina.startup.**SetContextPropertiesRule begin >> WARNING: [SetContextPropertiesRule]{**Context} Setting property 'debug' >> to '0' did not find a matching property. >> Mar 21, 2013 10:14:39 AM org.apache.catalina.util.**SessionIdGenerator >> createSecureRandom >> INFO: Creation of SecureRandom instance for session ID generation >> using [SHA1PRNG] took [145] milliseconds. >> Mar 21, 2013 10:14:39 AM org.apache.catalina.startup.**HostConfig >> deployDirectory >> INFO: Deploying web application directory D:\apache-tomcat-7.0.26\** >> webapps\docs >> >> Did I misread the doc [1]? >> >> Thanks, >> Tommy >> >> [1] >> http://tomcat.apache.org/**tomcat-7.0-doc/config/context.**html<http://tomcat.apache.org/tomcat-7.0-doc/config/context.html> >> >> > Well, you seem to have. > > path : This attribute must only be used when statically defining a Context > in server.xml. In all other circumstances, the path will be inferred from > the filenames used for either the .xml context file or the docBase. > > debug : doesn't exist, as your log messages indicate > > privileged : are you sure ? > > > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@tomcat.**apache.org<users-unsubscr...@tomcat.apache.org> > For additional commands, e-mail: users-h...@tomcat.apache.org > >