5 Replies Latest reply on Feb 27, 2013 3:48 PM by enriquezrene

    Jboss deploy war before ear.

    mnenchev

      Hi,

      I have one ear that contains my ejbs, interfaces, persistence jar and other utils. My client application is war file.

      So i copy the ear and the war in the server/all/deploy and start the server, but when it is starting it tries to deploy the war first and in the war i have ServletContextListener that on contextInitialized() loads some initial data using stateless beans, but the ear is not deployed yet. After the ear is deployed the war is deployed for second time.

      So why jboss tries to deploy the war first and how to make it to deploy the ear and after that the war (I can't put the war in the ear)?

      Regards.