jruby / jruby-rack

Rack for JRuby and Java appservers
MIT License
397 stars 137 forks source link

Rails 2.3.14, Jruby 1.7.0, jruby-rack 1.1.12 : undefined local variable or method `logdev' error #138

Closed capsize closed 11 years ago

capsize commented 11 years ago

Tomcat 7.0 error message

org.jruby.rack.RackInitializationException: undefined local variable or method `logdev' for #<JRuby::Rack::RailsBooter:0xaefb01>
    from file:/C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/rails/environment2.rb:106:in `setup_logger'
    from file:/C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/rails/environment2.rb:26:in `load_environment'
    from file:/C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/rails_booter.rb:66:in `load_environment'
    from <script>:1:in `(root)'

    at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29)
    at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98)
    at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4323)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4780)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:557)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:987)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:540)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:313)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:293)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:996)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:771)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:988)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:427)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:649)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:585)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
Caused by: org.jruby.exceptions.RaiseException: (NameError) undefined local variable or method `logdev' for #<JRuby::Rack::RailsBooter:0xaefb01>
    at RUBY.setup_logger(file:/C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/rails/environment2.rb:106)
    at RUBY.load_environment(file:/C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/rails/environment2.rb:26)
    at RUBY.load_environment(file:/C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/rails_booter.rb:66)
    at RUBY.(root)(<script>:1)
kares commented 11 years ago

released 1.1.13 Rails-2.3.x compatibility should be fine again ...

guilleiguaran commented 11 years ago

@kares do you have plans to drop 2.3 compatibility in the near future?

FYI, we in Rails core team are releasing new versions of 2.3 if serious security bugs are found (ex. 2.3.15) and backporting patches for non severe security issues to 2-3-stable branch without cut release. 2.3 will be considered totally dead after of 4.1 release (probably this year, aprox. 6 months later of 4.0 release)

kares commented 11 years ago

@guilleiguaran as long as there's demand it won't be dropped (at least in 1.1.x) - although I'd like to get a 1.2 release where 2.3 will be dropped due a cleanup. this was only a fix for a 1.1 release regression breaking 2.3 compatibility ...

that being said, I shall try concentrate more on AR-JDBC (as well as finding a paid job :)) since it lacks Rails-4.0 support + there seems to be a lot of work to be done (even with 3.x) ... anyways, thanks for the heads up and info on how it will be going, appreciate it !