I'm trying to run Tomcat 5.5 with gij. It tries to load a log manager through
the java.util.logging.manager property. Apparently the class loading code in
java.util.logging.LogManager fails to load the correct class, even though it is
on the classpath. The exact same invocation with Sun JDK works correctly.

$ /usr/lib/jvm/java-gcj/bin/java
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/home/marcus/apache-tomcat-5.5.20/conf/logging.properties
-Djava.endorsed.dirs=/home/marcus/apache-tomcat-5.5.20/common/endorsed
-classpath
:/home/marcus/apache-tomcat-5.5.20/bin/bootstrap.jar:/home/marcus/apache-tomcat-5.5.20/bin/commons-logging-api.jar:/home/marcus/apache-tomcat-5.5.20/bin/tomcat-juli.jar
-Dcatalina.base=/home/marcus/apache-tomcat-5.5.20
-Dcatalina.home=/home/marcus/apache-tomcat-5.5.20
-Djava.io.tmpdir=/home/marcus/apache-tomcat-5.5.20/temp
org.apache.catalina.startup.Bootstrap start
WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced
by java.util.logging.manager, class not found
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not
found
   <<No stacktrace available>>
WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,'
referenced by handlers, class not found
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler,
   <<No stacktrace available>>
Exception during runtime initialization
java.lang.ExceptionInInitializerError
   <<No stacktrace available>>
Caused by: java.lang.NullPointerException
   <<No stacktrace available>>

This is with a Tomcat 5.5.20 binary distribution from http://tomcat.apache.org,
and gij on Debian i386:

A workaround is to disable the java.util.logging.manager property. Tomcat
appears to run correctly then.

$ gij --version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20061020 (prerelease) (Debian 4.1.1-17)


-- 
           Summary: LogManager class loading failure with Tomcat
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marcus at better dot se
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29869

Reply via email to