I see hundreds of the below errors in my Agent log during Agent startup (519 to be exact). All of them have the same stack trace. Note, they occur during the sync that is initiated by InventoryManager.activateAndUpgradeResources(). *** All 519 of the errors are for JBossAS7 Resources *** This must be a clue as to what the underlying cause is. Perhaps it's something specific to Resources with runs-inside types, of which the as7 plugin has many. --- 2012-05-15 11:02:21,209 ERROR [main] (rhq.core.pc.inventory.InventoryManager)- Access to resource [Resource[id=12102, uuid=03f42cda-00c5-40ea-9d58-2414a9932468, type={JBossAS7}Connection Factory, key=profile=full,subsystem=messaging,hornetq-server=default,connection-factory=RemoteConnectionFactory, name=RemoteConnectionFactory, parent=default]] will fail due to missing classloader! org.rhq.core.clientapi.agent.PluginContainerException: Failed to obtain classloader for resource: Resource[id=12102, uuid=03f42cda-00c5-40ea-9d58-2414a9932468, type={JBossAS7}Connection Factory, key=profile=full,subsystem=messaging,hornetq-server=default,connection-factory=RemoteConnectionFactory, name=RemoteConnectionFactory, parent=default] at org.rhq.core.pc.plugin.PluginComponentFactory.getResourceClassloader(PluginComponentFactory.java:213) at org.rhq.core.pc.inventory.InventoryManager.initResourceContainer(InventoryManager.java:1493) at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2626) at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2667) at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2667) at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2667) at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2667) at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2667) at org.rhq.core.pc.inventory.InventoryManager.synchInventory(InventoryManager.java:1085) at org.rhq.core.pc.inventory.InventoryManager.handleReport(InventoryManager.java:1059) at org.rhq.core.pc.inventory.InventoryManager.activateAndUpgradeResources(InventoryManager.java:2934) at org.rhq.core.pc.inventory.InventoryManager.initialize(InventoryManager.java:235) at org.rhq.core.pc.PluginContainer.startContainerService(PluginContainer.java:488) at org.rhq.core.pc.PluginContainer.initialize(PluginContainer.java:308) at org.rhq.enterprise.agent.AgentMain.startPluginContainer(AgentMain.java:1925) at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:659) at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:428) Caused by: org.rhq.core.clientapi.agent.PluginContainerException: [Warning] Cannot load class [org.rhq.modules.plugins.jbossas7.SubsystemDiscovery] with null classloader at org.rhq.core.clientapi.agent.PluginContainerException.wrapIfNecessary(PluginContainerException.java:69) at org.rhq.core.clientapi.agent.PluginContainerException.<init>(PluginContainerException.java:96) ... 17 more
After doing a full mvn clean install and restarting both my Server and my Agent, these errors no longer occurred. I'm closing it as NOTABUG. I'll reopen if I see it again with a freshly built environment.