title: Tomcat error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists
body: <p>I have NOT worked on Java, SpringBoot and Maven a lot.   I had gone through several posts for the issue mentioned above, but nothing was close to my scenario</p>
  
  <p>I compile and package SpringBoot project using <code>Maven with JDK1.8.0_172</code> on Windows 10 </p>
  
  <p>I then deploy this packaged war to Linux server (<code>RHEL with JDK1.8.0_201 and Tomcat 8</code>)</p>
  
  <p>When I hit the URL <a href="http://localhost:8080/MyApp" rel="nofollow noreferrer">http://localhost:8080/MyApp</a>, tomcat errors and I don't see anything wrong in Tomcat logs</p>
  
  <p>I am not sure what I am doing wrong.  Any help is highly appreciated</p>
  
  <p><strong>Error from Tomcat Server</strong></p>
  
  <pre><code>The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
  </code></pre>
  
  <p><strong>POM.xml file</strong></p>
  
  <pre><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;com.htc.myapp.main&lt;/groupId&gt;
    &lt;artifactId&gt;SpringProject&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt; 
    &lt;properties&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
    &lt;/properties&gt;
    &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.5.4.RELEASE&lt;/version&gt;
    &lt;/parent&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;com.bmc.remedy&lt;/groupId&gt;
  &lt;artifactId&gt;remedyapi&lt;/artifactId&gt;
  &lt;version&gt;8.1&lt;/version&gt;
  &lt;scope&gt;system&lt;/scope&gt;
  &lt;systemPath&gt;${basedir}/lib/remedyapi-8.1.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
  
      &lt;!-- JSTL tag lib --&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet.jsp.jstl&lt;/groupId&gt;
        &lt;artifactId&gt;javax.servlet.jsp.jstl-api&lt;/artifactId&gt;
        &lt;version&gt;1.2.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
        &lt;groupId&gt;taglibs&lt;/groupId&gt;
        &lt;artifactId&gt;standard&lt;/artifactId&gt;
        &lt;version&gt;1.1.2&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa --&gt;
  &lt;!-- &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
      &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
  &lt;/dependency&gt; --&gt;   
  
      &lt;!-- Tomcat for JSP rendering --&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.tomcat.embed&lt;/groupId&gt;
        &lt;artifactId&gt;tomcat-embed-jasper&lt;/artifactId&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
     &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
               &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
      &lt;version&gt;4.3.8.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
   &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;5.1.9&lt;/version&gt;
          &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
              &lt;version&gt;2.8.5&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  
              &lt;dependency&gt;
              &lt;groupId&gt;net.sourceforge.jtds&lt;/groupId&gt;
              &lt;artifactId&gt;jtds&lt;/artifactId&gt;
              &lt;version&gt;1.3.1&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;dependency&gt; 
          &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
          &lt;version&gt;2.3.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- &lt;dependency&gt;
              &lt;groupId&gt;net.sourceforge.jtds&lt;/groupId&gt;
              &lt;artifactId&gt;jtds&lt;/artifactId&gt;
              &lt;version&gt;1.3.1&lt;/version&gt;
          &lt;/dependency&gt; --&gt;
      &lt;!--    
      &lt;dependency&gt; 
          &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
          &lt;version&gt;2.3.0&lt;/version&gt;
      &lt;/dependency&gt; --&gt;
  
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
          &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
      &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
      &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
      &lt;version&gt;4.5.3&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
  &lt;/dependency&gt; 
  
  
  &lt;!-- &lt;dependency&gt; 
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt; 
          &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt; 
          &lt;version&gt;2.5.3&lt;/version&gt;  
  &lt;/dependency&gt;  --&gt;
  
  
  
  &lt;!-- https://mvnrepository.com/artifact/com.sun.jersey/jersey-client --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
      &lt;version&gt;1.19&lt;/version&gt;
  &lt;/dependency&gt;
  
    &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-cache&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
  
  
    &lt;/dependencies&gt;
  
    &lt;build&gt;
    &lt;finalName&gt;MyApp&lt;/finalName&gt;
      &lt;plugins&gt; 
        &lt;plugin&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
        &lt;/plugin&gt;
  
  
      &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
  
              &lt;/plugin&gt;
  
       &lt;/plugins&gt;
  
    &lt;/build&gt;
    &lt;procedure&gt;&lt;packaging&gt;war&lt;/packaging&gt;&lt;/properties&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I installed Tomcat 7 and was able to open the application.  However, invoking some action on application throws 'Something went wrong'</p>
  
  <p>Looking into Tomcat logs it appears there's some issue with DB connectivity</p>
  
  <p><strong>Error on Logs</strong></p>
  
  <pre><code>2019-06-19 12:42:55.943 ERROR 20177 --- [bio-8080-exec-3] o.a.tomcat.jdbc.pool.ConnectionPool      : Unable to create initial connections of pool.
  java.sql.SQLException: No suitable driver found for jdbc:jtds:sqlserver://10.xxx.xxx.xxx:1433/MyDatabase;user=username;password=pwd
  </code></pre>
  
  <p>I copied jtds-1.3.1.jar to $TOMCAT_instance/lib directory and also tried used the following DB settings but <strong>NOTHING</strong> worked</p>
  
  <pre><code>db_LMS.url=jdbc:jtds:sqlserver://10.xxx.xxx.xxx:1433;databaseName=MyDatabase;integratedSecurity=true;user=username;password=pwd
  spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  
          db_LMS.url=jdbc:jtds:sqlserver://10.xxx.xxx.xxx:1433/MyDatabase;user=username;password=pwd
  spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  </code></pre>
  
  <p>Any help on this issue is highly appreciated</p>