2011-03-17 21:36:37,520 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.AutoDiscoveryExecutor)- Process scan auto-detected new server resource: scan=[ProcessScan: query=[process|basename|match=(?i)httpd.exe,process|basename|match|parent=(?i)httpd.exe], name=[HttpdOnWindows]], discovered-process=[process: pid=[3080], name=[C:\Program Files\Red Hat\Enterprise Web Server\bin\httpd.exe], ppid=[4528]] 2011-03-17 21:36:37,523 WARN [ResourceDiscoveryComponent.invoker.daemon-33] (rhq.plugins.apache.parser.ApacheConfigReader)- Apache configuration file C:\Program Files\Red Hat\Enterprise Web Server\Program Files\Red Hat\Enterprise Web Server\etc\httpd\conf\httpd.conf was not found. 2011-03-17 21:36:37,523 ERROR [ResourceDiscoveryComponent.invoker.daemon-33] (org.rhq.plugins.apache.ApacheServerDiscoveryComponent)- Discovery of Apache process [process: pid=[4528], name=[C:\Program Files\Red Hat\Enterprise Web Server\bin\httpd.exe], ppid=[620]] failed with an exception. org.rhq.plugins.apache.parser.ApacheParserException: Apache configuration file C:\Program Files\Red Hat\Enterprise Web Server\Program Files\Red Hat\Enterprise Web Server\etc\httpd\conf\httpd.conf was not found. at org.rhq.plugins.apache.parser.ApacheConfigReader.searchFile(ApacheConfigReader.java:26) at org.rhq.plugins.apache.parser.ApacheConfigReader.buildTree(ApacheConfigReader.java:19) at org.rhq.plugins.apache.ApacheServerDiscoveryComponent.loadParser(ApacheServerDiscoveryComponent.java:423) at org.rhq.plugins.apache.ApacheServerDiscoveryComponent.discoverSingleProcess(ApacheServerDiscoveryComponent.java:164) at org.rhq.plugins.apache.ApacheServerDiscoveryComponent.discoverResources(ApacheServerDiscoveryComponent.java:89) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:279) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:662)g
STR: 1) Install EWS as per installation instructions text file 2) Run Tomcat6, inventorize 3) See the agent.log
Could not reproduce this anymore. Works as expected (i.e. no warnings in the logs and apache inventoried successfully). As a side note, I installed EWS according to the docs and ran through the installation procedure as noted here: http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Web_Server/1.0/html/Installation_Guide/sec-Configuring_the_Environment-Win.html I also assume that the step 2 "run tomcat6, inventorize" should really say "run httpd, inventorize", because this is a apache related bug.
Verified on JON 3.1.2 ER4 Installed EWS according to installation instructions and started httpd. apache is discovered and inventoried successfully without error in agent log.
RH Bugzilla Integration <no-reply> updated the status of jira JBEWS-101 to Closed