Failed to boot JBoss: javax.management.InstanceNotFoundExcep
spowens2 May 3, 2005 4:12 PMI have done a search throughout the web to find resolution to this problem and discovered that I am not alone in my dilema.
When I try to start Jboss the startup fails with a most cryptic error. However, it would appear that the WebLogic folks had a similar problem with their stuff failing in the same sun module:
Here is the Web Logic CR:
++++++++++++++++++++++++++++++++++
In WebLogic Server 6.1 SP03, an InstanceNotFoundException occurred when creating a JMS Topic at runtime in a cluster. The Topic was created with JMSHelper.createPermanentTopicAsync in a startup class targeted to a Managed Server in a cluster. After the Topic was created, when the user clicked Destination Link for the JMS Server in the Administration Console, this message was displayed :
java.lang.reflect.UndeclaredThrowableException: javax.management.InstanceNotFoundException: mydomain:Name=testTopic12,Type=JMSTopic at com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:1680) at com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1152) at weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:254) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:187)
+++++ End WebLogic CR +++++++++++++++++++++++++++++
Here is the output from my Jboss startup:
+++++Begin Jboss startup +++++++++++++++++++++++++++
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: C:\Sistare\JBoss\jboss-4.0.1sp1\bin\\..
.
JAVA: C:\j2sdk1.4.2_07\bin\java
.
JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
.
CLASSPATH: C:\j2sdk1.4.2_07\lib\tools.jar;C:\Sistare\JBoss\jboss-4.0.1sp1\bin\
\run.jar;C:\Program Files\Vignette\V7\7.3\lib\sdk\vgn-appsvcs-cda.jar;C:\Program
Files\Vignette\V7\7.3\lib\sdk\thirdparty-combined.jar
.
===============================================================================
.
14:34:00,890 INFO [Server] Starting JBoss (MX MicroKernel)...
14:34:00,890 INFO [Server] Release ID: JBoss [Zion] 4.0.1sp1 (build: CVSTag=JBo
ss_4_0_1_SP1 date=200502160314)
14:34:00,890 INFO [Server] Home Dir: C:\Sistare\JBoss\jboss-4.0.1sp1
14:34:00,890 INFO [Server] Home URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/
14:34:00,890 INFO [Server] Library URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/l
ib/
14:34:00,890 INFO [Server] Patch URL: null
14:34:00,890 INFO [Server] Server Name: default
14:34:00,890 INFO [Server] Server Home Dir: C:\Sistare\JBoss\jboss-4.0.1sp1\ser
ver\default
14:34:00,890 INFO [Server] Server Home URL: file:/C:/Sistare/JBoss/jboss-4.0.1s
p1/server/default/
14:34:00,890 INFO [Server] Server Data Dir: C:\Sistare\JBoss\jboss-4.0.1sp1\ser
ver\default\data
14:34:00,890 INFO [Server] Server Temp Dir: C:\Sistare\JBoss\jboss-4.0.1sp1\ser
ver\default\tmp
14:34:00,890 INFO [Server] Server Config URL: file:/C:/Sistare/JBoss/jboss-4.0.
1sp1/server/default/conf/
14:34:00,890 INFO [Server] Server Library URL: file:/C:/Sistare/JBoss/jboss-4.0
.1sp1/server/default/lib/
14:34:00,890 INFO [Server] Root Deployment Filename: jboss-service.xml
14:34:00,906 INFO [Server] Starting General Purpose Architecture (GPA)...
Failed to boot JBoss:
javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepos
itory,name=Default
at com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:
1678)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
22)
at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:
562)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:357)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:534)
Press any key to continue . . .
++++++++++++++End Jboss Startup +++++++++++
++++++++++++ Begin Joboss Startup error log ++++++++++
14:34:00,890 INFO [Server] Starting JBoss (MX MicroKernel)...
14:34:00,890 INFO [Server] Release ID: JBoss [Zion] 4.0.1sp1 (build: CVSTag=JBoss_4_0_1_SP1 date=200502160314)
14:34:00,890 DEBUG [Server] Using config: org.jboss.system.server.ServerConfigImpl@1c1ea29
14:34:00,890 DEBUG [Server] Server type: class org.jboss.system.server.ServerImpl
14:34:00,890 INFO [Server] Home Dir: C:\Sistare\JBoss\jboss-4.0.1sp1
14:34:00,890 INFO [Server] Home URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/
14:34:00,890 INFO [Server] Library URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/lib/
14:34:00,890 INFO [Server] Patch URL: null
14:34:00,890 INFO [Server] Server Name: default
14:34:00,890 INFO [Server] Server Home Dir: C:\Sistare\JBoss\jboss-4.0.1sp1\server\default
14:34:00,890 INFO [Server] Server Home URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/server/default/
14:34:00,890 INFO [Server] Server Data Dir: C:\Sistare\JBoss\jboss-4.0.1sp1\server\default\data
14:34:00,890 INFO [Server] Server Temp Dir: C:\Sistare\JBoss\jboss-4.0.1sp1\server\default\tmp
14:34:00,890 INFO [Server] Server Config URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/server/default/conf/
14:34:00,890 INFO [Server] Server Library URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/server/default/lib/
14:34:00,890 INFO [Server] Root Deployment Filename: jboss-service.xml
14:34:00,906 INFO [Server] Starting General Purpose Architecture (GPA)...
14:34:00,953 DEBUG [Server] Created MBeanServer: com.sun.management.jmx.MBeanServerImpl@17471e0
14:34:00,953 DEBUG [Server] Boot url list: [file:/C:/Sistare/JBoss/jboss-4.0.1sp1/server/default/conf/]
14:34:00,953 DEBUG [Server] Creating loader for URL: file:/C:/Sistare/JBoss/jboss-4.0.1sp1/server/default/conf/
14:34:00,953 DEBUG [Server] Failed to start
javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepository,name=Default
at com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:1678)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:562)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:357)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:534)
++++++++++ End Log file +++++++++++++
One thing is for sure this is not just me having this problem, and it has been around since at Least August 2004 and nobody seems to have come up with a solution. Must be embarassing for the Jboss team.