MyEclipse下配置WebSphere6.0

1.环境:sun jdk1.4.2,eclipse3.2 MyEclipse 5.5

2.介绍:MyEclipse配置Websphere6.0的时候需要做比配置其它server更多的工作;Websphere6.0必须和MyEclipse安装在一个机器上;Websphere6.0必须使用IBM的jdk,位置在<was-install-dir>/java;只有MyEclipse Enterprise J2EE project可以部署在Websphere6上。

3.Websphere6.0的安装和配置:

第一步 点击创建概要表(profile);

第二步 输入概要表名称(例如 MyEclipse);

第三步 选择概要表路径 D:/IBM/WebSphere/AppServer/profiles/MyEclipse;

第四步 输入结点名:MyEclipseNode,主机名:127.0.0.1;

第五步 输入端口号,默认端口即可;

第六步 不选做为windows服务;

第七步 完成;

第八步 启动服务器,打开管理控制台;

第九步 点击服务器-应用服务器,然后点击服务器名称;

第十步 查看标签“配置”->故障诊断->记录和跟踪;

第十一步 点击“JVM日志”->配置标签,修改“文件名”为console,点击确定;

第十二步 提示已更改了您的本地配置。单击“保存”应用对主配置的更改,点击“保存”,下一页再点“保存”;

第十三步 退出管理控制台,停止服务器;

4.MyEclipse配置

第一步 配置 Window > Preferences > MyEclipse > Application Servers > WebSphere 6;

第二步 配置JDK JRE home directory 为<was-install-dir> /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:/IBM/WebSphere/AppServer/profiles/MyEclipse/installableApps/IBMTest.ear,点击下一步;

第八步 选择“启用类重新装入,点击下一步;

第九步 选中 “IBMTestWeb.war”,点击下一步 ;

第十步 选中 “IBMTestWeb.war”,点击下一步 ;

第十一步 提示“应用程序 IBMTest 安装成功”后,点击  “保存到主配置”,最后启动该应用程序;

第十二步 删除以前部署的包,重新部署 IBMTest,选择第一项“Exploded Archive”,下面选择“Delete remote resource before deployment” 部署-完成;


最终访问http://127.0.0.1/IBMTestWeb/index.jsp  这样就可以实时调试,实时更新了。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值