Tomcat 5.5 produces no logs when run with gcj

Bug #251004 reported by zggame
4
Affects Status Importance Assigned to Milestone
tomcat5.5 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: tomcat5.5

Hi, I installed tomcat 5.5 on a laptop Intel T2370/1G RAM and a laptop( Ubuntu 8.0.4 32bit) and Intel PIII 1.2G/512M RAM (XUbuntu 8.0.4 32bit) by Ubuntu package tool. It is 5.5.25.0, linux 2.6.24-19-generic, i386, JVM "1.5.0"(gcj 4.2.3). I also put the tomcat-admin package in with all the example and admin. Both CATALINA_BASE and CATALINA_HOME at /usr/share/tomcat5.5. Here are two problems I met with it

1. I cannot get any logs in the /usr/share/tomcat5.5/logs. I check the logging.properties in conf and it seems just fine. The logs directory is completely empty. It seems some configuration in the repackaging has some problems with logs. I then downloaded the binary code from tomcat website and it works just fine for the log with both the gcj and openjdk-6.

2. I have some problems to set up mysql JDBCRealm, a container security. After fixing the log, I found in the original scripting, /etc/init.d/tomcat55 can only recognize gcj and gcj has some problem to parse the mysql return. The original scipts has no option for openjdk. I then set openjdk as JAVA_HOME and use the downloaded tomcat, JDBCRealm works just fine.

I am new for Ubuntu and hopefully this information will be helpful for others who might have the similar problems.

Revision history for this message
Thierry Carrez (ttx) wrote :

1. Could you try running with TOMCAT5_SECURITY=no just to see if it brings your logs back ?
2. Support for OpenJDK is work in progress, see bug 212521 for details

I'll update description to center the problem on the gcj/logs problem.

Changed in tomcat5.5:
status: New → Incomplete
description: updated
Revision history for this message
Thierry Carrez (ttx) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comment. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in tomcat5.5:
status: Incomplete → Invalid
Revision history for this message
Tom Haddon (mthaddon) wrote :

I can confirm I have the same issue, and changing /etc/default/tomcat5.5 to show TOMCAT5_SECURITY=no doesn't make the logs appear.

Changed in tomcat5.5:
status: Invalid → New
Revision history for this message
Tom Haddon (mthaddon) wrote :

I'm actually seeing some logging - it's going to /var/log/syslog instead of into /var/log/tomcat5.5, fwiw.

Sample ps output shows SYSLOG:

mthaddon@gpsdb-jasperserver:~$ ps auwxx | grep tomcat | grep -v grep
root 11332 0.0 0.0 2064 356 ? Ss 06:36 0:00 /usr/bin/jsvc -user tomcat55 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat5.5/bin/bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat5.5.pid -Djava.awt.headless=true -Xms128m -Xmx768m -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed -Dcatalina.base=/var/lib/tomcat5.5 -Dcatalina.home=/usr/share/tomcat5.5 -Djava.io.tmpdir=/var/lib/tomcat5.5/temp org.apache.catalina.startup.Bootstrap
root 11333 0.0 0.0 2064 472 ? S 06:36 0:00 /usr/bin/jsvc -user tomcat55 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat5.5/bin/bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat5.5.pid -Djava.awt.headless=true -Xms128m -Xmx768m -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed -Dcatalina.base=/var/lib/tomcat5.5 -Dcatalina.home=/usr/share/tomcat5.5 -Djava.io.tmpdir=/var/lib/tomcat5.5/temp org.apache.catalina.startup.Bootstrap
tomcat55 11334 0.6 7.9 434900 138828 ? Sl 06:36 0:26 /usr/bin/jsvc -user tomcat55 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat5.5/bin/bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat5.5.pid -Djava.awt.headless=true -Xms128m -Xmx768m -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed -Dcatalina.base=/var/lib/tomcat5.5 -Dcatalina.home=/usr/share/tomcat5.5 -Djava.io.tmpdir=/var/lib/tomcat5.5/temp org.apache.catalina.startup.Bootstrap

Revision history for this message
Thierry Carrez (ttx) wrote :

Tomcat isn't really working well with the GCJ jvm... Any reason why you wouldn't run with OpenJDK ? Now that bug 212521 has been fixed in hardy you can easily use it with Tomcat 5.5... It works as advertised, and also is so much faster...

Revision history for this message
Tom Haddon (mthaddon) wrote :

I actually switched to using sun-java6-jdk but will try openjdk. Just wanted to report the bug in any case, but it sounds like we'd mark it as "Won't Fix"?

Revision history for this message
Thierry Carrez (ttx) wrote :

Yes. Absence of logs is only the first of the problems you'll encounter if you use gcj to run Tomcat :)

Changed in tomcat5.5:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.