4 Replies Latest reply on Aug 26, 2002 5:40 PM by mkithany

    How Can i create .WAR or .EAR

    far56

      Hi everybody,

      I wanna how I create .war or .ear, and where I put this files.

      Thank's.

        • 1. Re: How Can i create .WAR or .EAR
          tbfmicke

          Put them in the <jboss_home>/server/default directory. (or another configdirectory if you are using that). (Assuming you are using the 3.0 series)

          For the structure of those files (and a lot of other things) find documentation and tutorials at http://java.sun.com/j2ee/docs.html.

          For how to build them easily check out ant.
          http://jakarta.apache.org/ant/

          For more on JBoss specific stuff go to http://sourceforge.net/project/showfiles.php?group_id=22866 and download the quick start.

          Regards

          • 2. Re: How Can i create .WAR or .EAR
            mkithany

            Hi Lima Franscisco

            Say you have foo.jsp file. Follow these steps to create WAR & EAR files
            1)jar -cvfM foo.war foo.jsp (this will create WAR file)
            2)Create application.xml file in META-INF directory as

            <display-name>HELLO</display-name>


            <web-uri>foo.war</web-uri>
            <context-root>/foo</context-root>




            3)jar -cvfM foo.ear foo.war META-INF (this will create EAR file)

            4)Make sure this EAR file is in JBOSS_HOME/server/default/deploy directory.
            5)Run your Server
            6)Test it by using following URL
            http://localhost:8080/foo/foo.jsp
            7)Voila - its that simple.

            Hope this information helps.

            Manoj G. Kithany
            manojkithany@yahoo.com

            • 3. Re: How Can i create .WAR or .EAR
              mkithany

              Hi Lima Franscisco

              Say you have foo.jsp file. Follow these steps to create WAR & EAR files
              1)jar -cvfM foo.war foo.jsp (this will create WAR file)
              2)Create application.xml file in META-INF directory as

              <display-name>HELLO</display-name>


              <web-uri>foo.war</web-uri>
              <context-root>/foo</context-root>




              3)jar -cvfM foo.ear foo.war META-INF (this will create EAR file)

              4)Make sure this EAR file is in JBOSS_HOME/server/default/deploy directory.
              5)Run your Server
              6)Test it by using following URL
              http://localhost:8080/foo/foo.jsp
              7)Voila - its that simple.

              Hope this information helps.

              Manoj G. Kithany
              manojkithany@yahoo.com

              • 4. Re: How Can i create .WAR or .EAR
                mkithany

                Hi Lima Franscisco

                Say you have foo.jsp file. Follow these steps to create WAR & EAR files
                1)jar -cvfM foo.war foo.jsp (this will create WAR file)
                2)Create application.xml file in META-INF directory as

                <display-name>HELLO</display-name>


                <web-uri>foo.war</web-uri>
                <context-root>/foo</context-root>




                3)jar -cvfM foo.ear foo.war META-INF (this will create EAR file)

                4)Make sure this EAR file is in JBOSS_HOME/server/default/deploy directory.
                5)Run your Server
                6)Test it by using following URL
                http://localhost:8080/foo/foo.jsp
                7)Voila - its that simple.

                Hope this information helps.

                Manoj G. Kithany
                manojkithany@yahoo.com