
MyEclipse配置webLogic详解.doc
3页在MyEclipse中配置webLogic服务器1、配置MyEclipse的WebLogic服务器 (1)点击WebLogic 8,选中右边的Enable单选按钮,启用WebLogic服务器同时下面的配置如下: (1)BEA home directory:D:\BEA假定WebLogic安装在D:\BEA文件夹中 (2)WebLogic installation directory:D:\BEA\weblogic81 (3)Admin username:user (4)Admin password:12345678 (5)Execution domain root:D:\BEA\user_projects\dev (6)Execution domain name:dev (7)Execution server name:admin (8)Hostname:PortNumber:localhost:7001 (9)Security policy file:D:\BEA\weblogic81\server\lib\weblogic.policy (10)JAAS login configuration file:省略。
(2)接着展开WebLogic 8结点,点击JDK在右边的WLS JDK name处选择WebLogic 8的默认JDK这里组合框中缺省为j2re1.4.2_03,即之前单独安装的jre单击Add按钮,弹出WebLogic > Add JVM对话框,在JRE名称处随便输入一个名字,如jre1.4.1_02然后在JRE主目录处选择WebLogic安装文件夹中的JDK文件夹,如D:\BEA\jdk141_02,程序会自动填充Javadoc URL文本框和JRE系统库列表框单击确定按钮关闭对话框这时候就可以在WLS JDK name组合框中选择jre1.4.1_02了之后还要在下面的Optional Java VM arguments,如-ms64m -mx64m -Djava.library.path="D:/BEA/weblogic81/server/bin" -Dweblogic.management.discover=false -Dweblogic.ProductionModeEnabled=false (3)最后点击Paths在右边的Prepend to classpath列表框中,通过Add JAR/ZIP按钮,加入D:\BEA\weblogic81\server\lib\weblogic.jar、D:\BEA\weblogic81\server\lib\webservices.jar。
如果用到数据库,还需把数据库的驱动类库加进来,这里我们用WebLogic自带的SQL Server数据库驱动库D:\BEA\weblogic81\server\lib\mssqlserver4v65.jar PropertyDefault ValueRequired DescriptionPrepend to classpath NoBrowse to and select the JAR and ZIP archives and the class directories you wish to have added to the beginning of the server connector JVM's classpath. Additions will be loaded by the Java VM before the web-server core classes.Append to classpath NoBrowse to and select the JAR and ZIP archives and the class directories you wish to have added to the end of the server connector JVM's classpath. Additions will be loaded by the Java VM after the web-server core classes.Append to library path NoBrowse to and select the platform-specific native libraries to be appended to the java.library.path. (4) 至此,MyEclipse中WebLogic8的配置工作就算完成了。
2、在Eclipse中启动WebLogic下面可以看看在Eclipse中能否启动WebLogic了?自从安装了MyEclipse之后,Eclipse工具栏中就会有一个Run/Stop Servers下拉按钮点击该按钮的下拉部分,选择“WebLogic 8\Start”菜单,即开始启动WebLogic了通过查看下面的控制台消息,就可以知道启动是否成功,或有什么异常发生停止WebLogic可选择“WebLogic\Stop”菜单 。
