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 2003/07/10 11:18:15 UTC

DO NOT REPLY [Bug 21456] New: - logs/context lost when restarting Context

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=21456>.
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=21456

logs/context lost when restarting Context

           Summary: logs/context lost when restarting Context
           Product: Tomcat 3
           Version: 3.3.1 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: zorro.desbois@wanadoo.fr


Hi,

When I restart a context (remove then add) with the admin webapp, I lose my 
servlet logs.
I have a file apps-myAppli.xml with this content :
<?xml version="1.0" encoding="ISO-8859-1"?>
<Server>
  <Host name="myAppli" >
    <Context path="" docBase="/usr/webapps/myAppli" >
    <LogSetter name="myAppli_log"
               path="logs/myAppli_servlet-${yyyyMMdd-HH:mm}.log"
               verbosityLevel="DEBUG"
               servletLogger="true"/>
    </Context>
  </Host>
</Server>

For example, when I start tomcat, my logFile myAppli_servlet-20030709-10:23.log 
is created and I see my logs in it.
But, 2 minutes later, I restart my context and :
- the logFile myAppli_servlet-20030709-10:25.log is not created
- and there's no more servlet logs

It seems that the ContextManager, when it removes a context, remove this context 
and all its interceptors,
But when it add a context, it only add the context ...

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org