用myeclipse部署tomcat项目时报错:
An internal error occurred during Add Deployment
java.lang.NullPointerException
一般搜索到的建议都是修改build path的jre为本地环境,或者修改.mymetadata,结果我就改来改去死活不行
然后看到build path的两个con,删除就好了……
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.lib.spring31.MYECLIPSE_SPRING31_Test"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER"/>
查了下介绍:
In kind="con"
, the con
stands for container, which is interpreted by eclipse as a classpath container. As described in that link:
A classpath container provides a way to indirectly reference a set of classpath entries through a classpath entry of kind CPE_CONTAINER