Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: context configuration file being overwritten

Cox, Charlie

2004-02-04

Replies:



> -----Original Message-----
> From: Milt Epstein [mailto:mepstein@(protected)]
> Sent: Wednesday, February 04, 2004 11:46 AM
> To: Tomcat Users List
> Subject: Re: context configuration file being overwritten
>
> On Sat, 31 Jan 2004, Milt Epstein wrote:
>
> > Hi there. I'm using tomcat 5.0.18 basically out of the box. I set
> > up a webapp in a directory outside the <tomcat>/webapps directory.
> > So I created a context configuration file for the webapp, and put a
> > symbolic link to it in <tomcat>/conf/Catalina/localhost. This was
> > all per the documentation and the source.
> >
> > So, everything starts up fine, the webapp works, but the context
> > configuration file gets overwritten/truncated (i.e., it is then an
> > empty file). The same thing happens with 5.0.16. This doesn't
> > happen when I place a copy of the actual configuration file in that
> > directory, instead of a symbolic link. (I'm trying to place as
> > little as possible in the tomcat directory structure, to ease
> > upgrade issues and such.)
> >

Have you tried using CATALINA_BASE and CATALINA_HOME to separate your
webapps/configuration(BASE) and your tomcat installation(HOME)? Maybe this
would serve your needs instead of symbolic links.

Charlie

> > Any idea what's going on here? I searched all over and couldn't
> > find any discussion of a similar issue.
> >
> > FWIW, my system is Linux (Fedora Core 1).
> >
> > Thanks!
>
> Hate to repost this unchanged, but I'm surprised this hasn't gotten
> any response. Any Tomcat developers on the list? Am I missing
> something about how context configurations files are supposed to work?
> Because otherwise this looks like a bug.
>
> Milt Epstein
> Research Programmer
> Integration and Software Engineering (ISE)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> mepstein@(protected)
>
©2008 junlu.com - Jax Systems, LLC, U.S.A.