users@glassfish.java.net

Logback JMX Configuration with Glassfish

From: <forums_at_java.net>
Date: Tue, 26 Apr 2011 01:12:13 -0500 (CDT)

 I am using glassfish 3.1 as my application server and I have enabled JMX by
adding the <jmxConfigurator/> tag in the logback.xml. 

I am able to view the logback classic mbeans on jconsole but invoking
operations like getLoggerLevel fails with an error - "Problem invoking
getLoggerLevel : java.lang.IllegalStateException: WEB9031: WebappClassLoader
unable to load resource[java.lang.Object], because it has not been started or
was always stop...." 
Accessing the "LoggerList" attribute also does not give any output. Statuses
attributes shows the status messages though. 
I have performed the same test in a standalone application with the same
logback configuration file. I was able to view the "LoggerList" and perform
other operations like getLoggerLevel().

Is there anything else I need to do to make it work with glassfish?

 


--
[Message sent by forum member 'table1']
View Post: http://forums.java.net/node/795429