Real-j2ee-Development shopping site (i)

Source: Internet
Author: User
Tags dba ini modify connect win32 create database oracle database
J2ee

Objective

This article through the actual combat to write a shopping website to explain how to use Java EE to build enterprise-class network applications! This article is for the absolute beginner like me, if you are the master will not be laughed at!

One: Build development platform

This article from the actual combat, so on some conceptual issues do not say more, these things can be found from Google, the first to prepare the following guy:

1.oracle
2.weblogic
3.jbuilder

Other: struts-console-2.2 (for Struts View development) Powerbulider (Easy database operation) Dreamweaver (Landscaping foreground page)
The above is what I developed in the company's use of the Dongdong! Development platform for Win2000.

The following is the configuration of my home as an example in detail to build Java-EE development platform. (All the software in the home is from the Internet)

Household machine configuration: P4 Celeron 1.7G,256MB 20GHDD operating system: Windows2000 SP3
Database: Oracle 8i
J2EE Application Platform: WebLogic 6.1 SP2
ejb,jsp,javabean Development: JBuilder 7 WebLogic Edition

The first step, install the configuration Oracle database

Installing Oracle's latest version of 9i nothing, but if you install 8i on a P4 machine, there may be problems, and there will be no response after installation. (P4 Celeron also has this problem) No, my Oracle is 8i (more slim than 9i), if you are a P4 machine and 8i, then do as follows (this is the method I found from the Internet)

(1) Create a temporary directory and copy the Oracle8i installation source program to this directory.
Find Directory
stage\components\oracle.swd.jre\1.1.7.30\1\datafiles\expanded\jre\win32\bin under the Symcjit.dll file, and renamed Symcjit.old. Note that there is also a Symcjit.dll file under the OEM directory to be renamed.
(2) Search to Oraparam.ini file, open it, change row re_memory_options=-mx48m parameter is jre_memory_options=-nojit-ms16m-mx32m
(3) The other parameters remain unchanged.
(4) Execute the Setup.exe file in the Install\win32\setup.exe directory of the local hard disk. A modified parameter file, Oraparam.ini, is invoked at this time.
(5) Select Custom mode when installing, and do not create database.
(7) After the installation of oracle8i, each of the following files in the installation directory needs to be modified accordingly. (No applications are unresponsive if you do not modify the point)

assistants\dbca\dbassist.cl
assistants\dbma\dbmig.cl
assistants\ifa\ifa.cl
bin\elogin.cl
bin\owm.cl
ldap\oidamdin\oidadmin.cl
network\tools\netasst.cl
network\tools\netca.cl
owm\install\instelogin.cl
owm\install\instowm.cl

Use the editing tool to open the above file in turn, add the parameter-nojit, take the dbassist.cl file as an example to indicate as follows:

command= ("C:\Program files\oracle\jre\1.1.7\bin\jrew"-nojit-classpath ...)

Modify the contents of each. cl file listed in the same way.
After the modification of the database under the administrator of the DB Configuration Assistant can create databases, this is a long process, when creating a database to create a global identity, make a good note on the line, Later, configure the database connection. When created, the default DBA user name is system and the password is manager.
In the future, I will continue to talk about Oracle's beginner's experience, to help you get started quickly!

The second step, install the configuration WebLogic 6.1SP2, and connect Oracle

win platform WebLogic Basically can be installed directly, but should be careful not to put it into a directory with spaces such as program Files, or the Chinese directory, the default is C:\bea, by default point next, you can complete the installation, this basic no accident! (The simplest installation operation), the last to remember you set the management password!
I changed the admin name and service name.

For debugging convenience, do not set WebLogic to automatic service startup

Set your management password, enter the console, start the service requires

For convenience, I set the directory to D and change domain to Maxuan,server to max, and then we will configure JDBC to connect to the Oracle database

First Open D:\bea\wlserver6.1\config\maxuan (Maxuan for my name, the default for MyDomain), with a text editor such as: Notepad or EditPlus open startweblogic.cmd, find " Set path= "This line, adding". \bin\oci817_8 ", as my Own is" set path=.\bin; \bin\oci817_8;%path% "

In order to make startup WebLogic do not need to enter the password every time, "set wls_pw=" Enter the installation of the password can be set.

Double-click Startweblogic.cmd or run the start Default server directly in the program to start the WebLogic service (be careful not to turn this window off)
Start WebLogic

And then run the start Default console in the program, enter the console operation, in the dialog box to enter the management user name System, password for your password can enter!

Open the left services, you can see JDBC.

Point open it, click on the following Connection pools, the right will appear configuration items, click Configure a new JDBC Connection pool appears configuration items, under the General tab under the configuration configuration

name: Here I fill in the "mytest";
url fill in as "jdbc:weblogic:oracle";
driver Classname: Fill in as "weblogic.jdbc.oci.Driver";
properties (key=value): Fill in:
user=system
password=manager
server=oradb
The oradb here is the global identity of the database that is created by the Oracle you are installing. User and password I use the default DBA, you can create your own username and password. Click the Apply button to complete.

Click Targets under the Servers label, available under the Tgets-server moved to chosen, and then click the Apply button.

Then configure the following data Sources, on the right with "Configure a new JDBC data Source" to create a new data Sources, where the name and pool name all fill in the above set "MyTest", JNDI Name fill in the "oradb", like the above, click on the targets under the servers tag, the available under the Targets-server to move under chosen, and then click the Apply button.

At this point, the Start Default Server window should see already started Jdriver/oracle!
ps: With WebLogic has been a period of time, but also participated in WebLogic Java training, will be related to the relevant experience on the forum!
Restart Service!



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.