title: migrating to facelets 2.0 from facelets 1.x
body: <p>I'm building a web App using JSF 2.0 and had a jaf-facelets.1.1.10 jar in my WEB-INF > lib folder, so now I'm trying to remove that so I can use the built int facelets 2.0 I was reading through <a href="https://stackoverflow.com/questions/4441713/migrating-from-jsf-1-2-to-jsf-2-0/4532870#4532870">this Question which balusC answered</a> and I've done that, except teh part where it saysI need to replace FaceletViewHandler by ViewHandlerWrapper. for that I saw <a href="https://stackoverflow.com/questions/6816270/migrating-from-facelets-1-1-to-faclets-2-0-faceletviewhandler">this question</a>, but I don't have any faceletViewhandler classes in my project.</p>
  
  <p>as of now, my webxml looks like this ( please check taht I didn't miss anything, or I'm referencing something I shouldn't:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;miloWeb&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;faces/pages/index.xhtml&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
    &lt;listener&gt;
      &lt;listener-class&gt;com.bravo.listeners.ServletListener&lt;/listener-class&gt;
    &lt;/listener&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;/faces/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;servlet&gt;
          &lt;servlet-name&gt;PdfServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;com.bravo.servlets.PdfServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;    
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;PdfServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/PdfServlet&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
    &lt;filter&gt;
         &lt;filter-name&gt;MyFacesExtensionsFilter&lt;/filter-name&gt;
         &lt;filter-class&gt;org.apache.myfaces.webapp.filter.ExtensionsFilter&lt;/filter-class&gt;
    &lt;/filter&gt; 
    &lt;filter-mapping&gt;
         &lt;filter-name&gt;MyFacesExtensionsFilter&lt;/filter-name&gt;
         &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; 
    &lt;/filter-mapping&gt;
    &lt;context-param&gt;
      &lt;description&gt;
        This is to Have separated faces.config files            
      &lt;/description&gt;
      &lt;param-name&gt;javax.faces.CONFIG_FILES&lt;/param-name&gt;
      &lt;param-value&gt;
        /pages/history/faces-config.xml,
        /pages/contactInformation/faces-config.xml,
        /pages/childHealthRecord/faces-config.xml,
        /pages/dashboard/faces-config.xml,
        /pages/insurance/faces-config.xml,
        /pages/search/faces-config.xml,
        /pages/labs/faces-config.xml,
        /pages/patient/faces-config.xml,
        /pages/physical/faces-config.xml,
        /pages/notes/faces-config.xml,
        /pages/scheduler/faces-config.xml,
        /pages/settings/faces-config.xml,
        /pages/orderEntry/faces-config.xml,
        /pages/vitals/faces-config.xml
      &lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
      &lt;description&gt;State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2&lt;/description&gt;
      &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
      &lt;param-value&gt;client&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
      &lt;param-name&gt;javax.servlet.jsp.jstl.fmt.localizationContext&lt;/param-name&gt;
      &lt;param-value&gt;resources.application&lt;/param-value&gt;
    &lt;/context-param&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>And as you can see, I have quite a few faces-configs I removed the </p>
  
  <pre><code>&lt;application&gt;
          &lt;view-handler&gt;com.sun.facelets.FaceletViewHandler&lt;/view-handler&gt;
      &lt;/application&gt;
  </code></pre>
  
  <p>And now it looks like this ( I know some features I don't need like the navigation, but does it really hurt to keep it taht way?):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;faces-config
      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-facesconfig_2_0.xsd"
      version="2.0"&gt;
  
      &lt;managed-bean&gt;
          &lt;managed-bean-name&gt;vitalsBB&lt;/managed-bean-name&gt;
          &lt;managed-bean-class&gt;com.bravo.vitals.VitalsBB&lt;/managed-bean-class&gt;
          &lt;managed-bean-scope&gt;request&lt;/managed-bean-scope&gt;
      &lt;/managed-bean&gt;
      &lt;navigation-rule&gt;
          &lt;navigation-case&gt;
              &lt;from-outcome&gt;vitals&lt;/from-outcome&gt;     
              &lt;to-view-id&gt;/pages/vitals/vitals.xhtml&lt;/to-view-id&gt;
              &lt;redirect /&gt;
          &lt;/navigation-case&gt;
      &lt;/navigation-rule&gt;
  
  &lt;/faces-config&gt;
  </code></pre>
  
  <p>after doing some changes and leaving it like that, I run the project on tomcatv7 and get this <strong>error</strong>:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
      com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:452)
      com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
      org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)
  </code></pre>
  
  <p>Does that look like an error I would get for having my files like this? because all I did was remove the jar-facelets.1.1.10.jar and now I'm getting this Error. But teh App works fine b4 I remove the facelets jar, so what is the relationship between these two jars??</p>
  
  <p>I tried adding the jstl.jar but that doesn't work, it just shows me this:</p>
  
  <p><img src="https://i.stack.imgur.com/QQbkY.jpg" alt="it doesn&#39;t make sense to me"></p>