[logback-dev] [JIRA] Commented: (LBACCESS-28) Could not find status manager
Mick Knutson (JIRA)
noreply-jira at qos.ch
Sat May 5 15:05:26 CEST 2012
[ http://jira.qos.ch/browse/LBACCESS-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12416#action_12416 ]
Mick Knutson commented on LBACCESS-28:
--------------------------------------
I am having the same issue. The only difference for me is that I wanted to use 'tomcat-slf4j-logback':
https://github.com/grgrzybek/tomcat-slf4j-logback
and this is my Valve I have configured.
<Valve className="ch.qos.logback.access.tomcat.LogbackValve"
quiet="true" filename="${catalina.home}/conf/logback.xml" />
Logback seems to work for Tomcat, but not in my webapp as:
http://host/yourWebapp/lbAccessStatus
I do get logback working from my webapp in my CONSOLE though.
I have my webapp and the three standard ones in tomcat 7 and LB 1.0.2:
/
/host-manager
/manager
When I click the clear button I get this NPE:
java.lang.NullPointerException
ch.qos.logback.core.status.ViewStatusMessagesServletBase.service(ViewStatusMessagesServletBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> Could not find status manager
> -----------------------------
>
> Key: LBACCESS-28
> URL: http://jira.qos.ch/browse/LBACCESS-28
> Project: logback-access
> Issue Type: Bug
> Affects Versions: 0.9.30
> Environment: tomcat 6.0.33 , mac lion os.
> Reporter: seenimurugan shanmugam
> Assignee: Ceki Gulcu
> Attachments: screenshot-1.jpg, screenshot-2.jpg, server.xml
>
>
> When access
> https://localhost:8443/lbAccessStatus i get this message on the screen ( Could not find status manager ).
> my configuration details.
> =====================
> server -- tomcat 6.0.33
> os ----- Mac OS X (Lion)
> web.xml config is
> ==============
> <servlet>
> <servlet-name>AccessViewStatusMessages</servlet-name>
> <servlet-class>ch.qos.logback.access.ViewStatusMessagesServlet</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>AccessViewStatusMessages</servlet-name>
> <url-pattern>/lbAccessStatus</url-pattern>
> </servlet-mapping>
> logback-access.xml on tomcat/conf dirctory
> ==================================
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <!-- always a good activate OnConsoleStatusListener -->
> <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
> <file>access.log</file>
> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
> <fileNamePattern>access.%d{yyyy-MM-dd}.log.zip</fileNamePattern>
> </rollingPolicy>
> <encoder>
> <pattern>combined</pattern>
> </encoder>
> </appender>
>
> <appender-ref ref="FILE" />
> </configuration>
> jar installed in tomcat/lib directory are
> ==============================
> logback-access-0.9.30.jar
> logback-core-0.9.30.jar
> when i run my web application in netbeans i can see the logback status message as
> ====================================================================
> 18:43:39,490 |-INFO in ch.qos.logback.access.tomcat.LogbackValve[Catalina] - filename property not set. Assuming [/Users/seeni/software/apache-tomcat-6.0.33/conf/logback-access.xml]
> 18:43:39,556 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - Ignoring debug attribute.
> 18:43:39,559 |-INFO in ch.qos.logback.core.joran.action.StatusListenerAction - Adding status listener of type [ch.qos.logback.core.status.OnConsoleStatusListener]
> 18:43:39,576 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
> 18:43:39,581 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
> 18:43:39,622 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use zip compression
> 18:43:39,624 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern access.%d{yyyy-MM-dd}.log for the active file
> 18:43:39,632 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'access.%d{yyyy-MM-dd}.log.zip'.
> 18:43:39,633 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
> 18:43:39,633 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Nov 07 18:42:34 GMT 2011
> 18:43:39,635 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.access.PatternLayoutEncoder] for [encoder] property
> 18:43:39,659 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: access.log
> 18:43:39,659 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [access.log]
> 18:43:39,660 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to ch.qos.logback.access.tomcat.LogbackValve[Catalina]
> 18:43:39,661 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration.
> 18:43:39,662 |-INFO in ch.qos.logback.access.joran.JoranConfigurator at 4e299813 - Registering current configuration as safe fallback point
> 18:43:39,490 |-INFO in ch.qos.logback.access.tomcat.LogbackValve[Catalina] - filename property not set. Assuming [/Users/seeni/software/apache-tomcat-6.0.33/conf/logback-access.xml]
> 18:43:39,556 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - Ignoring debug attribute.
> 18:43:39,559 |-INFO in ch.qos.logback.core.joran.action.StatusListenerAction - Adding status listener of type [ch.qos.logback.core.status.OnConsoleStatusListener]
> 18:43:39,576 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
> 18:43:39,581 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
> 18:43:39,622 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use zip compression
> 18:43:39,624 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern access.%d{yyyy-MM-dd}.log for the active file
> 18:43:39,632 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'access.%d{yyyy-MM-dd}.log.zip'.
> 18:43:39,633 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
> 18:43:39,633 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Nov 07 18:42:34 GMT 2011
> 18:43:39,635 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.access.PatternLayoutEncoder] for [encoder] property
> 18:43:39,659 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: access.log
> 18:43:39,659 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [access.log]
> 18:43:39,660 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to ch.qos.logback.access.tomcat.LogbackValve[Catalina]
> 18:43:39,661 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration.
> 18:43:39,662 |-INFO in ch.qos.logback.access.joran.JoranConfigurator at 4e299813 - Registering current configuration as safe fallback point
> logback status looks ok. But could not see the status on browser
> when i access https://localhost:8443/lbClassicStatus , it's works fine but not https://localhost:8443/lbAccessStatus
> I spent a whole day looking at BasicStatusManager class and all the other stuff , but no luck.
> is there anything i am missing or is it really a bug?
> Thanks.
--
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