tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: Tomcat 6: How to tell a Context/Webapp where to look for files?
Date Thu, 05 Feb 2009 17:06:13 GMT
> From: Steve Mysterious []
> Subject: Re: Tomcat 6: How to tell a Context/Webapp where to
> look for files?
> Unfortunately I don't have the option of altering the part of the code
> where the context(web application) reads in the file it needs.

Then you're pretty much out of luck - that code is broken.

> I could reset CATALINA_BASE to point to somewhere else

No, you can't.  CATALINA_BASE is needed for the Tomcat startup scripts; don't even think about
changing it.

> I have multipe contexts(web applications ) and I need each
> to have its own unique directory to go look for files in.

Which is why you need to fix the code.

> Is it possible that I could make each context get a different
> CATALINA_BASE (or other) variable or otherwise get accomplish
> the same goal?

Not without changing the code in the webapp.  It appears to be blindly trying to open files
under whatever the current directory is - never a wise thing to do.

> I'm still new to navigating around the docs and the new tomcat

Nothing to do with Tomcat - this is bad application design.

 - Chuck

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:
For additional commands, e-mail:

View raw message