Jruby app won't start in Jboss

Hello all:
I have been trying to package a working RoR app into a WAR file and
deploy it to Jboss. By using Warble I am able to create the WAR file
successfully, but, when it gets deployed to JBoss 5, the app fails to
start. This is the exception that I am getting in the log file:

org.jruby.rack.RackInitializationException: undefined method new' for "Rack::Head":String from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in each’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in
inject' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in build’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in
build_middleware_stack' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:81:in initialize’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in
run_prepare_callbacks' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:631:in prepare_dispatcher’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:185:in
process' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:113:in run’
from
/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:20
from
/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:29:in
load' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:29:in load_environment’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:152:in
new' from <script>:3 from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22:in instance_eval’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22:in
`initialize’
from :3

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:154)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:159)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException
at
Kernel.method_missing(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:72)
at
ActionController::MiddlewareStack::Middleware.build(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
ActionController::MiddlewareStack.build(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
Array.each(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
Enumerable.inject(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
ActionController::MiddlewareStack.build(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130)
at
ActionController::Dispatcher.build_middleware_stack(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:81)
at
ActionController::Dispatcher.initialize(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51)
at
#Class:01x6928de56.run_prepare_callbacks(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:631)
at
Rails::Initializer.prepare_dispatcher(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:185)
at
Rails::Initializer.process(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:113)
at
#Class:01x47d9fe05.run(/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:20)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:29)
at
Kernel.load(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:29)
at
JRuby::Rack::RailsServletHelper.load_environment(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:152)
at #Class:01x989727e.new(:3)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22)
at
Kernel.instance_eval(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22)
at
Kernel.instance_eval(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22)
at Rack::Builder.initialize(:3)
at (unknown).(unknown)(:1)
2010-05-12 07:06:06,193 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
(JRuby-Rack-App-Init-0) Error: unable to initialize application
org.jruby.rack.RackInitializationException: undefined method new' for "Rack::Head":String from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in each’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in
inject' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in build’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in
build_middleware_stack' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:81:in initialize’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in
run_prepare_callbacks' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:631:in prepare_dispatcher’
from
/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:185:in
process' from /home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:113:in run’
from
/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:20
from
/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:29:in
load' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:29:in load_environment’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:152:in
new' from <script>:3 from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22:in instance_eval’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22:in
`initialize’
from :3

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:154)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:159)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException
at
Kernel.method_missing(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:72)
at
ActionController::MiddlewareStack::Middleware.build(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
ActionController::MiddlewareStack.build(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
Array.each(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
Enumerable.inject(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116)
at
ActionController::MiddlewareStack.build(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130)
at
ActionController::Dispatcher.build_middleware_stack(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:81)
at
ActionController::Dispatcher.initialize(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51)
at
#Class:01x7a1d1609.run_prepare_callbacks(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:631)
at
Rails::Initializer.prepare_dispatcher(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:185)
at
Rails::Initializer.process(/home/jboss-5.0.0.CR2/server/portal/tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/gems/gems/rails-2.3.5/lib/initializer.rb:113)
at
#Class:01x4d09f1ae.run(/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:20)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:29)
at
Kernel.load(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:29)
at
JRuby::Rack::RailsServletHelper.load_environment(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:152)
at #Class:01x3cd2c241.new(:3)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22)
at
Kernel.instance_eval(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22)
at
Kernel.instance_eval(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/builder.rb:22)
at Rack::Builder.initialize(:3)
at (unknown).(unknown)(:1)

What is interesting, is that it always references this from my app:
at
#Class:01x47d9fe05.run(/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:20)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/./tmp/deploy/portal4350990379049296769-exp.war/WEB-INF/config/environment.rb:29)

and even though I have tried to change the config file, it always
complains about line 29, regardless of what line 29 maybe. Sometimes
line 29 was blank, once it was a comment.

Here’s my config.rb:

Specifies gem version of Rails to use when vendor/rails is not present

RAILS_GEM_VERSION = ‘2.3.5’ unless defined? RAILS_GEM_VERSION

Bootstrap the Rails environment, frameworks, and default configuration

require File.join(File.dirname(FILE), ‘boot’)

Use database sessions

if RUBY_PLATFORM =~ /java/

hack to fix jruby-rack’s incompatibility with rails edge

module ActionController
module Session
class JavaServletStore
def initialize(app, options={}); end
def call(env); end
end
end
end
end

Rails::Initializer.run do |config|

#config.gem ‘rubycas-client’, :lib => “casclient”
#config.gem ‘rubycas-client’, :lib =>
“casclient/frameworks/rails/filter”

if RUBY_PLATFORM =~ /java/
config.plugins = [:all]
config.plugins-= [:rails_development_boost,:‘rails-dev-boost’]
end

config.time_zone = ‘UTC’

config.action_controller.session = {
:session_key => ‘_portal_session’,
:secret => ‘REPLACE_ME_WITH_A_REAL_SECRET’
}

end

enable detailed CAS logging for easier troubleshooting

#cas_logger = CASClient::Logger.new(RAILS_ROOT+‘/log/cas.log’)
#cas_logger.level = Logger::DEBUG

#EMAIL_WEBSERVICE_URL=“http://67.207.148.113:8080/emailservice/emails

#CASClient::Frameworks::Rails::Filter.configure(

:cas_base_url => “https://barquindev-jruby:8643/cas”,

:proxy_retrieval_url =>

https://barquindev-jruby::444/portal_proxy_server/cas_proxy_callback/retrieve_pgt”,

:proxy_callback_url =>

https://barquindev-jruby::444/portal_proxy_server/cas_proxy_callback/receive_pgt”,

:logger => cas_logger

#)

FIXME: regenerate keys and keep them secret this time

#ENV[‘RECAPTCHA_PUBLIC_KEY’] =
‘6LeH1wkBBBBBBKM-WMeSXGLOq9iSjia0vG6iPdnR’
#ENV[‘RECAPTCHA_PRIVATE_KEY’] =
‘6LeH1wkBBBBBBGdgKAPYZ1G7oVnzC8GFsVf5RDGt’

Has anyone come across this before? Any help would be greatly
appreciated.

Hi Venka,

I think this is a bug related with the version of JRuby-Rack that you
are
using, and it was fixed some time ago:

http://kenai.com/jira/browse/JRUBY_RACK-18

If you update the jruby-rack version it should work fine.

Cheers

Thanks David.

I upgraded Warbler, which in turn upgraded jruby-rack, but now I am
facing this issue:

2010-05-12 08:32:51,611 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
(JRuby-Rack-App-Init-0) Error: unable to initialize application
org.jruby.rack.RackInitializationException: no such file to load – rack
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:7
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:23:in
require' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/booter.rb:23:in boot!’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/rails.rb:20:in
boot!' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:10 from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:1:in load’
from :1

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:157)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: no such file to load –
rack
at
(unknown).initialize(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:7)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:7)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:23)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/booter.rb:23)
at
JRuby::Rack::Booter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/rails.rb:20)
at
JRuby::Rack::RailsBooter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:10)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:1)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:1)
at Kernel.load(:1)
at (unknown).(unknown)(:1)
2010-05-12 08:32:51,729 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
(JRuby-Rack-App-Init-1) Error: unable to initialize application
org.jruby.rack.RackInitializationException: no such file to load – rack
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:7
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:23:in
require' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/booter.rb:23:in boot!’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/rails.rb:20:in
boot!' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:10 from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:1:in load’
from :1

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:157)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: no such file to load –
rack
at
(unknown).initialize(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:7)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:7)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/vendor/rack.rb:23)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/booter.rb:23)
at
JRuby::Rack::Booter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/rails.rb:20)
at
JRuby::Rack::RailsBooter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:10)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:1)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.7.jar/jruby/rack/boot/rack.rb:1)
at Kernel.load(:1)
at (unknown).(unknown)(:1)

David C. wrote:

Hi Venka,

I think this is a bug related with the version of JRuby-Rack that you
are
using, and it was fixed some time ago:

http://kenai.com/jira/browse/JRUBY_RACK-18

If you update the jruby-rack version it should work fine.

Cheers

Am 12.05.2010 um 15:38 schrieb Venka A.:

I upgraded Warbler, which in turn upgraded jruby-rack, but now I am
facing this issue:

org.jruby.rack.RackInitializationException: no such file to load – rack
from :

Does adding ‘rack’ to config.gems help? (# in environment.rb)

config.gem “rack”

(In my application its even fixed to 1.0.1, but not sure if this is
necessary)

Cheers,
Reto

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

How do I tell warbler to use another version of jruby-rack, which isn’t
the one bundled with warbler? I tried to add the
jruby-rack-0.9.8.SNAPSHOT.dev.jar file to my apps ./lib directory, and
then

I added this:
config.java_libs += FileList[“lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar”]

to my warbler.rb config file, but, in my jboss server log, it is still
referencing the jruby-rack-0.9.7.jar file

thanks

David C. wrote:

I think you are bumping into a bug that someone found working with
weblogic
and that Nick fixed in the current development version.

As Reto says you have to add rack to the environment but also use a
snapshot
of jruby-rack jar. Here you can grab the last one:

http://ci.jruby.org/job/jruby-rack/

2010/5/12 Reto Schüttel [email protected]

I think you are bumping into a bug that someone found working with
weblogic
and that Nick fixed in the current development version.

As Reto says you have to add rack to the environment but also use a
snapshot
of jruby-rack jar. Here you can grab the last one:

http://ci.jruby.org/job/jruby-rack/

2010/5/12 Reto Schüttel [email protected]

Not sure if you’ve seen it, but I’ve created an even more better Rails
(and Rack) integration with JBoss.

See:

http://torquebox.org/

-Bob

On May 12, 2010, at 1:08 PM, Venka A. wrote:

your
but, I still get the same error:
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/
from
$4.init(DefaultRackApplicationFactory.java:172)
rack.rb:7)
at
boot/rack.rb:1)
rack
boot!' load’

portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/
deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/
at (unknown).(unknown)(:1)

Posted via http://www.ruby-forum.com/.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, May 12, 2010 at 12:08 PM, Venka A. [email protected]
wrote:

config.java_libs += FileList[“lib/java/*.jar”]

2010-05-12 13:05:13,557 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
(JRuby-Rack-App-Init-0) Error: unable to initialize application
org.jruby.rack.RackInitializationException: no such file to load – rack

Sorry to see you’re hitting this. This has been a nagging problem for
a while on a couple of containers, and usually has to do with
unexpected security settings or the load path getting b0rked.

See the comments in the following issues, maybe you’ll see something
that catches your eye.

http://jira.codehaus.org/browse/JRUBY-3935
http://kenai.com/jira/browse/JRUBY_RACK-8

We’ve tried some fixes, but there still seem to be a couple problems.
It might be time to monkey-patch LoadError to dump out the $LOAD_PATH
when it runs across this exception :slight_smile:

/Nick

boot!' org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:157) Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/booter.rb:23) 2010-05-12 13:05:13,606 ERROR boot!’
at
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:1)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Ok - I was able to specify the custom jruby-rack-0.9.8.SNAPSHOT.dev.jar
file by adding this to my app’s warbler.rb file:

Additional Java .jar files to include. Note that if .jar files are

placed

in lib (and not otherwise excluded) then they need not be mentioned

here.

JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include

your

own versions if you directly set the value

config.java_libs += FileList[“lib/java/*.jar”]

config.java_libs.delete_if {|f| f =~ /jruby-rack/ || f =~
/jruby-complete/ }
config.java_libs += FileList[“lib/jruby-complete*.jar”]
config.java_libs += FileList[“lib/jruby-rack*.jar”]

from this webpage:
http://stufftohelpyouout.blogspot.com/2009/06/how-to-get-warbler-to-include-custom.html

but, I still get the same error:

2010-05-12 13:05:13,557 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
(JRuby-Rack-App-Init-0) Error: unable to initialize application
org.jruby.rack.RackInitializationException: no such file to load – rack
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:7
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:23:in
require' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/booter.rb:23:in boot!’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/rails.rb:20:in
boot!' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:10 from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:1:in load’
from :1

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:157)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: no such file to load –
rack
at
(unknown).initialize(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:7)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:7)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:23)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/booter.rb:23)
at
JRuby::Rack::Booter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/rails.rb:20)
at
JRuby::Rack::RailsBooter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:10)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:1)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:1)
at Kernel.load(:1)
at (unknown).(unknown)(:1)
2010-05-12 13:05:13,606 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
(JRuby-Rack-App-Init-2) Error: unable to initialize application
org.jruby.rack.RackInitializationException: no such file to load – rack
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:7
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:23:in
require' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/booter.rb:23:in boot!’
from
/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/rails.rb:20:in
boot!' from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:10 from /home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:1:in load’
from :1

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:157)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: no such file to load –
rack
at
(unknown).initialize(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:7)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:7)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/vendor/rack.rb:23)
at
Kernel.require(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/booter.rb:23)
at
JRuby::Rack::Booter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/rails.rb:20)
at
JRuby::Rack::RailsBooter.boot!(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:10)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:1)
at
(unknown).(unknown)(/home/jboss-5.0.0.CR2/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.SNAPSHOT.dev.jar/jruby/rack/boot/rack.rb:1)
at Kernel.load(:1)
at (unknown).(unknown)(:1)

On Thu, May 13, 2010 at 8:36 AM, Nick S. [email protected]
wrote:

own versions if you directly set the value

that catches your eye.

http://jira.codehaus.org/browse/JRUBY-3935
http://kenai.com/jira/browse/JRUBY_RACK-8

We’ve tried some fixes, but there still seem to be a couple problems.
It might be time to monkey-patch LoadError to dump out the $LOAD_PATH
when it runs across this exception :slight_smile:

/Nick

Better yet, can you download and try running this updated snapshot? It
includes a small monkey-patch of LoadError
(monkey_load_error.rb · GitHub) that should dump the load path at the
time you get the error.

http://ci.jruby.org/job/jruby-rack/33/artifact/target/jruby-rack-0.9.8.dev-SNAPSHOT.jar
http://ci.jruby.org/job/jruby-rack/33/artifact/target/jruby-rack-0.9.8.dev.gem

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Nick,

I applied the JAR and GEM that you suggested and reran my app. The
error messages are more informative, here is the relevant portion of the
server.log:

" JRuby home
“/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-complete-1.4.1.jar/META-INF/jruby.home”
does not exist, using /tmp
"

Is there a way to specify another tmp directory? Could this be the
issue? It doesn’t say which file it can’t load though.

More server.log:

2010-05-19 11:18:03,438 ERROR [STDERR] (main) Warning: JRuby home
“/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-complete-1.4.1.jar/META-INF/jruby.home”
does not exist, using /tmp
2010-05-19 11:18:08,596 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal]]
(main) Warning: error application could not be initialized
org.jruby.rack.RackInitializationException: no such file to load – rack
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:23:in
require' from /home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/booter.rb:23:in boot!’
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1:in
`load’
from :1

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.DefaultRackApplicationFactory.newErrorApplication(DefaultRackApplicationFactory.java:121)
at
org.jruby.rack.DefaultRackApplicationFactory.init(DefaultRackApplicationFactory.java:37)
at
org.jruby.rack.PoolingRackApplicationFactory.init(PoolingRackApplicationFactory.java:50)
at
org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at
org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at
org.jboss.system.ServiceController.start(ServiceController.java:460)
at
org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
at
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
at
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: no such file to load –
rack
at
(unknown).new(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7)
at
Kernel.require(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:23)
at
Kernel.require(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/booter.rb:23)
at
JRuby::Rack::Booter.boot!(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1)
at Kernel.load(:1)
at (unknown).(unknown)(:1)
2010-05-19 11:18:08,606 INFO
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal]]
(main) Info: using runtime pool timeout of 30 seconds
2010-05-19 11:18:08,606 INFO
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal]]
(main) Info: received min runtimes = 2
2010-05-19 11:18:08,606 INFO
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal]]
(main) Info: received max runtimes = 4
2010-05-19 11:18:08,609 ERROR [STDERR] (main) Warning: JRuby home
“/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-complete-1.4.1.jar/META-INF/jruby.home”
does not exist, using /tmp
2010-05-19 11:18:08,917 ERROR [STDERR] (main) Warning: JRuby home
“/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-complete-1.4.1.jar/META-INF/jruby.home”
does not exist, using /tmp
2010-05-19 11:18:09,660 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal]]
(JRuby-Rack-App-Init-1) Error: unable to initialize application
org.jruby.rack.RackInitializationException: no such file to load – rack
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:23:in
require' from /home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/booter.rb:23:in boot!’
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/rails.rb:20:in
boot!' from /home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10 from /home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1:in load’
from :1

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:157)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: no such file to load –
rack
at
(unknown).new(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7)
at
Kernel.require(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:23)
at
Kernel.require(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/booter.rb:23)
at
JRuby::Rack::Booter.boot!(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/rails.rb:20)
at
JRuby::Rack::RailsBooter.boot!(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1)
at Kernel.load(:1)
at (unknown).(unknown)(:1)
2010-05-19 11:18:09,683 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal]]
(JRuby-Rack-App-Init-0) Error: unable to initialize application
org.jruby.rack.RackInitializationException: no such file to load – rack
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:23:in
require' from /home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/booter.rb:23:in boot!’
from
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/rails.rb:20:in
boot!' from /home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10 from /home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1:in load’
from :1

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:157)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: no such file to load –
rack
at
(unknown).new(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7)
at
Kernel.require(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:23)
at
Kernel.require(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/booter.rb:23)
at
JRuby::Rack::Booter.boot!(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/rails.rb:20)
at
JRuby::Rack::RailsBooter.boot!(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1)
at
(unknown).(unknown)(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1)
at Kernel.load(:1)3
at (unknown).(unknown)(:1)

Nick S. wrote:

On Thu, May 13, 2010 at 8:36 AM, Nick S. [email protected]
wrote:

�# own versions if you directly set the value

that catches your eye.

http://jira.codehaus.org/browse/JRUBY-3935
http://kenai.com/jira/browse/JRUBY_RACK-8

We’ve tried some fixes, but there still seem to be a couple problems.
It might be time to monkey-patch LoadError to dump out the $LOAD_PATH
when it runs across this exception :slight_smile:

/Nick

Better yet, can you download and try running this updated snapshot? It
includes a small monkey-patch of LoadError
(monkey_load_error.rb · GitHub) that should dump the load path at the
time you get the error.

http://ci.jruby.org/job/jruby-rack/33/artifact/target/jruby-rack-0.9.8.dev-SNAPSHOT.jar
http://ci.jruby.org/job/jruby-rack/33/artifact/target/jruby-rack-0.9.8.dev.gem

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thanks

I was having this problem… when I upgraded to jruby 1.5 and used the
latest jruby-rack/warbler it went away.

Is it possible for you to upgrade your version of jruby?

Jay

On Wed, May 19, 2010 at 11:51 AM, Venka A. [email protected]
wrote:

(main) Warning: error application could not be initialized
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10
org.jruby.rack.DefaultRackApplicationFactory.init(DefaultRackApplicationFactory.java:37)
 at
 at java.lang.reflect.Method.invoke(Method.java:597)
 at $Proxy36.start(Unknown Source)
 at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
 at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
 at java.lang.Thread.run(Thread.java:619)
 at
2010-05-19 11:18:08,606 INFO
does not exist, using /tmp
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/booter.rb:23:in

Kernel.require(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:7)
 at
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/vendor/rack.rb:23:in
/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:1:in
 at
JRuby::Rack::RailsBooter.boot!(/home/jboss-5.0.0.GA/server/portal/deploy/portal.war/WEB-INF/lib/jruby-rack-0.9.8.dev-SNAPSHOT.jar/jruby/rack/boot/rack.rb:10)

We’ve tried some fixes, but there still seem to be a couple problems.
http://ci.jruby.org/job/jruby-rack/33/artifact/target/jruby-rack-0.9.8.dev-SNAPSHOT.jar
Thanks

Posted via http://www.ruby-forum.com/.


To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

That did the trick - everything works now
upgrading to Jruby 1.5 resolved the issue
Thanks

Jay McGaffigan wrote:

I was having this problem… when I upgraded to jruby 1.5 and used the
latest jruby-rack/warbler it went away.

Is it possible for you to upgrade your version of jruby?

Jay