1. 用Myeclipse部署web系统wlms时候报如下错误:
[img]http://dl.iteye.com/upload/attachment/0072/7405/312c6c2d-8103-3a91-b035-761db0241eaa.jpg[/img]
则很有可能是你自己项目环境信息有问题,修改下就可以了。
打开项目目录: .mymetadata 文件
插入context-root 的值就可以, 值就是上面name的值
在重新打开Myeclipse,就可以部署项目。
其实[color=red]context-root[/color]的值可以在Myeclipse中直接配置
1. 右击项目,选择Properties
2.
[img]http://dl.iteye.com/upload/attachment/0072/7422/a4d8d45c-d8c6-317b-848d-628d54c93f5a.jpg[/img]
把值设置为项目名称就可以了
[size=x-large][color=red]记得重启Myeclipse[/color][/size]
[img]http://dl.iteye.com/upload/attachment/0072/7405/312c6c2d-8103-3a91-b035-761db0241eaa.jpg[/img]
则很有可能是你自己项目环境信息有问题,修改下就可以了。
打开项目目录: .mymetadata 文件
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="wlms"
id="myeclipse.1345519075437"
j2ee-spec="1.4"
archive="wlms.war">
<attributes>
<attribute name="webrootdir" value="/web" />
</attributes>
</project-module>
插入context-root 的值就可以, 值就是上面name的值
context-root="/wlms"
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="wlms"
id="myeclipse.1345519075437"
context-root="/wlms"
j2ee-spec="1.4"
archive="wlms.war">
<attributes>
<attribute name="webrootdir" value="/web" />
</attributes>
</project-module>
在重新打开Myeclipse,就可以部署项目。
其实[color=red]context-root[/color]的值可以在Myeclipse中直接配置
1. 右击项目,选择Properties
2.
[img]http://dl.iteye.com/upload/attachment/0072/7422/a4d8d45c-d8c6-317b-848d-628d54c93f5a.jpg[/img]
把值设置为项目名称就可以了
[size=x-large][color=red]记得重启Myeclipse[/color][/size]