War packaged with warble runs on JBoss 4.x and Glassfish 3.x fine, but not on
JBoss 5.1
---------------------------------------------------------------------------------------
Key: JRUBY-3935
URL: http://jira.codehaus.org/browse/JRUBY-3935
Project: JRuby
Issue Type: Bug
Components: Java Integration
Environment: OSX 10.5 & 10.6 with JBoss 5.1
Reporter: Jason Goecke
Fix For: JRuby 1.3.1
Attachments: jboss.log, sinatra-test.war
I create a very simple Sinatra test app and bundle it into a war with warble. I
may deploy this war on JBoss 4.0.5 and Glassfish Preview 3 and run it without
any problems. When I try to do the same on JBoss 5.1 I get an exception when I
try to access the app:
===
Application initialization failed: no such file to load -- rack from
/Users/jsgoecke/Software/AppServers/jboss-5.1.0.GA/server/default/deploy/sinatra-test.war/WEB-INF/lib/jruby-rack-0.9.5.jar/vendor/rack.rb:1
from
/Users/jsgoecke/Software/AppServers/jboss-5.1.0.GA/server/default/deploy/sinatra-test.war/WEB-INF/lib/jruby-rack-0.9.5.jar/vendor/rack.rb:22:in
`require' from
/Users/jsgoecke/Software/AppServers/jboss-5.1.0.GA/server/default/deploy/sinatra-test.war/WEB-INF/lib/jruby-rack-0.9.5.jar/jruby/rack/booter.rb:22:in
`boot!' from
/Users/jsgoecke/Software/AppServers/jboss-5.1.0.GA/server/default/deploy/sinatra-test.war/WEB-INF/lib/jruby-rack-0.9.5.jar/jruby/rack/boot/rack.rb:9
from
/Users/jsgoecke/Software/AppServers/jboss-5.1.0.GA/server/default/deploy/sinatra-test.war/WEB-INF/lib/jruby-rack-0.9.5.jar/jruby/rack/boot/rack.rb:1:in
`load' from
===
I did find that Tomcat 6 set some additional security settings that did not
allow wars to access files by default. In this case it can not appear to find
rack, even thought it is there and works on the other containers. I will attach
the JBoss log and test war as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email