tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand HS <anan...@gmail.com>
Subject Re: Tomcat cleaning up work folder by itself
Date Mon, 01 Feb 2010 22:28:39 GMT
On Mon, Feb 1, 2010 at 2:23 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Anand HS [mailto:anandhs@gmail.com]
> > Subject: Tomcat cleaning up work folder by itself
> >
> > 1. I have a exploded war file inside a folder abc-web and my
> > context.xml points to this folder as docBase.
>
> Where is your context.xml file located?  The docBase attribute is normally
> not allowed.
>
>> My context is located under <TOMCAT_HOME>/conf/Catalina/abc-web/ROOT.xml
    The context.xml is untouched and is the same as what comes with the
distribution.

>
> > 3. abc-ejb.jar has a few configuration files internally like
> > config.properties, app-config.properties.
>
> How are those files referenced by your code?  If you're using file system
> paths, you're asking for trouble, since those are never guaranteed to work
> in a servlet environment.  You should be using either
> Classloader.getResourceAsStream() or ServletContext.getResourceAsStream().
>
>      >> Yes. I Made sure the resources are referenced through
ClassLoader.getResourceAsStream()


> > When i start the server, the contents of abc-ejb.jar are exploded into
> > <TOMCAT_HOME>\work\_\loader.
>
> That's not the right place; the work\_ directory is for the default webapp,
> and yours appears to be named abc-web.  If you want yours to be the default
> webapp, it should be named ROOT (case-sensitive, even on Windows).
>
>    >> Pardon my incomplete information. Since my application has Root
context , I think thats the correct folder into which the resources are
unzipped.

>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message