jruby/warbler — Issue #62: private method `require' called for Bundler:Module
Author: lstoldt
Created: 2011-11-20 21:46:09+00:00
State: open

```
[#|2011-11-20T15:51:30.585-0500|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=24;_ThreadName=Thread-2;|PWC1412: WebModule[null] ServletContext.log():An exception happened during JRuby-Rack startup
private method `require' called for Bundler:Module
--- System
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (OpenJDK Client VM 1.6.0_20) [linux-i386-java]
Time: 2011-11-20 15:51:30 -0500
Server: GlassFish Server Open Source Edition 3.1.1
jruby.home: classpath:/META-INF/jruby.home

--- Context Init Parameters:
com.sun.faces.forceLoadConfiguration = true
com.sun.faces.validateXml = true
jruby.compat.version = 1.9
public.root = /
rails.env = production

--- Backtrace
NoMethodError: private method `require' called for Bundler:Module
(root) at /home/lstoldt/glassfish3/glassfish/domains/domain1/applications/lelons_blog/WEB-INF/config/application.rb:13
require at org/jruby/RubyKernel.java:1047
require at /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at /home/lstoldt/glassfish3/glassfish/domains/domain1/applications/lelons_blog/WEB-INF/config/application.rb:2
require at org/jruby/RubyKernel.java:1047
require at /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
load_environment at /home/lstoldt/glassfish3/glassfish/domains/domain1/applications/lelons_blog/WEB-INF/config/environment.rb:167
to_app at /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/jruby/rack/rails.rb:172
new at /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/jruby/rack/rails.rb:192
(root) at :1
instance_eval at org/jruby/RubyBasicObject.java:1720
initialize at /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/vendor/rack-1.3.5/rack/builder.rb:51
(root) at :1

--- RubyGems
Gem.dir: /home/lstoldt/glassfish3/glassfish/domains/domain1/applications/lelons_blog/WEB-INF/gems
Gem.path:
/home/lstoldt/glassfish3/glassfish/domains/domain1/applications/lelons_blog/WEB-INF/gems
Activated gems:
rake-0.9.2
thor-0.14.6
rack-1.3.3
rack-ssl-1.3.2
rdoc-3.9.4
multi_json-1.0.3
activesupport-3.1.1
builder-3.0.0
i18n-0.6.0
activemodel-3.1.1
rack-cache-1.1
rack-test-0.6.1
rack-mount-0.8.3
hike-1.2.1
tilt-1.3.3
sprockets-2.0.2
erubis-2.7.0
actionpack-3.1.1
railties-3.1.1
arel-2.2.1
tzinfo-0.3.30
activerecord-3.1.1
mime-types-1.16
polyglot-0.3.2
treetop-1.4.10
mail-2.3.0
actionmailer-3.1.1
activeresource-3.1.1

--- 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.ServletContextLogger@86d0b0
logger_class_name = servlet_context
logger_name = jruby.rack
maximum_runtimes =
memory_buffer_size = 8192
num_initializer_threads =
rackup =
rackup_path =
rewindable = true
runtime_arguments =
runtime_timeout_seconds =
serial_initialization = false
servlet_context = org.apache.catalina.core.ApplicationContextFacade@141952a
|#]

[#|2011-11-20T15:51:30.586-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=24;_ThreadName=Thread-2;|WebModule[]Application Error
org.jruby.rack.RackInitializationException: private method `require' called for Bundler:Module
from org/jruby/RubyKernel.java:1047:in `require'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/applications/lelons_blog/WEB-INF/config/application.rb:2:in `(root)'
from org/jruby/RubyKernel.java:1047:in `require'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/applications/lelons_blog/WEB-INF/config/environment.rb:167:in `load_environment'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/jruby/rack/rails.rb:172:in `to_app'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/jruby/rack/rails.rb:192:in `new'
from :1:in `(root)'
from org/jruby/RubyBasicObject.java:1720:in `instance_eval'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_9327208/vendor/rack-1.3.5/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:23)
at org.jruby.rack.AbstractRackDispatcher.process(AbstractRackDispatcher.java:28)
at org.jruby.rack.AbstractFilter.doFilter(AbstractFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) private method `require' called for Bundler:Module
|#]
```

I confirmed the Bundler gem is included in the war.

Trying to run 1.9 (this is after changing "require" to "require_relative" in yaml.rb)