This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

OK I give up: ClassNotFound error for modelmbean

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not even trying to start a web app, just the server.
So everything was fine until I clicked the back button on a the second JIRA config window. After that I couldn't get anything to work. Now, after reinstalling tomcat from a fresh download, I get the following in catalina.out:
Apr 14, 2010 9:18:01 p.m. org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener
at java.lang.Class.initializeClass(libgcj.so.10)
at java.lang.Class.newInstance(libgcj.so.10)
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 gnu.xml.stream.SAXParser.parse(libgcj.so.10)
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.10)
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:/usr/local/apache-tomcat-5.5.28/server/classes/,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-jkstatus-ant.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-util.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-optional.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/commons-modeler-2.0.1.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/servlets-default.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-ant.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-apr.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-ajp.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-ant-jmx.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/servlets-webdav.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-coyote.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-storeconfig.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-cluster.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-http.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/servlets-invoker.jar], parent=org.apache.catalina.loader.StandardClassLoader{urls=[file:/usr/local/apache-tomcat-5.5.28/common/classes/,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-ja.jar,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-en.jar,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-es.jar,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-fr.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jsp-api.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jasper-runtime.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jasper-compiler.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/commons-el.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/naming-factory-dbcp.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/servlet-api.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/naming-resources.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jasper-compiler-jdt.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/naming-factory.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/local/apache-tomcat-5.5.28/bin/bootstrap.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}}
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
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 java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
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 java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.Class.forName(libgcj.so.10)
at java.lang.Class.initializeClass(libgcj.so.10)
...11 more
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(libgcj.so.10)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener
at java.lang.Class.initializeClass(libgcj.so.10)
at java.lang.Class.newInstance(libgcj.so.10)
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 gnu.xml.stream.SAXParser.parse(libgcj.so.10)
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.10)
...2 more
Caused by: java.lang.ClassNotFoundException: javax.management.modelmbean.ModelMBean not found in org.apache.catalina.loader.StandardClassLoader{urls=[file:/usr/local/apache-tomcat-5.5.28/server/classes/,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-jkstatus-ant.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-util.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-optional.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/commons-modeler-2.0.1.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/servlets-default.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-ant.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-apr.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-ajp.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-ant-jmx.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/servlets-webdav.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-coyote.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-storeconfig.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina-cluster.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/catalina.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/tomcat-http.jar,file:/usr/local/apache-tomcat-5.5.28/server/lib/servlets-invoker.jar], parent=org.apache.catalina.loader.StandardClassLoader{urls=[file:/usr/local/apache-tomcat-5.5.28/common/classes/,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-ja.jar,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-en.jar,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-es.jar,file:/usr/local/apache-tomcat-5.5.28/common/i18n/tomcat-i18n-fr.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jsp-api.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jasper-runtime.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jasper-compiler.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/commons-el.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/naming-factory-dbcp.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/servlet-api.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/naming-resources.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/jasper-compiler-jdt.jar,file:/usr/local/apache-tomcat-5.5.28/common/lib/naming-factory.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/local/apache-tomcat-5.5.28/bin/bootstrap.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}}
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
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 java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
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 java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.Class.forName(libgcj.so.10)
at java.lang.Class.initializeClass(libgcj.so.10)
...11 more

Here is my env
LESSKEY=/etc/lesskey.bin
MANPATH=/usr/share/man:/usr/local/man
NNTPSERVER=news
ORBIT_SOCKETDIR=/tmp/orbit-root
HOSTNAME=linux-y4lg
XKEYSYMDB=/usr/share/X11/XKeysymDB
GPG_AGENT_INFO=/tmp/seahorse-fsfEjd/S.gpg-agent:9221:1
SHELL=/bin/bash
HOST=linux-y4lg
TERM=xterm
HISTSIZE=1000
PROFILEREAD=true
XDG_SESSION_COOKIE=34218fbf2b09493b6a2222c24aef434d-1271292845.993709-1874978072
TMPDIR=/tmp
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
WINDOWID=27262980
MORE=-sl
OLDPWD=/usr/local/apache-tomcat-5.5.28
XSESSION_IS_UP=yes
JRE_HOME=/usr/lib/jvm/java-1.5.0-gcj-4.4-1.5.0.0/jre
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.xz=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
XNLSPATH=/usr/share/X11/nls
ENV=/etc/bash.bashrc
HOSTTYPE=i386
SSH_AUTH_SOCK=/tmp/keyring-vUh0Jg/socket.ssh
GNOME_KEYRING_SOCKET=/tmp/keyring-vUh0Jg/socket
USERNAME=root
SESSION_MANAGER=local/linux-y4lg:@/tmp/.ICE-unix/9175,unix/linux-y4lg:/tmp/.ICE-unix/9175
FROM_HEADER=
PAGER=less
CSHEDIT=emacs
XDG_CONFIG_DIRS=/etc/xdg
MINICOM=-c on
PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
DESKTOP_SESSION=gnome
MAIL=/var/spool/mail/root
CPU=i686
QT_IM_MODULE=xim
JAVA_BINDIR=/usr/lib/jvm/java/bin
INPUTRC=/etc/inputrc
PWD=/usr/local/apache-tomcat-5.5.28/conf
JAVA_HOME=/usr/lib/jvm/java-1.5.0-gcj-4.4-1.5.0.0
XMODIFIERS=@im=local
LANG=en_US.UTF-8
GNOME_KEYRING_PID=9162
GDM_LANG=en_US.UTF-8
PYTHONSTARTUP=/etc/pythonstart
SDK_HOME=/usr/lib/jvm/java
GDMSESSION=gnome
ICEAUTHORITY=/root/.ICEauthority
QT_SYSTEM_DIR=/usr/share/desktop-data
JDK_HOME=/usr/lib/jvm/java
HOME=/root
SHLVL=1
SDL_AUDIODRIVER=pulse
LESS_ADVANCED_PREPROCESSOR=no
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
OSTYPE=linux
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
XCURSOR_THEME=DMZ
LS_OPTIONS=-A -N --color=tty -T 0
WINDOWMANAGER=/usr/bin/gnome
LESS=-M -I
LOGNAME=root
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
MACHTYPE=i686-suse-linux
XDG_DATA_DIRS=/usr/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-iqYtgnmSSj,guid=4f088814b2646cf46a65403f4bc663ae
LESSOPEN=lessopen.sh %s
DISPLAY=:1.0
XAUTHLOCALHOSTNAME=localhost
GTK_IM_MODULE=cedilla
LESSCLOSE=lessclose.sh %s %s
QT_IM_SWITCHER=imsw-multi
G_BROKEN_FILENAMES=1
XAUTHORITY=/var/run/gdm/auth-for-root-o3JctP/database
COLORTERM=gnome-terminal
JAVA_ROOT=/usr/lib/jvm/java
_=/usr/bin/env


The java and whatnot is sun 1.5.0_22 for gcj. That's all I know. It worked yesterday, and today, nadda.

Any clues as to why this class has suddenly disappeared, according to the line: java.lang.ClassNotFoundException: javax.management.modelmbean.ModelMBean not found in org.apache.catalina.loader.StandardClassLoader{urls=[file:/usr/local/apach?

Thanks,
Jeff
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Jeff,

I have never seen gjc working as a replacement for a complete Sun JVM. I would remove gjc and try with the full Sun JVM instead.

Kees Jan
 
Jeff Haydt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kees Jan Koster wrote:Dear Jeff,

I have never seen gjc working as a replacement for a complete Sun JVM. I would remove gjc and try with the full Sun JVM instead.

Kees Jan



Thanks Kees Jan,
Unfortunately, this all happened as a result of installing a .rpm.bin file that I downloaded from the Oracle/Sun site. The java structure on SuSE linux is less than clear to me, as the jdk and jre live in a place called /usr/lib/jvm/<java release>. For the 1.6.0-OpenJDK that ships with SuSE 11, there is a link created from /etc/alternatives/java to /usr/lib/jmv/jre-1.6.0-openjdk/bin/java, which always ensure that java envoked from the command line gives you this version of the compiler. I'm not sure if that is what is causing this to fail. When I use the build.sh file for JIRA, it is not finding the 1.5 jdk. Again, not sure why it is behaving this way.

All that is to say "I don't know what-the-hoof is going here, but I'm frustrated up to my eyeballs trying alternatives.

When I tried to uninstall the 1.5 jdk using rpm, it told me the package does not exist. It doesn't show up in software installer/browser. When I try install it again, it says that the package is already installed... so I'm completely lost.

Cheers,
Jeff
 
Saloon Keeper
Posts: 28223
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I hate the "alternatives" system. It's confusing in general, and doubly confusing to Java. So I just overrule it by setting JAVA_HOME, and adding $JAVA_HOME/bin to the PATH.

Gcj is hopeless. I just got done deploying a web service. Gcj can't do that either, so I had to go back and do what I just mentioned to get the deployment to work.

When you install Sun's Java RPM, their convention is to install the whole thing in /usr/java/xxxxxxx, where xxxxxxx is the name of the version of Java that's being installed. That way you can keep multiple JVMs (for example, 1.5 and 1.6) on the same box and let the apps determine which one they want to use (again, by doing what I just mentioned).
 
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic