0 Replies Latest reply on Jun 20, 2012 12:38 PM by sasi.kumar

    JSFUnitFacesContextFactory incompatible with javax.faces.context.FacesContextFactory

    sasi.kumar

      I am using JSF1.2 with Websphere6.1. Place jsf-api in WEB-Inf lib folder. When I place all JSFUnit related jars in WEB-Inf lib folder, validation failed for web module & not able to deploy in Websphere6.1 server. And I tried by placing all the JSFunit Jars in shared library it throws below exception while accessing the application through browser. I am stuck up here for 2 days. Any idea on this?????

       

      java.lang.ClassCastException: org.jboss.jsfunit.context.JSFUnitFacesContextFactory incompatible with javax.faces.context.FacesContextFactory

      at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:229)

      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:350)

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

      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534)

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

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

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

      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

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

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)

      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$1.run(AsyncChannelFuture.java:205)

      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)