I am running some Ruby on Rails application with JRuby 1.3.1 + GlassFish (v3-b34-01_26_2009 build) and just found out the Ruby logger is unable to shift and the stack trace is below.
I guess it has something to do with the GlassFish because there is no problem at all if I run the Rails application with JRuby 1.3.1 + Mongrel
I am sure that there is no disk space issue and there is no permission set in the target log directory.
Any idea? Thanks!!
Sep 17, 2009 8:46:13 AM
INFO: Shifting failed. Permission denied - Permission denied - C:/projects/myapps/deploy/runtime/log/myapps_ruby.log or C:/pro
jects/myapps/deploy/runtime/log/myapps_ruby.log.0
Sep 17, 2009 8:46:13 AM
INFO:
Sep 17, 2009 8:46:13 AM
INFO: C:/dev-tools/jruby-1.3.1/lib/ruby/1.8/logger.rb:501:in `write'
C:/dev-tools/jruby-1.3.1/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
C:/dev-tools/jruby-1.3.1/lib/ruby/1.8/logger.rb:496:in `write'
C:/dev-tools/jruby-1.3.1/lib/ruby/1.8/logger.rb:326:in `add'
C:/dev-tools/jruby-1.3.1/lib/ruby/1.8/logger.rb:392:in `error'
C:\projects/myapps/deploy/servers/myapps_web/app/controllers/room_schedules_controller.rb:36:in `add_problems'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_with_filt
ers'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_
benchmark'
C:/dev-tools/jruby-1.3.1/lib/ruby/1.8/benchmark.rb:293:in `measure'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_
benchmark'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_with_rescu
e'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `perform_action_
with_caching'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:3
4:in `cache'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `perform_action_
with_caching'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_with_filters'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process_with_
session_management_support'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:120:in `dispatch'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
C:/dev-tools/jruby-1.3.1/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
file:/C:/dev-tools/glassfish-v3-b34-01_26_2009/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:82:in `serve_rails'
file:/C:/dev-tools/glassfish-v3-b34-01_26_2009/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:106:in `call'
file:/C:/dev-tools/glassfish-v3-b34-01_26_2009/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:81:in `call'
file:/C:/dev-tools/glassfish-v3-b34-01_26_2009/glassfish/modules/grizzly-jruby.jar!/rack/handler/grizzly.rb:55:in `call'
[Message sent by forum member 'socalvin' (socalvin_at_hotmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=364436