---
title: "Weblogic 的安装"
author: "cms163"
date: "2010-09-13T14:52:01Z"
tags: []
categories: ["企业架构"]
slug: "weblogic"
draft: false
lastmod: "2010-09-13T14:52:01Z"
id: 762066
url: "https://cms163.iteye.com/blog/762066"
---

**配置 WebLogic 9.2**

安装 WebLogic 比较容易，在这里就不再累述了，大家可以参阅相关文档。现在着重讲一下 WebLogic 的配置，因为后面在配置 MyEclipse 时将用到这里的配置信息。

①运行开始 -> 程序 -> BEA Products -> Tools -> Configuration Wizard。
②选择 Create a new WebLogic domain，Next。
③在 Select Domain Source 界面保持默认，Next。
④在 User name 处输入 user，两个 password 都输入 12345678（密码要求 8 位），Next。
⑤ 在 Configure Server Start Mode and JDK 界面中保持默认，即 JDK 选择的是“Sun SDK 1.5.0_04 @ C:\BEA\jdk150_04”，注意这里若选择“Other JDK”配置比 SDK 1.5.0_04 更高的版本，服务器启动时将会出现异常，所以最好保持默认，然后 Next。
⑥在 Customize Environment and Services Settings 界面中默认为 No，Next。
⑦在 Domain name 处输入 mydomain，点击 Create。
⑧完成后点击 Done 关闭 Configuration Wizard 对话框。
⑨ 运行开始 -> 程序 -> BEA Products -> User Projects -> mydomain -> Start Admin Server for Weblogic Server Domain，检查服务器是否启动成功。

**配置 MyEclipse 的 WebLogic 9 服务器**

启动 Eclipse，选择“Window -> Preferences”菜单，打开首选项对话框。展开 MyEclipse 下的 Application Servers 节点，点击 WebLogic 9，选中右边的 Enable 单选按钮，启用 WebLogic 服务器。配置如下：
①BEA home directory：C:\BEA（假定 WebLogic 安装在 C:\BEA 目录中）
②WebLogic installation directory：C:\BEA\WebLogic92
③Admin username：user（来自 WebLogic 中的配置）
④Admin password：12345678（来自 WebLogic 中的配置）
⑤Execution domain root：C:\BEA\user_projects\domains\mydomain
⑥Execution server name：AdminServer
⑦Security policy file：C:\BEA\WebLogic92\server\lib\weblogic.policy
⑧JAAS login configuration file：（Null）

接着展开 WebLogic 9 节点，点击 JDK，在右边的 WLS JDK name 处选择 WebLogic 9 的默认 JDK。这里组合框中缺省为单独安装的 JRE。单击 Add 按钮，弹出 WebLogic -> Add JVM 对话框，在 JRE 主目录处选择 WebLogic 安装文件夹中的 JDK 文件夹，我的版本为 C:\BEA\jdk150_04，程序会自动填充其他选项。单击确定按钮关闭对话框。这时候就可以在 WLS JDK name 组合框中选择 jdk150_04 了。

至此，MyEclipse 中 WebLogic 9 的配置工作就算完成了。下面可以看看在 Eclipse 中能否启动 WebLogic 服务器了？安装了 MyEclipse 之后，Eclipse 工具栏中就会有一个“Run/Stop/Restart MyEclipse Application Servers”下拉按钮。点击该按钮的下拉部分，选择“WebLogic 9 -> Start”菜单，即开始启动 WebLogic 了。通过查看控制台的消息，就可以检查启动是否成功，或发生什么异常。