5 Replies Latest reply on Oct 2, 2002 3:39 PM by shya

    Deploying EAR file made with SUN's deploytool

    Volkmar Newbie

      Hi everyone,

      I have finished coding a project which I used to test with SUNs reference implementation server, and I used to make the ear and jar files with deploytool. When I drop the ear file into the deploy directory, JBoss recognizes this and starts deploying the app, but fails on the JNDI names. Unfortunately, I know very little about the XML descriptors, etc. so if you have some pointers on how to do this, please keep this in mind. [I am currently working on this XML 'deficit' but it will take a few days/weeks I am sure...]
      I am currently looking into putting the JNDI names into jboss.xml, but, as I said, I am a bit confused on how to go about this.
      Thanks for any hints you can give me.

      Regards,

      Volkmar

        • 1. Re: Deploying EAR file made with SUN's deploytool
          Adrian Brock Master

          Yes,

          The <jndi-name> needs defining in jboss.xml if it
          is different to <ejb-name>

          You might want to look at xdoclet, it will generate
          the xml from comments in your code.

          Regards,
          Adrian

          • 2. Re: Deploying EAR file made with SUN's deploytool
            Volkmar Newbie

            Thanks Adrian for your tips.

            I just wanted to get two things cleared up:
            1) When I specify the JNDI names for my App in jboss.xml, do I have to create a file called 'jboss.xml' in the deploy directory ? Or do I modify the 'standardjboss.xml' file in the conf directory ?

            2)When I use Xdoclet, do I put XML into the bean code itself ?! And does Xdoclet then examine the Java code along with those XML comments to generate the deployment descriptor(s) ? As you can see, my XML situation is a bit dire :( so have empathy.

            Thanks again,

            Volkmar

            • 3. Re: Deploying EAR file made with SUN's deploytool
              Adrian Brock Master

              1) jboss.xml belongs alongside ejb-jar.xml inside the
              META-INF directory of your jar.

              2) For xdoclet you use javadocs comments
              /**
              * @ejb:bean name="test/Test"
              * type="Stateless"
              * transaction-type="Container"
              * jndi-name="ejb/test"
              * @ejb:transaction type="Required"
              */
              public class TestBean
              implements SessionBean
              ...

              Have you seen the quickstart guide and template project
              on the sourceforge download page?

              Regards,
              Adrian

              • 4. Re: Deploying EAR file made with SUN's deploytool
                Volkmar Newbie

                Hello again Adrian,

                Thanks for the good example. Now I have an idea of where it is all going... I downloaded some PDF file on getting started with JBoss a couple of weeks ago, but haven't checked since, because I thought that was the only document available (could not get the book preview pdf to download and gave up on that). But I shall take a peek right now and see what's there.

                P.S. Where in Blighty r u (Southampton here)?

                Regards,

                Volkmar

                • 5. Re: Deploying EAR file made with SUN's deploytool
                  shya Newbie

                  Hi Volkmar,

                  Are you able to deply ear file generated with sun deploytool. I am facing the same problem. Please can you help me by telling the exact changes I need.

                  Thanks,

                  Regards

                  shy