Uploaded image for project: 'Jopr (CLOSED)'
  1. Jopr (CLOSED)
  2. JOPR-261

Unable to process the startup properties file when run.sh is executed from a different path

    Details

      Description

      I started up the AS using this command:

      cd $JBOSS_HOME;
      bin/run.sh -P test.properties

      The test.properties file is located in $JBOSS_HOME.

      The app server discovery fails to process the property file with the following exception:

      java.io.FileNotFoundException: /home/metlos/Projects/java/jbossas-5-EAP/build/output/jboss-5.0.0.Beta/bin/test.properties (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:106)
      at java.io.FileInputStream.<init>(FileInputStream.java:66)
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
      at org.rhq.plugins.jbossas5.helper.JBossInstanceInfo.processJBossArgs(JBossInstanceInfo.java:165)
      at org.rhq.plugins.jbossas5.helper.JBossInstanceInfo.<init>(JBossInstanceInfo.java:84)
      at org.rhq.plugins.jbossas5.ApplicationServerDiscoveryComponent.discoverExternalJBossAsProcesses(ApplicationServerDiscoveryComponent.java:123)
      at org.rhq.plugins.jbossas5.ApplicationServerDiscoveryComponent.discoverResources(ApplicationServerDiscoveryComponent.java:102)
      at sun.reflect.GeneratedMethodAccessor26.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:260)
      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:619)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  lkrejci Lukas Krejci
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: