Problem running mephisto 0.8.1 with glassfish prelude v3

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:
30:

<%= f.text_field :email %>

31:
Website Timezone

32:
<%= time_zone_select ‘site’, ‘timezone_name’,
TZInfo::Timezone.all.sort, :model => TZInfo::Timezone %>

33:

34: Site language
35: Used to specify language in your site
feeds
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:infields_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:inrender’
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:inrender’
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:inrender’
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:inrender’
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:inrender_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:inrender’
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:inrender_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:indefault_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:incall_filters’
gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:638:in
run_before_filters' app/controllers/application.rb:108:inget_requests_are_readonly’
config/initializers/readonly_records.rb:18:in
with_readonly_records' app/controllers/application.rb:107:inget_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:incall’
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:incall_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:inperform_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:inperform_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:incache’

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:inprocess’
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:inprocess’
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:indispatch_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:indispatch’
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:indispatch’

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: Site language
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

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:
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