Novell Home

Tomcat 4 Won't Start after Installing a New Package

Novell Cool Solutions: Tip
By Eric Champagne

Digg This - Slashdot This

Posted: 6 Apr 2006
 

PROBLEM:

Tomcat 4 won't start anymore after installing a new package (ex : MySQL) and after the server is rebooted.

iManager and Virtual Offices don't work anymore.

SOLUTION:

Step by Step:

  1. cd /var/opt/novell/tomcat4/common/lib


  2. ls -la and than verify if all the JAR files have for group NOVLWWW and for owner WWW.

    If you see one or many JAR files with a different group than NOVLWWW or a owner different than WWW you need to change it.


  3. To change the group
    chgrp novlwww xxxxxxxxxx.jar


  4. To change the owner
    chown www xxxxxxxxxx.jar


  5. To change the rights
    chmod 644 xxxxxxxx.jar


  6. Restart Tomcat 4


  7. /etc/init.d/novell-tomcat4 restart


Path to logs for Tomcat4 :
/var/opt/novell/tomcat4/logs/

EXAMPLE:

Example of a JAR without good assignment. mysql-connector-java-3.1.12-bin.jar have root for group and root for owner. That's why Tomcat 4 won't start properly and gives a JAVA.EXCEPTION.XXX error.

-rw-r--r--  1 novlwww www  54829 Sep 25  2004 activation.jar
-rw-r--r--  1 novlwww www   8412 Sep 25  2004 ant-launcher.jar
-rw-r--r--  1 novlwww www 958858 Sep 25  2004 ant.jar
-rw-r--r--  1 novlwww www 165119 Sep 25  2004 commons-collections.jar
-rw-r--r--  1 novlwww www 100776 Sep 25  2004 commons-dbcp-1.1.jar
-rw-r--r--  1 novlwww www  22327 Sep 25  2004 commons-logging-api.jar
-rw-r--r--  1 novlwww www  39523 Sep 25  2004 commons-pool-1.1.jar
-rw-r--r--  1 novlwww www 181624 Sep 25  2004 jasper-compiler.jar
-rw-r--r--  1 novlwww www  72417 Sep 25  2004 jasper-runtime.jar
-rw-r--r--  1 novlwww www   6727 Sep 25  2004 jdbc2_0-stdext.jar
-rw-r--r--  1 novlwww www  98496 Sep 25  2004 jndi.jar
-rw-r--r--  1 novlwww www   8639 Sep 25  2004 jta.jar
-rw-r--r--  1 novlwww www 327603 Sep 25  2004 mail.jar
-rw-rw-rw-  1 root root 446464 Mar 16 12:48 mysql-connector-java-3.1.12-bin.jar

ENVIRONMENT:

OES Linux SP2 - Tomcat 4 - iManager 2.5 - Virtual Office


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell