Java Mailing List Archive

http://www.junlu.com/

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

RE: context configuration file being overwritten

Milt Epstein

2004-02-04

Replies:

On Wed, 4 Feb 2004, Burgess, Jay S wrote:

> I'm not much of a UNIX person, but I remember reading about the
> "allowLinking" attributes in Context and DefaultContext. Not sure
> that they're applicable, but I figured I'd mention them in case they
> were and you hadn't seen them.

Thanks for the response.

Yes, I am aware of allowLinking, but I believe that's totally
unrelated to what I'm talking about. allowLinking is an attribute of
the Context tag, and determines whether symbolic links can be used
*inside* the context/webapp. I'm talking about something at a higher
level.

And note that the link is working in terms of Tomcat
finding/processing the context configuration file (and finding/setting
up the context). It's just that the context configuration file gets
overwritten (when it's a link).


> -----Original Message-----
> From: Milt Epstein [mailto:mepstein@(protected)]
> Sent: Wednesday, February 04, 2004 10: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.)
> >
> > 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)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>

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)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.