If my custom service extends the org.jboss.system.ServiceMBeanSupport class
nothing works. 
test case:
   1- myClass extends ServiceMBeanSupport{}
   2- i changed the jms-service.xml in %jboss_installation%\server\default\deploy
      to include the bellow
       <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
                      name="jboss.mq:service=JMSProviderLoader,name=JBossMQProvider">
              <attribute name="ProviderName">MDBLoader</attribute>
              <attribute name="ProviderAdapterClass">
                       jms.provider.MDBLoader</attribute>
              <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
              <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute> 
       </mbean>
    3- i changed the standardjboss.xml in %jboss_installation%\server\default\config

         <container-invoker-conf>
                               
<JMSProviderAdapterJNDI>MDBLoader</JMSProviderAdapterJNDI>
                                <ServerSessionPoolFactoryJNDI>StdJMSPool               
      
                          </ServerSessionPoolFactoryJNDI>
                                <MaximumSize>15</MaximumSize>
                                <MaxMessages>1</MaxMessages>
                                <Optimized>True</Optimized>
         </container-invoker-conf>
I ALWAYS get the NoClassDefFoundError when i run jboss
/server/jboss/jboss3.0/jboss-3.0.1RC1/server/default/deploy/jms-service.xml
java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBeanSupport
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:512)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
6)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:57)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:196)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:189)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:302)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:302)
        at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClass
Loader.java:234)
        at org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromClassLoader
(UnifiedLoaderRepository.java:472)
        at org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderR
epository.java:173)
        at org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.
java:283)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:325)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:135)
        at org.jboss.jms.jndi.JMSProviderLoader.startService(JMSProviderLoader.j
ava:176)
        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
64)

This message contains confidential information and is intended only for the named 
individual and may not be disseminated without prior permission.  If you are not the 
named addressee, you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this message in error and 
delete this e-message from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, destroyed, 
delayed in transmission, incomplete, or may contain viruses. The sender therefore does 
not accept liability for any errors or omissions in the contents of this Message which 
arise as a result of e-mail transmission.  If verification is required please request 
a hard-copy version. This message is provided for informational purposes and should 
not be construed as a solicitation or offer to buy or sell any software or services.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com
________________________________________________________________________


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to