warbler
warbler copied to clipboard
Warbler's gemjar feature appears to not work with JRuby 1.7.x
Originally I had always used all 3 Warbler features - compiled, executable, and gemjar. Recently when attempting to upgrade our JRuby version to 1.7.x, we found we were always getting errors upon deploying the WAR file:
org.jruby.rack.RackInitializationException: No such file or directory - /home/production/var/tmp/Jetty_0_0_.war/webapp/WEB-INF/lib/gems.jar!/gems/activesupport-3.1.3/lib/active_support/locale/en.yml
We found that removing the gemjar feature fixed this and we were able to deploy the WAR file fine. Here is the relevant StackOverflow question: http://stackoverflow.com/questions/19989858/jruby-1-7-x-compatibility-with-warbler-gemjar
This has led me to believe that there is an incompatibility with the gemjar feature and JRuby 1.7.x... Though I am unsure if this would be a Warbler bug, or a JRuby one.
Thanks!
Note this was tested and found on versions 1.3.8 and 1.4.0.beta2 of Warbler - have not tried with the new 1.4.0 release yet, but will try that
I am running into this issue too!
I see that jruby-rack supports a custom init.rb, so I'm considering using that to unzip the gems.jar on startup... monkey patch for now.
Here's a longer stack trace of what I am seeing:
org.jruby.rack.RackInitializationException: Not a directory - jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/jquery-rails-3.0.4/vendor/assets
from org/jruby/RubyDir.java:458:in `chdir'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:192:in `expanded'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:163:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:188:in `expanded'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:206:in `existent'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:106:in `filter_by'
from org/jruby/RubyArray.java:2413:in `map'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:106:in `filter_by'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:103:in `filter_by'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:96:in `load_paths'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/engine.rb:679:in `_all_load_paths'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/engine.rb:545:in `Engine'
from org/jruby/RubyBasicObject.java:1565:in `instance_exec'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `run_initializers'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:150:in `tsort_each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:183:in `each_strongly_connected_component'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:219:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208:in `each_strongly_connected_component_from'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208:in `each_strongly_connected_component_from'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208:in `each_strongly_connected_component_from'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208:in `each_strongly_connected_component_from'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208:in `each_strongly_connected_component_from'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208:in `each_strongly_connected_component_from'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203:in `each_strongly_connected_component_from'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:182:in `each_strongly_connected_component'
from org/jruby/RubyArray.java:1613:in `each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:180:in `each_strongly_connected_component'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:148:in `tsort_each'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
from jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /app/tomcat/webapps/ROOT/WEB-INF/config/environment.rb:5:in `(root)'
from org/jruby/RubyKernel.java:1084:in `require'
from file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.3-lib-jruby-rack-1.1.13.3.jar!/jruby/rack/rails/environment3.rb:1:in `(root)'
from file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.3-lib-jruby-rack-1.1.13.3.jar!/jruby/rack/rails/environment3.rb:25:in `load_environment'
from file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.3-lib-jruby-rack-1.1.13.3.jar!/jruby/rack/rails_booter.rb:79:in `load_environment'
at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29)
at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.jruby.exceptions.RaiseException: (Errno::ENOTDIR) jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/jquery-rails-3.0.4/vendor/assets
at org.jruby.RubyDir.chdir(org/jruby/RubyDir.java:458)
at RUBY.expanded(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:192)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.each(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:163)
at RUBY.expanded(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:188)
at RUBY.existent(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:206)
at RUBY.filter_by(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:106)
at org.jruby.RubyArray.map(org/jruby/RubyArray.java:2413)
at RUBY.filter_by(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:106)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.filter_by(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:103)
at RUBY.load_paths(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/paths.rb:96)
at RUBY._all_load_paths(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/engine.rb:679)
at RUBY.Engine(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/engine.rb:545)
at org.jruby.RubyBasicObject.instance_exec(org/jruby/RubyBasicObject.java:1565)
at RUBY.run(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:30)
at RUBY.run_initializers(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:55)
at RUBY.tsort_each(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:150)
at RUBY.each_strongly_connected_component(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:183)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:210)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:219)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.tsort_each_child(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.tsort_each_child(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.tsort_each_child(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.tsort_each_child(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.tsort_each_child(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:208)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.tsort_each_child(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:44)
at TSort.each_strongly_connected_component_from(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:203)
at RUBY.each_strongly_connected_component(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:182)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.each_strongly_connected_component(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:180)
at RUBY.tsort_each(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.8-lib-jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:148)
at RUBY.run_initializers(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/initializable.rb:54)
at RUBY.initialize!(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/application.rb:215)
at RUBY.method_missing(jar:file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems.jar!/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30)
at RUBY.(root)(/app/tomcat/webapps/ROOT/WEB-INF/config/environment.rb:5)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084)
at RUBY.(root)(file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.3-lib-jruby-rack-1.1.13.3.jar!/jruby/rack/rails/environment3.rb:1)
at RUBY.load_environment(file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.3-lib-jruby-rack-1.1.13.3.jar!/jruby/rack/rails/environment3.rb:25)
at RUBY.load_environment(file:/app/tomcat/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.3-lib-jruby-rack-1.1.13.3.jar!/jruby/rack/rails_booter.rb:79)
Ran into this as well, turning off gemjar and rails on tomcat in linux works. Interestingly, the same war file worked in MacOS.
Also, I believe this is more of a rail issue than a warbler issue.
Just to bump, I have the exact same issue with jruby 1.7.13, removing gemjar fixes it.
I see several issues: @kodger4 it looks like an regular file with !/ after the jar-name. you could try to see if jruby-1.7.15 works better since there was some work around the LoadService. @tedpennings the stacktrace shows a "chdir" inside a jar file. jruby-1.7.15 might work
altogether there a less problems without packing gems into a jar, so turning gemjar off is the better choice.