您的位置:首页 > 运维架构 > Tomcat

Tomcat Undefined exploded archive location 项目不能部署

2009-12-16 09:17 465 查看
出处:http://queue19.javaeye.com/blog/346850

原因:


在工程转移过程中,导致工程的配置文件出错


解决方法:


1.在工程目录下的.mymetadata
文件中可能webrootdir
被改无效了(把下面内容拷到你的.mymetadate文件中的相应位置上);或者有可能少了这context-root
这个属性;添加上这个属性即可,内容如下:

context-root="/上面的name属性值"

2.关掉Eclipse,再启动Eclipse,接着发布工程,发布成功!

例如:

Xml代码

<?
xml

version
=
"1.0"

encoding
=
"UTF-8"
?>

<
project-module

type
=
"WEB"

name
=
"program_name"

id
=
"myeclipse.1235376033685"

context-root
=
"/program_name"

j2ee-spec
=
"1.4"

archive
=
"program_name.war"
>

<
attributes
>

<
attribute

name
=
"webrootdir"

value
=
"WebRoot"

/>

</
attributes
>

</
project-module
>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: