Tomcat not working

Hi all,

I am new to this community. Actually i am facing a problem regarding tomcat that when i run it, it is giving me following error

ERROR 18 Feb 2010 18:17:11,959 [main] [org.apache.tomcat.util.digester.Digester.startElement(1281)] Begin event threw error
java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener
at java.lang.Class.initializeClass(libgcj.so.9)
at java.lang.Class.newInstance(libgcj.so.9)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:206)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at java.lang.reflect.Method.invoke(libgcj.so.9)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.ClassNotFoundException: javax.management.modelmbean.ModelMBean not found in org.apache.catalina.loader.StandardClassLoader{urls=[file:/var/opt/teradata/viewpoint-13.02.00.00/server/classes/,file:/var/opt/teradata/viewpoint-13.02.00.00/server/lib/tomcat-apr.jar,…parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}}
at java.net.URLClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.VMClassLoader.defineClass(libgcj.so.9)
at java.lang.ClassLoader.defineClass(libgcj.so.9)
at java.security.SecureClassLoader.defineClass(libgcj.so.9)
at java.net.URLClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.VMClassLoader.defineClass(libgcj.so.9)
at java.lang.ClassLoader.defineClass(libgcj.so.9)
at java.security.SecureClassLoader.defineClass(libgcj.so.9)
at java.net.URLClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.Class.forName(libgcj.so.9)
at java.lang.Class.initializeClass(libgcj.so.9)
…20 more

ANY help will be highy appreciated

Thanks
-Raheel

I notice you are using gcj, the GNU Java compiler. I think tomcat requires Sun Java. So it looks like you have not installed any Sun Java packages.

Thnx for your reply.

I have confirmed that JDK1.6 is installed and working. here is the output of the version checking command

java -version

java version “1.6.0_18”
Java™ SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot™ Client VM (build 16.0-b13, mixed mode, sharing)

and here is the output of JAVA_HOME

echo $JAVA_HOME

/usr/java/jdk1.6.0_18

I think problem is mainly cause by some missing libraries as you can see following line of stack print “java.lang.ClassNotFoundException: javax.management.modelmbean.ModelMBean not found

But I really cant understand why tomcat cant find these required libraries :frowning:

Did you install tomcat from the openSUSE packages? It works if you use openSUSE packages as it should draw in any dependencies (JARs), but I haven’t messed with tomcat since 11.1 so I’m out of touch with this.

No we have our own some kind of customized tomcat server.
Anyway i have figured out the problem by looking at your point of view. You were right, tomcat by somehow was using JRE_HOME environment variable which was pointing to some gnu java, instead of JAVA_HOME variable which i modified. so adding and modifying JRE_HOME varibale in /etc/profile to point to the sun jdk fixed the problem.:slight_smile:
I genuinely appreciate your assistance.
Thanks a lot again.

Regards,
Raheel