Primefaces扩展11 NoClassDefFoundError编辑选项



在JBoss EAP 7.3上运行primefaces-extension 11组件monacoEditor时出现错误

异常堆栈:

Caused by: javax.faces.FacesException: Cant instantiate class: org.primefaces.extensions.component.monacoeditor.MonacoEditorInline.
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1738)
at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1893)
... 105 more
Caused by: java.lang.NoClassDefFoundError: org/primefaces/extensions/model/monacoeditor/EditorOptions
at org.primefaces.extensions.component.monacoeditor.MonacoEditorBase.<init>(MonacoEditorBase.java:57)
at org.primefaces.extensions.component.monacoeditor.MonacoEditorInline.<init>(MonacoEditorInline.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)

我也用

<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>resources-monacoeditor</artifactId>
<version>11.0.4</version>
</dependency>

Primefaces 11, Primefaces- extension 11.0.4, resources-monacoeditor 11.0.4, mojarra 2.1.28, Jboss EAP 7.3

我解决了这个问题。我们的项目是一个EAR,我们在EAR的一个产生WAR的模块中使用monacoeditor和resources-monacoeditor。当将resources-monacoeditor库也放在主包(EAR的包,父包)中时,错误就解决了

相关内容

  • 没有找到相关文章

最新更新