jruby/warbler — Issue #55: compiled war with rails plugin startup exception
Author: zaadjis
Created: 2011-10-10 12:28:31+00:00
State: open

Compiled war fails to start, because a plugin init.class (compiled init.rb) file can't be loaded:

2011-10-10 15:08:03.842:INFO::jetty-6.1.22
2011-10-10 15:08:03.951:INFO::Deploy /etc/jetty/contexts/javadoc.xml -> org.mortbay.jetty.handler.ContextHandler@1a85d38{/javadoc,file:/usr/share/doc/libjetty-java/api/}
2011-10-10 15:08:04.024:INFO::Extract file:/var/lib/jetty/webapps/warbler_plugins_issue.war to /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp
2011-10-10 15:08:05.903:INFO::NO JSP Support for /warbler_plugins_issue, did not find org.apache.jasper.servlet.JspServlet
2011-10-10 15:08:06.069:INFO:/warbler_plugins_issue:Info: received max runtimes = 1
2011-10-10 15:08:06.213:INFO:/warbler_plugins_issue:jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (OpenJDK Server VM 1.6.0_20) [linux-i386-java]
..snip..
-> /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class
LoadService: trying builtinLib: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.class
LoadService: trying builtinLib: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.rb
LoadService: trying resourceAsIs: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.class
LoadService: trying resourceAsIs: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.rb
LoadService: trying builtinLib: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.jar
LoadService: trying builtinLib: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.so
LoadService: trying builtinLib: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.bundle
LoadService: trying builtinLib: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.dll
LoadService: trying resourceAsIs: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.jar
LoadService: trying resourceAsIs: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.so
LoadService: trying resourceAsIs: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.bundle
LoadService: trying resourceAsIs: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.dll
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.class
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.class
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.class
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.class
LoadService: trying fileInClasspath: .//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.class
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.rb
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.rb
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.rb
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.rb
LoadService: trying fileInClasspath: .//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.rb
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.jar
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.jar
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.jar
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.jar
LoadService: trying fileInClasspath: .//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.jar
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.so
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.so
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.so
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.so
LoadService: trying fileInClasspath: .//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.so
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.bundle
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.bundle
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.bundle
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.bundle
LoadService: trying fileInClasspath: .//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.bundle
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.dll
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.dll
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.dll
LoadService: trying fileInClasspath: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.dll
LoadService: trying fileInClasspath: .//var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class.dll
<- /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class - 26ms
..snip..
2011-10-10 15:08:20.822:INFO:/warbler_plugins_issue:Info: received min runtimes = 1
2011-10-10 15:08:20.825:INFO:/warbler_plugins_issue:Info: received max runtimes = 1
2011-10-10 15:08:20.857:INFO:/warbler_plugins_issue:An exception happened during JRuby-Rack startup
no such file to load -- /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class
--- System
jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (OpenJDK Server VM 1.6.0_20) [linux-i386-java]
Time: Mon Oct 10 15:08:20 +0300 2011
Server: jetty/6.1.22
jruby.home: file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home

--- Context Init Parameters:
jruby.max.runtimes = 1
jruby.min.runtimes = 1
org.mortbay.jetty.webapp.NoTLDJarPattern = start.jar
ant-.*\.jar
dojo-.*\.jar
jetty-.*\.jar
jsp-api-.*\.jar
junit-.*\.jar
servlet-api-.*\.jar
dnsns\.jar
rt\.jar
jsse\.jar
tools\.jar
sunpkcs11\.jar
sunjce_provider\.jar
xerces.*\.jar
public.root = /
rails.env = production

--- Backtrace
LoadError: no such file to load -- /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class
require at org/jruby/RubyKernel.java:1038
require at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239
load_dependency at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:227
require at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239
Plugin at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.rb:81
eval at org/jruby/RubyKernel.java:1088
Plugin at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/plugin.rb:81
instance_exec at org/jruby/RubyKernel.java:2078
run at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/initializable.rb:25
run_initializers at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/initializable.rb:50
each at org/jruby/RubyArray.java:1603
run_initializers at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/initializable.rb:49
initialize! at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/application.rb:134
send at org/jruby/RubyKernel.java:2092
method_missing at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/application.rb:77
(root) at config/environment.rb:5
require at org/jruby/RubyKernel.java:1038
require at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239
load_dependency at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225
new_constants_in at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:593
new_constants_in at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:592
load_dependency at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225
require at /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239
load_environment at file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:169
to_app at file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:173
new at file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:193
(root) at :1
instance_eval at org/jruby/RubyKernel.java:2061
initialize at file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/builder.rb:51
(root) at :1

--- RubyGems
Gem.dir: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems
Gem.path:
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems
Activated gems:
bundler-1.0.18
rake-0.9.2
abstract-1.0.0
activesupport-3.0.10
builder-2.1.2
i18n-0.5.0
activemodel-3.0.10
erubis-2.6.6
rack-1.2.4
rack-mount-0.6.14
rack-test-0.5.7
tzinfo-0.3.30
actionpack-3.0.10
mime-types-1.16
polyglot-0.3.2
treetop-1.4.10
mail-2.2.19
actionmailer-3.0.10
arel-2.0.10
activerecord-3.0.10
activeresource-3.0.10
bouncy-castle-java-1.5.0146.1
jruby-openssl-0.7.4
rdoc-3.9.4
thor-0.14.6
railties-3.0.10
rails-3.0.10

--- Bundler
Bundler.bundle_path: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems
Bundler.root: /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF
Gemfile: Gemfile
Settings:
without = development:test
gemfile = Gemfile
bin_path = /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/bundler-1.0.18/bin/bundle

--- JRuby-Rack Config
background_spooling = false
compat_version =
filter_adds_html = true
filter_verifies_resource = false
ignore_environment = false
initial_runtimes = 1
jms_connection_factory =
jms_jndi_properties =
logger = org.jruby.rack.logging.ServletContextLogger@7d5b6e
logger_class_name = servlet_context
logger_name = jruby.rack
maximum_runtimes = 1
memory_buffer_size = 65536
num_initializer_threads =
rackup =
rackup_path =
rewindable = true
runtime_timeout_seconds =
serial_initialization = false
servlet_context = ServletContext@1a65fca{/warbler_plugins_issue,file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/}

--- $LOAD_PATH:
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/app/mailers
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/app/models
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/app/helpers
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/app/controllers
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rails-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/thor-0.14.6/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rdoc-3.9.4/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/jruby-openssl-0.7.4/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/bouncy-castle-java-1.5.0146.1/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activeresource-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activerecord-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/arel-2.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/actionmailer-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/mail-2.2.19/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/treetop-1.4.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/polyglot-0.3.2/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/mime-types-1.16/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/actionpack-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/tzinfo-0.3.30/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rack-test-0.5.7/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rack-mount-0.6.14/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rack-1.2.4/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/erubis-2.6.6/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activemodel-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/i18n-0.5.0/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/builder-2.1.2/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/abstract-1.0.0/lib
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rake-0.9.2/lib
file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/bundler-1.0.18/lib
file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8
file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared
file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8
.
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/actionpack-3.0.10/lib/action_controller/vendor/html-scanner
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rack-mount-0.6.14/lib/rack/mount/vendor/multimap
/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/rack-mount-0.6.14/lib/rack/mount/vendor/regin

2011-10-10 15:08:20.866:WARN:/warbler_plugins_issue:unable to create shared application instance
org.jruby.rack.RackInitializationException: no such file to load -- /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.class
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:227:in `load_dependency'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/vendor/plugins/localized_country_select/init.rb:81:in `Plugin'
?from org/jruby/RubyKernel.java:1088:in `eval'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/plugin.rb:81:in `Plugin'
?from org/jruby/RubyKernel.java:2078:in `instance_exec'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/initializable.rb:25:in `run'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/initializable.rb:50:in `run_initializers'
?from org/jruby/RubyArray.java:1603:in `each'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/initializable.rb:49:in `run_initializers'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/application.rb:134:in `initialize!'
?from org/jruby/RubyKernel.java:2092:in `send'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/railties-3.0.10/lib/rails/application.rb:77:in `method_missing'
?from config/environment.rb:5:in `(root)'
?from org/jruby/RubyKernel.java:1038:in `require'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in `load_dependency'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:593:in `new_constants_in'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:592:in `new_constants_in'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in `load_dependency'
?from /var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/gems/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require'
?from file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:169:in `load_environment'
?from file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:173:in `to_app'
?from file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:193:in `new'
?from :1:in `(root)'
?from org/jruby/RubyKernel.java:2061:in `instance_eval'
?from file:/var/cache/jetty/data/Jetty__8080_warbler_plugins_issue.war__warbler_plugins_issue__.cxxbw8/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/builder.rb:51:in `initialize'
?from :1:in `(root)'

at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:204)
at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:54)
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:44)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
2011-10-10 15:08:20.869:WARN:/warbler_plugins_issue:Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:44)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
2011-10-10 15:08:20.903:INFO::Opened /var/log/jetty/2011_10_10.request.log
2011-10-10 15:08:20.959:INFO::Started SelectChannelConnector@:8080

**Steps to reproduce:**

* Create rails app with plugin:

```
$ rails new warbler_plugins_issue -OTJ
$ cd warbler_plugins_issue
$ rails plugin install https://github.com/karmi/localized_country_select.git
```
* Move war to jetty webapps, start jetty

The error does not occur when ```load``` is used instead of ```require``` (when loading the .class file inside the original .rb file), so this might be a JRuby issue.