2014-04-03 10 views
1

Websphere 8.5에서 Mojarra 2.2.6 (또는 MyFaces 2.2.2, 같은 예외 모두)을 실행하려고합니다. 평소와 같이 클래스 로더 설정을 PARENT_LAST 및 SINGLE로 올바르게 설정했습니다. 새 항아리가 성공적으로 선택되지만 다음과 같은 성가신 예외가 발생하여 앱이 시작되지 않습니다. 어떤 도움을 주셔서 감사합니다, 감사합니다! 내가 가진 동일한 문제에 직면 한Websphere 8.5.5.1 JSF 2.2 @ MultipartConfig

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

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 

전체 스택 추적 8.0.0.8이었다. 내 웹 응용 프로그램에서 Mojarra jar (jsf-api & jsf-impl jar)를 제거하고 격리 된 공유 라이브러리에 추가하여 문제를 해결했습니다. 또한 오류가 사라지지 않도록 격리 된 공유 라이브러리에서도 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 

은 8.5.5.6 수정에 업데이트하는 Websphere Bug입니다.