1 Reply Latest reply on Feb 25, 2009 10:38 AM by nbelaevski

    can't get RF work with Jetty

      Hi,
      it's seems like there are some conflicts when trying to set up Richfaces on a jetty server. So far i'm using facelets and the jsf ri 1.2., richfaces libs are already put into the web/lib folder.
      without richfaces startup of the server is fine, but when trying to activate richfaces on my web.xml i get this exception:

      Failed startup of context org.mortbay.jetty.webapp.WebAppContext@d5c657{/,C:\Eclipse\workspace\Project0815\Web}
      java.lang.NullPointerException
       at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:171)
       at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:221)
       at com.sun.faces.application.WebappLifecycleListener.attributeReplaced(WebappLifecycleListener.java:211)
       at org.mortbay.jetty.handler.ContextHandler$SContext.setAttribute(ContextHandler.java:1511)
       at com.sun.faces.config.ConfigureListener$ApplicationMap.put(ConfigureListener.java:1885)
       at com.sun.faces.renderkit.RenderKitUtils.loadSunJsfJs(RenderKitUtils.java:1076)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:468)
       at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
       at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
       at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
       at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
       at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
       at org.mortbay.jetty.Server.doStart(Server.java:222)
       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)...


      Any hints are highly appreaciated..
      (the above setup in the footer does not correspond to this post)