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