Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Websphere 8.5.5.1 JSF 2.2@MultipartConfig_Java_Jsf_Websphere_Myfaces_Mojarra - Fatal编程技术网

Java Websphere 8.5.5.1 JSF 2.2@MultipartConfig

Java Websphere 8.5.5.1 JSF 2.2@MultipartConfig,java,jsf,websphere,myfaces,mojarra,Java,Jsf,Websphere,Myfaces,Mojarra,我正在尝试在WebSphere8.5中启动并运行Mojarra2.2.6(或者MyFaces2.2.2,两者都有相同的异常)。我已经将类加载器设置正确地设置为PARENT_LAST和SINGLE。新的jar被成功拾取,但引发了以下令人讨厌的异常,导致应用程序无法启动。感谢您的帮助,谢谢 An exception occurred while validating an annotation: com.ibm.wsspi.amm.validate.ValidationException: SRVE

我正在尝试在WebSphere8.5中启动并运行Mojarra2.2.6(或者MyFaces2.2.2,两者都有相同的异常)。我已经将类加载器设置正确地设置为PARENT_LAST和SINGLE。新的jar被成功拾取,但引发了以下令人讨厌的异常,导致应用程序无法启动。感谢您的帮助,谢谢

An exception occurred while validating an annotation: com.ibm.wsspi.amm.validate.ValidationException: SRVE8016E: The @MultipartConfig annotation can not be applied to the class, javax.faces.webapp.FacesServlet, because it extends the wrong super class
全堆栈跟踪

4/3/14 17:21:16:800 EDT] 00000715 annotations   E   CWWAM0003E: An exception occurred while validating an annotation: com.ibm.wsspi.amm.validate.ValidationException: SRVE8016E: The @MultipartConfig annotation can not be applied to the class, javax.faces.webapp.FacesServlet, because it extends the wrong super class
                             com.ibm.wsspi.amm.validate.ValidationException: SRVE8016E: The @MultipartConfig annotation can not be applied to the class, javax.faces.webapp.FacesServlet, because it extends the wrong super class
at com.ibm.ws.webcontainer.annotation.validator.MultipartConfigValidator.validateClassAnnotation(MultipartConfigValidator.java:44)
at com.ibm.ws.webcontainer.annotation.validator.MultipartConfigValidator.validateClassAnnotation(MultipartConfigValidator.java:39)
at com.ibm.ws.webcontainer.annotation.validator.MultipartConfigValidator.validate(MultipartConfigValidator.java:35)
at com.ibm.wsspi.amm.merge.AbstractMergeAction.mergeClassTargets(AbstractMergeAction.java:353)
at com.ibm.wsspi.amm.merge.AbstractMergeAction.merge(AbstractMergeAction.java:123)
at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.performMergeOperations(AnnotativeMetadataManagerImpl.java:509)
at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.merge(AnnotativeMetadataManagerImpl.java:274)
at com.ibm.ws.amm.commonarchive.AnnotationsProcessorImpl.merge(AnnotationsProcessorImpl.java:144)
at com.ibm.ws.amm.commonarchive.AnnotationsProcessorImpl.merge(AnnotationsProcessorImpl.java:66)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.processAnnotations(WARFileImpl.java:923)
at com.ibm.ws.webfragmerger.WebFragMergerImpl.merge(WebFragMergerImpl.java:493)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.mergeAnnotationsAndFragments(WARFileImpl.java:869)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getDeploymentDescriptor(WARFileImpl.java:648)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getDeploymentDescriptor(WARFileImpl.java:367)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getDeploymentDescriptor(WARFileImpl.java:349)
at com.ibm.ws.websvcs.deploy.PersistentStorageInstallTask.processClientBindings(PersistentStorageInstallTask.java:306)
at com.ibm.ws.websvcs.deploy.PersistentStorageInstallTask.performTask(PersistentStorageInstallTask.java:168)
at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:315)
at java.lang.Thread.run(Thread.java:780)

我在WAS 8.0.0.8中遇到了同样的问题。我通过从我的web应用程序中删除mojarrajars(jsfapi&jsf impljars)并将它们添加到一个独立的共享库中,解决了这个问题。
此外,我还需要在隔离共享库中添加primefaces jar(我使用了PF 4.0),以消除错误。

我在WAS 8.0.0.8中也遇到了同样的问题。我通过从我的web应用程序中删除mojarrajars(jsfapi&jsf impljars)并将它们添加到一个独立的共享库中,解决了这个问题。
此外,我还需要在隔离的共享库中添加primefaces jar(我使用了PF 4.0),以消除错误。

我写这个博客是为了演示如何让websphere 8.5使用Mojara而不是myfaces


我写这个博客是为了演示如何让WebSphere8.5使用Mojara而不是myfaces

错误

SRVE8016E: The @MultipartConfig annotation can not be applied to the class, javax.faces.webapp.FacesServlet, because it extends the wrong super class
是一个,更新到8.5.5.6会修复它。

错误

SRVE8016E: The @MultipartConfig annotation can not be applied to the class, javax.faces.webapp.FacesServlet, because it extends the wrong super class

是一个,更新到8.5.5.6会修复它。

可能是一个重复问题,升级到2.2与前面提到的场景不同。我相信这与WAS中的OpenWebBeans版本有关。我们将与IBM一起打开一个PMR。升级到2.2的问题可能与前面提到的场景不同。我相信这与WAS中的OpenWebBeans版本有关。我们将与IBM建立一个PMR。