Roland Asmann created MJBOSS-64:
-----------------------------------

             Summary: Unable to start JBoss on Linux when java is not on the 
path and/or JAVA_HOME is not set
                 Key: MJBOSS-64
                 URL: https://jira.codehaus.org/browse/MJBOSS-64
             Project: Maven 2.x JBoss Plugin
          Issue Type: Bug
         Environment: Linux
            Reporter: Roland Asmann


When this plug-in is used on a Linux-machine that does not have the 
java-command in the path and/or does not have the JAVA_HOME set, JBoss will not 
be started.

Problem lies in class 'org.codehaus.mojo.jboss.AbstractJBossServerMojo', method 
'launchUnixScript'.
Using 'exec()' from Runtime with the 'env'-parameter set, it ONLY sets those 
environment-parameters and relies on the default environment of the machine. 
When no java can be found in the path and/or JAVA_HOME/bin, JBoss will not 
start!

This also means that when running this plugin on Hudson/Jenkins with a specific 
JDK, the server will NOT run with this JDK unless it happens to be the system's 
default JDK!


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to