`

myeclipse 提示错误Undefined exploded archive location&deploy project 时不能正常显示 问题的解决

阅读更多
MyEclipse中Tomcat无法部署项目:Undefined exploded archive location
&myeclispe 中 deploy project 时不能正常显示deploy location 问题的解决

项目不能部署,MyEclipse提示错误Undefined exploded archive location
&myeclispe 中 deploy project 时不能正常显示deploy location 问题的解决

可能在项目转移过程中,项目配置文件出错。

解决方法:
1.在项目工程目录下的.mymetadata文件中可能webrootdir被改无效了(把下面内容拷到你的.mymetadate文件中的相应位置上);或者可能少了这context-root这个属性,添加上这个属性即可,内容如下:
context-root="/上面的name属性值"
2.关掉重启MyEclipse,重新部署,发布成功!

示例正常的.mymetadate如下:
<?xml version="1.0" encoding="UTF-8"?>
<project-module
  type="WEB"
  name="Test"
  id="myeclipse.1234567890123"
  context-root="/Test"
  j2ee-spec="6.0"
  archive="Test.war">
  <attributes>
    <attribute name="webrootdir" value="WebRoot" />
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics