Forum: JRuby uninitialized constant ActionController::Session::JavaServletStore

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F34d2984f36c86ecc19b32e7142a7354?d=identicon&s=25 Ryan L. Bell (Guest)
on 2009-02-08 02:50
(Received via mailing list)
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://kofno.wordpress.com
http://twitter.com/kofno
http://github.com/kofno


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
526d60de6472502bb570a9df2842b33b?d=identicon&s=25 Nick Sieger (Guest)
on 2009-02-08 20:53
(Received via mailing list)
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 <ryan.l.bell@gmail.com>
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:in
> `initialize'
> 
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
C4228db54c76deba18a92bf7560ea493?d=identicon&s=25 Peter Ehrenberg (dipe)
on 2009-02-13 16:04
Nick Sieger 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
817fb4d3ec9ec597d20b86488e4517ec?d=identicon&s=25 Marcus Baguley (marcusb)
on 2009-07-28 05:09
This topic is locked and can not be replied to.