MyEclipse下配置Websphere6

MyEclipse下配置Websphere6

1.环境 sun jdk1.5.0,MyEclipse 5.5

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

3.Websphere6安装和配置
第一步 点击创建概要表(profile)
第二步 输入概要表名称(例如 MyEclipse)
第三步 选择概要表路径 .\IBM\WebSphere\AppServer\profiles\MyEclipse
第四步 输入结点名:MyEclipseNode,主机名:127.0.0.1
第五步 输入端口号,默认端口即可
第六步 不选做为windows服务
第七步 完成
第八步 启动服务器,打开管理控制台
第九步 点击服务器-应用服务器,然后点击服务器名称
第十步 查看标签“配置”->故障诊断->记录和跟踪
第十一步 点击“JVM日志”->配置标签,修改“文件名”为console,点击确定
第十二步 提示已更改了您的本地配置。单击“保存”应用对主配置的更改,点击“保存”,下一页再点“保存”
第十三步 推出管理控制台,停止服务器

4.MyEclipse配置
第一步 配置 Window > Preferences > MyEclipse > Application Servers > WebSphere 6
(以下为我遇到的问题记录)
1. WebSphere home directory :应配置到AppServer
(即里面有服务器启动文件的路径下,否则MyEclipse报会找不到启动路径的错误)
例如:WebSphere home directory: E:\IBM\WebSphere\AppServer
2.Profile root directory: 应配置到概要表路径
例如:Profile root directory:E:\IBM\WebSphere\AppServer\profiles\MyEclipse
3.Node name:填写创建概要表时填写的节点名称
例如:Node name:MyEclipseNode
4.Cell name:一般情况下Cell name 是在节点名称后加上Cell即可,但是可能生成
概要表的时候更改了默认的节点名称,可能使得一般情况不成立,此时可以在
E:\IBM\WebSphere\AppServer\profiles\MyEclipse\config\cells\hust-0d731a9a8dNode02Cell
下面查找,上面红色部分就是Cell name。
例如:Cell name:hust-0d731a9a8dNode02Cell
5.其他部分由MyEclipse自动生成

第二步 配置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 例如“ast”,再创建 Enterprise project 例如“astLocal”

第四步 部署 必须点击菜单条上的部署的快捷方式 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)

第五步 部署 astLocal,选择第二项“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\astLocal.ear,点击下一步

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

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

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

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

第十二步 删除以前部署的包,重新部署 astLocal,选择第一项“Exploded Archive”,下面选择“Delete remote resource before deployment” 部署-完成
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值