Eclipse + WebLogic J2EE development environment Configuration

Source: Internet
Author: User

I,
Description

During large-scale J2EE project development, middleware such as Weblogic is often used as the application server to facilitate database connection pools, tuxedo services, and server cluster configuration.
However, eclipse does not have WebLogic by default for server support. Therefore, you need to manually install the configuration. I personally do not like the huge and inflexibility of myeclipse.
Describe my ide configuration.

II,
Oracle Enterprise pack for eclipse
(
Oepe
) Installation

To install the environment, download the following software support:

1. eclipse3.3 and later versions. If you need a WTP package, you can directly download the package-ready version from the eclipse official website. Http://www.eclipse.org/downloads/
Page (Galileo has been released)

 


2. Oracle Enterprise pack
Eclipse plug-in. This plug-in is available for Oracle and can also be downloaded from the official website. The current release version downloads oepe-Ganymede-
1.0.0.20080808135653.zip. After testing, the installation is correct. Oepe-Ganymede-
11.1.1.1.0.200903091141.zip installation error. Link: (the latest version is 1.2)

Http://www.oracle.com/technology/software/products/oepe/oepe_1.html

Installation steps:

1. decompress the downloaded oepe plug-in to a separate folder. The directory structure is as follows:

 

2. Run eclipse, help-> Software Updates...

 

3. Click "add site ..."

4. Click "Local ..."

5. Select the extracted independent folder in step 1 and click "OK" in the "add site" dialog box. If your directory structure is correct, the software updates and add-ons dialog box displays the plug-ins in the folder you added:

6. Select the plug-in you want to install and click "Install ..."

7. After the dependency is calculated, eclipse will remind you to confirm/accept the relevant protocols and the plug-in you are about to install.

8. After installation is complete, restart eclipse.

After the installation is successful, configure the local WebLogic for Eclipse:

1. Window-> preferences

2. Click Server> runtime envirenments in the list on the left.

3. Click Add on the left to add a service running environment.

4. Select BEA WebLogic Server v8.1 under BEA Systems, Inc.

5. Next Step

6. Specify the JRE and Bea paths required to run the server.

Note: If you configure weblogic10, it will be different. For example, when you select WebLogic home, you need to select D:/BEA/wlserver_10.3. Remember.

 

III,
Create a project


The local machine starts the J2EE project. The project itself is different from the common Java project.
Previously, the project used in eclipse is a Java project, and a new project needs to be created, just to allow eclipse to configure the project to WebLogic, because the Java Project
In the Elipse environment, it is not allowed to be configured for WebLogic by default.

Note: Before performing this step, make sure that your work (project code) has been submitted
CVS
.

The procedure is as follows:

1. File-> New-> project...

2. Select dynamic web project

3. Fill in the relevant project information. Note that elipse3.1 and later may not support creating a project with the same name as the project in the workspace and cannot be automatically overwritten, it is best to change the name of the folder where the original project is located so that the original project name will not be consistent with the previous one, and it will be consistent with CVS.

4. Next, enter the context root, content directory, and SRC paths. Note: The first parameter is the running URI configured for the web project. For example, if you enter test, HTTP is used by default when the project is started: // localhost/test/
Access your project. This setting can be modified in the project properties. The second parameter is the web module name/path. For our current project, enter "Web "; the third is the JAVA Source Path.

5. Finish.

After the project is created, the original project file is copied. Note that because the project uses cvs for version management, a file named "CVS" is generated under each level directory of the project.
Folder. Therefore, you can back up the original project folder and delete the "CVS" folder in the original project folder/subdirectories at all levels, then, overwrite all the files/subfolders in the project folder to the created folder.
In the new project folder, refresh the project tree in eclipse. If no problem exists, the files backed up earlier can be deleted (Note: Make sure that the file you modified has been submitted
CVS
).

Then, you need to set the project according to the basic requirements of the project, such as build directory, run JDK, encode, and external user Lib.

IV,
CVS
Project Synchronization

To avoid damage to files on the CVS server, we recommend that you synchronize the new project with the CVS server again.

1. Open cvs repository Indexing

2. Select the path corresponding to the current project in CVS repositories for synchronization.

V,
Set
WebLogic

A WebLogic domain is required to deploy the current project. If the project already exists, make sure that the Web application in the domain is empty and other WebLogic configurations required by the project are retained, such as JDBC. If not, you need to create a new one. Except for Web applications that do not need to be deployed, other configurations are as required by the current project.

For detailed configuration, see weblogic8.1for wininstaller .doc.

VI,
Set
Eclipse

Finally, we add a project service in eclipse to deploy Web applications. After the configuration is complete, if the server can be started successfully, eclipse will automatically
The developed web application is deployed to the corresponding domain. You can see it in the eclipse environment, or you can check the xxxdomain/config. xml file.

The procedure is as follows:

1. Switch the work scenario to Jee

2. Find the servers Configuration box, usually in the tab below the IDE

3. Right-click New> server and select BEA WebLogic Server v8.1 under BEA Systems, Inc.

4. Specify related parameters
Server's host name, similar to the domain name, just localhost;
Server Name, server name, which can be customized as needed;
Server Runtime Environment: select the configured server re.
Next, configure WebLogic Domain Information

5. Next, add the project to the Weblogic service.

6. Finish.

After that, you can view the configured service on the server. You can double-click it to modify some information. If the configuration is incorrect, delete and recreate the service. Note: if it is already started
Project, that is, the Web application is successfully deployed to the domain service. Delete the configuration information of the Web application in xxxdomain/config. xml first, as shown below:

<Application name = "resmanm_qs"

Path = "D:/workspaces/New/resmanm_qs" TwoPhase = "true">

<Webappcomponent name = "Web" targets = "my_dev_server" uri = "Web"/>

</Application>

In fact, the setting method is the same as that of Tomcat, But If ant is used for compilation, you need to adjust the project type. You must use the dynamic Web project to enable the Web server to be started internally.

In addition, Galileo already supports oepe and has also published relevant content before, but I am still using Ganymede because the remove tag plug-in currently supports 3.4-core eclipse.

Related Article

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.