Oracle9iAS containers for Java EE Standalone Guide-(Packaging and deployment)

Source: Internet
Author: User
Tags root directory
J2ee|oracle| packaged application deployment using Admin.jar as an ear pack
1〉 Packaged Applications
The application directory structure that needs to be packaged is

Root directory/
JSP Program Directory/
web-inf/
classes/
lib/
Xml

In the root directory, package it as a Webj2ee.war file with the Java Jar command.
Such as:
War Package
JAR-CVF Xxx.war./

Create a new temp root directory, create a meta-inf directory in the directory, and create a new application.xml with the following contents:
<?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE application Public '-//sun Microsystems, INC.//DTD Java EE application 1.2//en ' http://java.sun.com/j2ee/dtds/ Application_1_2.dtd ' >
<application>
<display-name>WebJ2EE</display-name>
<description>application description</description>
<module>
<web>
<web-uri>WebJ2EE.war</web-uri>
<context-root></context-root>
</web>
</module>
</application>
Note that there is no comment in the structure.
Its directory structure is:
TEMP
|
|--meta-inf/
|--Application.xml (note case)
At the same time will be a good webj2ee.war bag into the temp, the overall structure is as follows:
TEMP
|
|--meta-inf/
| | | |-application.xml
|
|--Webj2ee.war
In the temp root directory, use the Java Jar command to package it as Webj2ee.ear:
Jar CVFM Appname.ear.
Note that the command finally has. Resolution
Note The complete directory structure is:


2〉 Deployment:
Java-jar Admin.jar ormi://host:port username password
-deploy
-file filename
-deploymentname app_name
-targetpath path/destination

Parameter file followed by the local path and file name of the EAR file
Parameter deploymentname followed by a user-defined WEB application name
Parameter TargetPath followed by the WEB application deployment path, default is/application

Server.xml was changed.
/*********************************** Pay attention to ****************************************
Web-inf\lib new jar file or web-inf\classes under new Add class file if not servlet, but General Java Beans or generic class files are not registered in the Web.xml, and the servlet can not register with an absolute path.
For example:
D:\oc4j\j2ee\home>java-jar Admin.jar ormi://caesar:23791 Admin 199p18m-deploy-
File Webaxis.ear-deploymentname Myfirstapp
**********************************************************************************/




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.