title: Setup Project with JSF2.0 & Prime Faces
body: <p>I am try to setup JSF project with prime faces library 
    When I run this setup it shows be following error </p>
  
  <pre><code>org.apache.jasper.JasperException: javax.servlet.ServletException: null source
  org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:54
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  </code></pre>
  
  <p>I did not able to find out reason behind it .<br> following is by setup <br></p>
  
  <p>Folloing are the library I included into web-inf/lib <br>
    1. jsf-api-2.0.3.jar <br>
    2. jsf-impl-2.0.3.jar <br>
    3. jstl-1.0.2.jar <br>
    4. primefaces-3.4.jar <br></p>
  
  <p>Following are the entrires into web.xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
          &lt;param-value&gt;server&lt;/param-value&gt;
      &lt;/context-param&gt; 
  
      &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;
          &lt;param-value&gt;.xhtml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;primefaces.skin&lt;/param-name&gt;
          &lt;param-value&gt;none&lt;/param-value&gt;
      &lt;/context-param&gt;
  
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;welcome-file-list&gt; 
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
       &lt;/welcome-file-list&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;
              com.nsf.ecap.web.base.ECapStartUpServlet
          &lt;/listener-class&gt;
      &lt;/listener&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p><br>login.xhtml <br> </p>
  
  <pre><code>&lt;h:body&gt;   
  
   &lt;CENTER&gt;  
  
       &lt;h:panel header="Login Form"&gt;    
       &lt;h:Form&gt;  
           &lt;h:PanelGrid columns="2" cellpadding="2"&gt;  
           &lt;h:outputLabel value="UserName" for="#{loginBBean.userInfo.username}"&gt; &lt;/h:outputLabel&gt;
           &lt;h:inputText value="#{loginBBean.userInfo.username}" label="UserName"&gt;   &lt;/h:inputText&gt;  
           &lt;h:outputLabel value="Password" for="#{loginBBean.userInfo.password}"&gt;&lt;/h:outputLabel&gt;  
           &lt;h:inputSecret value="#{loginBBean.userInfo.password}"&gt;&lt;/h:inputSecret&gt;  
           &lt;h:commandButton value="Login" type="submit" action="#{loginBBean.doLogin}"&gt;&lt;/h:commandButton&gt;   
  
          &lt;/h:PanelGrid&gt;  
  
      &lt;h:messages&gt;
      &lt;/h:messages&gt;
  
  
  
      &lt;/h:Form&gt;
      &lt;/h:panel&gt;
  &lt;/CENTER&gt;  
  &lt;/h:body&gt;  
  &lt;/html&gt; 
  </code></pre>
  
  <p><br> index.jsp</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;base href="&lt;%=basePath%&gt;"&gt;
  
      &lt;title&gt;My JSP 'index.jsp' starting page&lt;/title&gt;    
      &lt;meta http-equiv="pragma" content="no-cache"&gt;
      &lt;meta http-equiv="cache-control" content="no-cache"&gt;
      &lt;meta http-equiv="expires" content="0"&gt;      
      &lt;meta http-equiv="keywords" content="keyword1,keyword2,keyword3"&gt;
      &lt;meta http-equiv="description" content="This is my page"&gt;
      &lt;!--
      &lt;link rel="stylesheet" type="text/css" href="styles.css"&gt;
      --&gt;
    &lt;/head&gt;
  
    &lt;body&gt;        
      &lt;jsp:forward page="jsp/login/login.jsf"/&gt;      
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>