1 Reply Latest reply on Aug 16, 2005 3:46 PM by Jeremy Cowgar

    Deployment of App talking to JBoss

    Jeremy Cowgar Newbie

      What .jar files must I include in my app? I finally got frustrated finding this one, and that one, etc.. and made my app's run target in ant do something like:

      <path id="project.classpath">
       <pathelement location="${build.dir}"/>
       <fileset dir="${jboss.dir}">
       <include name="**/*.jar"/>
       </fileset>
      </path>
      


      Obviously this is not good for startup time nor deployment on client machines. I am simply using JBoss as an AS supporting EJB 3.0 (Session, Entity and Messaging).

      Thanks,

      Jeremy


        • 1. Re: Deployment of App talking to JBoss
          Jeremy Cowgar Newbie

          This works for runtime:

          <path id="runtime.classpath">
           <pathelement location="${build.dir}"/>
           <pathelement location="${jboss.dir}/client/jbossall-client.jar"/>
           <fileset dir="${jboss.dir}/server/${jboss.cfg}">
           <include name="deploy/ejb3.deployer/jboss-ejb3*.jar"/>
           <include name="deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar"/>
           <include name="deploy/jboss-aop-jdk50.deployer/jboss-aspect-library-jdk50.jar"/>
           <include name="lib/jboss-remoting.jar"/>
           <include name="lib/javax.servlet.jar"/>
           </fileset>
          </path>
          


          and this works for compiling:

          <path id="compile.classpath">
           <path refid="runtime.classpath"/>
           <pathelement location="${jboss.dir}/server/${jboss.cfg}/deploy/ejb3.deployer/ejb3-persistence.jar"/>
          </path>
          


          Took me a while to figure this all out and I know I am probably going to run into some other problems in the future, so if anyone cares to comment on this, I would greatly appriciate it!

          Jeremy