Bug 738050
Summary: | as5 plugin: JBoss AS JVM Resources are not discovered for managed AS 6.0 servers due to "ClassNotFoundException: org.jnp.interfaces.NamingContextFactory" error during initialization of EMS connection | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Ian Springer <ian.springer> | ||||
Component: | Plugin Container | Assignee: | RHQ Project Maintainer <rhq-maint> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 4.1 | CC: | ccrouch, hrupp, skondkar | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 4.2 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-02-07 19:21:36 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 678340 | ||||||
Attachments: |
|
Description
Ian Springer
2011-09-13 18:13:29 UTC
This was a bug in the plugin container. Prior to invoking discoverResources() on a discovery component, it was setting the context classloader to the classloader that loaded the discovery component, rather than to the parent resource component's classloader. [master 67a0771] (http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commitdiff;h=67a0771ffa3678ae0a36946fc69612b07b055d82) fixes it. To test it, verify that the JBoss AS JVM Resource (a child Resource of the JBoss AS Server Resource) and all its child Resources are auto-discovered and available. Verify this for 1) AS 6.0, 2) AS 6.1, 3) EAP 5.0, and 4) EAP 5.1. Note, in order for RHQ to be able to discover the JVM Resource, you will need to add the following to the bottom of the managed AS or EAP's run.conf and then restart the AS or EAP instance: JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver" Verified on buiild#426 (Version: 4.1.0-SNAPSHOT Build Number: 7739090) The JBoss AS JVM resource and all its child resources are auto-discovered and available. Please refer the screenshot attached for JBoss AS 6.0.0 JVM resource. Verified that the JVM resource and all its child resources are auto-discovered and available for 1) AS 6.0, 2) AS 6.1, 3) EAP 5.0, and 4) EAP 5.1. No exceptions are observed. Marking as verified. Created attachment 523997 [details]
Screenshot
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE |