Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-456 Problem locating logback.xml from JEE deployment
  3. LOGBACK-514

Unable to loacte a pre configurated context file logback-<context-name>.xml in Glassfish.

    XMLWordPrintable

Details

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.26
    • None
    • None
    • Ubuntu 9.04, running on Core duo 2.33GHz, Glassfish 3.01, Java 6 and system property -Dlogback.ContextSelector=JNDI was set as well.

    Description

      Having defined on my web.xml the JNDI context to locate my own logback configuration, logback is not able to locate the configuration file on WEB-INF/etc directory. As a workaround, I dropped the logback.xml file under WEB-INF/classes directory.

      <env-entry>
      <env-entry-name>logback/context-name</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>myapp</env-entry-value>
      </env-entry>

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

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jguerra Jose Guerra
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: