[ 
http://issues.apache.org/jira/browse/GERONIMO-2532?page=comments#action_12445622
 ] 
            
Jay D. McHugh commented on GERONIMO-2532:
-----------------------------------------

It looks like the problem is an issue with the creation of the default JRE_HOME 
setting.

In setjavaenv.sh, there is a block of code that is supposed to set JRE_HOME 
based on JAVA_HOME if it is not already set.  But, the test is wrong, so 
JRE_HOME ends up getting set to the exact same thing as JAVA_HOME.

Here are the contents of my patch to correct this (short):

Index: 
assemblies/geronimo-boilerplate-minimal/src/main/resources/bin/setjavaenv.sh
===================================================================
--- 
assemblies/geronimo-boilerplate-minimal/src/main/resources/bin/setjavaenv.sh    
    (revision 469072)
+++ 
assemblies/geronimo-boilerplate-minimal/src/main/resources/bin/setjavaenv.sh    
    (working copy)
@@ -45,7 +45,7 @@
   exit 1
 fi
 if [ -z "$JRE_HOME" ]; then
-   if [ -d "$JRE_HOME/jre" ]; then
+   if [ -d "$JAVA_HOME/jre" ]; then
      JRE_HOME="$JAVA_HOME/jre"
    else
      JRE_HOME="$JAVA_HOME"


> Unable to start the server using the startup scripts
> ----------------------------------------------------
>
>                 Key: GERONIMO-2532
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2532
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 1.2
>         Environment: Linux an MacOS
>            Reporter: Jay D. McHugh
>         Assigned To: Kevan Miller
>         Attachments: geronimo-2532.patch
>
>
> If you try to start the server using the startup scripts, then the server 
> gets to the webconsole startup and fails on an NPE error.
> I have tried to track down what is going on and it seems that something about 
> the "extended dirs" lines in the startup script causes the problem.
> If I remove those lines, then I am able to start the server successfully.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to