Unable to start tomcat6: Java error (Exception in thread "main")

Posted by Nyxynyx on Server Fault See other posts from Server Fault or by Nyxynyx
Published on 2012-09-27T00:07:29Z Indexed on 2012/09/27 3:39 UTC
Read the original article Hit count: 509

Filed under:
|
|
|
|

After installing tomcat6 on CentOS 6.3, I am unable to start tomcat6 server.

root@host [/var/log/tomcat6]# service tomcat6 start
Starting tomcat6:                                          [  OK  ]

Although it says OK, I cant access http://mydomain.com:8080.

catalina.out

Exception in thread "main" java.lang.NullPointerException
   at java.lang.VMClassLoader.defineClass(libgcj.so.10)
   at java.lang.ClassLoader.defineClass(libgcj.so.10)
   at java.security.SecureClassLoader.defineClass(libgcj.so.10)
   at java.net.URLClassLoader.findClass(libgcj.so.10)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at gnu.java.lang.MainThread.run(libgcj.so.10)

Tomcat6 was installed using yum:

yum -y install java tomcat6 tomcat6-webapps tomcat6-admin-webapps

When I tried to find the version: tomcat6 version:

Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.catalina.util.ServerInfo
   at gnu.java.lang.MainThread.run(libgcj.so.10)
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.util.ServerInfo not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.10)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at gnu.java.lang.MainThread.run(libgcj.so.10)

Any idea what I should do? Thanks!

© Server Fault or respective owner

Related posts about linux

Related posts about centos