解决Tomcat不能部署项目Errors occurred during the build.

时间:2023-01-20 12:41:11

Errors occurred during the build. Errors running builder
‘DeploymentBuilder’ on project ‘myf’. java.lang.NullPointerException

此问题一般发生在Myeclipse 保存文件并自动部署时候。

Errors occurred during the build. Errors running builder ‘DeploymentBuilder’ on project’项目名’.

java.lang.NullPointerException

有一种产生此错误的原因是因为此项目不是由myeclipse创建的所以你需要检查.project 文件。
并且添加com.genuitec.eclipse.j2eedt.core.webnature
1、首先关闭MyEclipse工作空间。
2、然后删除工作空间下的“/.metadata/.plugins/org.eclipse.core.runtime/.settings/
com.genuitec.eclipse.ast.deploy.core.prefs”

或者取消myeclipse的自动部署: 右键点击项目 ->properties -> Builders,
将DeploymentBuilder勾选去除.