You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Daniel Rall <dl...@finemaltcoding.com> on 2001/11/21 23:01:53 UTC
Re: Triple initialization of Catalina/mod_webapp
This is a followup to a message I posted to the user list which
describes some undesirable behavior of Tomcat 4.0.1 (unrelated to use
of mod_webapp).
My application's build process currently generates the deployment
descriptor for my web app from many files which contain snippets of
the final web.xml. After generation of the deployment descriptor (as
$SRC_DIR/conf/web.xml), it is then copied into the appropriate sub
directory of my webapps tree. At this point, I should be able to
launch Catalina (using a $CATALINA_BASE of $SRC_DIR/site and
$CATALINA_HOME of /usr/share/tomcat4). However, the file
$SRC_DIR/conf/web.xml is read in before
$CATALINA_BASE/webapps/myapp/WEB-INF/web.xml. Since both these files
contain the same content, my web app is initialized multiple times.
That the conf/web.xml relative to my current working directory is used
at all at seems like undesirable behavior to me. If a conf/web.xml
file is going to be looked for at all, at the very least it could be
looked for relative to $CATALINA_BASE.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Triple initialization of Catalina/mod_webapp
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Recently found a symlink which would explain this unexpected
behavior. :-\
Daniel Rall <dl...@finemaltcoding.com> writes:
> This is a followup to a message I posted to the user list which
> describes some undesirable behavior of Tomcat 4.0.1 (unrelated to use
> of mod_webapp).
>
> My application's build process currently generates the deployment
> descriptor for my web app from many files which contain snippets of
> the final web.xml. After generation of the deployment descriptor (as
> $SRC_DIR/conf/web.xml), it is then copied into the appropriate sub
> directory of my webapps tree. At this point, I should be able to
> launch Catalina (using a $CATALINA_BASE of $SRC_DIR/site and
> $CATALINA_HOME of /usr/share/tomcat4). However, the file
> $SRC_DIR/conf/web.xml is read in before
> $CATALINA_BASE/webapps/myapp/WEB-INF/web.xml. Since both these files
> contain the same content, my web app is initialized multiple times.
>
> That the conf/web.xml relative to my current working directory is used
> at all at seems like undesirable behavior to me. If a conf/web.xml
> file is going to be looked for at all, at the very least it could be
> looked for relative to $CATALINA_BASE.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>