2 Replies Latest reply on Feb 27, 2009 6:02 AM by Daniel Gonzalez

    SAR - EJB dependencies

    antdavidl Newbie

      I have a SAR module (that defines a MBean service) that uses a EJB defined in a different JAR.

      The dependency is declared in a depends-list, but the MBean doesn't gets deployed because it uses a class defined in the EJB jar (a class which contains the values of a local Entity Bean, obtained though a Session Bean, which is the one that the Mbean depends to).

      The error is:

      Caused by: java.lang.NoClassDefFoundError: com/cislsystems/cisp/module/sim/beans/SimDetails
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
       at java.lang.Class.getConstructor0(Class.java:1922)
       at java.lang.Class.getConstructor(Class.java:1019)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:846)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:291)
       at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:318)
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
       ... 61 more



      I understand that the dependencies of the MBean should not access to any external bean until the start lifecyle operation, but the problem is that it even doesn't get loaded, so the dependecies are useless for that.

      Perhaps I have not configured correctly the client JAR file for the EJB, but I'm not sure how to check that.

      Has anyone any idea about how to solve this issue?
      Has anyone in any moment a similar problem?

      Regards, David Lopez