5 Replies Latest reply on May 5, 2009 10:36 PM by pedrosena

    Problems to deploy EAR

    pedrosena

      Hi Guys,


      I'm trying to deploy an ear that does NOT contain a war file, just some ejbs


      Those ejbs will be accessed by multiple applications and they make use of Seam.


      My ear structure is something like that:


      EAR/
        META-INF/
          MANIFEST.MF
          jboss-app.xml
          application.xml
        lib/
           --all my ejb dependencies here, including seam jars(except jboss-seam)
        jboss-seam-2.1.0.jar
        ejb.jar
          META-INF/
            components.xml
          br/ --My classes here
          seam.properties



      The deploy runs fine, but I'm facing two problems:


      1) Seam is not being initialized, my components are not installed neither the Initializing Seam appears
      2) Jboss shows my EJBs as correctly deployed, but when I try to access them I get an JNDI exception telling that it is not bound.


      I would appreciate some advices here.


      Thanks in advance,


      Pedro Sena

        • 1. Re: Problems to deploy EAR
          pedrosena

          Argh, forgot to format my ear structure(where is the edit button?!)


          EAR/
            META-INF/
              jboss-app.xml
              application.xml
            lib/
              --a couple of jars here, including seam modules that I'm using
            jboss-seam-2.1.0.jar
            ejb.jar
              META-INF/
                components.xml
                MANIFEST.MF
              br/ --My classes here
              seam.properties


          • 2. Re: Problems to deploy EAR
            pedrosena

            Is it required to have a war file in my ear structure?


            Thanks

            • 3. Re: Problems to deploy EAR
              gonorrhea

              Well I got that damn deadlock MYSQL exception again so here goes again:


              try this in application.xml:


                 <!-- 
                 <module>
                    <web>
                       <web-uri>BETS.war</web-uri>
                       <context-root>/BETS</context-root>
                    </web>
                 </module>
                  -->



              then ant explode, delete BETS.WAR, start JBOss.  No problems on deployment.

              • 4. Re: Problems to deploy EAR
                swd847

                Seam does not support deployment without a war file.

                • 5. Re: Problems to deploy EAR
                  pedrosena

                  Stuart Douglas wrote on May 05, 2009 22:21:


                  Seam does not support deployment without a war file.


                  Hmmmm


                  I didn't know that.


                  Thanks for the info.


                  One more question:


                  All my ejbs must be in my jar file, is it a problem to put other seam components(POJOs) there?


                  Thanks