4 Replies Latest reply on Aug 18, 2010 8:39 AM by Stan Silvert

    JSFUnit support for IceFaces

    Vishal Singh Newbie

      Hi guys. I am using IceFaces 1.8.2 in my web application. Just wanted to know if JSFUnit supports IceFaces? If no, is there any other unit test framework available for IceFaces (I know this community is dedicated to JSFUnit, but an answer to this question would really help me). Thanks in advance.

        • 1. Re: JSFUnit support for IceFaces
          Stan Silvert Master

          Hi Vishal,

           

          I haven't tried it myself, but it looks like the IceFaces guys have JSFUnit integration working as of version 1.8.1:

          http://jira.icefaces.org/browse/ICE-3262

           

          Please check back and let us know how it goes.

           

          Stan

          • 2. Re: JSFUnit support for IceFaces
            Vishal Singh Newbie

            Thanks Stan. I am going to evaluate it soon and then will let you know the findings.

            • 3. Re: JSFUnit support for IceFaces
              Bernard Labno Master

              JSFUnit is shipped with icefaces sample, however I cant build it, due to tons of errors in pom. After reshaping pom by myself i've hit other problems.

              Any plans on support for ICEFaces?

               

               

              javax.faces.FacesException: Can't parse stream for /address.jspx null
                      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:534)
                      at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
                      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 com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
                      at com.icesoft.faces.context.View$2$1.respond(View.java:41)
                      at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:167)
                      at com.icesoft.faces.webapp.http.servlet.JettyAdaptingServlet$ContinuationRequestResponse.respondWith(JettyAdaptingServlet.java:49)
                      at com.icesoft.faces.context.View$2.serve(View.java:48)
                      at com.icesoft.faces.context.View.servePage(View.java:130)
                      at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:51)
                      at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
                      at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
                      at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
                      at com.icesoft.faces.webapp.http.servlet.JettyAdaptingServlet.service(JettyAdaptingServlet.java:29)
                      at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
                      at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
                      at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
                      at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
                      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
                      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
                      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
                      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
                      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
                      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
                      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
                      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
                      at org.mortbay.jetty.Server.handle(Server.java:285)
                      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
                      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
                      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
                      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
                      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
                      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
                      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
              Caused by: java.lang.NullPointerException
                      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:528)
              • 4. Re: JSFUnit support for IceFaces
                Stan Silvert Master

                I wouldn't say it "ships" with an IceFaces sample.  I started to work on an IceFaces sample a long time ago and it's still sitting in the JSFUnit SVN repo.  Back then, IceFaces wasn't working with JSFUnit, but the latest reports are that IceFaces has made some changes that now allow it to work.  I haven't had time to go back and fix the example and I don't intend to any time soon.  But if someone on this board wants to get it working and post the results that would be really great.

                 

                Bernard, I suggest that you inquire about this on the IceFaces board since they were the ones who claimed to have JSFUnit/IceFaces working.

                 

                Stan