On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote:
: I've a doubt, What is the root directory for a webapp?
: And if the answer is $CATALINA_HOME/webapps/<webapp>..
:
: Then how can the jar file referring $CATALINA_HOME as root for my web
: application?
1/ "root directory" and "document root" are terms that don't 100% apply
in the J2EE world. Use the term "context path," because a webapp
(context) may exist in a directory or inside a WAR file.
So, the context path defaults to one of
{value of "appBase"}/{context dir}
{value of "appBase"}/{WAR file}
where the value of "appBase" defaults to {Tomcat install}/webapps.
2/ $CATALINA_HOME and $CATALINA_BASE are not the root/context/whatever
path for your application.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]