title: JSF 2.0 Error at startup
body: <p>I have a problem configuring my JSF page.
  I used to use JSF in a software project, but that was some time ago. Now I need it for a private project and have a huge problem starting my JSF page. 
  Because it was some time ago i used it last, I decided to follow a tutorial to start. It was <a href="http://help.eclipse.org/juno/index.jsp?topic=/org.eclipse.jst.jsf.doc.user/html/gettingstarted/tutorial/JSFTools_tutorial_JSF20.html" rel="nofollow">this</a>. I tried to run it on a Tomcat 6.0 on my localhost, but I got an error showing up on the page.</p>
  
  <pre><code>type Exception report
  
  message
  
  description The server encountered an internal error () that prevented it from fulfilling this request.
  
  exception
  
  javax.servlet.ServletException
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
  root cause
  
  java.lang.StackOverflowError
      java.net.URLStreamHandler.equals(Unknown Source)
      java.net.URL.equals(Unknown Source)
      java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
      com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:95)
      com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:121)
      com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:62)
      com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:256)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:366)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
      com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
      com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
      com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
      com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
      com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
  </code></pre>
  
  <p>And I have no idea, why. The code is exatly as in the tutorial. And here is my <strong>web.xml</strong></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_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
    &lt;display-name&gt;Test&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;login.xhtml&lt;/welcome-file&gt;
    &lt;/welcome-file-list&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;*.xhtml&lt;/url-pattern&gt;
    &lt;/servlet-mapping&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;listener&gt;
      &lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;
    &lt;/listener&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I hope you can help me.
  Greetings</p>