dev@glassfish.java.net

Shortcuts in PATH to -D

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Fri, 31 Oct 2008 16:10:45 -0700

If 28c is started as:

java -Xmx512m -DJRUBY_HOME=~/tools/jruby-1.4 -jar modules/glassfish.jar

then Rails app can not be deployed and gives the error:

-- cut here --
SEVERE: Exception while deploying the app : java.lang.RuntimeException:
JRuby installation not found at ~/tools/jruby-1.1.4 You may like to do
one of the following:
- Use updatetool to install JRuby and Rails installation.
- Check if the jruby.home Java sysytem property is pointing to your
JRuby installation.
- If on Unix or Mac, create a symbolic link of your jruby installation
to ~/tools/jruby-1.1.4 .
- Install JRuby at ~/tools/jruby-1.1.4
- Set jruby.home inside
/Users/arungupta/tools/glassfish/v3/28c/glassfishv3-prelude/glassfish/domains/domain1/config/domain.xml
to the location of your JRuby directory. Make an entry of
<jvm-options>-Djruby.home=...</jvm-options> inside <java-config> element
-- cut here --

Instead if it is started as:

java -Xmx512m -DJRUBY_HOME=/Users/arungupta/tools/jruby-1.4 -jar
modules/glassfish.jar

then everything works.

It seems OS-specific shortcuts are not recognized. Feature or bug ?

-Arun

-- 
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta