Red Hat Bugzilla – Bug 794511
[as7] Standalone server not discovered on windows
Last modified: 2013-09-01 06:13:38 EDT
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run AS 7.1.0.Final on windows (win xp in my case)
2. run discovery on the agent on that machine
as7 not discovered
Agent.log contains only this:
2012-02-17 00:47:32,781 WARN [ResourceDiscoveryComponent.invoker.daemon-3] (rhq.modules.plugins.jbossas7.BaseProcessDiscovery)- Discovery for a ResourceType[id=0, name=JBossAS7 Standalone Server, plugin=jboss-as-7, category=Server] failed for process ProcessScanResult: scan=[ProcessScan: query=[process|basename|match=^java.*,arg|org.jboss.as.standalone|match=.*], name=[StandaloneAS]], info=[process: pid=, name=[C:\jdk1.6.0_23\bin\java.exe], ppid=] :String index out of range: -1
Author: Lukas Krejci <firstname.lastname@example.org>
Date: Fri Feb 17 03:10:06 2012 +0100
[BZ 794511] - make sure to use the correct path separator in boot log path.
Left some notes on places where I think there might be a similar problem.
It is hard to tell though, because from the quick look I had, AS7 seems
a bit undecided about what separator to use in file paths. How does
java.io.File handle the file paths on windows? I have a feeling that it
does handle both '\' and '/' transparently.
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.