2014-04-03 106 views
1

我試圖讓Mojarra 2.2.6(或MyFaces 2.2.2,同樣的例外都)在Websphere 8.5中運行並運行。像往常一樣,我已經將類加載器設置正確地設置爲PARENT_LAST和SINGLE。新的罐子正在成功拾起,但下面的討厭的異常正在拋出,導致應用程序無法啓動。任何幫助表示讚賞,謝謝!Websphere 8.5.5.1 JSF 2.2 @MultipartConfig

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) 
+0

可能是http://stackoverflow.com/questions/18544763/websphere-7-with-jsf-2 –

+0

的重複問題升級到2.2與上述場景不同。我相信這與WAS中的OpenWebBeans版本有關。我們將與IBM一起開設PMR。 –

回答

3

我也面臨着同樣的問題,以WAS 8.0.0.8。我通過從我的web應用程序中刪除Mojarra jar(jsf-api & jsf-impl jars)並將它們添加到獨立的共享庫中來解決了該問題。 另外我需要添加primefaces jar(我使用PF 4.0)也在孤立的共享庫中,以使錯誤消失。

2

的錯誤

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

是一個Websphere Bug,更新到8.5.5.6修復它。