由于org.eclipse.jst.jee.server:<project>缺少</project>,Eclipse juno将不会部署到tomcat 7

时间:2013-10-09 06:45:24

标签: java eclipse maven tomcat

当eclipse尝试构建我的工作区时,我突然开始收到错误。

Errors occurred during the build.
Errors running builder 'Faceted Project Validation Builder' on project 'pepper'.
Could not initialize class org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants

由于我收到此错误,所有项目都没有部署到tomcat。如果我去服务器配置服务器视图 - &gt;右键单击 - &gt;打开 - &gt;模块选项卡。我可以在Module列中看到以下内容。

org.eclipse.jst.jee.server:<projectName> missing

我的所有项目都是如此。

我正在使用Eclipse Juno。我之前能够部署所有项目。我所做的只是从http://eclipse.org/bpmn2-modeler/安装BPMN 2.0 eclipse插件。我试图卸载它,但没有任何改变。

错误日志正在说明。

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants
    at org.eclipse.jst.j2ee.project.facet.EarFacetValidator.validate(EarFacetValidator.java:53)
    at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectValidationBuilder.build(FacetedProjectValidationBuilder.java:132)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

提前致谢。

1 个答案:

答案 0 :(得分:0)

试试这个:

在依赖关系部分添加以下行:

  <dependency>
    <groupId>org.eclipse.jst</groupId>
    <artifactId>j2ee</artifactId>
    <version>1.1.105-v200709122200</version>
  </dependency>

来源:http://mavenhub.com/c/org/eclipse/jst/j2ee/project/facet/ij2eefacetconstants/dependency