title: Deploy a swagger generated RESTFUL API in websphere 8.5
body: <p>I have created a REST Spring-MVC webservice using swagger plugin for maven. Here is the plugin definition and goals in my pom:</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;io.swagger&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1.5&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;generate-spring-mvc&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;inputSpec&gt;${project.build.sourceDirectory}/../resources/api.yaml&lt;/inputSpec&gt;
                          &lt;language&gt;spring-mvc&lt;/language&gt;
                          &lt;modelPackage&gt;com.myproject.ws.gen.model&lt;/modelPackage&gt;
                          &lt;apiPackage&gt;com.myProject.ws.gen.api&lt;/apiPackage&gt;
                          &lt;templateDirectory&gt;${project.build.sourceDirectory}/../templates/JavaSpringMVC&lt;/templateDirectory&gt;
                          &lt;configOptions&gt;
                              &lt;sourceFolder&gt;src/main/java&lt;/sourceFolder&gt;
                              &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
                              &lt;artifactId&gt;${project.artifactId}&lt;/artifactId&gt;
                              &lt;version&gt;${project.version}&lt;/version&gt;
                          &lt;/configOptions&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;generate-yaml-dist&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;inputSpec&gt;${project.build.sourceDirectory}/../resources/api.yaml&lt;/inputSpec&gt;
                          &lt;language&gt;swagger&lt;/language&gt;
                          &lt;output&gt;${project.build.directory}/site/api&lt;/output&gt;
                          &lt;addCompileSourceRoot&gt;false&lt;/addCompileSourceRoot&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>The plugin takes then the api.yaml file, wich contains the definition of the API and generates the java code with spring annotations, additionally, I am using CORS filter to manage the requests. 
  When I deploy the war in a Websphere Liberty profile server, all runs ok, but when I try to do the same in a full WebSphere 8.5, I always get "File not found" massage from server.</p>
  
  <p>I have checked that the application is installed correctly and the generated .class files of the REST API are packaged in the .war and also that the request is processed by the CORS Filter, but for some reason it still does not work.</p>
  
  <p>Can anybody help me? </p>