0 Replies Latest reply on Apr 30, 2009 1:37 AM by je le

    dependencies between ear at cold start

    je le Newbie

      I'm facing dependencies issues between several ear. When I deploy the ear in a proper order, everything fine, not when jboss starts ; It sends some class loading issues,of course, it wasn't suppose to load this application before some others :-). jboss keeps ignoring my @depend annotation and still deploy in alphabetical order.

      [EARDeployer] Init J2EE application: file:/opt/jboss-4.2.1.GA/server/all/deploy/JackArticle.ear
      10:44:58,794 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=JackArticle-ejb.jar
      java.lang.NoClassDefFoundError: org/portal/media/ejb/JackMediaSessionRemote

      (linux x64, jdk 1.5.0_17, jboss 4.2.1.ga, netbeans 6.5)

      I split my project in several ear ; each has the same structure : an ejb module, with some ejb3 beans, a jmx responsible of initialization (a private jackrabbit repo), a war module with all portlets. There NO cross dependencies :-). (an ejb from article.ear will call an ejb from media.ear, through remote interface. At compilation time, I link article.ear against classes in the media application BUT NOT including media-ejb.jar into it)

      i'm using @depends injection like this one on all ejb and jmx :
      public class JackArticleSessionBean implements JackArticleSessionRemote, JackArticleSessionLocal {

      tried with service=EARDeployment,url='JackMedia.ear' or module=JackMedia-ejb.jar,service=EJB3 instead ; same.

      Isn't a mechanism to set deployment order - beside renaming all ear to fit the 'right' order :-) - ??