Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre1
Assignee: Unassigned
Attachments: Gemfile, Gemfile.lock
Components: Rails WAR Deployment
Created: 15/Jun/12 3:05 PM
Description:

When trying to load classfiles generated by warbler I am getting the error below. The application loads fine if it is not compiled. It also was working in JRuby 1.6.7.2. I was able to duplicate this issue on both Windows and Linux.

Jun 15, 2012 11:28:14 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:44)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.jruby.rack.RackInitializationException: no such file to load – C:/myapp/apps/apache-tomcat/webapps/../../../webapps/myapp/WEB-INF/config/boot.class
from org/jruby/RubyKernel.java:982:in `require'
from C:/myapp/apps/apache-tomcat/webapps/../../../webapps/myapp/WEB-INF/config/boot.rb:1:in `(root)'
from org/jruby/RubyKernel.java:982:in `require'
from file:/C:/myapp/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.6-lib-jruby-rack-1.1.6.jar!/jruby/rack/rails/environment3.rb:1:in `(root)'
from file:/C:/myapp/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.6-lib-jruby-rack-1.1.6.jar!/jruby/rack/rails/environment3.rb:21:in `load_environment'
from file:/C:/myapp/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.6-lib-jruby-rack-1.1.6.jar!/jruby/rack/rails_booter.rb:65:in `load_environment'

at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:218)
at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:58)
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:32)
... 11 more
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load – C:/myapp/apps/apache-tomcat/webapps/../../../webapps/myapp/WEB-INF/config/boot.class
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:982)
at RUBY.(root)(C:/myapp/apps/apache-tomcat/webapps/../../../webapps/myapp/WEB-INF/config/boot.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:982)
at RUBY.(root)(file:/C:/myapp/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.6-lib-jruby-rack-1.1.6.jar!/jruby/rack/rails/environment3.rb:1)
at RUBY.load_environment(file:/C:/myapp/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.6-lib-jruby-rack-1.1.6.jar!/jruby/rack/rails/environment3.rb:21)
at RUBY.load_environment(file:/C:/myapp/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.6-lib-jruby-rack-1.1.6.jar!/jruby/rack/rails_booter.rb:65)

Environment: jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_04) [Windows 7-amd64-java].

Also duplicated issue in Ubuntu 12.04 x64.

gem "jruby-jars", "~> 1.7.0.preview1"
gem 'rails', '3.2.6'
Project: JRuby
Priority: Major Major
Reporter: Scott Nelson
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to