Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ramgopal Menon
Cannot open Liferay portal any more -ClassNotFoundException
February 5, 2013 7:42 PM
Answer

Ramgopal Menon

Rank: New Member

Posts: 11

Join Date: January 23, 2013

Recent Posts

Hi community emoticon
There's an issue now with opening Liferay portal.
The tomcat server is not starting up and an exception is thrown in catalina.out.
This is what it shows:
 1Feb 6, 2013 2:27:12 a.m. org.apache.tomcat.util.digester.Digester startElement
 2SEVERE: Begin event threw error
 3java.lang.NoClassDefFoundError: org.apache.tomcat.util.modeler.ManagedBean
 4   at java.lang.Class.initializeClass(libgcj.so.13)
 5   at java.lang.Class.newInstance(libgcj.so.13)
 6   at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:145)
 7   at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
 8   at gnu.xml.stream.SAXParser.parse(libgcj.so.13)
 9   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1556)
10   at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDigesterSource.execute(MbeansDescriptorsDigesterSource.java:238)
11   at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDigesterSource.loadDescriptors(MbeansDescriptorsDigesterSource.java:216)
12   at org.apache.tomcat.util.modeler.Registry.load(Registry.java:689)
13   at org.apache.tomcat.util.modeler.Registry.loadDescriptors(Registry.java:800)
14   at org.apache.tomcat.util.modeler.Registry.loadDescriptors(Registry.java:780)
15   at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:1066)
16   at org.apache.catalina.mbeans.MBeanUtils.<clinit>(MBeanUtils.java:95)
17   at java.lang.Class.initializeClass(libgcj.so.13)
18   at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.<clinit>(GlobalResourcesLifecycleListener.java:68)
19   at java.lang.Class.initializeClass(libgcj.so.13)
20   at java.lang.Class.newInstance(libgcj.so.13)
21   at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:145)
22   at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
23   at gnu.xml.stream.SAXParser.parse(libgcj.so.13)
24   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
25   at org.apache.catalina.startup.Catalina.load(Catalina.java:601)
26   at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
27   at java.lang.reflect.Method.invoke(libgcj.so.13)
28   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
29   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
30Caused by: java.lang.ClassNotFoundException: javax.management.modelmbean.ModelMBeanNotificationBroadcaster not found in org.apache.catalina.loader.StandardClassLoader{urls=[file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina-ant.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-jdbc.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-coyote.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-util.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/annotations-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.
3120-ee-ga2/tomcat-7.0.27/lib/servlet-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/jasper-el.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/jasper.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/jsp-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ecj-3.7.2.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina-tribes.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-i18n-ja.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina-ha.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/
32tomcat-7.0.27/lib/el-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-i18n-es.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-i18n-fr.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-dbcp.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/mail.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/activation.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/hsql.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/portlet.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/
33ext/ccpp.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jtds.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/persistence.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jms.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/postgresql.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jutf7.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/portal-service.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jta.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/support-tomcat.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/
34liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/bin/bootstrap.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/bin/tomcat-juli.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
35   at java.net.URLClassLoader.findClass(libgcj.so.13)
36   at java.lang.ClassLoader.loadClass(libgcj.so.13)
37   at java.lang.ClassLoader.loadClass(libgcj.so.13)
38   at java.lang.VMClassLoader.defineClass(libgcj.so.13)
39   at java.lang.ClassLoader.defineClass(libgcj.so.13)
40   at java.security.SecureClassLoader.defineClass(libgcj.so.13)
41   at java.net.URLClassLoader.findClass(libgcj.so.13)
42   at java.lang.ClassLoader.loadClass(libgcj.so.13)
43   at java.lang.ClassLoader.loadClass(libgcj.so.13)
44   at java.lang.Class.forName(libgcj.so.13)
45   at java.lang.Class.initializeClass(libgcj.so.13)
46   ...25 more
47java.lang.NoClassDefFoundError: org.apache.tomcat.util.modeler.ManagedBean
48   at java.lang.Class.initializeClass(libgcj.so.13)
49   at java.lang.Class.newInstance(libgcj.so.13)
50   at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:145)
51   at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
52   at gnu.xml.stream.SAXParser.parse(libgcj.so.13)
53   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1556)
54   at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDigesterSource.execute(MbeansDescriptorsDigesterSource.java:238)
55   at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDigesterSource.loadDescriptors(MbeansDescriptorsDigesterSource.java:216)
56   at org.apache.tomcat.util.modeler.Registry.load(Registry.java:689)
57   at org.apache.tomcat.util.modeler.Registry.loadDescriptors(Registry.java:800)
58   at org.apache.tomcat.util.modeler.Registry.loadDescriptors(Registry.java:780)
59   at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:1066)
60   at org.apache.catalina.mbeans.MBeanUtils.<clinit>(MBeanUtils.java:95)
61   at java.lang.Class.initializeClass(libgcj.so.13)
62   at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.<clinit>(GlobalResourcesLifecycleListener.java:68)
63   at java.lang.Class.initializeClass(libgcj.so.13)
64   at java.lang.Class.newInstance(libgcj.so.13)
65   at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:145)
66   at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
67   at gnu.xml.stream.SAXParser.parse(libgcj.so.13)
68   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
69   at org.apache.catalina.startup.Catalina.load(Catalina.java:601)
70   at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
71   at java.lang.reflect.Method.invoke(libgcj.so.13)
72   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
73   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
74Caused by: java.lang.ClassNotFoundException: javax.management.modelmbean.ModelMBeanNotificationBroadcaster not found in org.apache.catalina.loader.StandardClassLoader{urls=[file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina-ant.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-jdbc.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-coyote.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-util.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/annotations-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.
7520-ee-ga2/tomcat-7.0.27/lib/servlet-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/jasper-el.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/jasper.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/jsp-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ecj-3.7.2.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina-tribes.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-i18n-ja.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/catalina-ha.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/
76tomcat-7.0.27/lib/el-api.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-i18n-es.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-i18n-fr.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/tomcat-dbcp.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/mail.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/activation.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/hsql.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/portlet.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/
77ext/ccpp.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jtds.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/persistence.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jms.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/postgresql.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jutf7.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/portal-service.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/jta.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/lib/ext/support-tomcat.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/
78liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/bin/bootstrap.jar,file:/home/ramgopalm/liferay-portal-6.1.20-ee-ga2/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/bin/tomcat-juli.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
79   at java.net.URLClassLoader.findClass(libgcj.so.13)
80   at java.lang.ClassLoader.loadClass(libgcj.so.13)
81   at java.lang.ClassLoader.loadClass(libgcj.so.13)
82   at java.lang.VMClassLoader.defineClass(libgcj.so.13)
83   at java.lang.ClassLoader.defineClass(libgcj.so.13)
84   at java.security.SecureClassLoader.defineClass(libgcj.so.13)
85   at java.net.URLClassLoader.findClass(libgcj.so.13)
86   at java.lang.ClassLoader.loadClass(libgcj.so.13)
87   at java.lang.ClassLoader.loadClass(libgcj.so.13)
88   at java.lang.Class.forName(libgcj.so.13)
89   at java.lang.Class.initializeClass(libgcj.so.13)
90   ...25 more


Any idea what's going on? I didn't see the javax package in any of tomcat-7.0.27's folders' JAR files.
Please HELP!

Thanks!
Ram
Hitoshi Ozawa
RE: Cannot open Liferay portal any more -ClassNotFoundException
February 5, 2013 7:52 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Check which Java version is being used to startup Tomcat. Be sure it's Oracle JDK 1.6.x

If it is, was liferay working? If not, you probably didn't extract all the files. If you're on MS Windows, File Explorer sometimes does not extract all the files so try using something like 7-zip (http://www.7-zip.org/)
Ramgopal Menon
RE: Cannot open Liferay portal any more -ClassNotFoundException
February 5, 2013 8:11 PM
Answer

Ramgopal Menon

Rank: New Member

Posts: 11

Join Date: January 23, 2013

Recent Posts

Hitoshi Ozawa:
Check which Java version is being used to startup Tomcat. Be sure it's Oracle JDK 1.6.x

If it is, was liferay working? If not, you probably didn't extract all the files. If you're on MS Windows, File Explorer sometimes does not extract all the files so try using something like 7-zip (http://www.7-zip.org/)



There is a JRE 1.6 version installed within tomcat directory.
I'm running this on OpenSUSE, on a Virtual machine in Windows.
Liferay wasn't working at all.
Hitoshi Ozawa
RE: Cannot open Liferay portal any more -ClassNotFoundException
February 5, 2013 8:20 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Are you using "Oracle" JRE 1.6. Open JRE won't work.

How about trying the following package?

https://solutionexchange.vmware.com/store/products/bitnami-liferay-stack-6-1-0-1-opensuse-11-3
Ramgopal Menon
RE: Cannot open Liferay portal any more -ClassNotFoundException
February 6, 2013 3:25 AM
Answer

Ramgopal Menon

Rank: New Member

Posts: 11

Join Date: January 23, 2013

Recent Posts

Hitoshi Ozawa:
Are you using "Oracle" JRE 1.6. Open JRE won't work.

How about trying the following package?

https://solutionexchange.vmware.com/store/products/bitnami-liferay-stack-6-1-0-1-opensuse-11-3



Thanks Hitoshi! This is news to me.
I'm now creating a new image for OpenSUSE 64-bit to install Liferay all over again.
I will also try BitNami like you suggested.
Ramgopal Menon
RE: Cannot open Liferay portal any more -ClassNotFoundException
February 6, 2013 4:03 AM
Answer

Ramgopal Menon

Rank: New Member

Posts: 11

Join Date: January 23, 2013

Recent Posts

Hi Hitoshi,

I think BitNami does not run with OpenSUSE it only uses Ubunti, which is not my requirement.
Can you help me point out what version of Java is being used by Liferay or tomcat server?
Ramgopal Menon
RE: Cannot open Liferay portal any more -ClassNotFoundException
February 11, 2013 8:10 PM
Answer

Ramgopal Menon

Rank: New Member

Posts: 11

Join Date: January 23, 2013

Recent Posts

Hi everyone!

I still have the same problem with Liferay.
catalina.out still shows java.lang.NoClassDefFoundError: org.apache.tomcat.util.modeler.ManagedBean
Is there anyway you can help?

Thanks!
BR,
Ram