Glassfish gem: SEVERE: uninitialized constant Activitytypes

View: New views
4 Messages — Rating Filter:   Alert me  

Glassfish gem: SEVERE: uninitialized constant Activitytypes

by JannaB :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I must be the only one to have ever gotten this error message. Can someone please tell me what I must do to get my glassfish gem working (again, it was some months ago, but now it doesn't fire up at all! Thanks, log trace below):

Oct 31, 2009 2:45:25 PM null
INFO: Listening on port 81
Oct 31, 2009 2:45:25 PM javax.enterprise.system.tools.admin.org.glassfish.server
INFO: Admin Console Adapter: context root: /_____admingui
Oct 31, 2009 2:45:25 PM null
INFO: The Admin Console Application is not yet installed.
Oct 31, 2009 2:45:25 PM null
INFO: Admin Console Adapter: context root: /_____admingui
Oct 31, 2009 2:45:25 PM javax.enterprise.system.tools.admin.org.glassfish.server
INFO: Admin Console Adapter: context root: /_____admingui
Oct 31, 2009 2:45:27 PM javax.enterprise.system.core.com.sun.enterprise.v3.server
INFO: Loading application ggripv2 at /
Oct 31, 2009 2:45:27 PM com.sun.grizzly.jruby.RubyRuntime
INFO: Environment: production
Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
INFO: Jruby version is: 1.3.0
Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
INFO: Detected Rails application
Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
INFO: Rails not in thread-safe mode, starting in single-thread mode
Oct 31, 2009 2:45:27 PM com.sun.grizzly.scripting.pool.DynamicPool
INFO: Pool started without dynamic resizing enabled. Pool will not attempt to determine the upper and lower bounds that it should be using, and will stay at 1
Oct 31, 2009 2:45:27 PM  
INFO: Read to serve the request
Oct 31, 2009 2:45:27 PM javax.enterprise.system.core.com.sun.enterprise.v3.server
INFO: GlassFish v3  startup time : Static(9953ms) startup services(2485ms) total(12438ms)
Oct 31, 2009 2:45:42 PM com.sun.grizzly.config.GrizzlyServiceListener
SEVERE: uninitialized constant Activitytypes
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in `const_missing'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361:in `constantize'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in `each'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in `constantize'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
    from G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11:in `reverse'
    from G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113:in `autolink?'
     ... 18 levels...
    from G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
    from G:\jruby\rails_apps\ggripv2/config/environment.rb:13
    from G:\jruby\rails_apps\ggripv2/config/environment.rb:1

com.sun.grizzly.jruby.rack.RackInitializationException: uninitialized constant Activitytypes
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in `const_missing'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361:in `constantize'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in `each'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in `constantize'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
    from G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11:in `reverse'
    from G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113:in `autolink?'
     ... 18 levels...
    from G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
    from G:\jruby\rails_apps\ggripv2/config/environment.rb:13
    from G:\jruby\rails_apps\ggripv2/config/environment.rb:1

    at com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:169)
    at com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:69)
    at com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:43)
    at com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:15)
    at com.sun.grizzly.scripting.pool.DynamicPool$1.run(DynamicPool.java:436)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: uninitialized constant Activitytypes
    at Kernel.raise(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:443)
    at ActiveSupport::Dependencies.load_missing_constant(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80)
    at ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92)
    at ActiveSupport::Dependencies::ClassConstMissing.const_missing(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361)
    at ActiveSupport::Inflector.constantize(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360)
    at Array.each(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360)
    at ActiveSupport::Inflector.constantize(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162)
    at ActiveSupport::CoreExtensions::String::Inflections.constantize(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11)
    at ActiveRecord::Reflection::AssociationReflection.reverse(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113)
    at ActiveScaffold::DataStructures::Column.autolink?(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:106)
    at ActiveScaffold::ClassMethods.links_for_associations(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
    at ActiveScaffold::DataStructures::Columns.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
    at Array.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
    at ActiveScaffold::DataStructures::Columns.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:105)
    at ActiveScaffold::ClassMethods.links_for_associations(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:59)
    at ActiveScaffold::ClassMethods.active_scaffold(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:4)
    at (unknown).(unknown)(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:31)
    at (unknown).(unknown)(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:31)
    at Kernel.require(G:/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31)
    at Kernel.require(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158)
    at ActiveSupport::Dependencies::Loadable.require(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:265)
    at ActiveSupport::Dependencies.require_or_load(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:224)
    at ActiveSupport::Dependencies.depend_on(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:136)
    at ActiveSupport::Dependencies::Loadable.require_dependency(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:414)
    at Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413)
    at Array.each(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413)
    at Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411)
    at Array.each(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411)
    at Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:197)
    at Rails::Initializer.process(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113)
    at #<Class:01x150a0>.run(G:\jruby\rails_apps\ggripv2/config/environment.rb:13)
    at (unknown).(unknown)(G:\jruby\rails_apps\ggripv2/config/environment.rb:1)
    at (unknown).(unknown)(:1)
Oct 31, 2009 2:45:42 PM com.sun.grizzly.config.GrizzlyServiceListener
WARNING: Warning: error application could not be initialized.
Oct 31, 2009 2:45:42 PM  
SEVERE: Exception in thread "pool-13-thread-1"
Oct 31, 2009 2:45:42 PM  
SEVERE: G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant':
Oct 31, 2009 2:45:42 PM  
SEVERE: uninitialized constant Rack::Handler::Grizzly (NameError)
Oct 31, 2009 2:45:42 PM  
SEVERE:     from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'

Oct 31, 2009 2:45:42 PM  
SEVERE:     from <script>:1

Oct 31, 2009 2:45:42 PM  
SEVERE:     ...internal jruby stack elided...
Oct 31, 2009 2:45:42 PM  
SEVERE:     from ActiveSupport::Dependencies.load_missing_constant(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80)
Oct 31, 2009 2:45:42 PM  
SEVERE:     from ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(<script>:1)
Oct 31, 2009 2:45:42 PM  
SEVERE:     from (unknown).(unknown)(:1)



Windows 7: It works the way you want. Learn more.

Re: Glassfish gem: SEVERE: uninitialized constant Activitytypes

by vivekp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On glassfish gem forum, I dealt with exactly same issue. It not so much of an issue with  glassfish or even mongrel. For example try running your app with mongrel in production mode you would see the same error. However your app works in development mode on both these servers. 

Looks to me like an issue somewhere in JRuby or better put some plugins/gems issues working on JRuby. I see you are using active-scaffold and it seems ActiveTypes is not found from there.

-vivek.



Oct 31, 2009 2:45:42 PM com.sun.grizzly.config.GrizzlyServiceListener
SEVERE: uninitialized constant Activitytypes
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in `const_missing'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361:in `constantize'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in `each'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in `constantize'
    from G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
    from G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11:in `reverse'
    from G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113:in `autolink?'
     ... 18 levels...
    from G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
    from G:\jruby\rails_apps\ggripv2/config/environment.rb:13
    from G:\jruby\rails_apps\ggripv2/config/environment.rb:1 

Re: Glassfish gem: SEVERE: uninitialized constant Activitytypes

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Definitely toss this into a bug. Nobody else has reported problems
with JRuby 1.4 and GlassFish gem, but I'm not sure if they're using
ActiveScaffold. I assume this works fine with JRuby 1.3.1, yes?

On Sat, Oct 31, 2009 at 2:24 PM, Mistress Janna Brossard
<mistressjanna@...> wrote:

> I must be the only one to have ever gotten this error message. Can someone
> please tell me what I must do to get my glassfish gem working (again, it was
> some months ago, but now it doesn't fire up at all! Thanks, log trace
> below):
>
> Oct 31, 2009 2:45:25 PM null
> INFO: Listening on port 81
> Oct 31, 2009 2:45:25 PM
> javax.enterprise.system.tools.admin.org.glassfish.server
> INFO: Admin Console Adapter: context root: /_____admingui
> Oct 31, 2009 2:45:25 PM null
> INFO: The Admin Console Application is not yet installed.
> Oct 31, 2009 2:45:25 PM null
> INFO: Admin Console Adapter: context root: /_____admingui
> Oct 31, 2009 2:45:25 PM
> javax.enterprise.system.tools.admin.org.glassfish.server
> INFO: Admin Console Adapter: context root: /_____admingui
> Oct 31, 2009 2:45:27 PM
> javax.enterprise.system.core.com.sun.enterprise.v3.server
> INFO: Loading application ggripv2 at /
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.jruby.RubyRuntime
> INFO: Environment: production
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
> INFO: Jruby version is: 1.3.0
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
> INFO: Detected Rails application
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
> INFO: Rails not in thread-safe mode, starting in single-thread mode
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.scripting.pool.DynamicPool
> INFO: Pool started without dynamic resizing enabled. Pool will not attempt
> to determine the upper and lower bounds that it should be using, and will
> stay at 1
> Oct 31, 2009 2:45:27 PM
> INFO: Read to serve the request
> Oct 31, 2009 2:45:27 PM
> javax.enterprise.system.core.com.sun.enterprise.v3.server
> INFO: GlassFish v3  startup time : Static(9953ms) startup services(2485ms)
> total(12438ms)
> Oct 31, 2009 2:45:42 PM com.sun.grizzly.config.GrizzlyServiceListener
> SEVERE: uninitialized constant Activitytypes
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
> `const_missing_with_dependencies'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in
> `const_missing'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `each'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162:in
> `constantize'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11:in
> `reverse'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113:in
> `autolink?'
>      ... 18 levels...
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:13
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:1
>
> com.sun.grizzly.jruby.rack.RackInitializationException: uninitialized
> constant Activitytypes
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
> `const_missing_with_dependencies'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in
> `const_missing'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `each'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162:in
> `constantize'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11:in
> `reverse'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113:in
> `autolink?'
>      ... 18 levels...
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:13
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:1
>
>     at
> com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:169)
>     at
> com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:69)
>     at
> com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:43)
>     at
> com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:15)
>     at
> com.sun.grizzly.scripting.pool.DynamicPool$1.run(DynamicPool.java:436)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: org.jruby.exceptions.RaiseException: uninitialized constant
> Activitytypes
>     at
> Kernel.raise(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:443)
>     at
> ActiveSupport::Dependencies.load_missing_constant(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80)
>     at
> ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92)
>     at
> ActiveSupport::Dependencies::ClassConstMissing.const_missing(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361)
>     at
> ActiveSupport::Inflector.constantize(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360)
>     at
> Array.each(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360)
>     at
> ActiveSupport::Inflector.constantize(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162)
>     at
> ActiveSupport::CoreExtensions::String::Inflections.constantize(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11)
>     at
> ActiveRecord::Reflection::AssociationReflection.reverse(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113)
>     at
> ActiveScaffold::DataStructures::Column.autolink?(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:106)
>     at
> ActiveScaffold::ClassMethods.links_for_associations(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
>     at
> ActiveScaffold::DataStructures::Columns.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
>     at
> Array.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
>     at
> ActiveScaffold::DataStructures::Columns.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:105)
>     at
> ActiveScaffold::ClassMethods.links_for_associations(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:59)
>     at
> ActiveScaffold::ClassMethods.active_scaffold(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:4)
>     at
> (unknown).(unknown)(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:31)
>     at
> (unknown).(unknown)(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:31)
>     at
> Kernel.require(G:/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31)
>     at
> Kernel.require(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158)
>     at
> ActiveSupport::Dependencies::Loadable.require(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:265)
>     at
> ActiveSupport::Dependencies.require_or_load(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:224)
>     at
> ActiveSupport::Dependencies.depend_on(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:136)
>     at
> ActiveSupport::Dependencies::Loadable.require_dependency(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:414)
>     at
> Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413)
>     at
> Array.each(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413)
>     at
> Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411)
>     at
> Array.each(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411)
>     at
> Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:197)
>     at
> Rails::Initializer.process(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113)
>     at
> #<Class:01x150a0>.run(G:\jruby\rails_apps\ggripv2/config/environment.rb:13)
>     at
> (unknown).(unknown)(G:\jruby\rails_apps\ggripv2/config/environment.rb:1)
>     at (unknown).(unknown)(:1)
> Oct 31, 2009 2:45:42 PM com.sun.grizzly.config.GrizzlyServiceListener
> WARNING: Warning: error application could not be initialized.
> Oct 31, 2009 2:45:42 PM
> SEVERE: Exception in thread "pool-13-thread-1"
> Oct 31, 2009 2:45:42 PM
> SEVERE:
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in
> `load_missing_constant':
> Oct 31, 2009 2:45:42 PM
> SEVERE: uninitialized constant Rack::Handler::Grizzly (NameError)
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
> `const_missing_with_dependencies'
>
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from <script>:1
>
> Oct 31, 2009 2:45:42 PM
> SEVERE:     ...internal jruby stack elided...
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from
> ActiveSupport::Dependencies.load_missing_constant(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80)
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from
> ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(<script>:1)
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from (unknown).(unknown)(:1)
>
>
> ________________________________
> Windows 7: It works the way you want. Learn more.

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

    http://xircles.codehaus.org/manage_email



Re: Glassfish gem: SEVERE: uninitialized constant Activitytypes

by vivekp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The user with the similar problem responded on the glassfish gem forum that it was the bug in his code, the model name was pluralized (perhaps that code path kicked in only in production), everything is cool now.

-vivek.

On Sun, Nov 1, 2009 at 10:51 AM, Charles Oliver Nutter <headius@...> wrote:
Definitely toss this into a bug. Nobody else has reported problems
with JRuby 1.4 and GlassFish gem, but I'm not sure if they're using
ActiveScaffold. I assume this works fine with JRuby 1.3.1, yes?

On Sat, Oct 31, 2009 at 2:24 PM, Mistress Janna Brossard
<mistressjanna@...> wrote:
> I must be the only one to have ever gotten this error message. Can someone
> please tell me what I must do to get my glassfish gem working (again, it was
> some months ago, but now it doesn't fire up at all! Thanks, log trace
> below):
>
> Oct 31, 2009 2:45:25 PM null
> INFO: Listening on port 81
> Oct 31, 2009 2:45:25 PM
> javax.enterprise.system.tools.admin.org.glassfish.server
> INFO: Admin Console Adapter: context root: /_____admingui
> Oct 31, 2009 2:45:25 PM null
> INFO: The Admin Console Application is not yet installed.
> Oct 31, 2009 2:45:25 PM null
> INFO: Admin Console Adapter: context root: /_____admingui
> Oct 31, 2009 2:45:25 PM
> javax.enterprise.system.tools.admin.org.glassfish.server
> INFO: Admin Console Adapter: context root: /_____admingui
> Oct 31, 2009 2:45:27 PM
> javax.enterprise.system.core.com.sun.enterprise.v3.server
> INFO: Loading application ggripv2 at /
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.jruby.RubyRuntime
> INFO: Environment: production
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
> INFO: Jruby version is: 1.3.0
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
> INFO: Detected Rails application
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.config.GrizzlyServiceListener
> INFO: Rails not in thread-safe mode, starting in single-thread mode
> Oct 31, 2009 2:45:27 PM com.sun.grizzly.scripting.pool.DynamicPool
> INFO: Pool started without dynamic resizing enabled. Pool will not attempt
> to determine the upper and lower bounds that it should be using, and will
> stay at 1
> Oct 31, 2009 2:45:27 PM
> INFO: Read to serve the request
> Oct 31, 2009 2:45:27 PM
> javax.enterprise.system.core.com.sun.enterprise.v3.server
> INFO: GlassFish v3  startup time : Static(9953ms) startup services(2485ms)
> total(12438ms)
> Oct 31, 2009 2:45:42 PM com.sun.grizzly.config.GrizzlyServiceListener
> SEVERE: uninitialized constant Activitytypes
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
> `const_missing_with_dependencies'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in
> `const_missing'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `each'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162:in
> `constantize'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11:in
> `reverse'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113:in
> `autolink?'
>      ... 18 levels...
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:13
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:1
>
> com.sun.grizzly.jruby.rack.RackInitializationException: uninitialized
> constant Activitytypes
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
> `const_missing_with_dependencies'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in
> `const_missing'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `each'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360:in
> `constantize'
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162:in
> `constantize'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11:in
> `reverse'
>     from
> G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113:in
> `autolink?'
>      ... 18 levels...
>     from
> G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:13
>     from G:\jruby\rails_apps\ggripv2/config/environment.rb:1
>
>     at
> com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:169)
>     at
> com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:69)
>     at
> com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:43)
>     at
> com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:15)
>     at
> com.sun.grizzly.scripting.pool.DynamicPool$1.run(DynamicPool.java:436)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: org.jruby.exceptions.RaiseException: uninitialized constant
> Activitytypes
>     at
> Kernel.raise(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:443)
>     at
> ActiveSupport::Dependencies.load_missing_constant(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80)
>     at
> ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92)
>     at
> ActiveSupport::Dependencies::ClassConstMissing.const_missing(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:361)
>     at
> ActiveSupport::Inflector.constantize(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360)
>     at
> Array.each(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/inflector.rb:360)
>     at
> ActiveSupport::Inflector.constantize(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/string/inflections.rb:162)
>     at
> ActiveSupport::CoreExtensions::String::Inflections.constantize(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb:11)
>     at
> ActiveRecord::Reflection::AssociationReflection.reverse(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb:113)
>     at
> ActiveScaffold::DataStructures::Column.autolink?(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:106)
>     at
> ActiveScaffold::ClassMethods.links_for_associations(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
>     at
> ActiveScaffold::DataStructures::Columns.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
>     at
> Array.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb:62)
>     at
> ActiveScaffold::DataStructures::Columns.each(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:105)
>     at
> ActiveScaffold::ClassMethods.links_for_associations(G:\jruby/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:59)
>     at
> ActiveScaffold::ClassMethods.active_scaffold(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:4)
>     at
> (unknown).(unknown)(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:31)
>     at
> (unknown).(unknown)(G:\jruby/rails_apps/ggripv2/app/controllers/activities_controller.rb:31)
>     at
> Kernel.require(G:/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31)
>     at
> Kernel.require(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158)
>     at
> ActiveSupport::Dependencies::Loadable.require(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:265)
>     at
> ActiveSupport::Dependencies.require_or_load(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:224)
>     at
> ActiveSupport::Dependencies.depend_on(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:136)
>     at
> ActiveSupport::Dependencies::Loadable.require_dependency(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:414)
>     at
> Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413)
>     at
> Array.each(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413)
>     at
> Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411)
>     at
> Array.each(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411)
>     at
> Rails::Initializer.load_application_classes(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:197)
>     at
> Rails::Initializer.process(G:/jruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113)
>     at
> #<Class:01x150a0>.run(G:\jruby\rails_apps\ggripv2/config/environment.rb:13)
>     at
> (unknown).(unknown)(G:\jruby\rails_apps\ggripv2/config/environment.rb:1)
>     at (unknown).(unknown)(:1)
> Oct 31, 2009 2:45:42 PM com.sun.grizzly.config.GrizzlyServiceListener
> WARNING: Warning: error application could not be initialized.
> Oct 31, 2009 2:45:42 PM
> SEVERE: Exception in thread "pool-13-thread-1"
> Oct 31, 2009 2:45:42 PM
> SEVERE:
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in
> `load_missing_constant':
> Oct 31, 2009 2:45:42 PM
> SEVERE: uninitialized constant Rack::Handler::Grizzly (NameError)
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from
> G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
> `const_missing_with_dependencies'
>
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from <script>:1
>
> Oct 31, 2009 2:45:42 PM
> SEVERE:     ...internal jruby stack elided...
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from
> ActiveSupport::Dependencies.load_missing_constant(G:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80)
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from
> ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(<script>:1)
> Oct 31, 2009 2:45:42 PM
> SEVERE:     from (unknown).(unknown)(:1)
>
>
> ________________________________
> Windows 7: It works the way you want. Learn more.

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

   http://xircles.codehaus.org/manage_email