0 Replies Latest reply on Aug 5, 2005 9:33 AM by Sergey Karpenkov

    JSF Help needed

    Sergey Karpenkov Newbie

      Hi!
      I'm tried to use Sun JSF library in my web page. But when i deploy or run my web module, i have exception like this:

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: Servlet.init() for servlet FacesServlet threw exception
      org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
      org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
      org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:76)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      java.lang.NullPointerException
      javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
      org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
      org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
      org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:76)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.


      My web.xml:


      <servlet-name>FacesServlet</servlet-name>
      <display-name>JSF Servlet</display-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>0</load-on-startup>

      <servlet-mapping>
      <servlet-name>FacesServlet</servlet-name>
      <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>


      All needed jars are included into WEB-INF/lib
      what do I do wrong?

      Thnx!