title: Issues converting websphere project to maven - Context Root Not Found
body: <p>There was an application  working properly for while but it wasn't a maven Project. Every library was managed by adding it manualy. So, inside of Spring Tool Suite, I right clicked in Configure >> Convert to Maven. Then I updated POM as below and there is no error in my IDE. Additionally, I can build the Project successfuly and I can see the class files in webinf/classes. However, I get "Context Root Not Found" in browser when  trying to access the application and I see the warnning when deploying it to server either in EAR or WAR "The application app could not be started as it could not be found at location app".</p>
  
  <p>I am complete confuse about what can be the cause as all complains about libraries were fixed through POM. The only big diference I noted was that in Java Build Path, before I turned the Project to Maven, when I clicked in WebSphere Application Server V8.5 Liberty Profile there were a couple of libraries. Now, after turned the Project to Maven, when I click in it, there is no library. I reinstalled the server, created a new  profile and associated it to build path just in case it could be the problem but I am still seing no libraries when clicking in WebSphere Application Server V8.5 Liberty Profile. Do I have to add a dependency from IBM in POM? Is there any step to convert a old Project to Maven? I searched a lot and all recommendations I saw is related to add the dependency in POM which I have done as below but if there is na especific dependendy that I have to add in reason of being WebSphere I have no idea.</p>
  
  
  
  <pre class="lang-xaml prettyprint-override"><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;app&lt;/groupId&gt;
    &lt;artifactId&gt;app &lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
         &lt;name&gt;App Maven Webapp&lt;/name&gt;
         &lt;url&gt;http://maven.apache.org&lt;/url&gt;
         &lt;properties&gt;
                &lt;spring.version&gt;3.0.5.RELEASE&lt;/spring.version&gt;
                &lt;java-version&gt;1.6&lt;/java-version&gt;
                &lt;org.aspectj-version&gt;1.7.4&lt;/org.aspectj-version&gt;
                &lt;org.slf4j-version&gt;1.7.5&lt;/org.slf4j-version&gt;
                &lt;jackson.databind-version&gt;2.2.3&lt;/jackson.databind-version&gt;
         &lt;/properties&gt;
         &lt;dependencies&gt;
                &lt;dependency&gt;
                       &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
                       &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
                       &lt;version&gt;4.1.1&lt;/version&gt;
                &lt;/dependency&gt;
                &lt;dependency&gt;
                       &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                       &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
                       &lt;version&gt;2.5&lt;/version&gt;
                &lt;/dependency&gt;
                &lt;dependency&gt;
                    &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
                    &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
                    &lt;version&gt;1.9.12&lt;/version&gt;
                &lt;/dependency&gt;
                &lt;dependency&gt;
                       &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                       &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
                       &lt;version&gt;${spring.version}&lt;/version&gt;
                &lt;/dependency&gt;
                &lt;dependency&gt;
                       &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                       &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
                       &lt;version&gt;${spring.version}&lt;/version&gt;
                &lt;/dependency&gt;
                &lt;dependency&gt;
                       &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                       &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
                       &lt;version&gt;${spring.version}&lt;/version&gt;
                &lt;/dependency&gt;
                &lt;dependency&gt;
                       &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                       &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
                       &lt;version&gt;${spring.version}&lt;/version&gt;
                &lt;/dependency&gt;
         &lt;/dependencies&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;directory&gt;src&lt;/directory&gt;
          &lt;excludes&gt;
            &lt;exclude&gt;**/*.java&lt;/exclude&gt;
          &lt;/excludes&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.6&lt;/source&gt;
            &lt;target&gt;1.6&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.4&lt;/version&gt;
          &lt;configuration&gt;
            &lt;warSourceDirectory&gt;WebContent&lt;/warSourceDirectory&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  </code></pre>
  
  <p>Spring Tool Suite console:</p>
  
  <pre class="lang-xaml prettyprint-override"><code>[AUDIT   ] CWWKG0017I: The server configuration was successfully updated in 0.488 seconds.
  
  [WARNING ] CWWKZ0014W: The application app_original could not be started as it could not be found at location app.war.
  
  [AUDIT   ] CWWKT0016I: Web application available (default_host): http://...:8080/app_original/
  
  [AUDIT   ] CWWKZ0001I: Application app_original started in 2.565 seconds.
  
  [WARNING ] Cannot search for matching files underneath URL [bundleresource://100.fwk4347180/] because it does not correspond to a directory in the file system
  
  URL [bundleresource://100.fwk4347180/] cannot be resolved to absolute file path because it does not reside in the file system: bundleresource://100.fwk4347180/
  
  [WARNING ] Cannot search for matching files underneath URL [bundleresource://99.fwk4347180/] because it does not correspond to a directory in the file system
  
  URL [bundleresource://99.fwk4347180/] cannot be resolved to absolute file path because it does not reside in the file system: bundleresource://99.fwk4347180/
  
  [WARNING ] Skipping [C:\STS\ws\app_original\WebContent\WEB-INF\lib\db2java.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\STS\ws\app_original\WebContent\WEB-INF\lib\jeapCore-03.02.1.2.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\STS\ws\app_original\WebContent\WEB-INF\lib\upload.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\apache\httpcomponents\httpclient\4.1.1\httpclient-4.1.1.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\apache\httpcomponents\httpcore\4.1\httpcore-4.1.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\commons-codec\commons-codec\1.4\commons-codec-1.4.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.12\jackson-mapper-asl-1.9.12.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.12\jackson-core-asl-1.9.12.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-core\3.0.5.RELEASE\spring-core-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-asm\3.0.5.RELEASE\spring-asm-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-web\3.0.5.RELEASE\spring-web-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-beans\3.0.5.RELEASE\spring-beans-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-webmvc\3.0.5.RELEASE\spring-webmvc-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-context-support\3.0.5.RELEASE\spring-context-support-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-expression\3.0.5.RELEASE\spring-expression-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-context\3.0.5.RELEASE\spring-context-3.0.5.RELEASE.jar] because it does not denote a directory
  
  [WARNING ] Skipping [C:\Users\e049447\.m2\repository\org\springframework\spring-aop\3.0.5.RELEASE\spring-aop-3.0.5.RELEASE.jar] because it does not denote a directory
  </code></pre>