2017-07-14 116 views
-2
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) 
+0

這是說英語的網站。將來,你應該把法文翻譯成英文。我已經做了一個編輯,可能很快就會做到這一點。 – Lexi

回答

3

問題是MyFaces的版本與您的應用程序和服務器中的JSF API不匹配。如果您打算在應用程序中使用自己的JSF實現,請確保將實現和API包含在應用程序或共享庫中,並確保它使用的是PARENT_LAST或獨立的類加載器。

如果您依賴於WebSphere的實現,請仔細檢查您是否在應用程序配置中選擇了適當的版本(實際上更改了服務器上的設置) - 在某些版本的服務器中,您可以更改你正在使用的JSF的實現,它切換從哪個服務器庫中獲取類。

+0

嗨jarid謝謝你的回答,我做了所有的步驟,但仍然是相同的錯誤 –

+0

它工作忘了chech ContextLoaderListener在webspher –

相關問題