java - Is it possible to installing tomcat in different directory and keeping web application in other directory -
this question has answer here:
- how tomcat locate webapps directory? 3 answers
i don't know asking correct question or not (may silly).
suppose having tomcat installed on dir c:\apache\tomcat 7.0\..
web applications in , wanted deploy application (war)
don't want keep web application on location c:\apache\tomcat 7.0\webppas\{myapplicationdir}
wanted deploy on suppose d:\{applicationdir}
is possible? if yes there kind of problem gonna face.
its possible, can define base in configuration file each webapp. these configuration files located in c:\apache\tomcat 7.0\conf\catalina\localhost
directory. config file should named {app_name}.xml
, might have root.xml
heres 1 of mine looks project have in eclipse
<?xml version="1.0" encoding="utf-8"?> <context docbase="c:\workdir\test\dev\web\src\main\webapp" path="/"/>
Comments
Post a Comment