java.lang.NullPointerException
at com.genuitec.eclipse.ast.deploy.core.Deployment.(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.create(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.loadFromPreferences(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.init(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.getDefault(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.ServerTreeViewer$ServerTreeContentProvider.inputChanged(Unknown Source)
出现原因:
应该是在tomcat或者weblogic等部署工具中直接删了工程,导致与myeclipse两边不一致。
解决方法:
详细错误第一行: at com.genuitec.eclipse.ast.deploy.core.Deployment.(Unknown Source)
找到工作空间所在目录.metadata.plugins\org.eclipse.core.runtime.settings目录下面找到了名称为com.genuitec.eclipse.ast.deploy.core.prefs文件,删除该文件,重启Eclipse。