2 Replies Latest reply on Aug 20, 2018 2:00 PM by jasonglass

    Getting Class Not Found Exception when trying to access TransportConfiguration class

    smswamy

      Hi,

           I am using TransportConfiguration class in my code (using JBOSS AS 7.1.0). I have added the jboss-client-7.1.0.Final.jar in the BuildPath. It compiles fine. I deployed the MBean (SAR). It throws me Class Not Found Exception for the  TransportConfiguration class.

       

      I feel it says its not able to access this jar file. I created the below module(deployment.module.nested) and added it to my deployment structure file. Still it is not working...Can anyone help me how to set the "jboss-client-7.1.0.Final.jar" in the SAR classpath ?

       

      <jboss-deployment-structure>

                <deployment>

                          <dependencies>

                                    <module name="deployment.module.nested" export="true"/>

                          </dependencies>

                </deployment>

                <module name="deployment.module.nested">

                          <resources>

                                    <resource-root path="jboss-client-7.1.0.Final.jar"/>

                          </resources>

                          <dependencies>

                          </dependencies>

                </module>

      </jboss-deployment-structure>

       

       

       

      13:57:08,342 WARN  [org.jboss.remoting3.jmx.protocol.v1.ServerProxy] (pool-2-thread-1) Unexpected internal error: javax.management.RuntimeErrorException: java.lang.NoClassDefFoundError: org/hornetq/api/core/TransportConfiguration

                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:858) [classes.jar:1.6.0_15]

                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:869) [classes.jar:1.6.0_15]

                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:838) [classes.jar:1.6.0_15]

                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) [classes.jar:1.6.0_15]

                at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:489)

                at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:243)

                at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)

                at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_15]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_15]

                at java.lang.Thread.run(Thread.java:637) [classes.jar:1.6.0_15]

      Caused by: java.lang.NoClassDefFoundError: org/hornetq/api/core/TransportConfiguration