I’m trying to deploy a prototype JRuby/Rails application into the
WebLogic 10.3 application server. First, I’m getting a warning on
non-existent jruby.home directory and ultimately an error that rubygems
can’t be loaded.
Environment:
- Windows XP Pro
- JRE 1.5.0_14
- JRuby 1.3.0 RC1
- Rails 2.3.2
- Warbler 0.9.13
- Oracle/BEA WebLogic 10.3
- Oracle Database 10g
After updating to the recent Rake version, I’m able to create a WAR file
using Warbler without a problem. After auto-deploying to the WebLogic,
the WAR is apparently exploded into the corresponding tmp directory.
When WebLogic attempts to launch the application, the following warning
appears in the log:
Warning: JRuby home
“D:/bea103/user_projects/domains/sandbox/servers/sandbox-admin/tmp/_WL_user/_appsdir_lab-jruby_war/ixhtz3/war/WEB-INF/lib/jruby-complete-1.3.0RC1.jar!/META-INF/jruby.home”
does not exist, using C:\DOCUME~1\SANDBOX\LOCALS~1\Temp\
It is followed by an error ultimately complaining about unavalability of
rubygems:
unable to create shared application instance
org.jruby.rack.RackInitializationException: no such file to load –
rubygems from
/D:/bea103/user_projects/domains/sandbox/servers/sandbox/admin/tmp/_WL_user/_appsdir_la/b-jruby_war/ixhtz3/war/WEB-INF/config/…/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:1
I’m guessing that the error could be related to “missing” JRuby home
although I’m not sure. Does anyone have any idea how to make it work?
Thanks in advance.