2012-10-02 116 views
2

有沒有人在Websphere 7或8上部署YAWL resourceService。我們正在嘗試做同樣的事情,但是在輸入憑證後會出現JSF錯誤。看來JSF的IBM websphere實現與resourceService使用的實現不兼容。有人可以借鑑如何強制WebSphere使用捆綁在應用程序本身中的JSF實現,而不是使用它自己的實現。 這是異常堆棧跟蹤,我越來越。在websphere上部署YAWL resourceService

[9/24/12 15:56:05:138 IST] 00000015 lifecycle  E JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: "") Exception thrown during phase execution: javax.faces.event.PhaseEvent[[email protected]] 
[9/24/12 15:56:05:143 IST] 00000015 servlet  E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet Faces Servlet in application resourceService_war. Exception created : javax.servlet.ServletException: Array index out of range: 4 
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1384) 
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131) 
    at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194) 
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) 
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) 
    at org.yawlfoundation.yawl.resourcing.jsf.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:71) 
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) 
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) 
    at org.yawlfoundation.yawl.util.CharsetFilter.doFilter(CharsetFilter.java:52) 
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) 
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) 
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77) 
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:785) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175) 
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610) 
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274) 
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926) 
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557) 
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173) 
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455) 
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384) 
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272) 
    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:165) 
    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:202) 
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766) 
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896) 
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527) 
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 4 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1167) 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1171) 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1171) 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1171) 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1171) 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1171) 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1171) 
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1171) 
    at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:205) 
    at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:334) 
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:337) 
    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:176) 
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) 
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104) 
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) 
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) 
    ... 35 more 
+0

請提供生成的錯誤日誌。另外,websphere 7或8,哪一個? –

+0

我正在使用websphere 7.但我們也必須將它移植到8。 – CuriousMind

+0

提供您獲得的錯誤日誌。還提供了您的應用程序使用的jsf的詳細信息?版本? Fyi有7艘myfaces1.2和was8有jsf2.0 ..請更新問題與問的詳細信息,以便可以help.you更好 –

回答

0

websphere默認提供了JSF1.2的實現。

在描述的情況下,您可以配置您的應用程序以使用應用程序內部提供的JSF版本。

我想THIS是你在找什麼。

請按照上述文檔中的說明配置您的服務器以從應用程序中獲取jsf。

+0

堆棧跟蹤:00000015生命週期E JSF1054 :(階段ID:RESTORE_VIEW 1,視圖ID:「」)階段執行期間拋出的異常:javax.faces.event.PhaseEvent [source = [email protected]] 00000015 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper服務SRVE0068E:未在應用程序resourceService_war中的Servlet Faces Servlet的服務方法之一中創建的未捕獲異常。創建異常:javax.servlet.ServletException:數組索引超出範圍:4位於javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)... – CuriousMind

+0

@CuriousMind請發佈完整的堆棧跟蹤。並用它更新問題。不要發表評論。其難以閱讀 –

0

好奇心, 請嘗試通過更改web.xml中的屬性(STATE_SAVING_METHOD)將狀態保存模式更改爲客戶端。

+0

你能擺脫例外嗎? –

+0

沒有運氣,它仍然失敗。 :( – CuriousMind

+0

你能解決嗎? –

相關問題