StR: 1) Install Tomcat 5.5.28 on RHEL 5, start it, make it monitored. 2) Invoke the Restart operation. 3) It will stay "In Progress" for a long time, then finally get to the Success state, but with this Operation Result: Shutdown may have failed: java.lang.RuntimeException: Script returned error or non-zero exit code while shutting down the Tomcat instance. Exit code [null], Shutdown may have failed (server appears to still be running), Restart may have failed. By the way, when re-directed after it became Success, the Facelets error page appeared (see the attachment).
And the most important: Tomcat was NOT restarted.
Not sure how I got that FL page, unable to reproduce.
To be clear: Unable to reproduce that FL page. The Restart op is well reproducible.
... and I saved wrong page, so I can't atach anything, and since I can't delete comments from Bugzilla, all these FL-related gibberish will spook here forever and the bug will stay burried.
Start op does not work either. java.lang.RuntimeException: Server failed to start: at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.start(TomcatServerOperationsDelegate.java:196) at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.start(TomcatServerOperationsDelegate.java:151) at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.invoke(TomcatServerOperationsDelegate.java:133) at org.jboss.on.plugins.tomcat.TomcatServerComponent.invokeOperation(TomcatServerComponent.java:420) at sun.reflect.GeneratedMethodAccessor1873.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595)
Shutdown op does not work either. Like Restart, it is In Progress for a minute or two and then fails. ---------------------------------------- java.lang.RuntimeException: Server failed to shutdown at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.shutdown(TomcatServerOperationsDelegate.java:281) at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.shutdown(TomcatServerOperationsDelegate.java:274) at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.invoke(TomcatServerOperationsDelegate.java:128) at org.jboss.on.plugins.tomcat.TomcatServerComponent.invokeOperation(TomcatServerComponent.java:420) at sun.reflect.GeneratedMethodAccessor1873.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595)
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs. keyword: new = Tracking + FutureFeature + SubBug
making sure we're not missing any bugs in rhq_triage
wondering if the agent and tomcat were running as different users and that the agent didn't have privs.
I don't thinks so, I did everything under root (as needed by EWS). But I can verify that next week. But if that was the case, could the exception be more descriptive about the reason?
This may have been the same problem as was resolved in https://bugzilla.redhat.com/show_bug.cgi?id=604444. Unless we get more info I think we can resolve it as a duplicate.
Verified on JON 2.4 The Start/Stop/Restart operations are successfully completing on inventoried Tomcat5 and Tomcat6 servers. The Tomcat5 and Tomcat6 Version is successfully captured by JON.
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.