当前位置: 代码迷 >> Eclipse >> MyEclipse 九 在部署和保存文件的时候报错 DeploymentBuilder
  详细解决方案

MyEclipse 九 在部署和保存文件的时候报错 DeploymentBuilder

热度:567   发布时间:2016-04-23 12:40:26.0
MyEclipse 9 在部署和保存文件的时候报错 DeploymentBuilder

在CVS 上checkout下项目来,保存和部署的时候报以下错误

?

Errors occurred during the build.
Errors running builder 'DeploymentBuilder' on project '项目名'.
java.lang.NullPointerException

?

?

-----------

?

解决方法:

??? 在 项目的 第一级目录下面新建 .mymetadata 文件

?

?

<?xml version= encoding=?>    <!--         type : 工程类型         name : 工程名称         id    : 工程在工作空间内的唯一标识         context-root : 网站根路径         j2ee-spec: J2EE标准         archive : 打包后war文件    -->    ----例如 我的项目<?xml version="1.0" encoding="UTF-8"?><project-module  type="WEB"  name="项目名称"  id="myeclipse.1336633063757"  context-root="/项目名称"  j2ee-spec="6.0"  archive="项目名称.war">  <attributes>    <attribute name="webrootdir" value="WebRoot" />  </attributes></project-module>

??

  相关解决方案