Tomcat6 default installation does not create logs in /var/log/tomcat6.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: tomcat6
Tomcat6 is failing to start my web application and I am having trouble diagnosing the problem because no log files appear to be getting generated.
My setup is as follows.
I am running Ubuntu 9.04
Kernel: Linux 2.6.28-15-generic
GNOME 2.26.1
I am using the sun-java6-jdk.
I have installed the following tomcat packages:
tomcat6 (version 6.0.18)
tomcat6-common (version 6.0.18)
libtomcat6-java
tomcat6-admin
tomcat6-docs
tomcat6-examples
The examples run fine but generate no log information.
Tomcat installs into /usr/share/tomcat6
Catalina base appears to be /var/lib/tomcat6
I have installed the web application that I want to run as:
/var/lib/
Tomcat tries to deploy it, as evidenced by it being unpacked when Tomcat6 is restarted using:
sudo /etc/init.d/tomcat6 restart
Deployment fails however. I determine this via the tomcat6 administration web interface where the relevant application is shown with a running status of false. When I try to use the tomcat web application manager to start the web application the message is:
FAIL - Application at context path ... could not be started
When I look in /var/log/tomcat6 to see details of why it could not be started, I find that the directory is empty.
Any suggestions about how to get tomcat6 to record the relevant logs and where they should be recorded would be very helpful at this stage. It seems peculiar to me to have no logging being generated by the default package install configuration.
Regards
Geoff
Looking in the /var/log/syslog file: I find the following stack trace when tomcat is restarted:
Sep 23 11:39:46 t43 jsvc.exec[29494]: Could not load Logmanager "org.apache. juli.ClassLoade rLogManager" AccessControlEx ception: access denied (java.lang. RuntimePermissi on setContextClass Loader) AccessControlCo ntext.checkPerm ission( AccessControlCo ntext.java: 323) AccessControlle r.checkPermissi on(AccessContro ller.java: 546) SecurityManager .checkPermissio n(SecurityManag er.java: 532) Thread. setContextClass Loader( Thread. java:1351) logging. LogManager$ Cleaner. <init>( LogManager. java:204) logging. LogManager$ Cleaner. <init>( LogManager. java:198) logging. LogManager. <init>( LogManager. java:235) juli.ClassLoade rLogManager. <init>( ClassLoaderLogM anager. java:45) NativeConstruct orAccessorImpl. newInstance0( Native Method) NativeConstruct orAccessorImpl. newInstance( NativeConstruct orAccessorImpl. java:39) DelegatingConst ructorAccessorI mpl.newInstance (DelegatingCons tructorAccessor Impl.java: 27) reflect. Constructor. newInstance( Constructor. java:513) Class.newInstan ce0(Class. java:355) Class.newInstan ce(Class. java:308) logging. LogManager$ 1.run(LogManage r.java: 164) AccessControlle r.doPrivileged( Native Method) logging. LogManager. <clinit> (LogManager. java:156) logging. Logger. getLogger( Logger. java:273) juli.logging. DirectJDKLog. <init>( DirectJDKLog. java:71) juli.logging. DirectJDKLog. getInstance( DirectJDKLog. java:178) juli.logging. LogFactory. getInstance( LogFactory. java:170) juli.logging. LogFactory. getInstance( LogFactory. java:241) juli.logging. LogFactory. getLog( LogFactory. java:296) catalina. startup. Bootstrap. <clinit> (Bootstrap. java:54) NativeConstruct orAccessorImpl. newInstance0( Native Method) NativeConstruct orAccessorImpl. newInstance( NativeConstruct orAccessor. ..
Sep 23 11:39:46 t43 jsvc.exec[29494]: java.security.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.security.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.security.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.lang.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.lang.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.util.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.util.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.util.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat org.apache.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat sun.reflect.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat sun.reflect.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat sun.reflect.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.lang.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.lang.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.lang.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.util.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.security.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.util.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat java.util.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat org.apache.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat org.apache.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat org.apache.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat org.apache.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat org.apache.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat org.apache.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat sun.reflect.
Sep 23 11:39:46 t43 jsvc.exec[29494]: ^Iat sun.reflect.