title: How to deploy Swagger generated JAXRS server code in Websphere
body: <p>I generated JAX-RS server code for Uber API example in swagger. It is the default Json which can be found by opening <a href="http://editor.swagger.io/#/" rel="nofollow noreferrer">http://editor.swagger.io/#/</a></p>
  
  <p>Now I tried to deploy it in websphere but I see below message:</p>
  
  <pre><code>Error 404: javax.servlet.ServletException: java.io.FileNotFoundException: SRVE0190E: File not found: /v1/swagger.json
  </code></pre>
  
  <p>when I access this url: <a href="http://localhost:9080/swagger-jaxrs-server/v1/swagger.json" rel="nofollow noreferrer">http://localhost:9080/swagger-jaxrs-server/v1/swagger.json</a></p>
  
  <p>I didn't make any changes to auto generated code. </p>
  
  <p>I am using wlp-javaee7-8.5.5.9</p>
  
  <p>This is how my server.xml file looks like:</p>
  
  <pre><code>&lt;server description="new server"&gt;
  
  &lt;!-- Enable features --&gt;
  &lt;featureManager&gt;
      &lt;feature&gt;javaee-7.0&lt;/feature&gt;
      &lt;feature&gt;localConnector-1.0&lt;/feature&gt;
      &lt;feature&gt;apiDiscovery-1.0&lt;/feature&gt;
  &lt;/featureManager&gt;    
  
  &lt;basicRegistry id="basic" realm="BasicRealm"&gt; 
      &lt;!-- &lt;user name="yourUserName" password="" /&gt;  --&gt; 
  &lt;/basicRegistry&gt;
  
  &lt;!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" --&gt;
  &lt;httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/&gt;
  
  &lt;!-- Automatically expand WAR files and EAR files --&gt;
  &lt;applicationManager autoExpand="true"/&gt;
  
  &lt;applicationMonitor updateTrigger="mbean"/&gt;
  
  &lt;webApplication id="swagger-jaxrs-server" location="swagger-jaxrs-server.war" name="swagger-jaxrs-server"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Can someone point what is missing here.</p>
  
  <p><strong>UPDATE:1</strong></p>
  
  <p>This URL is working fine: <a href="http://localhost:8080/swagger-jaxrs-server/swagger.json" rel="nofollow noreferrer">http://localhost:8080/swagger-jaxrs-server/swagger.json</a>. This is the part of Json :</p>
  
  <p><a href="https://i.stack.imgur.com/uNLJk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uNLJk.png" alt="enter image description here"></a></p>
  
  <p>So, I tried the below two urls.. but both didn't work.</p>
  
  <pre><code>http://localhost:8080/swagger-jaxrs-server/estimates/price
  http://localhost:8080/swagger-jaxrs-server/v1/estimates/price
  </code></pre>
  
  <p>I don't see web.xml with autogenerated code.</p>