Bug 688415 - [JBPAPP-6123] JON 2.4.1 + EWS 1.0.2-CR1: Tomcat plugin doesn't notice that Tomcat instance has changed
[JBPAPP-6123] JON 2.4.1 + EWS 1.0.2-CR1: Tomcat plugin doesn't notice that T...
Status: NEW
Product: RHQ Project
Classification: Other
Component: Plugins (Show other bugs)
sparc Other
medium Severity high (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
: FutureFeature, Improvement
Depends On:
  Show dependency treegraph
Reported: 2011-03-16 20:11 EDT by Ondřej Žižka
Modified: 2011-10-19 09:15 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ondřej Žižka 2011-03-16 20:11:09 EDT

1) Start EWS's Tomcat 5, monitored by JON (Ensure JMX is ok, write privs etc.)
2) Deploy attached hellothere.war in Tomcat's localhost virt host's INVENTORY tab
3) The app is shown to be deployed, op result is Success,
but the app is not really deployed and is reported as DOWN.

No errors in RHQ Agent's log - attached.
No errors in tomcat.log or catalina.out.

See Jira for attachments.
Comment 1 Ondřej Žižka 2011-03-16 20:30:56 EDT
Was caused by JON not recognizing that the Tomcat instance has changed. I didn't uninventory Tomcat 6 and inventory Tomcat 5. Is this good behavior? ...
Comment 2 Ondřej Žižka 2011-03-16 20:33:50 EDT
New STR;:

1) Inventorize Tomcat 6
2) Stop Tomcat 6
3) Start Tomcat 5 with the same ports
4) discovery -f
5) See the Tomcat's traits - it considers it the same instance, with the same resource key, which is made from filesystem path, which has changed.
Comment 3 Charles Crouch 2011-10-19 09:15:37 EDT
Marking this as a feature request. We will need to do something similar to what 
we do for JBAS which is to keep a link between the Tomcat home dir and the jmx 
connection url, so when we connect to a given url we need to make sure its for 
the Tomcat instance we expect

Note You need to log in before you can comment on or make changes to this bug.