Sorry for using the wrong words, 

I've a jar inside my /webapps/webapplication/lib, which referes a file say
x.xml. If I packed this x.xml with the jar it works, but I wanted that to be
modified by others so I put that inside the /webapps/webapplication/. When I
access the jsp/servlet I get an error saying x.xml not found. 

What can be done for this ?



-----Original Message-----
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 21, 2004 7:14 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.23

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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to