# JRuby/glassfish v3 logging problem

**URL:** <https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934>\
**Category:** Rails\
**Created:** [April 20, 2009, 6:01am UTC](https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934 "2009-04-20T06:01:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrjanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Post date:** [April 20, 2009, 6:01am UTC](https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934/1 "2009-04-20T06:01:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![petrjanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Post date:** [May 2, 2009, 10:15pm UTC](https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934/2 "2009-05-02T22:15:00Z")

</div>

I have the exact same problem. Has anyone figured out why this is?

Joe

On Apr 19, 11:01 pm, Petr J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![petrjanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Post date:** [May 5, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934/3 "2009-05-05T17:46:06Z")

</div>

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.

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

-vivek.

[1]  
[http://rubyforge.org/tracker/index.php?func=detail&aid=24828&group\_id=5450&atid=21080](http://rubyforge.org/tracker/index.php?func=detail&aid=24828&group_id=5450&atid=21080)  
[2]  
[http://rubyforge.org/tracker/index.php?func=detail&aid=25560&group\_id=5450&atid=21080](http://rubyforge.org/tracker/index.php?func=detail&aid=25560&group_id=5450&atid=21080)

---

<div class="post-metadata">

**Author:** ![petrjanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Post date:** [May 3, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934/4 "2009-05-03T12:14:29Z")

</div>

Permissions?

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)
