title: javax.servlet.UnavailableException: SRVE0200E - Maven webapp
body: <p>I am trying to deploy a single maven webapp on a Websphere Liberty Server.</p>
  
  <p>My code (XCCQuery.java):</p>
  
  <pre><code>package TTAQuery;
  
  import java.io.IOException;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import javax.ws.rs.core.Response;
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.PathParam;
  import javax.ws.rs.core.Response;
  
  @WebServlet(name="XCCQuery", urlPatterns={"/hello"})
  public class XCCQuery extends HttpServlet {
  
  
      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    String simpleParam = getServletConfig().getInitParameter("simpleParam");
        out.println("Hello World "+simpleParam);
            out.close();
  
      }
      protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      }
  
  }
  </code></pre>
  
  <p>My web.xml looks like this:</p>
  
  <pre><code>&lt;!DOCTYPE web-app PUBLIC
   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
  
  &lt;web-app&gt;
    &lt;display-name&gt;Archetype Created Web Application&lt;/display-name&gt;
  
    &lt;servlet&gt;
      &lt;servlet-name&gt;XCCQuery&lt;/servlet-name&gt;
      &lt;display-name&gt;XCCQuery&lt;/display-name&gt;
      &lt;description&gt;&lt;/description&gt;
      &lt;servlet-class&gt;XCCQuery&lt;/servlet-class&gt;
    &lt;/servlet&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;XCCQuery&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I try to access:
  <a href="http://localhost:9087/XCCQueryServlet/rest/hello" rel="nofollow">http://localhost:9087/XCCQueryServlet/rest/hello</a></p>
  
  <p>but always get:</p>
  
  <pre><code>Error 404: javax.servlet.UnavailableException: SRVE0200E: Servlet [XCCQuery]: Could not find required class - XCCQuery
  </code></pre>
  
  <p>Seems to be a deployment mistake for me.</p>
  
  <p>What's wrong here?</p>