Forum: JRuby Problem running mephisto 0.8.1 with glassfish prelude v3

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.
Josh M. (Guest)
on 2009-02-10 14:00
(Received via mailing list)
Hi,  I am setting my blog using Mephisto 0.8.1, jruby 1.1.6 and
glassfish
version 3.  Whenever I go to the admin section of the blog and then go
to
the settings page I get the error below.  The weird thing is that when I
run
it using ./script/server this page works great.  But, when I package it
into
a war and deploy it on glassfish it breaks.  What should I do to fix
this?

Thanks,

Josh


ActionView::TemplateError (uninitialized constant
TZInfo::Timezone::TimezoneProxy) on line #32 of
app/views/admin/settings/index.rhtml:
29:     </dt>
30:     <dd><%= f.text_field :email %></dd>
31:     <dt><label for="site_timezone">Website Timezone</label></dt>
32:     <dd><%= time_zone_select 'site', 'timezone_name',
TZInfo::Timezone.all.sort, :model => TZInfo::Timezone %></dd>
33:     <dt>
34:       <label for="site_lang">Site language</label>
35:       <span class="hint">Used to specify language in your site
feeds</span>

    gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in
`const_missing'

gems/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:121:in
`get_proxy'

gems/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:505:in
`get_proxies'

gems/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:505:in
`collect'

gems/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:505:in
`get_proxies'

gems/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:139:in
`all'
    app/views/admin/settings/index.rhtml:32
    gems/gems/actionpack-2.2.2/lib/action_view/helpers/form_helper.rb:313:in
`fields_for'
    gems/gems/actionpack-2.2.2/lib/action_view/helpers/form_helper.rb:253:in
`form_for'
    app/views/admin/settings/index.rhtml:18
    gems/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in
`render'
    gems/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in
`render_template'
    gems/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in `render'
    gems/gems/actionpack-2.2.2/lib/action_view/base.rb:367:in
`_render_with_layout'
    gems/gems/actionpack-2.2.2/lib/action_view/base.rb:254:in `render'
    gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:1174:in
`render_for_file'
    gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:896:in
`render'
    gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'

gems/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
`realtime'
    gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
    vendor/gems/emk-safe_erb-0.1.2/lib/safe_erb/common.rb:25:in
`render_with_taint_logic'
    gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:868:in
`render'
    gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'

gems/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
`realtime'
    gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
    vendor/gems/emk-safe_erb-0.1.2/lib/safe_erb/common.rb:25:in
`render_with_taint_logic'
    gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:1248:in
`default_render'
    gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:1259:in
`perform_action'
    gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in
`call_filters'
    gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:638:in
`run_before_filters'
    app/controllers/application.rb:108:in `get_requests_are_readonly'
    config/initializers/readonly_records.rb:18:in
`with_readonly_records'
    app/controllers/application.rb:107:in `get_requests_are_readonly'
    gems/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in
`evaluate_method'
    gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:186:in
`call'
    gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:635:in
`run_before_filters'
    gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:615:in
`call_filters'
    gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in
`perform_action_with_filters'
    gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'

/root/glassfishv3-prelude/glassfish/domains/domain1/generated/jsp/mephisto/loader/benchmark.rb:293:in
`measure'
    gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
    gems/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in
`perform_action_with_rescue'

gems/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action_with_caching'

gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
    gems/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in
`cache'

gems/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in
`perform_action_with_caching'
    gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
`process'
    gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in
`process_with_filters'

gems/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in
`process_with_session_management_support'
    gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in
`process'
    gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in
`handle_request'
    gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in
`dispatch_unlocked'
    gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in
`dispatch'
    gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`dispatch'
    gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in
`dispatch_cgi'
    gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in
`dispatch'
Charles Oliver N. (Guest)
on 2009-02-11 00:35
(Received via mailing list)
Can you give it a shot with trunk? One problem I had with Mephisto was
that a lot of their URL paths were absolute, not using relative paths or
any feature in Rails to get a base dir. Not sure if that's a problem
here or not.

Josh M. wrote:
>
> 34:       <label for="site_lang">Site language</label>
> 
gems/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:505:in
>     app/views/admin/settings/index.rhtml:32
>     gems/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in `render'
> gems/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
>
> `perform_action'
> `call'
> 
/root/glassfishv3-prelude/glassfish/domains/domain1/generated/jsp/mephisto/loader/benchmark.rb:293:in
> 
gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Jacob K. (Guest)
on 2009-02-11 00:40
(Received via mailing list)
If you are using prelude, you might also try using native deployment
rather than WAR-based deployment, since that should be closer to
script/server behavior-wise.

Charles Oliver N. wrote:
>> great.  But, when I package it into a war and deploy it on glassfish
>> 29:     </dt>
>> gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in
>>
>> gems/gems/actionpack-2.2.2/lib/action_view/helpers/form_helper.rb:253:in
>>     gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:1174:in
>> gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
>> `realtime'
>> gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in
>> `evaluate_method'
>> gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in
>>     gems/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in
>>
>>     gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in
>>
>
> ---------------------------------------------------------------------
> 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
This topic is locked and can not be replied to.