carlhuda/bundler — Issue #1546: private method `require' called for Bundler:Module 
Author: lstoldt
Created: 2011-11-21 17:36:07+00:00
State: open

JRuby 1.6.5, deploying a rails 3.1 app via warbler to glassfish.

Tried using Bundler latest stable version as well as 1.1.rc

Could be related to https://github.com/carlhuda/bundler/issues/287 ?

```
[#|2011-11-21T11:02:53.452-0500|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-2;|PWC1412: WebModule[null] Servl etContext.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-21 11:02:53 -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_21413980/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.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_21413980/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.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_21413980/jruby/rack/rails.rb:172
new at /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_21413980/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_21413980/vendor/rack-1.3.5/rack/builder.rb:51
(root) at :1

--- RubyGems
Gem.dir: jndi:/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
jndi:/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@17a6347
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@90b96e
|#]

[#|2011-11-21T11:02:53.454-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_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_21413980/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_21413980/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_21413980/jruby/rack/rails.rb:172:in `to_app'
from /home/lstoldt/glassfish3/glassfish/domains/domain1/generated/jsp/lelons_blog/loader_21413980/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_21413980/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(PESes
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(Containe
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:
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(DefaultProtocolFi
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPr
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.ja
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.ja
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.jav
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContext
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThread
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPoo
at java.lang.Thread.run(Thread.java:636)
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) private method
|#]

private method `require' called for Bundler:Module
```