您的位置:首页 > 编程语言 > Java开发

在myEclipse下使用resin不能正常发布工程的解决

2013-05-02 11:37 211 查看
在myEclipse下发布项目,发现在Deploy Location下不显示发布路径。
原因是没有在mymatadata中添加context-root="/",另外webrootdir属性也要设置正确。
一个常见的配置如下:
<?xml version="1.0" encoding="UTF-8"?>

<project-module

type="WEB"

name="premier"

id="myeclipse.1270646223656"

context-root="/premier"

j2ee-spec="1.4"

archive="premier.war">

<attributes>

<attribute name="webrootdir" value="WebRoot" />

</attributes>

</project-module>

mymetadata的context-root内容设置位置:
项目右键——>Properties——>MyEclipse——>Web——>Context Root

如果发布不正常,该位置会出现错误提示。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: