ICEfaces
  1. ICEfaces
  2. ICE-2032

Failed to get ICEFaces to work with Jetty 6.1, ICE-FACES Facelets, and Servlet 2.5, MyFaces JSF 1.2 under Maven2

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Java 1.5
      Jetty 6.1
      ICE-FACES Facelets
      Servlet 2.5
      MyFaces JSF 1.2
      Maven2

      Description

      I created my own icefaces POM and configured its dependencies. The target environment was JSF 1.2, Servlet 2.5, and Java 1.5.

      Built a war, and a very simple sample application.

      Kept on receiving:

      HTTP ERROR: 500

      /index.jsfThe expected view was not returned for the view identifier: /index.jsf

      RequestURI=/web-app-modern/index.jsf
      Caused by:

      javax.faces.application.ViewExpiredException: /index.jsfThe expected view was not returned for the view identifier: /index.jsf
      at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
      at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
      at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:125)
      at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
      at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
      at com.icesoft.faces.webapp.http.servlet.MultiViewServlet.service(MultiViewServlet.java:53)
      at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
      at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
      at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:97)
      at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
      at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
      at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
      at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:85)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
      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:313)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

        Issue Links

          Activity

          Hide
          Marco Villaloobs added a comment -

          This is the complete application.

          Show
          Marco Villaloobs added a comment - This is the complete application.
          Hide
          Marco Villaloobs added a comment -

          This is the POM file that I created, geared towards JSF 1.2 and Servlet 2.5

          Show
          Marco Villaloobs added a comment - This is the POM file that I created, geared towards JSF 1.2 and Servlet 2.5
          Hide
          Marco Villaloobs added a comment -

          Please view the attached war file and POM File.

          Use these maven commands to install your icefaces artifacts:

          mvn install:install-file -DgroupId=com.icesoft -DartifactId=icefaces-comps -Dversion=1.6.0 -Dpackaging=jar -Dfile=icefaces-comps.jar
          mvn install:install-file -DgroupId=com.icesoft -DartifactId=icefaces-facelets -Dversion=1.6.0 -Dpackaging=jar -Dfile=icefaces-facelets.jar
          mvn install:install-file -DgroupId=com.icesoft -DartifactId=icefaces -Dversion=1.6.0 -Dpackaging=jar -Dfile=icefaces.jar -DpomFile=icefaces-1.6.0.pom

          Then to run the application:

          mvn jetty:run-war

          and point your browser to http://localhost:8080/index.jsf

          Show
          Marco Villaloobs added a comment - Please view the attached war file and POM File. Use these maven commands to install your icefaces artifacts: mvn install:install-file -DgroupId=com.icesoft -DartifactId=icefaces-comps -Dversion=1.6.0 -Dpackaging=jar -Dfile=icefaces-comps.jar mvn install:install-file -DgroupId=com.icesoft -DartifactId=icefaces-facelets -Dversion=1.6.0 -Dpackaging=jar -Dfile=icefaces-facelets.jar mvn install:install-file -DgroupId=com.icesoft -DartifactId=icefaces -Dversion=1.6.0 -Dpackaging=jar -Dfile=icefaces.jar -DpomFile=icefaces-1.6.0.pom Then to run the application: mvn jetty:run-war and point your browser to http://localhost:8080/index.jsf
          Hide
          Mark Knowles added a comment -

          I am experiencing the same issue with Apache Geronimo using both Jetty and Tomcat.

          Show
          Mark Knowles added a comment - I am experiencing the same issue with Apache Geronimo using both Jetty and Tomcat.

            People

            • Assignee:
              Unassigned
              Reporter:
              Marco Villaloobs
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: