You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Rall <dl...@finemaltcoding.com> on 2001/11/19 22:52:27 UTC
Re: Triple initialization of Catalina/mod_webapp
Let's play "Find The Misconfiguration!"
My server.xml for Catalina plus mod_webapp (comments removed):
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="11025" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<!-- Define the top level container in our container hierarchy -->
<!-- See the following URL for a good configuration description:
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg34591.html
-->
<Engine name="Apache" defaultHost="localhost" debug="0"
className="org.apache.catalina.connector.warp.WarpEngine">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="../log/debug" prefix="catalina" suffix=".log"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="../log/access" prefix="catalina_access" suffix=".log"
pattern="common"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="../log/debug" prefix="catalina" suffix=".log"
timestamp="true"/>
<Context path="/servlets" docBase="myapp"
reloadable="true" debug="0">
<Loader checkInterval="1"
className="org.apache.catalina.loader.WebappLoader"/>
<Manager debug="99"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <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>
Re: Triple initialization of Catalina/mod_webapp
Posted by Daniel Rall <dl...@finemaltcoding.com>.
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>