title: My web project does not work on JBoss 7 when deployed by maven
body: <p>I have tried for some hours to get one of my first servlets working on my JBoss 7.1.1 instance. <br />
  I am using Maven to compile and deploy the project as an EAR modul where the WAR file is a part of. I am using maven-war-plugin for making the war module. The structure of the web project is as follows:</p>
  
  <pre><code>--src 
     -- main
          -- java
             -- org
                -- myproject
                   -- MyServlet.java
          -- resources
          -- webapp
               -- web.xml  
  </code></pre>
  
  <p>The web.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="3.0" 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_3_0.xsd"&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;myproject&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.myproject.MyServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;myproject&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/Myproject&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>When I go to <code>http://127.0.0.1:8080/Myproject</code> I just get a <code>Status 404</code> from JBoss.
  I have really no clue on what I am doing wrong. </p>
  
  <p>When deployd on JBoss, the no errors occur in the log and everything seems alright:</p>
  
  <pre><code>14:37:15,053 INFO  [org.jboss.web] (MSC service thread 1-8) JBAS018210: Registering web context: /Myproject
  14:37:15,061 INFO  [org.jboss.as.server] (management-handler-thread - 26) JBAS018562: Redeployed "myproject.ear"
  14:37:15,061 INFO  [org.jboss.as.server] (management-handler-thread - 26) JBAS018565: Replaced deployment "myproject.ear" with deployment "myproject.ear"
  </code></pre>
  
  <p>What could be wrong?</p>