| View previous topic :: View next topic |
| Author |
Message |
ffrancy
Joined: 05 Jun 2009 Posts: 7
|
Posted: Thu Jun 11, 2009 7:48 am Post subject: Errors with Rails 2.3.2 |
|
|
Hello everyone!
I've done a RoR project using NetBeans IDE, JRuby 1.6, mysql, Glassfish V 3 Prelude, ActiveRecord 2.2.2 and Rails 2.2.2 and everything worked.
Now I wanted to upgrade Rail's version to 2.3.2.
I downloanded it (with also ActiveRecord 2.3.2) and installed as a gem.
I've also modify /configuration/environment.rb file inserting the line RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION instead of the previous version of Rails gem.
When I try to run my project, these errors appear:
INFO: Launching GlassFish on Apache Felix OSGi platform
Welcome to Felix.
=================
INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [7]
INFO: Started bundle org.glassfish.core.kernel [96]
INFO: Started bundle org.glassfish.common.common-util [78]
INFO: Started bundle GlassFish-Application-Common-Module [64]
INFO: APIClassLoader = Class Loader for Bundle [GlassFish-Application-Common-Module [64] ]
INFO: registering service = org.apache.felix.framework.StartLevelImpl@b307f0, contract = org.osgi.service.startlevel.StartLevel, name = null
INFO: registering service = org.apache.felix.framework.PackageAdminImpl@1bcdbf6, contract = org.osgi.service.packageadmin.PackageAdmin, name = null
INFO: Started bundle org.glassfish.branding.branding [29]
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: Started bundle org.glassfish.common.internal-api [82]
INFO: Started bundle org.glassfish.admin.config-api [70]
INFO: Started bundle org.glassfish.registration.glassfish-registration [92]
INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [57]
no resource bundle found for version, using default GlassFish version
INFO: Started bundle org.glassfish.deployment.deployment-common [88]
INFO: Started bundle org.glassfish.flashlight.flashlight-framework [91]
INFO: Listening on port 8080
INFO: Network listener http-listener-2 on port 8181 disabled per domain.xml
INFO: Listening on port 4848
INFO: Started bundle org.glassfish.common.container-common [99]
INFO: The Admin Console is already installed, but not yet loaded.
INFO: Started bundle org.glassfish.persistence.jpa-connector [60]
INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [56]
INFO: Started bundle org.glassfish.scripting.grizzly-jruby-module [39]
INFO: Started bundle org.glassfish.web.war-util [114]
INFO: Started bundle org.glassfish.common.glassfish-naming [84]
INFO: Started bundle org.glassfish.common.glassfish-api [100]
INFO: Started bundle org.glassfish.connectors.connectors-runtime [22]
INFO: Dynamic pool created. Initial runtimes will be 1, hard minimum is 1, hard maximum is 2.If you experiance out of memory errors, consider increasing the heap size or setting the jruby.runtime.min or jruby.runtime.max Java system properties. If starting GlassFish using java CLI then provide it as system property, such as -Djruby.runtime.min=1 -Djruby.runtime.max=2, otherwise make an entry into $GLASSFISH_INSTALL/domains/domain1/config/domain.xml, such as <java-config><jvm-options>-Djruby.runtime.min=1</jvm-options><jvm-options>-Djruby.runtime.max=2</jvm-options></java-config>.
INFO: Jruby version is: 1.1.6
INFO: Starting Rails instances
INFO: Started bundle org.glassfish.transaction.jta [53]
INFO: Started JMXConnector, JMXService URL = service:jmx:rmi:///jndi/rmi://cray:8686/jmxrmi
SEVERE: /home/ffrancy/.gem/jruby/1.8/gems/actionpack-2.3.2/lib/action_controller/middleware_stack.rb:84 warning: given block not used
INFO: New instance created in 12,105 milliseconds
INFO: Loading Rails application Documents2 at /Documents2
INFO: Loading Documents2 Application done is 12987 ms
INFO: GlassFish v3 Prelude startup time : Felix(7280ms) startup services(15877ms) total(23157ms)
SEVERE: null
/home/ffrancy/.gem/jruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant ActionController::AbstractRequest (NameError)
from /home/ffrancy/.gem/jruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
from <script>:59:in `service'
from :1
...internal jruby stack elided...
from ActiveSupport::Dependencies.load_missing_constant(/home/ffrancy/.gem/jruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80)
from ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(<script>:59)
from Grizzlet.service(:1)
from (unknown).(unknown)(:1)
SEVERE: from /home/ffrancy/.gem/jruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
SEVERE: from <script>:59:in `service'
SEVERE: from :1
SEVERE: service exception
/home/ffrancy/.gem/jruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant ActionController::AbstractRequest (NameError)
from /home/ffrancy/.gem/jruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
from <script>:59:in `service'
from :1
...internal jruby stack elided...
from ActiveSupport::Dependencies.load_missing_constant(/home/ffrancy/.gem/jruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80)
from ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(<script>:59)
from Grizzlet.service(:1)
from (unknown).(unknown)(:1)
How can I handle them?
I really don't now how to solve this SEVERE!
Thank you very much!!! |
|
| Back to top |
|
 |
Jiten Bhagat Posted via mailing list.
|
Posted: Thu Jun 11, 2009 8:17 am Post subject: Errors with Rails 2.3.2 |
|
|
Hi,
Try renaming your ApplicationController file from application.rb to application_controller.rb.
You should run "rake rails:update" whenever you update your Rails version. This ensures that changes like the above are taken care off.
More information on upgrading to Rails 2.3 is available in the release notes, here: |
|
| Back to top |
|
 |
ffrancy
Joined: 05 Jun 2009 Posts: 7
|
Posted: Thu Jun 11, 2009 8:23 am Post subject: Re: Errors with Rails 2.3.2 |
|
|
| Jiten Bhagat wrote: | Hi,
Try renaming your ApplicationController file from application.rb to application_controller.rb.
You should run "rake rails:update" whenever you update your Rails version. This ensures that changes like the above are taken care off.
More information on upgrading to Rails 2.3 is available in the release notes, here: |
I've just done what you said but everything still don't work and I have same errors  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|