JBoss ON agent could not build component for JBoss AS resource due to ClassNotFoundException: org.hibernate.PropertyNotFoundException

Solution Unverified - Updated -

Issue

  • java.lang.NoClassDefFoundError: org/hibernate/PropertyNotFoundException
  • We are experiencing a problem during the discovery of JBoss Enterprise Application Platform (EAP):

    ERROR [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Failed to start component for Resource[id=10121, type=JBossAS Server, key=/opt/jboss/jboss-eap-5.1/jboss-as/server/production, name=jbossas.server:1099 production, parent=jbossas.server, version=5.1.2] from synchronized merge.
    org.rhq.core.clientapi.agent.PluginContainerException: Could not build component for Resource [Resource[id=10121, type=JBossAS Server, key=/opt/jboss/jboss-eap-5.1/jboss-as/server/production, name=jbossas.server:1099 production, parent=jbossas.server, version=5.1.2]]
        at org.rhq.core.pc.inventory.InventoryManager.activateResource(InventoryManager.java:1307)
        at org.rhq.core.pc.inventory.InventoryManager.refreshResourceComponentState(InventoryManager.java:2408)
        at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2191)
        at org.rhq.core.pc.inventory.InventoryManager.processSyncInfo(InventoryManager.java:2197)
        at org.rhq.core.pc.inventory.InventoryManager.synchInventory(InventoryManager.java:915)
        at org.rhq.core.pc.inventory.InventoryManager.handleReport(InventoryManager.java:895)
        at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:119)
        ...
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NoClassDefFoundError: org/hibernate/PropertyNotFoundException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.rhq.core.pc.plugin.PluginComponentFactory.instantiateClass(PluginComponentFactory.java:231)
        at org.rhq.core.pc.plugin.PluginComponentFactory.buildResourceComponent(PluginComponentFactory.java:135)
        at org.rhq.core.pc.inventory.InventoryManager.activateResource(InventoryManager.java:1305)
        ... 14 more
    Caused by: java.lang.ClassNotFoundException: org.hibernate.PropertyNotFoundException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.rhq.core.pc.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:63)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 19 more
    
  • Agent fails to connect to JBoss Application Server (AS) due to java.lang.ClassNotFoundException: org.hibernate.PropertyNotFoundException

Environment

  • JBoss Operations Network (ON) 2.4.1, 2.4.2, 3.0, 3.0.1, 3.1, 3.1.1
  • JBoss Enterprise Application Platform (EAP) Plug-in Pack for JBoss ON
  • Affected JBoss EAP 5 server is missing <JBOSS_HOME>/client/hibernate-core.jar file

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In