title: GWT-Spring with Maven module error JUnit
body: <p>I am setting up a project in which I use GWT (frontend)-Spring(backend) with Maven for dependencies using mojo.codehaus plugin. When I execute the gwt:test goal in eclipse y get the next error.</p>
  
  <pre><code>Caused by: com.google.gwt.junit.JUnitFatalLaunchException: Failed to load module "com.javierdepedrolopez.webapps.adtransport.AdTransportModule.JUnit".
  [INFO] Please see the log for details.
  [INFO]  at com.google.gwt.junit.server.JUnitHostImpl.service(JUnitHostImpl.java:134)
  [INFO]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  [INFO]  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  [INFO]  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
  [INFO]  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  [INFO]  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  [INFO]  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
  [INFO]  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  [INFO]  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  [INFO]  at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
  [INFO]  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  [INFO]  at org.mortbay.jetty.Server.handle(Server.java:324)
  [INFO]  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
  [INFO]  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
  [INFO]  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
  [INFO]  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  [INFO]  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
  [INFO]  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
  [INFO]  at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
  </code></pre>
  
  <p>The JUnit module:</p>
  
  <pre><code>&lt;module rename-to="adtransportmoduleJUnit"&gt;
    &lt;inherits name="com.javierdepedrolopez.webapps.adtransport.adtransportmodule"/&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>The adtransportmodule:</p>
  
  <pre><code>&lt;module rename-to='adtransportmodule'&gt;
    &lt;inherits name='com.google.gwt.user.User' /&gt;
    &lt;inherits name='com.google.gwt.user.theme.standard.Standard' /&gt;
    &lt;entry-point class='com.javierdepedrolopez.webapps.adtransport.client.AdTransportModule' /&gt;
    &lt;source path='client' /&gt;
    &lt;source path='shared' /&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>GWTTestCaseAdTransportModule.java:</p>
  
  <pre><code>public class GwtTestAdTransportModule extends GWTTestCase {
  
    /**
     * Must refer to a valid module that sources this class.
     */
    public String getModuleName() {
      return "com.javierdepedrolopez.webapps.adtransport.AdTransportModule";
    }
  
    /**
     * Tests the FieldVerifier.
     */
    public void testFieldVerifier() {
      assertFalse(FieldVerifier.isValidName(null));
      assertFalse(FieldVerifier.isValidName(""));
      assertFalse(FieldVerifier.isValidName("a"));
      assertFalse(FieldVerifier.isValidName("ab"));
      assertFalse(FieldVerifier.isValidName("abc"));
      assertTrue(FieldVerifier.isValidName("abcd"));
    }
  }
  </code></pre>
  
  <p>Web.xml:</p>
  
  <pre><code>&lt;web-app
      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_2_5.xsd"
      metadata-complete="false"
      version="2.5"&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;!-- Servlets --&gt;
  
      &lt;!-- Front Controller for all GWT-Spring based servlets --&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;gwt&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&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;gwt&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/adtransportmodule/rpc/*&lt;/url-pattern&gt;
          &lt;url-pattern&gt;/adtransportmodule/json/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>In <code>the getModule()</code> method, if I return <code>"com.javierdepedrolopez.webapps.adtransport.adtransportmodule"</code> the result is the url given by the eclipse console returns 404. I have tried everything but no result.</p>