MyEclipse下配置Websphere6

来源:互联网 发布:巨人网络征途 编辑:程序博客网 时间:2024/04/30 21:08

MyEclipse下配置Websphere6

发表人:bafferlo | 发表时间: 2007年一月12日, 15:05

1.环境 sun jdk1.4.2,eclipse3.1 MyEclipse 4.0
2.介绍:MyEclipse配置Websphere6的时候需要做比配置其它server更多的工作;
Websphere6必须和MyEclipse安装在一个机器上;
Websphere6必须使用IBM的jdk,位置在<was-install-dir>/java;
只有MyEclipse Enterprise J2EE project可以部署在Websphere6上。
3.Websphere6安装和配置
第一步 点击创建概要表(profile);
第二步 输入概要表名称(例如 MyEclipse);
第三步 选择概要表路径 D:IBMWebSphereAppServerprofilesMyEclipse;
第四步 输入结点名:MyEclipseNode,主机名:127.0.0.1;
第五步 输入端口号,默认端口即可;
第六步 不选做为windows服务;
第七步 完成;
第八步 启动服务器,打开管理控制台;
第九步 点击服务器-应用服务器,然后点击服务器名称;
第十步 查看标签“配置”->故障诊断->记录和跟踪;
第十一步 点击“JVM日志”->配置标签,修改“文件名”为console,点击确定;
第十二步 提示已更改了您的本地配置。单击“保存”应用对主配置的更改,点击“保存”,下一页再点“保存”;
第十三步 推出管理控制台,停止服务器;
4.MyEclipse配置
第一步 配置 Window > Preferences > MyEclipse > Application Servers > WebSphere 6;
第二步 配置JDK JRE home directory 为 /java,WebSphere只能运行在IBM JDK上;
(WebSphere is known to run on a heavily modified IBM JDK and running it with Sun's JDK, JRockit, GCJ or other JDKs simply will not work)
第三步 创建 Web project 例如“IBMTestWeb”,再创建 Enterprise project 例如“IBMTest”;
第四步 部署 必须点击菜单条上的部署的快捷方式 Deploy MyEclipse J2EE Project to Server;

(MyEclipse Deployment Manager must be launched by clicking the button on your toolbar as shown in the screenshot below)
第五步 部署 IBMTest,选择第二项“Packaged Archive” 部署-完成;
第六步 在MyEclipse中启动 Websphere6,等待出现“为电子商务开放服务器 server1”,即启动完成;
(wait for the Server server1 open for e-business message as before.)
第七步 打开Websphere6的管理控制台 应用程序->安装新的应用程序,选择
D:IBMWebSphereAppServerprofilesMyEclipseinstallableAppsIBMTest.ear,点击下一步;
第八步 选择“启用类重新装入,点击下一步;
第九步 选中 “IBMTestWeb.war”,点击下一步 ;
第十步 选中 “IBMTestWeb.war”,点击下一步 ;
第十一步 提示“应用程序 IBMTest 安装成功。”后,点击 “保存到主配置”,最后启动该应用程序;
第十二步 删除以前部署的包,重新部署 IBMTest,选择第一项“Exploded Archive”,下面选择“Delete remote resource before deployment” 部署-完成;

原创粉丝点击