How to make a ear file?
I have some files in following directory:
The structure of web archieves files 'jsps.war' is follows:
main.jsp
WEB-INF/
web.xml
weblogic.xml
classes/
factory/
order.class
......
model.class
I have a another files,like follows;
META-INF/
application.xml
application.xml is following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
<application>
<display-name></display-name>
<module>
<ejb>ejbs.jar</ejb>
</module>
<module>
<web>
<web-uri>jsps.war</web-uri>
<context-root>factory</context-root>
</web>
</module>
</application>
I know I can use follows commands to make a jar file:
jar cvf ejbs.jar *.jsp /WEB-INF/*.*
But I don't know how to make a war file and then make a ear file?Which command I can use?
Thanks in advance!
|