8 Replies Latest reply on Sep 11, 2003 7:06 AM by juha

    How do I make a ejb-jar.jar fil with ant

    markymarc

      Now I have tryed all compination's in ant, to make me ejb-jar.jar fil, but no no.

      I want to put all the files ejb-jar.xml declares and then i got some helper class I what to put in it as well.

      Any one that can help with a simply task that does this.

      Pls help, I'm stuckt

        • 1. Re: How do I make a ejb-jar.jar fil with ant

          What is wrong with one of ant's optional tasks.

          Regards,
          Adrian

          • 2. Re: How do I make a ejb-jar.jar fil with ant
            markymarc

            I have made this target :









            But it do not put the AccountException.class in my .jar fil. It only takes what is in the ejb-jar.xml.
            Thats my problem.

            • 3. Re: How do I make a ejb-jar.jar fil with ant

              includesfile is attribute not an element.



              or something like that.

              You should use if you want it nested.

              Regards,
              Adrian

              • 4. Re: How do I make a ejb-jar.jar fil with ant
                markymarc







                Now I have this target, and it still only puts the 12 files I got in my ejb-jar.xml. It is not putting the AccountException.class in the .jar fil.

                • 5. Re: How do I make a ejb-jar.jar fil with ant

                  Use ant -v so you can see what it is doing or not doing. :-)

                  Regards,
                  Adrian

                  • 6. Re: How do I make a ejb-jar.jar fil with ant
                    markymarc

                    Don that, this is what it says to that target:

                    distEJB
                    ejbjar
                    1 deployment descriptors located.
                    Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN, systemId: http://java.sun.com/dtd/ejb-jar_2_0.dtd) to a local entity
                    dependent class: ejb.HelloLocalHome - /opt/java/fam/build/ejb/ejb/HelloLocalHome.class
                    dependent class: ejb.HelloBean - /opt/java/fam/build/ejb/ejb/HelloBean.class
                    dependent class: ejb.Hello - /opt/java/fam/build/ejb/ejb/Hello.class
                    dependent class: ejb.Account - /opt/java/fam/build/ejb/ejb/Account.class
                    dependent class: ejb.AccountPK - /opt/java/fam/build/ejb/ejb/AccountPK.class
                    dependent class: ejb.LocalAccount - /opt/java/fam/build/ejb/ejb/LocalAccount.class
                    dependent class: ejb.HelloLocal - /opt/java/fam/build/ejb/ejb/HelloLocal.class
                    dependent class: ejb.AccountHome - /opt/java/fam/build/ejb/ejb/AccountHome.class
                    dependent class: ejb.HelloHome - /opt/java/fam/build/ejb/ejb/HelloHome.class
                    dependent class: ejb.LocalAccountHome - /opt/java/fam/build/ejb/ejb/LocalAccountHome.class
                    dependent class: ejb.AccountBean - /opt/java/fam/build/ejb/ejb/AccountBean.class
                    Build needed because /opt/java/fam/build/ejb/ejb/AccountPK.class is out of date
                    building ejb-generic.jar with 12 files
                    adding file 'ejb/AccountPK.class'
                    adding file 'ejb/HelloHome.class'
                    adding file 'ejb/AccountBean.class'
                    adding file 'ejb/LocalAccount.class'
                    adding file 'ejb/Hello.class'
                    adding file 'ejb/AccountHome.class'
                    adding file 'ejb/HelloLocalHome.class'
                    adding file 'ejb/Account.class'
                    adding file 'ejb/HelloLocal.class'
                    adding file 'ejb/HelloBean.class'
                    adding file 'META-INF/ejb-jar.xml'
                    adding file 'ejb/LocalAccountHome.class'

                    • 7. Re: How do I make a ejb-jar.jar fil with ant

                      Although is a it doesn't explicitly say
                      it supports "includesfile".

                      Try using a nested

                      Regards,
                      Adrian

                      • 8. Re: How do I make a ejb-jar.jar fil with ant

                        I've found the plain old task much more useful for ejbs. I do use the and tasks though

                        -- Juha