+++ This bug was initially created as a clone of Bug #819145 +++ standalone.sh/bat and domain.sh/bat both support the following command line options: -P=<url> Load system properties from the given url -P <url> Load system properties from the given url --properties=<url> Load system properties from the given url --- Additional comment from mfoley on 2012-05-08 14:11:28 EDT --- per BZ triage crouch, foley, loleary --- Additional comment from ian.springer on 2012-05-09 20:18:00 EDT --- Fixed in master: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=7b1a63a Note, AS7 support more than one -P and/or --properties option on the same command line, and our code handles that.
*** Bug 820584 has been marked as a duplicate of this bug. ***
Cherry-picked to the release/jon3.1.x branch: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=0a6dab6
Does properties file path have to be absolute? AS7 can process the following without any problem (values showed up in admin console) ./standalone.sh -P p1.properties -P= p2.properties --properties=p3.properties JON Agent throws IllegalArgumentException: URI is not absolute agent log -- 2012-05-23 16:25:57,601 ERROR [ResourceDiscoveryComponent.invoker.daemon-6] (rhq.modules.plugins.jbossas7.StandaloneASDiscovery)- Discovery of a JBossAS7 Standalone Server Resource failed for process: pid=[330], name=[java], ppid=[32746]. java.lang.IllegalArgumentException: URI is not absolute at java.net.URI.toURL(URI.java:1097) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.toURL(AS7CommandLine.java:149) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.processClassArgument(AS7CommandLine.java:133) at org.rhq.core.pluginapi.util.JavaCommandLine.parseClassArguments(JavaCommandLine.java:194) at org.rhq.core.pluginapi.util.JavaCommandLine.parseCommandLine(JavaCommandLine.java:159) at org.rhq.core.pluginapi.util.JavaCommandLine.<init>(JavaCommandLine.java:136) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.<init>(AS7CommandLine.java:70) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.<init>(AS7CommandLine.java:75) at org.rhq.modules.plugins.jbossas7.BaseProcessDiscovery.discoverResources(BaseProcessDiscovery.java:135)
Moving ON_DEV, I get same exception as Viet - when passing relative path to properties file and server does not appear in discovery queue. I've checked that relative path of properties file is based on process working directory (current directory when server is started) On linux it should be easy to detect work dir for process (pwdx <pid>) but I am not sure about windows. If we cannot fully support this, please change the error message to something more user-friendly - for example : relative URL command line option to properties file is not supported
Fixed in master: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=e9c19a7
Cherry-picked to release/jon3.1.x branch: http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commitdiff;h=ff771bf
verified in JON 3.1.CR1, also added CLI automation
Bulk closing of old issues in VERIFIED state.