You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/05/10 12:16:02 UTC
DO NOT REPLY [Bug 8971] New: -
uses same compiled JSP scratch directory for two different apps
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8971>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8971
uses same compiled JSP scratch directory for two different apps
Summary: uses same compiled JSP scratch directory for two
different apps
Product: Tomcat 4
Version: 4.0.3 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: stutte@interfree.it
I have a configuration, in which i want to have to applications served by
tomcat, one at http://myhost:8080 and one at http://myhost:8081, both as root
context. I tried a configuration like this:
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="AdoraWeb">
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Engine name="BC" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="AdoraWeb." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="AdoraWeb_access_log." suffix=".txt"
pattern="common"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="AdoraWeb_log." suffix=".txt"
timestamp="true"/>
<Context path="" docBase="D:\Java\projects\cvs\classes\web\adoraweb"
debug="0" />
</Host>
</Engine>
</Service>
<Service name="EmmeLunga">
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8081" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Engine name="ML" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="ML." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="ML_access_log." suffix=".txt"
pattern="common"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="ML_log." suffix=".txt"
timestamp="true"/>
<Context path="" docBase="D:\Java\projects\cvs\classes\web\bcml"
debug="0" />
</Host>
</Engine>
</Service>
</Server>
with an empty (!) webapps directory and the contexts pointing to two different
applications, which uses jsp which may have the same names. What happens, is
that tomcat creates in his "work\localhost" only one directory "_" for the
compiled jsp-servlets and uses this directory for both applications - which
obviously won't work correctly. Maybe there is a different way to configure a
scenario like this that i did not find out, but i would consider this to be a
bug anyway, since tomcat seems to allow this kind of configuration.
Best regards,
Jens Stutte
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>