title: JSF welcome file is not recognized
body: <p>Accessing</p>
  
  <pre><code>http://localhost:8080/basicSetup/faces/index.xhtml
  </code></pre>
  
  <p>works, with the output of :</p>
  
  <blockquote>
    <p>Hello World ! Albert Kam</p>
  </blockquote>
  
  <p>but accessing</p>
  
  <pre><code>http://localhost:8080/basicSetup
  </code></pre>
  
  <p>shows </p>
  
  <blockquote>
    <p>Hello World ! #{myBean.value}</p>
  </blockquote>
  
  <p>meaning that the welcome file is not rendered as a JSF file</p>
  
  <p>I would like <code>http://localhost:8080/basicSetup</code> to have the same effect as accessing <code>http://localhost:8080/basicSetup/faces/index.xhtml</code>.</p>
  
  <p>Please share your thoughts</p>
  
  <p>jetty-maven-plugin:8.0.3.v20111011:run + jdk 7 + eclipse indigo</p>
  
  <p>Here is my web.xml file :</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"
      version="2.5"&gt;
      &lt;display-name&gt;Basic Setup Web Application&lt;/display-name&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;welcome-file-list&gt;
          &lt;welcome-file&gt;faces/index.xhtml&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;
              com.sun.faces.config.ConfigureListener
          &lt;/listener-class&gt;
      &lt;/listener&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
          &lt;param-value&gt;Development&lt;/param-value&gt;
      &lt;/context-param&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>and this is the jetty maven plugin output :</p>
  
  <pre><code>[INFO] &gt;&gt;&gt; jetty-maven-plugin:8.0.3.v20111011:run (default-cli) @ BasicSetup &gt;&gt;&gt;
  [INFO] 
  [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ BasicSetup ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 0 resource
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ BasicSetup ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ BasicSetup ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory C:\Users\albert\workspace\BasicSetup\src\test\resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ BasicSetup ---
  [INFO] No sources to compile
  [INFO] 
  [INFO] &lt;&lt;&lt; jetty-maven-plugin:8.0.3.v20111011:run (default-cli) @ BasicSetup &lt;&lt;&lt;
  [INFO] 
  [INFO] --- jetty-maven-plugin:8.0.3.v20111011:run (default-cli) @ BasicSetup ---
  [INFO] Configuring Jetty for project: BasicSetup Maven Webapp
  [INFO] webAppSourceDirectory C:\Users\albert\workspace\BasicSetup\src\main\webapp does not exist. Defaulting to C:\Users\albert\workspace\BasicSetup\src\main\webapp
  [INFO] Reload Mechanic: automatic
  [INFO] Classes = C:\Users\albert\workspace\BasicSetup\target\classes
  [INFO] Context path = /basicSetup
  [INFO] Tmp directory = C:\Users\albert\workspace\BasicSetup\target\tmp
  [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
  [INFO] Web overrides =  none
  [INFO] web.xml file = file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/WEB-INF/web.xml
  [INFO] Webapp directory = C:\Users\albert\workspace\BasicSetup\src\main\webapp
  2011-10-25 14:03:59.073:INFO:oejs.Server:jetty-8.0.3.v20111011
  2011-10-25 14:03:59.333:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
  2011-10-25 14:04:00.104:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/basicSetup,[file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/, jar:file:/C:/Users/albert/.m2/repository/org/glassfish/javax.faces/2.1.3/javax.faces-2.1.3.jar!/META-INF/resources/]},file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/
  2011-10-25 14:04:00.104:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/basicSetup,[file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/, jar:file:/C:/Users/albert/.m2/repository/org/glassfish/javax.faces/2.1.3/javax.faces-2.1.3.jar!/META-INF/resources/]},file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/
  2011-10-25 14:04:00.104:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/basicSetup,[file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/, jar:file:/C:/Users/albert/.m2/repository/org/glassfish/javax.faces/2.1.3/javax.faces-2.1.3.jar!/META-INF/resources/]},file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/
  Oct 25, 2011 2:04:00 PM com.sun.faces.config.ConfigureListener contextInitialized
  INFO: Initializing Mojarra 2.1.3 (SNAPSHOT 20110908) for context '/basicSetup'
  Oct 25, 2011 2:04:00 PM com.sun.faces.spi.InjectionProviderFactory createInstance
  INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
  Oct 25, 2011 2:04:00 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor &lt;init&gt;
  INFO: Monitoring file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/WEB-INF/faces-config.xml for modifications
  2011-10-25 14:04:00.787:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/basicSetup,[file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/, jar:file:/C:/Users/albert/.m2/repository/org/glassfish/javax.faces/2.1.3/javax.faces-2.1.3.jar!/META-INF/resources/]},file:/C:/Users/albert/workspace/BasicSetup/src/main/webapp/
  2011-10-25 14:04:00.825:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080 STARTING
  [INFO] Started Jetty Server
  [INFO] Starting scanner at interval of 10 seconds.
  </code></pre>