在Eclipse中编辑XHTML文件时出错

时间:2014-11-27 17:44:12

标签: eclipse jsf xhtml

每当我尝试在eclipse中编辑xhtml文件时,它都会显示一个内部错误:

在“处理... xhtml的变量”期间发生内部错误 无法初始化类org.apache.myfaces.shared.config.MyfacesConfig

有没有办法解决这个问题?

堆栈追踪:

java.lang.NoClassDefFoundError: Could not initialize class org.apache.myfaces.shared.config.MyfacesConfig
at oracle.eclipse.tools.webtier.jsf.facelet.DTFacesConfigurator.configureApplication(DTFacesConfigurator.java:683)
at oracle.eclipse.tools.webtier.jsf.facelet.DTFacesConfigurator.configure(DTFacesConfigurator.java:414)
at oracle.eclipse.tools.webtier.jsf.facelet.FaceletCompilerConfigurator.configure(FaceletCompilerConfigurator.java:118)
at oracle.eclipse.tools.webtier.jsf.facelet.FaceletCompilerConfigurator.configure(FaceletCompilerConfigurator.java:97)
at oracle.eclipse.tools.webtier.jsf.facelets.OepeFaceletCompiler.createConfig(OepeFaceletCompiler.java:113)
at oracle.eclipse.tools.webtier.jsf.facelets.OepeFaceletCompiler.compile(OepeFaceletCompiler.java:78)
at oracle.eclipse.tools.webtier.jsf.facelets.FaceletCompileUtil.ensureContext(FaceletCompileUtil.java:35)
at oracle.eclipse.tools.webtier.jsf.dependency.discovery.FaceletDiscoveryParticipant.discover(FaceletDiscoveryParticipant.java:267)
at oracle.eclipse.tools.webtier.jsf.dependency.discovery.FaceletDiscoveryParticipant.discoverFromExistingModel(FaceletDiscoveryParticipant.java:361)
at oracle.eclipse.tools.application.common.services.variables.VariablesController$DocumentRediscoveryJob.runAfterCommands(VariablesController.java:746)
at oracle.eclipse.tools.common.services.concurrency.AbstractJob.run(AbstractJob.java:73)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

1 个答案:

答案 0 :(得分:1)

清单文件中的所有x-friends指令都引用了错误的包。

修复最新版本的OEPE(12.1.3.3.1):

  1. this替换插件\ oracle.eclipse.tools.webtier.jsf.facelet_7.3.3.201412231459.jar中的META-INF \ MANIFEST.MF。
  2. 重启eclipse