for some reason we are getting this all of a sudden, any ideas ?
jruby 1.2.0
rack 0.9.4
jruby-openssl 0.4
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared
application instance
at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:38)
at
org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.jruby.rack.RackInitializationException: exit
from
/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:38:in run' from file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails_boot.rb:20:inrun’
from
/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:11:in boot!' from /apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:109 from /apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:11:inrequire’
from
/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/environment.rb:11
from
/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/environment.rb:26:in load' from file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails.rb:26:inload_environment’
from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails.rb:151:in new' from <script>:2 from file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:ininstance_eval’
from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:in
`initialize’
from :2
at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:153)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:50)
at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:26)
… 25 more
Caused by: org.jruby.exceptions.RaiseException: exit
at
#Class:01x4f079781.load_rubygems(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:52)
at
Rails::GemBoot.load_initializer(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:38)
at
Rails::Boot.run(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails_boot.rb:20)
at
Rails::BootHook.run(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:11)
at
#Class:01x57cee0c8.boot!(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:109)
at
(unknown).(unknown)(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:11)
at
Kernel.require(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/environment.rb:11)
at
(unknown).(unknown)(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/environment.rb:26)
at
Kernel.load(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails.rb:26)
at
JRuby::Rack::RailsServletHelper.load_environment(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails.rb:151)
at #Class:01x384f33c1.new(:2)
at
(unknown).(unknown)(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
at
Kernel.instance_eval(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
at
Kernel.instance_eval(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
at Rack::Builder.initialize(:2)
at (unknown).(unknown)(:1)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at java.lang.reflect.Method.invoke(Method.java:597)
from /apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:11:in
`instance_eval’
at Rails::GemBoot.load_initializer(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:38)
at Kernel.instance_eval(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
at Kernel.instance_eval(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
at Rack::Builder.initialize(:2)
at (unknown).(unknown)(:1)
Can you check that all the gems got packaged? Also, take a look in
your application’s config/boot.rb; I’m guessing you hit the block that
checks if you’re running the right version of Rubygems. Can you
imagine why it’s suddenly not finding the right Rubygems version? Did
you upgrade the jruby-complete jar as well? Which version did you
grab?
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at java.lang.reflect.Method.invoke(Method.java:597)
from /apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:11:in
`instance_eval’
at Rails::GemBoot.load_initializer(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:38)
at Kernel.instance_eval(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
Hi Nick,
I do have the same problem with jruby-rack-0.9.4 and it goes away when I
revert back to jruby-rack-0.9.3. I tried upgrading to
jruby-complete-1.3.0RC1.jar but the problem persists with
jruby-rack-0.9.4.
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:38)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
`boot!’
    from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:in
Caused by: org.jruby.exceptions.RaiseException: exit
    at
    at
for some reason we are getting this all of a sudden, any ideas ?
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
`require’
from file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:in
at Rails::Boot.run(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails_boot.rb:20)
at Kernel.instance_eval(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
Thanks for confirming Tony. Would one of you mind reporting a bug at http://kenai.com/jira/browse/JRUBY_RACK ? If you have a sample
application that can demonstrate the problem that would help too. Does
a bare Rails 2.2 or 2.3 app exhibit the problem?
Thanks,
/Nick
On Thu, May 14, 2009 at 12:15 PM, ajosephmi [email protected] wrote:
jruby-complete-1.3.0RC1.jar
you upgrade the jruby-complete jar as well? Which version did you
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
from
from
from :2
at
Rails::Boot.run(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails_boot.rb:20)
at
at Rack::Builder.initialize(:2)
Sent from the JRuby - User mailing list archive at Nabble.com.
No issues on a barebones rails app. I also installed all my gems and
still no luck getting it to fail on a barebones app… maybe a version
of warbler (that was the only difference)?
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:38)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
`boot!’
from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:in
Caused by: org.jruby.exceptions.RaiseException: exit
at
at
org.jruby.rack.RackInitializationException: unable to create shared
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
`run’
from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:in
at
Rails::BootHook.run(/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/config/boot.rb:11)
at
you upgrade the jruby-complete jar as well? Which version did you
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
from
from
from :2
at
Rails::Boot.run(file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails_boot.rb:20)
at
at Rack::Builder.initialize(:2)
Sent from the JRuby - User mailing list archive at Nabble.com.
Anyone have a workaround for this I’m having the same problem
Solaris 10, Tomcat 5, Rails 2.2.2, Jruby Rack 0.9.4, Jruby 1.2.0
Looks like it can’t find ruby gems
org.jruby.rack.RackInitializationException: exit
from
/var/retuers/deploy/CMS/releases/20090522191558/tmp/war/WEB-INF/config/boot.rb:38:in run' from file:/var/retuers/deploy/CMS/releases/20090522191558/tmp/war/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack/rails_boot.rb:20:inrun’
from
/var/retuers/deploy/CMS/releases/20090522191558/tmp/war/WEB-INF/config/boot.rb:11:in boot!' from /var/retuers/deploy/CMS/releases/20090522191558/tmp/war/WEB-INF/config/boot.rb:109 from /var/retuers/deploy/CMS/releases/20090522191558/tmp/war/WEB-INF/config/boot.rb:11:inrequire’
from
/var/retuers/deploy/CMS/releases/20090522191558/tmp/war/WEB-INF/config/environment.rb:11
from
/var/retuers/deploy/CMS/releases/20090522191558/tmp/war/WEB-INF/config/environment.rb:26:in
`load’
~Matt
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.