jruby/warbler — Issue #75: no such file to load -- bundler/setup
Author: Klarerwind
Created: 2012-02-16 20:20:00+00:00
State: open

I'm running into issues with Tomcat not being able to find Bundler. I looked in the gems/ directory and I cannot find bundler there (I can find the other gems there, though, including jruby-jars). Where is bundler supposed to be located?

Below is the stack trace of the error.

```
2012-02-15 15:12:18,214 [http-bio-8080-exec-1] INFO jruby.rack - An exception happened during JRuby-Rack startup
no such file to load -- bundler/setup
--- System
jruby 1.6.6 (ruby-1.9.2-p312) (2012-01-30 5673572) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]
Time: 2012-02-15 15:12:18 -0500
Server: Apache Tomcat/7.0.21
jruby.home: file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.6.jar!/META-INF/jruby.home

--- Context Init Parameters:
jruby.compat.version = 1.9
jruby.rack.logging = log4j
public.root = /
rails.env = production

--- Backtrace
LoadError: no such file to load -- bundler/setup
require at org/jruby/RubyKernel.java:1036
require at file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at /usr/local/tomcat/webapps/ROOT/WEB-INF/config/boot.rb:6
require at org/jruby/RubyKernel.java:1036
require at /usr/local/tomcat/webapps/ROOT/WEB-INF/config/boot.rb:36
load_environment at file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/jruby/rack/rails.rb:165
to_app at file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/jruby/rack/rails.rb:172
new at file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/jruby/rack/rails.rb:192
(root) at :1
instance_eval at org/jruby/RubyBasicObject.java:1726
initialize at file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/vendor/rack-1.3.6/rack/builder.rb:51
(root) at :1

--- RubyGems
Gem.dir: /usr/local/tomcat/webapps/ROOT/WEB-INF/gems
Gem.path:
/usr/local/tomcat/webapps/ROOT/WEB-INF/gems
Activated gems:

--- Bundler
undefined method `bundle_path' for Bundler:Module

--- JRuby-Rack Config
compat_version = RUBY1_9
filter_adds_html = true
filter_verifies_resource = false
ignore_environment = false
initial_runtimes =
jms_connection_factory =
jms_jndi_properties =
logger = org.jruby.rack.logging.Log4jLogger@4dbed348
logger_class_name = log4j
logger_name = jruby.rack
maximum_runtimes =
num_initializer_threads =
rackup =
rackup_path =
rewindable = true
runtime_arguments =
runtime_timeout_seconds =
serial_initialization = false
servlet_context = org.apache.catalina.core.ApplicationContextFacade@1e235551

--- $LOAD_PATH:
file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/vendor/rack-1.3.6
file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.9
file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared
file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8
file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.6.jar!/META-INF/jruby.home/lib/ruby/1.9

2012-02-15 15:12:18,217 [http-bio-8080-exec-1] ERROR jruby.rack - Application Error
org.jruby.rack.RackInitializationException: no such file to load -- bundler/setup
from file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/local/tomcat/webapps/ROOT/WEB-INF/config/boot.rb:6:in `(root)'
from org/jruby/RubyKernel.java:1036:in `require'
from /usr/local/tomcat/webapps/ROOT/WEB-INF/config/boot.rb:36:in `require'
from file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/jruby/rack/rails.rb:165:in `load_environment'
from file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/jruby/rack/rails.rb:172:in `to_app'
from file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/jruby/rack/rails.rb:192:in `new'
from :1:in `(root)'
from org/jruby/RubyBasicObject.java:1726:in `instance_eval'
from file:/usr/local/apache-tomcat-7.0.21/webapps/ROOT/WEB-INF/lib/jruby-rack-1.1.3.jar!/vendor/rack-1.3.6/rack/builder.rb:51:in `initialize'
from :1:in `(root)'

at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:206)
at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:56)
at org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:95)
at org.jruby.rack.DefaultRackDispatcher.getApplication(DefaultRackDispatcher.java:20)
at org.jruby.rack.AbstractRackDispatcher.process(AbstractRackDispatcher.java:29)
at org.jruby.rack.AbstractFilter.doFilter(AbstractFilter.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
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:636)
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- bundler/setup
```