Java_servlet_store breaks with jruby-rack-0.9.5

jruby-rack-0.9.5 release notes indicate that ‘java_servlet_store’
support
has been added. When I deploy the application on tomcat as a war file it
errors out. I have ActionController::Base.session_store =
:java_servlet_store in initializers/session_store.rb file. In the
WEB-INF/lib directory I have jruby-complete-1.3.1.jar and
jruby-rack-0.9.5.jar

Environment: jdk 1.6_14, tomcat 6.20, jruby 1.3.1 , jruby-rack-0.9.5,
rails
2.3.4, linux.
The application works if I set session_store = :activer_record_store.

Any ideas what I am doing wrong.

Exception (truncated):
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: uninitialized constant
ActionController::Session::JavaServletStore
from
/usr/local/tomcat/webapps/emi/WEB-INF/gems/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
const_missing_with_dependencies' from /usr/local/tomcat/webapps/emi/WEB-INF/gems/gems/actionpack-2.3.4/lib/action_controller/session_management.rb:18:in session_store=’
from
/opt/apache-tomcat-6.0.14/webapps/emi/WEB-INF/config/initializers/session_store.rb:17
from
/opt/apache-tomcat-6.0.14/webapps/emi/WEB-INF/config/initializers/session_store.rb:147:in
load' from /usr/local/tomcat/webapps/emi/WEB-INF/gems/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:147:in load_with_new_constant_marking’
from
/usr/local/tomcat/webapps/emi/WEB-INF/gems/gems/rails-2.3.4/lib/initializer.rb:622:in
load_application_initializers' from /usr/local/tomcat/webapps/emi/WEB-INF/gems/gems/rails-2.3.4/lib/initializer.rb:621:in each’
from
/usr/local/tomcat/webapps/emi/WEB-INF/gems/gems/rails-2.3.4/lib/initializer.rb:621:in
load_application_initializers' ... 7 levels... from /usr/local/tomcat/webapps/emi/WEB-INF/gems/gems/rack-1.0.0/lib/rack/builder.rb:29:in instance_eval


View this message in context:
http://www.nabble.com/java_servlet_store-breaks-with-jruby-rack-0.9.5-tp25875682p25875682.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Tue, Oct 13, 2009 at 10:57 AM, ajosephmi [email protected] wrote:

The application works if I set session_store = :activer_record_store.

Any ideas what I am doing wrong.

Exception (truncated):
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: uninitialized constant
ActionController::Session::JavaServletStore

I’m not sure why the action_controller/session/java_servlet_store.rb
file can’t be loaded (it’s in the jar). Does the session get
initialized successfully if you require
‘action_controller/session/java_servlet_store’ in
config/initializers/session_store.rb?

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Works when I require ‘action_controller/session/java_servlet_store’ in
config/initializers/session_store.rb

Thanks.

Nick S.-2 wrote:

ActionController::Session::JavaServletStore
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


View this message in context:
http://www.nabble.com/java_servlet_store-breaks-with-jruby-rack-0.9.5-tp25875682p25881521.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Seems like there’s a bug to be filed here, eh? For some reason it’s
not finding it unless you require it explicitly?

On Tue, Oct 13, 2009 at 3:48 PM, ajosephmi [email protected] wrote:

2.3.4, linux.
file can’t be loaded (it’s in the jar). Does the session get

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

Filed http://kenai.com/jira/browse/JRUBY_RACK-23 on the jruby-rack
tracker.

/Nick

On Thu, Oct 15, 2009 at 12:34 AM, Charles Oliver N.
[email protected] wrote:

jruby-rack-0.9.5.jar
org.jruby.rack.RackInitializationException: uninitialized constant


Sent from the JRuby - User mailing list archive at Nabble.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