Bug#521050: tomcat6: Fails to start on PowerPC

Jason M. Hanna jason.m.hanna.at.coincident at gmail.com
Tue Mar 24 15:05:25 UTC 2009


Package: tomcat6
Version: 6.0.18-3
Severity: important


Hi All,

Running into trouble when starting Tomcat 6 using OpenJDK on my Sequoia/AMCC 440EPx running Lenny and a 2.6.28 kernel.

/var/log/syslog reports:
Mar 24 09:54:56 sequoia jsvc.exec[2397]: user changed to 'tomcat6'#012Cannot find any VM in Java Home /usr/lib/jvm/java-6-openjdk#012Cannot locate JVM library file#012java_init failed

I added a -debug flag to /etc/init.d/tomcat6 and attempted to start again. This time jsvc reported the following:
sequoia:~# /etc/init.d/tomcat6 start
Starting Tomcat servlet engine: tomcat6+-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
| Detach:          True
| Show Version:    No
| Show Help:       No
| Check Only:      Disabled
| Stop:            False
| Wait:            0
| Run as service:  No
| Install service: No
| Remove service:  No
| JVM Name:        "null"
| Java Home:       "null"
| PID File:        "/var/run/tomcat6.pid"
| User Name:       "tomcat6"
| Extra Options:   11
|   "-Djava.class.path=/usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar"
|   "-Djava.awt.headless=true"
|   "-Xmx128M"
|   "-Djava.endorsed.dirs=/usr/share/tomcat6/endorsed"
|   "-Dcatalina.base=/var/lib/tomcat6"
|   "-Dcatalina.home=/usr/share/tomcat6"
|   "-Djava.io.tmpdir=/tmp/tomcat6-temp"
|   "-Djava.security.manager"
|   "-Djava.security.policy=/var/lib/tomcat6/work/catalina.policy"
|   "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
|   "-Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties"
| Class Invoked:   "org.apache.catalina.startup.Bootstrap"
| Class Arguments: 0
+-------------------------------------------------------
user changed to 'tomcat6'
User 'tomcat6' validated
Home not specified on command line, using environment
Attempting to locate Java Home in /usr/lib/jvm/java-6-openjdk
Attempting to locate VM configuration file /usr/lib/jvm/java-6-openjdk/jre/lib/jvm.cfg
Attempting to locate VM configuration file /usr/lib/jvm/java-6-openjdk/lib/jvm.cfg
Attempting to locate VM configuration file /usr/lib/jvm/java-6-openjdk/jre/lib/powerpc/jvm.cfg
Attempting to locate VM configuration file /usr/lib/jvm/java-6-openjdk/lib/powerpc/jvm.cfg
VM configuration file not found
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/powerpc/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/powerpc/client/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/powerpc/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/powerpc/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/powerpc/client/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/powerpc/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/bin/powerpc/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/bin/powerpc/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/bin/powerpc/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/bin/powerpc/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/powerpc/classic/green_threads/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/client/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/client/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/bin/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/bin/client/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/bin/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/bin/classic/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/bin/client/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/bin/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/powerpc/fast64/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/jre/lib/powerpc/fast32/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/powerpc/fast64/libjvm.so
Attempting to locate VM library /usr/lib/jvm/java-6-openjdk/lib/powerpc/fast32/libjvm.so
Attempting to locate VM library /usr/lib/libgcj.so.7
Attempting to locate VM library /usr/lib/libgcj.so.6
Java Home located in /usr/lib/jvm/java-6-openjdk
+-- DUMPING JAVA HOME STRUCTURE ------------------------
| Java Home:       "/usr/lib/jvm/java-6-openjdk"
| Java VM Config.: "null"
| Found JVMs:      0
+-------------------------------------------------------
redirecting stdout to SYSLOG and stderr to SYSLOG
 failed!

This first thing that struck me is that my OpenJDK install has its library files in JAVA_HOME/lib/ppc - not JAVA_HOME/lib/powerpc.

If I copy my ppc directory into a new powerpc directory, Tomcat starts properly!

Not sure if this should be filed against tomcat6 or jsvc, but the maintainers appear to to be the same so I'll leave it to you guys.

Thanks and let me know if I can provide any more information.

Regards,
-jmh 

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.28.8
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tomcat6 depends on:
ii  adduser              3.110               add and remove users and groups
ii  jsvc                 1.0.2~svn20061127-9 wrapper to launch Java application
ii  tomcat6-common       6.0.18-3            Servlet and JSP engine -- common f

tomcat6 recommends no packages.

Versions of packages tomcat6 suggests:
ii  tomcat6-admin                 6.0.18-3   Servlet and JSP engine -- admin we
pn  tomcat6-docs                  <none>     (no description available)
pn  tomcat6-examples              <none>     (no description available)

-- no debconf information





More information about the pkg-java-maintainers mailing list