1

当 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。如果我去服务器配置服务器视图->右键单击->打开->模块选项卡。我可以在模块列中看到以下内容。

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)

提前致谢。

4

1 回答 1

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

于 2013-12-27T20:04:10.610 回答