Uninitialized constant ActionController::Session::JavaServletStore


#1

I’ve just upgraded to edge rails. I’ve tried warbler 9.11 and 9.12, but
I keep getting the same exception when I try to deploy my app. Any idea
how I can fix this?

org.jruby.rack.RackInitializationException: uninitialized constant
ActionController::Session::JavaServletStore

from 

/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in
`const_missing_with_dependencies’

from 

/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/vendor/rails/actionpack/lib/action_controller/session_management.rb:18:in
`session_store=’

from 

file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:58:in
`setup_actionpack’

from 

file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:47:in
`require_frameworks_with_servlet_env’

from 

/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/…/vendor/rails/railties/lib/initializer.rb:134:in
`process’

from 

/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/…/vendor/rails/railties/lib/initializer.rb:113:in
`run’

from 

/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/environment.rb:13

from 

/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/environment.rb:29:in
`load’

from 

file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:29:in
`load_environment’

from 

file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:152:in
`new’

from <script>:3

from 

file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22:in
`instance_eval’

from 

file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22:in
`initialize’

from <script>:3

at 

org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:154)

at 

org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:53)

at 

org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:97)

at 

org.jruby.rack.DefaultRackDispatcher.process(DefaultRackDispatcher.java:31)

at org.jruby.rack.RackFilter.doFilter(RackFilter.java:51)

at 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at 

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

at 

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

at 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at 

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Thread.java:619)

Caused by: org.jruby.exceptions.RaiseException

at 

Kernel.raise(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/vendor/rails/activesupport/lib/active_support/dependencies.rb:440)

at 

ActiveSupport::Dependencies.load_missing_constant(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/vendor/rails/activesupport/lib/active_support/dependencies.rb:80)

at 

ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/vendor/rails/actionpack/lib/action_controller/session_management.rb:18)

at 

ActionController::SessionManagement::ClassMethods.session_store=(file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:58)

at 

JRuby::Rack::RailsServletHelper.setup_actionpack(file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:47)

at 

Rails::Initializer.require_frameworks_with_servlet_env(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/…/vendor/rails/railties/lib/initializer.rb:134)

at 

Rails::Initializer.process(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/…/vendor/rails/railties/lib/initializer.rb:113)

at 

#Class:01x166a779.run(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/environment.rb:13)

at 

(unknown).(unknown)(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/environment.rb:29)

at 

Kernel.load(file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:29)

at 

JRuby::Rack::RailsServletHelper.load_environment(file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:152)

at #<Class:01xd2953d>.new(<script>:3)

at 

(unknown).(unknown)(file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22)

at 

Kernel.instance_eval(file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22)

at 

Kernel.instance_eval(file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22)

at Rack::Builder.initialize(<script>:3)

at (unknown).(unknown)(:1)

Ryan L. Bell


http://twitter.com/kofno


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

Implement a Rack-based JavaServletStore for me? I haven’t had the
opportunity to write one. The workaround would be to specify
config.session_store = :cookie in environment.rb.

/Nick

On Sat, Feb 7, 2009 at 7:49 PM, Ryan L. Bell removed_email_address@domain.invalid
wrote:

require_frameworks_with_servlet_env' /home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/config/environment.rb:13 file:/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:152:ininitialize’
org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:97)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

Kernel.raise(/home/ryan/opt/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/vendor/rails/activesupport/lib/active_support/dependencies.rb:440)
at

http://github.com/kofno


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

#3

Nick S. wrote:

Implement a Rack-based JavaServletStore for me? I haven’t had the
opportunity to write one. The workaround would be to specify
config.session_store = :cookie in environment.rb.

Uhh? If this is true, what then mean (I cite from
http://kenai.com/projects/jruby-rack/pages/Home):

Java servlet sessions are used as the default session store for both
Rails and > Merb. Session attributes with String keys and String,
numeric, boolean, or java > object values are automatically copied
to the servlet session for you.

?

May the problem of the OP be an issue with edge-rails and jruby-rack?

/Peter


#4

I had to follow this…
http://kenai.com/projects/jruby/pages/Rails_2_3_2