Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-356

no log messages after redeployment

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • 0.9.13
    • None
    • logback-classic
    • None
    • Operating System: Windows
      Platform: PC

    • 124

    Description

      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>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            ingo.siebert@cas.de Ingo Siebert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: