Bugs item #684809, was opened at 2003-02-11 13:39
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=684809&group_id=22866
Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: James Ogura (jogura)
Assigned to: Nobody/Anonymous (nobody)
Summary: Class Loading problem starting JBoss 3.2RC1 as an NT Service
Initial Comment:
I am encountering a java.lang.NoClassDefFoundError when
trying to start the JBoss server (3.2RC1) as an NT service
using wrapper class written in C++ that uses JNI.
The same C++ program is able to start the JBoss 3.0.4
version of JBoss correctly.
I have determined that the problem is related the a
ClassLoader issue however, I do not know how to fix the
problem.
One of the differences between code branches is the
introduction of the
org.jboss.system.server.NoAnnotationURLClassLoader.
When starting the JBoss 3.2RC1 version on the command-
line the ClassLoader that loads the
org.jboss.mx.loading.UnifiedClassLoader is an instance of
org.jboss.system.server.NoAnnotationURLClassLoader that
has the proper URL paths to the jars in the jboss/lib
directory.
However, when starting the JBoss 3.2RC1 version as an NT
service, the ClassLoader is an instance of
sun.misc.Launcher$AppClassLoader which does not have
any of the URL paths to the jars in the jboss/lib thus throws
the exception below.
Does anyone have any idea on why this problem is now
occurring in the 3.2.x branch and does not in the 3.0.x?
STACKTRACE:
13:13:29,070 INFO [Server] Starting JBoss (MX
MicroKernel)...
13:13:29,070 INFO [Server] Release ID: JBoss
[WonderLand] 3.2.0RC1 (build:
CVSTag=JBoss_3_2_0_RC1 date=200301142016)
13:13:29,100 INFO [Server] Home Dir: C:\workspace\RAM-
Eclipse\TEOCO\tools\jboss-3.2.0RC1
13:13:29,100 INFO [Server] Home URL:
file:/C:/workspace/RAM-Eclipse/TEOCO/tools/jboss-
3.2.0RC1/
13:13:29,100 INFO [Server] Library URL:
file:/C:/workspace/RAM-Eclipse/TEOCO/tools/jboss-
3.2.0RC1/lib/
13:13:29,100 INFO [Server] Patch URL: null
13:13:29,100 INFO [Server] Server Name: btp
13:13:29,100 INFO [Server] Server Home Dir:
C:\workspace\RAM-Eclipse\TEOCO\tools\jboss-3.2.0RC1
\server\btp
13:13:29,100 INFO [Server] Server Home URL:
file:/C:/workspace/RAM-Eclipse/TEOCO/tools/jboss-
3.2.0RC1/server/btp/
13:13:29,130 INFO [Server] Server Data Dir:
C:\workspace\RAM-Eclipse\TEOCO\tools\jboss-3.2.0RC1
\server\btp\data
13:13:29,130 INFO [Server] Server Temp Dir:
C:\workspace\RAM-Eclipse\TEOCO\tools\jboss-3.2.0RC1
\server\btp\tmp
13:13:29,130 INFO [Server] Server Config URL:
file:/C:/workspace/RAM-Eclipse/TEOCO/tools/jboss-
3.2.0RC1/server/btp/conf/
13:13:29,130 INFO [Server] Server Library URL:
file:/C:/workspace/RAM-Eclipse/TEOCO/tools/jboss-
3.2.0RC1/server/btp/lib/
13:13:29,130 INFO [Server] Root Deployemnt Filename:
jboss-service.xml
13:13:29,140 INFO [Server] Starting General Purpose
Architecture (GPA)...
13:13:29,591 ERROR [Server] Failed to start
java.lang.NoClassDefFoundError:
EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashM
ap
at org.jboss.mx.loading.UnifiedClassLoader.<init>
(UnifiedClassLoader.java:84)
at
org.jboss.mx.loading.UnifiedClassLoader3.<init>
(UnifiedClassLoader3.java:60)
at
org.jboss.mx.loading.UnifiedClassLoader3.<init>
(UnifiedClassLoader3.java:74)
at
org.jboss.mx.loading.UnifiedLoaderRepository3.newClassLo
ader(UnifiedLoaderRepository3.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke
(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:549)
at
org.jboss.system.server.ServerImpl.initBootLibraries
(ServerImpl.java:451)
at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:274)
at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:230)
at org.jboss.Main.boot(Main.java:155)
at org.jboss.Main$1.run(Main.java:393)
at java.lang.Thread.run(Thread.java:536)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=684809&group_id=22866
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development