title: com.sun.faces.config.ConfigurationException: no web.xml present
body: <p>I programmed an application with JSF and some other fraeworks. Then I destroyed my metadata with maven and then I created a new project and imported all my classes and config files into the new project. So that I have clean metadata. The Project can be built without problems now. But when I want to start it onto tomcat I get the following exception:</p>
  
  <pre><code>com.sun.faces.config.ConfigurationException: no web.xml present
   at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:785)
   at com.sun.faces.config.ConfigureListener$WebXmlProcessor.&lt;init&gt;(ConfigureListener.java:745)
   at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:173)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
   at org.apache.catalina.core.StandardService.start(StandardService.java:519)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  </code></pre>
  
  <p>But there is definitely a <code>web.xml</code> in that project. Has somebody an idea where my mistake could be? Thank you</p>
  
  <hr>
  
  <h2>Update</h2>
  
  <ul>
  <li><p>Yes I am using m2Eclipse!</p></li>
  <li><p>My directory tree looks like:</p></li>
  </ul>
  
  <p><em>OLD</em></p>
  
  <p>My Servlet is there as well:</p>
  
  <pre><code>  &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;
  </code></pre>
  
  <hr>
  
  <h2>UPDATE2</h2>
  
  <ul>
  <li>Directories (after BalusC Commend):
  <a href="http://www.mkyong.com/maven/how-to-convert-java-web-project-to-maven-project/" rel="nofollow noreferrer">Here</a> I have found a good Manual about Maven Web Projects. But unfortunately the problem stayed the same. 
  My directory structure looks like:
  <img src="https://i.stack.imgur.com/u9ufA.png" alt="alt text"></li>
  </ul>
  
  <hr>
  
  <h2>UPDATE3</h2>
  
  <p>Response to Pascal's comment:</p>
  
  <ul>
  <li><code>mvn clean compile</code> is successfull</li>
  <li><p><code>mvn install</code> throws a build error: </p>
  
  <p><code>[INFO] Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if execut ing in update mode)</code></p></li>
  </ul>
  
  <p>I executed those commands from windows console</p>
  
  <hr>
  
  <p>Maybe the problem is something else. There is another Warning while starting the server:</p>
  
  <pre><code>27.08.2010 09:04:52 org.apache.tomcat.util.digester.SetPropertiesRule begin
  WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:studentportal' did not find a matching property.
  </code></pre>
  
  <p>Maybe that helps?</p>