java - Is it possible to installing tomcat in different directory and keeping web application in other directory -


this question has answer here:

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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -