Red Hat Bugzilla – Bug 921261
WebModule is reported as DOWN or UNAVAILABLE due to plug-in expecting stateName to return 1 instead of STARTED
Last modified: 2014-08-08 00:22:22 EDT
+++ This bug was initially created as a clone of JBoss ON Bug #865454 +++
Tomcat7 version: JBoss EWS 2.0.0.CR1 (installed from ZIP)
All deployed webapps appear as 'unavailable'. And it looks like no management operations on them work. For example invoking a 'stop' operation on a running webapp will end with:
java.lang.IllegalStateException: Could not find MBean for WAR '//localhost/my-simple-webapp'.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
By the way, deploying new applications works fine, but you cannot manage them after that anymore.
--- Additional comment from mark yarborough on 2012-11-12 15:22:32 EST ---
This bug needs a corresponding bug in Jira or Bz (as appropriate) owned by the plugin team. Mark Yarborough work with John Doyle to define EWS owner.
--- Additional comment from Rémy Maucherat on 2012-12-14 11:31:57 EST ---
Both work for me now, and were likely caused by bad mbean names. The mbean names got fixed by the Tomcat 7 support patch. If there is a problem, a new bug should be filed using a build that uses the RHQ version that has acked support for Tomcat 7.
--- Additional comment from lfuka on 2013-01-18 07:43:55 EST ---
Do we have this patch in EWS 2.0.0.GA ?
I think no.
--- Additional comment from Larry O'Leary on 2013-03-13 15:28:56 EDT ---
Web applications are shows as unavailable due to the stateName value being returned as "STARTED" when for whatever reason, we are expecting "1".
*** Bug 865454 has been marked as a duplicate of this bug. ***
Verified with Tomcat plugin brew build  and EWS 2.0.1.ER1
@Wei Nan Li, can you please review the Doc Text content?
@Jean-Frederic Clere, can you please review the Doc Text content?
"Cause: All the web applications deployed on Tomcat 7 are unavailable and cannot be managed.
Consequence: A stop operation on a running web application displays an error indicating that the MBean for the "//localhost/my-simple-webapp" WAR file is missing.
Fix: The MBean names have been updated and are available in the Tomcat 7 support patch.
Result: The relevant MBean names are now correct and discoverable as expected."
That looks OK.