-
1. Re: How Can i create .WAR or .EAR
tbfmicke Aug 11, 2002 2:53 PM (in response to far56)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 Aug 26, 2002 5:38 PM (in response to far56)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 Aug 26, 2002 5:39 PM (in response to far56)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 Aug 26, 2002 5:40 PM (in response to far56)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