0 Replies Latest reply on Nov 24, 2011 3:55 PM by Julio Barreto

    Problems with monitoring the TOMCAT with RHQ  4.2

    Julio Barreto Newbie

      I am facing some problems in monitoring the RHQ with TOMCAT 4.2.

       

      I managed to get Tomcat to be monitored by RHQ. The problem is that then he goes offline displaying some errors in the log and status as TOMCAT is DOWN.

       

       

      2011-11-24 17:21:00,055 ERROR [main] (rhq.core.pc.inventory.InventoryManager)- Exception thrown while activating [Resource[id=14103, type=Tomcat Server, key=/usr/local/tomcat, name=Tomcat (8080), parent=xxxxxx.xxx.xxx.xx, version=6.0.18.0]].

      org.rhq.core.clientapi.agent.PluginContainerException: Failed to start component for resource Resource[id=14103, type=Tomcat Server, key=/usr/local/tomcat, name=Tomcat (8080), parent=agilisapp.stj.gov.br, version=6.0.18.0].

              at org.rhq.core.pc.inventory.InventoryManager.activateResource(InventoryManager.java:1601)

              at org.rhq.core.pc.inventory.InventoryManager.activateAndUpgradeResourceRecursively(InventoryManager.java:2825)

              at org.rhq.core.pc.inventory.InventoryManager.activateAndUpgradeResourceRecursively(InventoryManager.java:2827)

              at org.rhq.core.pc.inventory.InventoryManager.activateAndUpgradeResources(InventoryManager.java:2785)

              at org.rhq.core.pc.inventory.InventoryManager.initialize(InventoryManager.java:231)

              at org.rhq.core.pc.PluginContainer.startContainerService(PluginContainer.java:431)

              at org.rhq.core.pc.PluginContainer.initialize(PluginContainer.java:282)

              at org.rhq.enterprise.agent.AgentMain.startPluginContainer(AgentMain.java:1870)

              at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:649)

              at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:419)

      Caused by: org.rhq.core.pc.inventory.TimeoutException: [Warning] Call to [org.jboss.on.plugins.tomcat.TomcatServerComponent.start()] with args [[org.rhq.core.pluginapi.inventory.ResourceContext@7348e]] timed out. Invocation thread will be interrupted

              at org.rhq.core.clientapi.agent.PluginContainerException.wrapIfNecessary(PluginContainerException.java:69)

              at org.rhq.core.clientapi.agent.PluginContainerException.<init>(PluginContainerException.java:96)

              ... 10 more

       

       

      2011-11-24 17:37:20,722 ERROR [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Failed to start component for Resource[id=14103, type=Tomcat Server, key=/usr/local/tomcat, name=Tomcat (8080), parent=xxxxx.xxx.xxx.xx, version=6.0.18.0] from synchronized merge.

      org.rhq.core.clientapi.agent.PluginContainerException: Failed to start component for resource Resource[id=14103, type=Tomcat Server, key=/usr/local/tomcat, name=Tomcat (8080), parent=agilisapp.stj.gov.br, version=6.0.18.0].

              at org.rhq.core.pc.inventory.InventoryManager.activateResource(InventoryManager.java:1601)

              at org.rhq.core.pc.inventory.InventoryManager.refreshResourceComponentState(InventoryManager.java:2754)

              at org.rhq.core.pc.inventory.InventoryManager.mergeResource(InventoryManager.java:2669)

              at org.rhq.core.pc.inventory.InventoryManager.mergeResource(InventoryManager.java:2674)

              at org.rhq.core.pc.inventory.InventoryManager.mergeUnknownResources(InventoryManager.java:2573)

              at org.rhq.core.pc.inventory.InventoryManager.synchInventory(InventoryManager.java:1036)

              at org.rhq.core.pc.inventory.InventoryManager.handleReport(InventoryManager.java:1001)

              at org.rhq.core.pc.inventory.AutoDiscoveryExecutor.call(AutoDiscoveryExecutor.java:121)

              at org.rhq.core.pc.inventory.AutoDiscoveryExecutor.call(AutoDiscoveryExecutor.java:70)

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

              at java.util.concurrent.FutureTask.run(FutureTask.java:138)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: org.rhq.core.pc.inventory.TimeoutException: [Warning] Call to [org.jboss.on.plugins.tomcat.TomcatServerComponent.start()] with args [[org.rhq.core.pluginapi.inventory.ResourceContext@42148d]] timed out. Invocation thread will be interrupted

              at org.rhq.core.clientapi.agent.PluginContainerException.wrapIfNecessary(PluginContainerException.java:69)

              at org.rhq.core.clientapi.agent.PluginContainerException.<init>(PluginContainerException.java:96)

              ... 16 more