From: <no...@so...> - 2002-01-31 22:41:15
|
Bugs item #474977, was opened at 2001-10-25 10:59 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=474977&group_id=22866 Category: JBossServer Group: v2.4 (stable) Status: Closed Resolution: Fixed Priority: 5 Submitted By: Matthew Bishop (mattbishop) Assigned to: Andreas Schaefer (schaefera) Summary: run.sh fails on Mac OS X Initial Comment: The run.sh script in JBoss 2.4.1a and 2.4.3 incorrectly identifies a HotSpot Server VM and then tries to instantiate the VM with the '-server' option. This fails if the VM is indeed a HotSpot Client VM and not the server variety. Mac OS X does not ship with a server HotSpot, so the run.sh script fails when it tries to instantiate the VM. Here is a sample output: [localhost:/J2EE-servers/jboss/bin] matt% sh run.sh Unrecognized option: -server Could not create the Java virtual machine. Here is the output from Mac OS X 10.1 when checking the version: [localhost:/J2EE-servers/jboss/bin] matt% java -version java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-root-010902-18:51) Java HotSpot(TM) Client VM (build 1.3.1, mixed mode) My workaround is to edit the run.sh script and remove the $HOTSPOT variable from the instantiation line. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-01-31 14:41 Message: Logged In: NO It doesn't look like this fix was ever committed to HEAD (JBoss 3). The version of the file as of yesterday didn't have this fix. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-01-19 12:44 Message: Logged In: NO Good! Will this code make it into the 3.0 alpha branch? I am running 3.0 with great success, once I fix the run.sh script. ---------------------------------------------------------------------- Comment By: Loren Rosen (lorenrosen) Date: 2002-01-15 12:22 Message: Logged In: YES user_id=387536 Perhaps run.sh should invoke 'java -help' and check the output for the string "-server" to verify that the option is supported. ---------------------------------------------------------------------- Comment By: Andreas Schaefer (schaefera) Date: 2001-11-16 15:23 Message: Logged In: YES user_id=70434 Current CVS Branch_2_4 contains the fix. Andy ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=474977&group_id=22866 |