转载位置http://flashdream8.iteye.com/blog/1522125
在CVS或svn 上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>
我发现还有一个解决的可能方法就是修改.classpath里面的<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
可能你的是webContext,要修改成 path="WebRoot/WEB-INF/classes"