Exception Error Page
SRVE0260E:
The server can not use the error page specified for your application to handle the original exception printed below.
Exception:
Message d''erreur: java.lang.NoSuchMethodError: javax/faces/application/Application.subscribeToEvent(Ljava/lang/Class;Ljavax/faces/event/SystemEventListener;)V
Code d'erreur: 500
Servlet cible:
Pile d'erreur:
java.lang.NoSuchMethodError: javax/faces/application/Application.subscribeToEvent(Ljava/lang/Class;Ljavax/faces/event/SystemEventListener;)V
at org.omnifaces.util.Events.subscribeToEvent(Events.java:171)
at org.omnifaces.eventlistener.InvokeActionEventListener.<init>(InvokeActionEventListener.java:65)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1549)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:302)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:267)
at org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:888)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:279)
at org.apache.myfaces.config.FacesConfigurator.update(FacesConfigurator.java:223)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:72)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:149)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1667)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:944)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:507)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:374)
at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:828)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3954)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:945)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:277)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
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:1660)
-2
A
回答
3
問題是MyFaces的版本與您的應用程序和服務器中的JSF API不匹配。如果您打算在應用程序中使用自己的JSF實現,請確保將實現和API包含在應用程序或共享庫中,並確保它使用的是PARENT_LAST或獨立的類加載器。
如果您依賴於WebSphere的實現,請仔細檢查您是否在應用程序配置中選擇了適當的版本(實際上更改了服務器上的設置) - 在某些版本的服務器中,您可以更改你正在使用的JSF的實現,它切換從哪個服務器庫中獲取類。
+0
嗨jarid謝謝你的回答,我做了所有的步驟,但仍然是相同的錯誤 –
+0
它工作忘了chech ContextLoaderListener在webspher –
相關問題
- 1. 嘗試在Eclipse中運行Scala應用程序時出錯
- 2. 嘗試運行pdfbox程序時出錯
- 3. 嘗試在設備上運行應用程序時出錯
- 4. 當我嘗試使用GoogleMapApiv2運行應用程序時出錯
- 5. 嘗試運行Love2D應用程序時出錯
- 6. 。嘗試運行應用程序時出現DLL錯誤
- 7. 嘗試運行Heroku應用程序時出錯
- 8. 嘗試在Java中運行我編譯的程序時出錯
- 9. 錯誤:在嘗試運行Express.js應用程序時收聽EADDRINUSE?
- 10. 嘗試運行openssl s_server實用程序時出現OpenSSL錯誤
- 11. 嘗試運行py2exe應用程序時出現MemoryLoadError
- 12. 嘗試運行DirectX應用程序時出現黑屏
- 13. 嘗試在Windows上運行Qt應用程序的發佈版本時出錯
- 14. 嘗試在iPhone 5上運行iOS 8應用程序時出現dyld錯誤
- 15. 解析iOS版:嘗試運行應用程序時出錯(38錯誤)
- 16. 嘗試在我的應用程序中使用OKBuck時出錯
- 17. 嘗試從命令行運行應用程序時出錯:無法找到類
- 18. 嘗試運行WebView應用程序時發生錯誤
- 19. 嘗試在iPhone上測試應用程序時出錯
- 20. 嘗試在Qt中包含libvcard時出錯應用程序
- 21. 嘗試使用Xcode 8 Beta 3運行我的應用程序時出錯
- 22. 應用程序在嘗試報告錯誤時出現錯誤
- 23. GWT:Eclipse嘗試運行Web應用程序時出現「Unable to find module」錯誤
- 24. 嘗試運行nsolid獨立程序時出現錯誤
- 25. 嘗試運行程序時出現分段錯誤
- 26. 嘗試運行鏈表c程序時出錯
- 27. 嘗試運行一個簡單的RPC程序時出錯
- 28. 嘗試運行程序時出錯「main.exe已停止工作」
- 29. 運行應用程序時出錯
- 30. 運行Web應用程序時出錯?
這是說英語的網站。將來,你應該把法文翻譯成英文。我已經做了一個編輯,可能很快就會做到這一點。 – Lexi