facebook

JSF Tutorial with myEclipse551, JDK1.5.10, Tomcat55

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #272165 Reply

    vamsin
    Member

    I followed the JSF tutorial and created the login demo application. After configuring the tomcat and deploying the application, I keep getting this error message:
    ========================================================================

    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to *.jsf (with the <servlet-mapping>-element), you need to access your pages as ‘sample.jsf’. If you tried to access ‘sample.jsp’, you’d get this error-message.
    at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:926)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313)
    at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:73)
    at org.apache.jsp.UserLogin_jsp._jspService(UserLogin_jsp.java:95)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

    =======================================================================

    I did not manually change anything in web.xml, it does have a servlet entry:
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>

    Does anyone know what I am missing?

    Thanks,
    Vamsi

    #272267 Reply

    Riyad Kalla
    Member

    Vamsi,
    What URL are you trying to access your pages with? My guess is that you are trying to load login.jsp or something like that, the error message points out that is wrong. You need to use whatever your url-pattern was… most likely *.faces… so you have to try and load login.faces

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSF Tutorial with myEclipse551, JDK1.5.10, Tomcat55

You must be logged in to post in the forum log in