tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rizalino DeVilleres" <RDeVille...@primustel.ca>
Subject RE: Is there a way to remap/replace webapps/ROOT?
Date Mon, 16 Oct 2006 18:37:06 GMT
David,

Thanks for the quick response.

I've tried your recommendation, and it does remap the webapps/ROOT to
whatever the name of the xml file is.

However, if I rename it public_html.xml, it looks for
"/path/to/public_html/public_html" instead of just /path/to/public_html.

Here is a snippet of the server.xml and public_html.xml file:

server.xml
 <Host name="localhost"
appBase="/path/to/public_html"deployOnStartup="true"
       unpackWARs="false" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

public_html.xml:
<Context path="" debug="0" swallowOutput="true">
</Context>

I tried to change the appBase to just "/path/to/" and restart tomcat, it
looks at the desired path but I have to relocate all the files from
public_html to the folder /path/to.

Here are the errors from the webapps.log;
2006-10-16 14:33:27:072 - {ERROR} core.StandardContext;  Error starting
static Resources
java.lang.IllegalArgumentException: Document base
/path/to/public_html/public_html does not exist or is not a readable
directory

This setup is still working with Tomcat/4.1.18. I've been trying to get
it working for at least a few weeks and just started using this mailling
list as the last resort, so I apologize if this is not an acceptable
setup on Tomcat 5.5

Thanks,
Rizalino

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message