3 Replies Latest reply on Mar 21, 2011 1:07 PM by Rocky S

    NoClassDefFoundError on one instance in Websphere 7 Cluster

    Prasad Ganguri Newbie

      Hi,

       

      I am working with an application with jsf2.0, richfaces 3.3.3 with spring frame work has been deployed on Websphere 7 clustered servers. On one instance application works fine. But on the second instance application throws the following error. We tried with different instances, but always fails on one instance, while the other instance works fine. One observation is that, it works on the instance that starts first. Could some one help me?

       

      BaseXMLFilter E org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter Exception in the filter chain

                                       com.ibm.websphere.servlet.error.ServletErrorReport: java.lang.NoClassDefFoundError: org/richfaces/context/PartialViewContextImpl

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1762)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

          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:908)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)

          at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)

          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341)

          at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:564)

          at com.ibm._jsp._index._jspService(_index.java:85)

          at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)

          at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)

          at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)

          at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:239)

          at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:340)

          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341)

          at com.ibm.ws.webcontainer.servlet.FilterProxyServlet.dispatch(FilterProxyServlet.java:88)

          at com.ibm.ws.webcontainer.servlet.FilterProxyServlet.service(FilterProxyServlet.java:62)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:997)

          at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:985)

          at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:682)

          at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)

          at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)

          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)

          at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)

          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)

          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: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:1550)

      Caused by: java.lang.NoClassDefFoundError: org/richfaces/context/PartialViewContextImpl

          at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:59)

          at com.sun.faces.application.ViewHandlerImpl$WriteBehindStateWriter.flushToWriter(ViewHandlerImpl.java:954)

          at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:228)bh

          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)

          ... 58 more