[logback-user] ClassCastException with ViewStatusMessagesServlet

Robert Magnus Robert.Magnus at akquinet.de
Wed Apr 6 10:53:33 CEST 2011


Hi

I tried to use the HTTP-access logs in JBoss 6.0. Following
http://logback.qos.ch/access.html I did:

- copy logback-access-0.9.28.jar and logback-core-0.9.28.jar to
  server/default/lib
- edit server/default/deploy/jbossweb.sar/server.xml and add the line

 <Valve className="ch.qos.logback.access.tomcat.LogbackValve"/>

- put a logback-access.xml to server/default/conf/
- edit my web.xml and add the servlet and the servlet-mapping

After starting the JBoss I navigate to the lbAccessStatus url an got
this exception:

java.lang.ClassCastException: ch.qos.logback.core.BasicStatusManager
cannot be cast to ch.qos.logback.core.status.StatusManager
	ch.qos.logback.access.ViewStatusMessagesServlet.getStatusManager(ViewStatusMessagesServlet.java:32)
	ch.qos.logback.core.status.ViewStatusMessagesServletBase.service(ViewStatusMessagesServletBase.java:51)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)

Any ideas?

regards,
     Robert

-- 
Robert Magnus
akquinet tech at spree GmbH
Bülowstraße 66, D-10783 Berlin
Tel. +49 (0)30 235 520 - 44  Fax. +49 (0)30 217 520 - 12

Geschäftsführung: Martin Weber, Prof. Dr. Christian Roth
Amtsgericht Berlin-Charlottenburg HRB 86780 B
USt.-Id. Nr.: DE 225 964 680



More information about the Logback-user mailing list