How to change the default directory of Tomcat 6.0

Hi All,

I want to change the default directory of webapps in Tomcat 6.0

from "C:\Apache\Tomcat 6.0\webapps\ROOT\" to my folder in drive C:

How to configure it ?

Thank you,

Vilas

[217 byte] By [@Vilas@a] at [2007-11-27 10:20:12]
# 1

hi,

you are asking that your directory is in c drive

ex:

c:\sample

now you dont wanna store in root or webapps

from c drive you have to deploy in tomcat, am a right,

if yes

here is the solution

goto conf dir under tomcat x.x

edit server.xml

in between <host> </host> tag u add this line

<Context path="/sample" docBase="c:\sample" debug="0" />

in this path is for context,

ex:

http://localhost:8080/sample

docBase is to mention your directory path

i hope it will help you.

drvijayy2k2a at 2007-7-28 17:02:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...