我正在尝试使用管理控制台在weblogic上部署我的jsf2.2应用程序war文件,但遇到以下错误。这是否与在Weblogic lib文件夹下部署的jsf特定库相关?
<Sep 22, 2014 7:10:18 PM SGT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1411384203899" for task "1". Error is: "weblogic.application.ModuleException: [HTTP:101371]There was a failure when processing annotations for application test.war Ensure that the annotations are valid. The error is null"
weblogic.application.ModuleException: [HTTP:101371]There was a failure when processing annotations for application test.war. Ensure that the annotations are valid. The error is null
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:732)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at weblogic.servlet.internal.WebAnnotationProcessor.processMultipartConfigAnnotation(WebAnnotationProcessor.java:283)
at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotationForClasses(AnnotationProcessingManager.java:171)
at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotations(AnnotationProcessingManager.java:116)
at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotationsOutsideWebFragment(AnnotationProcessingManager.java:143)
at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotations(AnnotationProcessingManager.java:104)
Truncated. see log file for complete stacktrace
答案 0 :(得分:3)
我也有同样的问题。因此,在尝试了Web中可用的各种方法和步骤之后,我决定将WebLogic删除为我的项目服务器(在Eclipse中),因此,我使用向导再次创建了服务器。
在清理服务器,项目,maven依赖之后,问题得到了成功解决。
我希望它适合你。
答案 1 :(得分:2)
我最近遇到了同样的问题。我的解决方案将以下配置添加到webLogic.xml文件中。希望它有所帮助
<wls:container-descriptor>
<wls:prefer-web-inf-classes>false</wls:prefer-web-inf-classes>
<wls:prefer-application-packages>
<wls:package-name>javax.faces.*</wls:package-name>
<wls:package-name>com.sun.faces.*</wls:package-name>
<wls:package-name>com.bea.faces.*</wls:package-name>
</wls:prefer-application-packages>
<wls:prefer-application-resources>
<wls:resource-name>javax.faces.*</wls:resource-name>
<wls:resource-name>com.sun.faces.*</wls:resource-name>
<wls:resource-name>com.bea.faces.*</wls:resource-name>
<wls:resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</wls:resource-name>
<wls:resource-name>META-INF/services/com.sun.faces.spi.FacesConfigResourceProvider</wls:resource-name>
</wls:prefer-application-resources>
</wls:container-descriptor>