5 Replies Latest reply on Sep 8, 2003 6:42 PM by Craig Johannsen

    Instantiating Service Classes

    Srivatsan Newbie

      Hi,

      I have two service archives, First.sar & Second.sar.
      A Service present in the Second.sar is dependent over a Service present in First.sar and the second service uses a class present in the First.sar, and I have mentioned the dependency in the jboss-service.xml in the Second.sar.

      Now when the Second.sar is deployed before the First.sar, NoClassDefFoundError occurs because the First.sar is not yet deployed.

      I think JBoss instantiates the Service class and then verifies for the existence of dependent services.
      Why is it so?

      Thanks,
      Srivatsan