3 Replies Latest reply on Jan 28, 2014 6:33 PM by Brian Leathem

    RichFaces and embedded Jetty

    Sergey Morenets Novice

      Hi

       

      I tried to use embedded Jetty Server 9 with RichFaces application. Application started but I get the constant exceptions while loading resources:

       

      Caused by: java.lang.NullPointerException: Resource input stream is null

          at org.richfaces.resource.CachedResourceImpl.readContent(CachedResourceImpl.java:139)

          at org.richfaces.resource.CachedResourceImpl.initialize(CachedResourceImpl.java:176)

          at org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:173)

          at org.springframework.faces.webflow.JsfResourceRequestHandler.handleRequest(JsfResourceRequestHandler.java:45)

          at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)

          at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)

          at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

          at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:920)

       

      When application is requesting. for example, skinning.css, it gives  404 error under embedded server. Here is full url which

      is the same if use standaline Tomcat server. But under Tomcat it works fine.

      http://localhost:8080/test/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.4.Final/PackedC…

       

      Thank you for assistance.