title: Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.util.res.StringManager.getManager(Ljava/lang/Class;)
body: <p>Getting the below error while trying to deploy war server .</p>
  
  <p>Server tomcat version:7.0.57
  server java version : 1.7</p>
  
  <p>war created using gradle tools(bootrepackage) in intellij.</p>
  
  <p>Everything works find in intellij during development.</p>
  
  <blockquote>
    <p>Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.util.res.StringManager.getManager(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;</p>
  </blockquote>
  
  <p>build.gradle</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
     dependencies {
         classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.10.RELEASE")
      }
  }
  group 'batch'
  version '1.0-SNAPSHOT'
  
  apply plugin: 'java'
  apply plugin: 'spring-boot'
  apply plugin: 'war'
  
  bootRun {
      addResources = true
  }
  
  war {
      baseName = 'Batch'
      version =  '0.1.0'
      manifest {
          attributes 'Main-Class': 'src.main.java.com.Application'
      }
  }
  
  jar {
      manifest {
          attributes 'Main-Class': 'src.main.java.com.Application'
      }
  }
  
  sourceCompatibility = 1.7
  targetCompatibility = 1.7
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.1.10.RELEASE'
      compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.24'
      compile group: 'org.json', name: 'json', version: '20180130'
      compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '1.1.10.RELEASE'
      compile group: 'javax.servlet', name: 'jstl', version: '1.2'
      compile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version: '7.0.82'
      compile group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: '1.1.10.RELEASE'
      //compile group: 'net.sourceforge.tess4j', name: 'tess4j', version: '4.0.2'
      //compile group: 'org.apache.poi', name: 'poi', version: '3.9'
  }
  </code></pre>