Oracle9iAS under Java EE application deployment

Source: Internet
Author: User
Tags unique id domain root directory
j2ee|oracle| Program
Oracle 9iAS Java EE application Publishing and configuration
Install Configuration Application Server operating system install Oracle 9iAS 9.0.2 Enterprise Edition
①oracle 9i application Server infrastructure;

Where: Oracle 9iAS infrastructure Instance name:ora9ias_is Password: ora9ias

Installation directory: D:\Ora9is

②oracle 9iAs Application Server (Business Intelligence and Forms);

Where: Oracle 9iAS Instance name:ora9ias Password: ora9ias

Installation directory: D:\Ora9ias
Packaging 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.

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>

Its directory structure is:

temp/

meta-inf/

Application.xml

Webj2ee.war



In the temp root directory, use the Java–jar command to package it as a webj2ee.ear.
Configure Oracle Application serverno.1 into Oracle Enterprise Management Web Console
Access Oracle Enterprise Management Web Console

In IE browser, the URL is generally: http://IP-ADDRESS:1810/

Note: This address is the same as the server IP address where Oracle9iAS is installed.

Username: ias_admin Password: ora9ias (the password that the user entered when installing Ora9ias)


No.2 access to Oracle IAS configuration Interface
IAS is typically selected for configuration. Click on "Name" to enter the configuration screen:

Note: Because the domain and DNS servers are installed on the application server, if the terminal that connects the server is not joined to the domain or does not have DNS set to the application server, it may not be possible to access the interface through the server's host name. You need to use an IP address instead of the host name to access it.


No.3 into the Oracle HTTP server Configuration Interface:
Click on the "HTTP Server" link to enter the configuration interface.


No.4 Configure HTTP Listening ports:


Click on the server Properties link under "Manage" to enter the next interface:



Click the "Add new address/Port" button, will appear blank line, under the Port column to fill in the new port: 80,ip address column is not filled out, the default is the server IP address. Drag the browser vertical scroll bar down.



Click the "Apply" button to save the configuration.



Click the "Yes" button, restart OHS, return to the "Server Properties" interface, click on the "Application Server:d7i_ias.hgapps.hg.local" link above the interface, return No. The IAS configuration interface as shown in 4.





Note: the "Advanced Server Properties" link below the server Properties link is accessible to the profile overview interface, and interested students can study it. One of the httpd.conf files is the most important.






No.5 into the OC4J configuration interface:


Click on the "Oc4j_home" link to enter the OC4J configuration interface.
No.6 Deployment Java application:


Click on the "Deploy ear File" button to enter the first step of deployment-Introduction:



Click "Next" button:



Click the "Browse ..." button to select a Java EE application ear package, preferably on the server, so that the deployment time is lengthened. Fill in the following space with a unique application name, which is equivalent to the unique ID of the application.

After the setup is complete, click "Next" button to start copying the application to the appropriate location, the time may be longer, please wait patiently.



Set the URL for accessing the Java EE application, for example:/webj2eeprogram.

Note: The '/' before the specific URL.

Click the "Finish" button to complete the configuration.



Click on the "Deploy" button to start deploying the application, which may be a long time.

Once deployed, you will automatically return to the Oc4j_home home page, where you should see the application just completed under deployed applications.



Click on the link to deploy the completed application into the configuration interface
No.7 Configuration Java application:


Click on the "Advanced Properties" link under "admin" to enter the profile interface.



Click on the "Data-sources.xml" link,



To configure the data source:

Location= "Same as in application"

Username= "Database user name"

password= "Password"

Url= "Jdbc:oracle:thin: @ip_address: 1521:sid"



When the configuration is complete, click the "Apply" button to save the configuration.
No.8 reboot oc4j:


In the interface, restart the oc4j_home.
No.9 test:
Test your application for successful deployment in IE browser, typically

http://xxx.xxx.xxx.xxx/WebJ2EEProgram/xxxx.jsp


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.