1 Reply Latest reply on Sep 29, 2005 6:07 AM by darranl

    Deploy Mbean which is dependent on a jar file in ear file

      I have writtern a MBean, class of which is in a jar called Rjar.jar
      Follwing is structure of my .ear
      R.ear
      REJB.jar
      Rjar.jar
      Rweb.jar

      Class which implemets Mbean interface is in Rjar.jar, but the while deploying corresponding xml, xml gets deployed before this .ear is loaded and hence it throws ClassNotFoundException.
      Following is my xml

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server>



      jboss.j2ee:module=REJB.jar,service=EjbModule



      I have tried various combinations of depends tag. but it is still not working.
      I have usedREJB.jar instead of Rjar.jar (which actually contains class) b'coz JBoss seems to work in this way(Not sure thought)

      Thanks in Advance
      Bhushan

        • 1. Re: Deploy Mbean which is dependent on a jar file in ear fil
          darranl

          You don't say which package your classes are in, the MBean implementation and the MBean interface need to be in the same package. Also the end of the interface should be 'MBean' not 'Mbean'

          Where are you trying to configure your MBean? Have you thought about deploying a sar within your ear that contains the classes and the descriptor?