<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Classloader problem - NoClassDefFoundError - JBoss class ServiceMBean</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#008080><FONT size=2><SPAN
class=277182717-14032008><FONT color=#0000ff>Some update here -
</FONT></SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#008080><FONT size=2><SPAN
class=277182717-14032008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT><FONT color=#0000ff size=2><SPAN
class=277182717-14032008>I am able to move forward after we removed "<FONT
size=2>jsptl-jx.tld" from all tag libs.</FONT></SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT><FONT color=#0000ff size=2><SPAN
class=277182717-14032008>That is very strange. Why were jboss classes were
showing up as NoClassDefs..</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT><FONT color=#0000ff size=2><SPAN
class=277182717-14032008>Does somebody have an explanation. I read jboss
classloader but I can not correlate.</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT><FONT color=#0000ff size=2><SPAN
class=277182717-14032008>Thanks</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT><FONT color=#0000ff size=2><SPAN
class=277182717-14032008>Tapan</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT><FONT color=#0000ff size=2><SPAN
class=277182717-14032008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT><FONT color=#0000ff size=2><SPAN
class=277182717-14032008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#008080><FONT size=2><SPAN
class=277182717-14032008> </SPAN>I want to instantiate my
service.</FONT></FONT> <BR><FONT color=#008080 size=2>In my service file mbean
entry is as follows - </FONT></DIV>
<P><FONT face="Courier New" size=2> <mbean
code="com.integral.jmsx.jndi.jboss.JBossLoader"
name="sonic.mq:service=JNDILoader"></FONT> <BR><FONT face="Courier New"
size=2> <attribute
name="JNDIInitClassName">com.integral.jmsx.jndi.JmsJndiInit</attribute></FONT>
<BR>
<FONT face="Courier New"
size=2><depends>jboss:service=Naming</depends></FONT>
<BR>
<FONT face="Courier New"
size=2><depends>jboss.ejb:service=EJBDeployer</depends></FONT>
<BR>
<FONT face="Courier New"
size=2><depends>jboss.jca:service=RARDeployer</depends></FONT>
<BR> <FONT face="Courier New"
size=2></mbean></FONT> </P>
<P><FONT face=Verdana color=#008080 size=2>I put some debugs in ServiceCreator
and ServiceConfigurator files and I find that jboss files themselves are not in
classpath!!</FONT></P>
<P><FONT face=Verdana color=#008080 size=2>(Please see the following log) What
might be happening here.</FONT> <BR><FONT face=Verdana color=#008080 size=2>By
the way there is no problem in the code - it is working in some other code
branch.</FONT> <BR><FONT face=Verdana color=#008080 size=2>I am trying to port
the code to other jboss instance.</FONT> <BR><FONT face=Verdana color=#008080
size=2>The jboss startup shows that all files from jboss.home/lib folder (and
many more from my own server instance/lib folder ) have got loaded</FONT></P>
<P><FONT face=Verdana color=#008080 size=2>Also there are other "service files"
which I see have successfully got deployed.</FONT> </P><BR><BR><BR>
<P><FONT face=Courier size=2>00:28:05,542 -DEBUG [Integral5] Watching new file:
</FONT><A
href="file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xml"><U><FONT
face=Courier color=#0000ff
size=2>file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xml</FONT></U></A></P>
<P><FONT face=Courier size=2>00:28:05,548 -DEBUG [Integral5] create step for
deployment </FONT><A
href="file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xml"><U><FONT
face=Courier color=#0000ff
size=2>file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xml</FONT></U></A></P>
<P><FONT face=Courier size=2>00:28:05,553 -DEBUG [Integral5] Deploying SAR,
create step: url </FONT><A
href="file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xml"><U><FONT
face=Courier color=#0000ff
size=2>file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xml</FONT></U></A></P>
<P><FONT face=Courier size=2>00:28:05,557 -DEBUG [Integral5] Registering service
UCL=jmx.loading:UCL=d647d8</FONT> <BR><FONT face=Courier size=2> MBEANS
ARE []</FONT> <BR><FONT face=Courier size=2>Inside internal install</FONT>
<BR><FONT face=Courier size=2>Before service creator . install</FONT> <BR><FONT
face=Courier size=2> Code in Service Creator!!!
com.integral.jmsx.jndi.jboss.JBossLoader</FONT> <BR><FONT face=Courier
size=2> constructor isss
org.jboss.system.ServiceCreator$ConstructorInfo@6cef4</FONT> <BR><FONT
face=Courier size=2>00:28:05,594 -DEBUG [Integral5] About to create bean:
sonic.mq:service=JNDILoader with code:
com.integral.jmsx.jndi.jboss.JBossLoader</FONT></P>
<P><FONT face=Courier size=2>javax.management.RuntimeErrorException:
instantiating com.integral.jmsx.jndi.jboss.JBossLoader failed:
java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBean</FONT></P>
<P><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBeanServerImpl.java:1306)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1237)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.system.ServiceCreator.install(ServiceCreator.java:164)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:452)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:172)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.system.ServiceController.install(ServiceController.java:226)</FONT>
<BR><FONT face=Courier size=2> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</FONT> <BR><FONT
face=Courier size=2> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</FONT>
<BR><FONT face=Courier size=2> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</FONT>
<BR><FONT face=Courier size=2> at
java.lang.reflect.Method.invoke(Method.java:585)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</FONT> <BR><FONT
face=Courier size=2> at
$Proxy4.install(Unknown Source)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)</FONT> <BR><FONT
face=Courier size=2> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</FONT> <BR><FONT
face=Courier size=2> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</FONT>
<BR><FONT face=Courier size=2> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</FONT>
<BR><FONT face=Courier size=2> at
java.lang.reflect.Method.invoke(Method.java:585)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</FONT> <BR><FONT
face=Courier size=2> at
$Proxy6.deploy(Unknown Source)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)</FONT></P>
<P><FONT face=Courier size=2> at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)</FONT>
<BR><FONT face=Courier size=2> at
sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)</FONT> <BR><FONT
face=Courier size=2> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</FONT>
<BR><FONT face=Courier size=2> at
java.lang.reflect.Method.invoke(Method.java:585)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)</FONT>
<BR><FONT face=Courier size=2> at
$Proxy0.start(Unknown Source)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.system.ServiceController.start(ServiceController.java:417)</FONT>
<BR><FONT face=Courier size=2> at
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)</FONT> <BR><FONT
face=Courier size=2> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</FONT>
<BR><FONT face=Courier size=2> at
java.lang.reflect.Method.invoke(Method.java:585)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</FONT> <BR><FONT
face=Courier size=2> at
$Proxy4.start(Unknown Source)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)</FONT> <BR><FONT
face=Courier size=2> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</FONT> <BR><FONT
face=Courier size=2> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</FONT>
<BR><FONT face=Courier size=2> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</FONT>
<BR><FONT face=Courier size=2> at
java.lang.reflect.Method.invoke(Method.java:585)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</FONT>
<BR><FONT face=Courier size=2> at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</FONT> <BR><FONT
face=Courier size=2> at
$Proxy5.deploy(Unknown Source)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:483)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:363)</FONT> <BR><FONT
face=Courier size=2> at
org.jboss.Main.boot(Main.java:200)</FONT> <BR><FONT face=Courier
size=2> at
org.jboss.Main$1.run(Main.java:490)</FONT> <BR><FONT face=Courier
size=2> at
java.lang.Thread.run(Thread.java:595)</FONT> </P><BR><BR><BR>
<P align=center><B><FONT face=Arial color=#000080 size=1>NOTICE</FONT></B></P>
<P><FONT face=Arial color=#000080 size=1>This e-mail message and any
attachments, which may contain confidential information, are to be viewed solely
by the intended recipient of Integral Development Corp. If the reader of
this message is not the intended recipient, you are hereby notified that any
use, dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this message in error, please immediately
notify the sender and delete the mail and all
attachments.</FONT></P><BR></BODY></HTML>