[logback-dev] [Bug 124] New: no log messages after redeployment

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Jan 25 15:11:15 CET 2008


http://bugzilla.qos.ch/show_bug.cgi?id=124

           Summary: no log messages after redeployment
           Product: logback-classic
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Other
        AssignedTo: logback-dev at qos.ch
        ReportedBy: ingo.siebert at cas.de


Hi,

I use the JNDI switch for logback.

If I undeploy my application, the old JNDI context ist destroyed (it's a log
messge). That's fine.

But I redeploy the same application with the same context name, no logging
messages are displayed. That's very frustrating.

If I restart Tomcat6, then the deployed application comes up and i see the
messages again.

The libs which are needed by my application are stored in the tomcat6/sharedLib
folder.

Any idea why the messages are missing?

Ingo



This is my web.xml:


<filter>
<filter-name>LoggerContextFilter</filter-name>
<filter-class>ch.qos.logback.classic.selector.servlet.LoggerContextFilter</filter-class>
</filter>

<filter-mapping>
  <filter-name>LoggerContextFilter</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<!-- Detaches logger repositories. -->
<listener>
<listener-class>ch.qos.logback.classic.selector.servlet.ContextDetachingSCL</listener-class>
</listener>

...
<env-entry>
  <description>JNDI logging context for this app</description>
  <env-entry-name>logback/context-name</env-entry-name>
  <env-entry-value>EIMContext-1</env-entry-value>
  <env-entry-type>java.lang.String</env-entry-type>
</env-entry>

<env-entry>
  <description>URL for configuring logback context</description>
  <env-entry-name>logback/configuration-resource</env-entry-name>
  <env-entry-value>eim_logback.xml</env-entry-value>
  <env-entry-type>java.lang.String</env-entry-type>
</env-entry>


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list