Jsf java.lang.VerifyError:JVMVRFY027 receiver与声明类不兼容;class=org/primefaces/component/gmap/gmap,方法=queueEvent

Jsf java.lang.VerifyError:JVMVRFY027 receiver与声明类不兼容;class=org/primefaces/component/gmap/gmap,方法=queueEvent,jsf,primefaces,websphere,jsf-2.2,websphere-8,Jsf,Primefaces,Websphere,Jsf 2.2,Websphere 8,当我尝试在WebSphere8.5上运行我的应用程序时,我面临一个问题 FFDC Exception:com.ibm.ws.webcontainer.exception.WebAppNotLoadedException SourceId:com.ibm.ws.webcontainer.WebContainer ProbeId:736 Reporter:com.ibm.ws.webcontainer.WSWebContainer@e152ede7 com.ibm.ws.webcontainer.e

当我尝试在WebSphere8.5上运行我的应用程序时,我面临一个问题

FFDC Exception:com.ibm.ws.webcontainer.exception.WebAppNotLoadedException SourceId:com.ibm.ws.webcontainer.WebContainer ProbeId:736 Reporter:com.ibm.ws.webcontainer.WSWebContainer@e152ede7
com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: JVMVRFY027 receiver is incompatible with declaring class&#59; class=org/primefaces/component/gmap/GMap, method=queueEvent(Ljavax/faces/event/FacesEvent
&#59;)V, pc=676
        at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:176)
        at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
        at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
        at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
        at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1177)
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
        at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:776)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1379)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2189)
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:389)
        at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:332)
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:119)
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:607)
        at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5474)
        at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5600)
        at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:565)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1269)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69)
        at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272)
        at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1152)
        at java.security.AccessController.doPrivileged(AccessController.java:298)
        at com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
        at sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
        at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1146)
        at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:999)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:847)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:783)
        at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
        at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
        at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
        at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
        at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
        at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
        at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
        at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
        at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
        at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
        at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1864)
Caused by: java.lang.VerifyError: JVMVRFY027 receiver is incompatible with declaring class; class=org/primefaces/component/gmap/GMap, method=queueEvent(Ljavax/faces/event/FacesEvent;)V, pc=676
        at java.lang.J9VMInternals.verifyImpl(Native Method)
        at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:171)
问题似乎是PrimeFaces或javax faces的版本,但我甚至没有在我的项目中使用GMAP对象

在Tomcat7上,一切正常,工作正常,但当我尝试在WebSphere中加载我的应用程序时,这一切都失败了

我正在使用PrimeFaces5和javax.faces.2.2.0

更新

在Gas回答之前,我用eclipse更改了项目方面。我更改了web模块(3.0)、jst.jsf(2.2)和java版本(1.6)

在tomcat上一切正常,但在WS中它确实向我显示了相同的错误

这太令人沮丧了

更新

7天后我就想不出来了。看来8.5.5是行不通的。 现在它继续给出:

Failed to load webapp: javax.servlet.ServletContainerInitializer: Provider       com.sun.faces.config.FacesInitializer not a subtype
我按照以下链接尝试解决问题:

(我已经在使用共享库-父库,并且我尽可能地更改了“jsp和JSF选项”)

我还搜索了maven rep上的所有LIB和依赖项

我正在使用:

javax.el-api-2.2.1.jar

javax.faces-2.2.0.jar

javax.servlet.jsp-api-2.2.1.jar

javax.servlet-api-3.0.1.jar

我做错了什么

我不得不说,所有这些都可以在IBMLiberty 8.5和ApacheTomcat7上运行

更新 是的,根据这个链接:

我试着做如下所列的事情:下面是:

1) Under RAD produce a Ear File
2) Start the admin console
3) Panel: Environment (at right)
4) Sub-menu: Shared libraries
5) Button New and select the required fields. Read with attention the                             tooltip on each field
 6) Check the box Class Loading - Use an isolated class loader for this shared library 
 7) Panel: Applications > Application Types > WebSphere enterprise applications
 8) Button: Install, select your ear and Next
 9) Select the radio button: Detailed - Show all installation options and parameters.
 10) Follow the steps - moslty default value are ok
 10.1) Step 4 Map shared libraries
 10.2) Select your ear
 10.3) Button: References Shared Libraries
 10.4) Select your library previously created and OK button
 10.5) Follow the next steps and start your ear file

 10.a) If it does not work, then try to create a class loader Panel: Servers > Server Types > WebSphere application servers > Your server (server1)
 10.b) Panel: Server Infrastructure > Java and Process Management > Class loader
 10.c) Button New: > Class loader order > Classes loaded with local class loader first (Parent Last)
 10.d) Apply Button
 10.e) Then at the same panel: Shared library references link
 10.f) Button Add and select your shared library, OK and Save
 10.g) Restart your server and your application

WebSphere附带了JSF2.0(MyFaces)。要使用您自己的实现,您需要更改JSF配置。检查这一页。它详细解释了您必须做什么(基本上是创建独立的共享库并配置JSF设置)

我已经成功地解决了这个问题,从一开始就手动清理websphere缓存和安装并重新构建。使用
/bin/clearClassCache
脚本并从
c:\users\User\AppData\Local\javasharedresources\
手动删除文件。
重新构建并重新部署了应用程序,它成功了。

您是否在WEB-INF/lib或共享库中包含javax.servlet-api-3.0.1.jar、javax.el-api-2.2.1.jar、javax.servlet.jsp-api-2.2.1.jar?然后移除它们。请提供您在WEB-INF/lib中拥有的JAR以及您在共享库中定义的JAR。您好,谢谢您的回复。我所有的JAR都是在我的共享库(甚至hibernate、poi等)中定义的,它们不在WEB-INF/lib文件夹中。javax.servlet-api-3.0.1.jar、javax.el-api-2.2.1.jar、javax.servlet.jsp-api-2.2.1.jar都在我的共享文件夹中。我必须从共享库中删除它们并将它们放入WEB-INF/LIB吗?还是维切维萨?谢谢,阿加尼刚刚从共享文件夹(javax.servlet-api-3.0.1.jar、javax.el-api-2.2.1.jar、javax.servlet.jsp-api-2.2.1.jar)中删除了这些库,但什么都没发生。同样的错误:'(您创建了独立的共享库吗?请在问题中列出您在共享库中的所有JAR以及在web inf/lib中的所有JAR。@我更新了问题,因为这里太长了