Riza-
take off the trailing slash

in server.xml change appBase=
"/path/to/public_html" TO
"/path/to"

M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Rizalino DeVilleres" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, October 16, 2006 2:37 PM
Subject: RE: Is there a way to remap/replace webapps/ROOT?


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to