All of the apps that I’m working to transition from pack-of-mongrels to
JRuby on Glassfish (v2) have a context-root of / and in order to
continue that tradition, I’ve decided to set up a virtual server for
each one. This should also have the pleasant side-effect of having
separate log files for each application.
However, after creating a virtual server and listener for the new
application and specifying the separate log file, I can see the log file
get created (with a date suffix mysteriously added, though I can’t find
settings for log rotation), the only things written to it are the
startup notices of the virtual server itself. I’ve deliberately inserted
a bug into a SQL statement to generate an exception trace and still
nothing is written, either to the defined logfile or the one for the
default virtual server. If I deploy the same application to the default
virtual server and kick off the action with the bug, I get the
appropriate trace in the log file.
I’m using Glassfish v2 UR2 b04 on Mac OS X 10.5 and packaging the
application with Warbler 0.9.9
Any help would be appreciated.