MyEclipse下配置Websphere6 
1.環(huán)境 sun jdk1.4.2,eclipse3.1 MyEclipse 4.0
2.介紹:MyEclipse配置Websphere6的時(shí)候需要做比配置其它server更多的工作;
Websphere6必須和MyEclipse安裝在一個(gè)機器上;
Websphere6必須使用IBM的jdk,位置在<was-install-dir>/java;
只有MyEclipse Enterprise J2EE project可以部署在Websphere6上。
3.Websphere6安裝和配置
第一步 點(diǎn)擊創(chuàng )建概要表(profile);
第二步 輸入概要表名稱(chēng)(例如 MyEclipse);
第三步 選擇概要表路徑 D:\IBM\WebSphere\AppServer\profiles\MyEclipse;
第四步 輸入結點(diǎn)名:MyEclipseNode,主機名:127.0.0.1;
第五步 輸入端口號,默認端口即可;
第六步 不選做為windows服務(wù);
第七步 完成;
第八步 啟動(dòng)服務(wù)器,打開(kāi)管理控制臺;
第九步 點(diǎn)擊服務(wù)器-應用服務(wù)器,然后點(diǎn)擊服務(wù)器名稱(chēng);
第十步 查看標簽“配置”->故障診斷->記錄和跟蹤;
第十一步 點(diǎn)擊“JVM日志”->配置標簽,修改“文件名”為console,點(diǎn)擊確定;
第十二步 提示已更改了您的本地配置。單擊“保存”應用對主配置的更改,點(diǎn)擊“保存”,下一頁(yè)再點(diǎn)“保存”;
第十三步 推出管理控制臺,停止服務(wù)器;
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)
第三步 創(chuàng )建 Web project 例如“IBMTestWeb”,再創(chuàng )建 Enterprise project 例如“IBMTest”;
第四步 部署 必須點(diǎn)擊菜單條上的部署的快捷方式 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中啟動(dòng) Websphere6,等待出現“為電子商務(wù)開(kāi)放服務(wù)器 server1”,即啟動(dòng)完成;
(wait for the Server server1 open for e-business message as before.)
第七步 打開(kāi)Websphere6的管理控制臺 應用程序->安裝新的應用程序,選擇
D:\IBM\WebSphere\AppServer\profiles\MyEclipse\installableApps\IBMTest.ear,點(diǎn)擊下一步;
第八步 選擇“啟用類(lèi)重新裝入,點(diǎn)擊下一步;
第九步 選中 “IBMTestWeb.war”,點(diǎn)擊下一步 ;
第十步 選中 “IBMTestWeb.war”,點(diǎn)擊下一步 ;
第十一步 提示“應用程序 IBMTest 安裝成功。”后,點(diǎn)擊 “保存到主配置”,最后啟動(dòng)該應用程序;
第十二步 刪除以前部署的包,重新部署 IBMTest,選擇第一項“Exploded Archive”,下面選擇“Delete remote resource before deployment” 部署-完成;
最終訪(fǎng)問(wèn)http://127.0.0.1/IBMTestWeb/index.jsp 這樣就可以實(shí)時(shí)調試,實(shí)時(shí)更新了