1 Reply Latest reply on Mar 19, 2013 5:53 AM by Nicklas Karlsson

    Custom Module - NoclassDef Found error

    k koushik Newbie

      Hi,

      I defined a custommodule to use in my application.

      One of the class in this cusome module has reference to  javax.management.MBeanServerInvocationHandler

      when i try to run my application whic has dependency on this module i get  classnotfound exception

       

      Caused by: java.lang.NoClassDefFoundError: javax/management/MBeanServerInvocationHandler

      Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServerInvocationHandler from [Module "cisco.dcnm:main" from local module loader @19484a05 (roots: C:\work\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

       

      As i see javax.management.MBeanServerInvocationHandler is the jre class which is present in rt.jar

       

      how ever if refer to the MBeanServerInvocationHandler directly from my ejb i am not getting any exception

       

      Can anyone suggest me how to getrid of this error.