Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat 5.5 -- Not getting the base directory expected...

Status
Not open for further replies.

tommyc7

Programmer
Feb 3, 2007
33
US
Hi. I'm working on a site currently on my local PC using Tomcat 5.5. I thought that I set it up right, but apparently I have a little problem.

Suppose my directory structure is:

C:\Tools\Tomcat 5.5\webapps\mySite

I would expect that the root directory for the web application "mySite" to be "C:\Tools\Tomcat 5.5\webapps\mySite". However, it is: "C:\Tools\Tomcat 5.5\webapps".

Since I obviously don't want to put things like my CSS file in webapps, I have a problem.

My server.xml contains the following:

Code:
...
      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

...

   <Context path="/mySite" docBase="/mySite" debug="0" reloadable="true" /> 
      </Host>
...

What am I doing wrong?


Thanks,
Tom

 
FYI, I've tried it like this, too:

<Context path="/mySite" docBase="mySite" debug="0" reloadable="true" />

because all of the examples I found were like this.

Still didn't work.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top