Forum: Ruby on Rails JRuby/glassfish v3 logging problem

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.
40920c2420f2ed4841ff4ed2fc34c99f?d=identicon&s=25 Petr Janda (petrjanda)
on 2009-04-20 06:01
Hi all,

Ive just tried to run my app with jruby and glassfish. It seems to work
mostly fine, except one weird thing. Glassfish turns over
log/development.log when its size hits 1.9MB, renames it to something
like

development.log_2009-04-20T13-57-30

but never creates a fresh development.log and at that moment the
glassfish server just stops working.

What im doing is basically cd into my application's RAILS_ROOT, and
execute glassfish_rails.

My OS is FreeBSD 7.2

Any ideas?
22785d4dbf585723bf60458ece0170e1?d=identicon&s=25 Joe Athman (Guest)
on 2009-05-02 22:15
(Received via mailing list)
I have the exact same problem.  Has anyone figured out why this is?

Joe

On Apr 19, 11:01 pm, Petr Janda <rails-mailing-l...@andreas-s.net>
3131fcea0a711e5ad89c8d49cc9253b4?d=identicon&s=25 Julian Leviston (Guest)
on 2009-05-03 12:14
(Received via mailing list)
C525435d460373e31aed692ceb499b40?d=identicon&s=25 Vivek Pandey (Guest)
on 2009-05-05 17:46
(Received via mailing list)
There are some known issues with logging, [1] and [2]. These issues are
being worked on and will be available in the next gem version (in couple
of
weeks). Apparently [1] is the cause of what you are experiencing related
to
rotation of log files.

Since rotation is not working so you as well disable it. Do the
following to
turn it off:

The setting for the log rotation is in domain.xml file. You can edit
$RAILS_ROOT/tmp/.glassfish/config/domain.xml.

<log-service file="${jruby.log.location}"
log-rotation-limit-in-bytes="2000000">

Set log-roation-limit-in-bytes to 0 to disable the rotation.

-vivek.

[1]
http://rubyforge.org/tracker/index.php?func=detail...
[2]
http://rubyforge.org/tracker/index.php?func=detail...
This topic is locked and can not be replied to.