[logback-dev] [JIRA] Created: (LBCLASSIC-233) Unable to loacte a pre configurated context file logback-<context-name>.xml in Glassfish.

Jose Guerra (JIRA) noreply-jira at qos.ch
Fri Nov 19 10:33:51 CET 2010


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

                 Key: LBCLASSIC-233
                 URL: http://jira.qos.ch/browse/LBCLASSIC-233
             Project: logback-classic
          Issue Type: Sub-task
    Affects Versions: 0.9.26
         Environment: Ubuntu 9.04, running on Core duo 2.33GHz, Glassfish 3.01, Java 6 and system property -Dlogback.ContextSelector=JNDI was set as well.
            Reporter: Jose Guerra
            Assignee: Logback dev list


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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list