title: spring-boot app war deployment in Tomcat , existing spring web app fails
body: <p>In my <code>tomcat</code> contain existing <code>spring</code> web app (It not use <code>spring boot</code>), Now I developed new app use <code>spring boot</code>, when i deploy new <code>spring boot</code> app, my existing spring app not working,(It shows somthing <code>ClassNotFoundException</code>). My new <code>spring boot</code> app is working. I am using <code>maven</code> build tool.
  thanks.</p>
  
  <p><strong>This is my pom file for spring boot</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &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.test&lt;/groupId&gt;
          &lt;artifactId&gt;test-app&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
          &lt;name&gt;Test-App&lt;/name&gt;
          &lt;description&gt;Test App&lt;/description&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.3.0.RELEASE&lt;/version&gt;
              &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
          &lt;/parent&gt;
  
          &lt;properties&gt;
              &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
              &lt;java.version&gt;1.8&lt;/java.version&gt;
              &lt;guava.version&gt;16.0.1&lt;/guava.version&gt;
              &lt;start-class&gt;com.test.Application&lt;/start-class&gt;
          &lt;/properties&gt;
  
          &lt;dependencies&gt;
  
           &lt;!-- spring-boot-starter-data-jpa dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
  
              &lt;!-- spring-boot-starter-hateoas dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-hateoas&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &lt;!-- spring-boot-starter-web dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
                   &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
                  &lt;/exclusion&gt; 
              &lt;/exclusions&gt;
              &lt;/dependency&gt;
  
              &lt;!-- postgresql dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
                  &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
                  &lt;version&gt;9.4-1201-jdbc41&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt;
                  &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;!-- test dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;!-- spring security dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
                  &lt;version&gt;1.1.9.RELEASE&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.security.oauth&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-security-oauth2&lt;/artifactId&gt;
                  &lt;version&gt;2.0.7.RELEASE&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-security-jwt&lt;/artifactId&gt;
                  &lt;version&gt;1.0.3.RELEASE&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt;
              &lt;/dependency&gt;   
  
              &lt;!-- jayway  dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;com.jayway.jsonpath&lt;/groupId&gt;
                  &lt;artifactId&gt;json-path&lt;/artifactId&gt;
                  &lt;version&gt;2.0.0&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Guava dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
                  &lt;artifactId&gt;guava&lt;/artifactId&gt;
                  &lt;version&gt;19.0-rc2&lt;/version&gt;
               &lt;/dependency&gt;
  
              &lt;!-- Java EE dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.inject&lt;/groupId&gt;
                  &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
                  &lt;version&gt;1&lt;/version&gt;
              &lt;/dependency&gt;
  
  
              &lt;!-- swagger dependency --&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;io.springfox&lt;/groupId&gt;
                  &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
                  &lt;version&gt;2.2.2&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;io.springfox&lt;/groupId&gt;
                  &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
                  &lt;version&gt;2.2.2&lt;/version&gt;
              &lt;/dependency&gt;
  
          &lt;!-- lombok dependency --&gt;
  
              &lt;dependency&gt; 
                  &lt;groupId&gt;org.projectlombok&lt;/groupId&gt; 
                  &lt;artifactId&gt;lombok&lt;/artifactId&gt; 
                  &lt;version&gt;1.16.6&lt;/version&gt; 
                  &lt;scope&gt;provided&lt;/scope&gt; 
              &lt;/dependency&gt;
              &lt;!-- jose4j dependency for oauth --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.bitbucket.b_c&lt;/groupId&gt;
                  &lt;artifactId&gt;jose4j&lt;/artifactId&gt;
                  &lt;version&gt;0.4.4&lt;/version&gt;
              &lt;/dependency&gt;
  
          &lt;!-- spring-context-support dependency for cachemanager --&gt; 
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
  
              &lt;!-- jettison dependency  --&gt;   
              &lt;dependency&gt;
                  &lt;groupId&gt;org.codehaus.jettison&lt;/groupId&gt;
                  &lt;artifactId&gt;jettison&lt;/artifactId&gt;
                  &lt;version&gt;1.3.7&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!-- spring-boot-starter-tomcat dependency  --&gt; 
  
              &lt;!-- Add tomcat only if I want to run directly --&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;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>This is my spring mvc pom 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/maven-v4_0_0.xsd"&gt;
        &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
        &lt;groupId&gt;com.test.auth&lt;/groupId&gt;
        &lt;artifactId&gt;Oauth&lt;/artifactId&gt;
        &lt;packaging&gt;war&lt;/packaging&gt;
        &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
        &lt;name&gt;Oauth Maven Webapp&lt;/name&gt;
        &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;properties&gt;
              &lt;hibernate.version&gt;4.3.6.Final&lt;/hibernate.version&gt;
              &lt;!-- Logging --&gt;
              &lt;logback.version&gt;1.0.13&lt;/logback.version&gt;
              &lt;slf4j.version&gt;1.7.5&lt;/slf4j.version&gt;
          &lt;/properties&gt;
  
          &lt;repositories&gt;
              &lt;repository&gt;
                  &lt;id&gt;maven2-repository.java.net&lt;/id&gt;
                  &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
                  &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
              &lt;/repository&gt;
          &lt;/repositories&gt;
  
          &lt;dependencies&gt;
              &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;4.11&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
              &lt;dependency&gt;
          &lt;groupId&gt;org.bitbucket.b_c&lt;/groupId&gt;
          &lt;artifactId&gt;jose4j&lt;/artifactId&gt;
          &lt;version&gt;0.4.3&lt;/version&gt;
        &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-lang&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Jersey --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
                  &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
                  &lt;version&gt;1.8&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.sun.jersey.contribs&lt;/groupId&gt;
                  &lt;artifactId&gt;jersey-multipart&lt;/artifactId&gt;
                  &lt;version&gt;1.8&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;!-- Spring 3 dependencies --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
                  &lt;version&gt;4.0.5.RELEASE&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;4.0.5.RELEASE&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;4.0.5.RELEASE&lt;/version&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.0.5.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
  
  
              &lt;!-- Jersey + Spring --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.sun.jersey.contribs&lt;/groupId&gt;
                  &lt;artifactId&gt;jersey-spring&lt;/artifactId&gt;
                  &lt;version&gt;1.8&lt;/version&gt;
                  &lt;exclusions&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                          &lt;artifactId&gt;spring&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                  &lt;/exclusions&gt;
              &lt;/dependency&gt;
  
  
  
              &lt;!-- jakson --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
                  &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
                  &lt;version&gt;1.8&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;!-- Spring Security --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
              &lt;version&gt;3.2.3.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
              &lt;version&gt;3.2.3.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  
          &lt;!-- Hibernate --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
                  &lt;version&gt;${hibernate.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
                  &lt;version&gt;${hibernate.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                      &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
                       &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
                       &lt;version&gt;9.3-1100-jdbc41&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;commons-dbcp&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
                  &lt;version&gt;1.4&lt;/version&gt;
              &lt;/dependency&gt;
          &lt;!-- Servlet Context --&gt;
  
          &lt;dependency&gt;
                &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                  &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;3.0.1&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
                  &lt;version&gt;4.0.5.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
      &lt;!-- Spring ORM support --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
                  &lt;version&gt;4.0.5.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
  
  
              &lt;dependency&gt;
          &lt;groupId&gt;ph.samson&lt;/groupId&gt;
          &lt;artifactId&gt;cors-filter&lt;/artifactId&gt;
          &lt;version&gt;1.5.0.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
          &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-dbcp2&lt;/artifactId&gt;
                  &lt;version&gt;2.0.1&lt;/version&gt;
              &lt;/dependency&gt;
      &lt;/dependencies&gt;
        &lt;build&gt;
          &lt;finalName&gt;Oauth&lt;/finalName&gt;
        &lt;/build&gt;
      &lt;/project&gt;
  </code></pre>
  
  <p><strong>full stack trace</strong></p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
          org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29)
          org.jboss.logging.LoggerProviders.find(LoggerProviders.java:33)
          org.jboss.logging.LoggerProviders.&amp;lt;clinit&amp;gt;(LoggerProviders.java:28)
          org.jboss.logging.Logger.getLogger(Logger.java:2163)
          org.jboss.logging.Logger$1.run(Logger.java:2263)
          java.security.AccessController.doPrivileged(Native Method)
          org.jboss.logging.Logger.getMessageLogger(Logger.java:2227)
          org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)
          org.hibernate.cfg.Configuration.&amp;lt;clinit&amp;gt;(Configuration.java:192)
          org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:324)
          com.cherry.oauth.multitenant.connection.provider.MultiTenantConnectionProvider.getSessionFactory(MultiTenantConnectionProvider.java:80)
          com.cherry.oauth.multitenant.dbhandler.TenantSesionFactory.getSession(TenantSesionFactory.java:49)
          com.cherry.oauth.service.MyAuthServiceImpl.authenticate(MyAuthServiceImpl.java:89)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke(Method.java:483)
          com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
          com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ObjectOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:258)
          com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
          com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
          com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
          com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
          com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
          com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
          com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
          com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
          com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
          com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
          com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
          com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
          com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
          org.apache.catalina.filters.CorsFilter.handleSimpleCORS(CorsFilter.java:301)
          org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:169)
      &lt;/pre&gt;&lt;p&gt;&lt;b&gt;root cause&lt;/b&gt;&lt;/p&gt;&lt;pre&gt;java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
          org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
          org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
          org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29)
          org.jboss.logging.LoggerProviders.find(LoggerProviders.java:33)
          org.jboss.logging.LoggerProviders.&amp;lt;clinit&amp;gt;(LoggerProviders.java:28)
          org.jboss.logging.Logger.getLogger(Logger.java:2163)
          org.jboss.logging.Logger$1.run(Logger.java:2263)
          java.security.AccessController.doPrivileged(Native Method)
          org.jboss.logging.Logger.getMessageLogger(Logger.java:2227)
          org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)
          org.hibernate.cfg.Configuration.&amp;lt;clinit&amp;gt;(Configuration.java:192)
          org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:324)
          com.cherry.oauth.multitenant.connection.provider.MultiTenantConnectionProvider.getSessionFactory(MultiTenantConnectionProvider.java:80)
          com.cherry.oauth.multitenant.dbhandler.TenantSesionFactory.getSession(TenantSesionFactory.java:49)
          com.cherry.oauth.service.MyAuthServiceImpl.authenticate(MyAuthServiceImpl.java:89)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke(Method.java:483)
          com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
          com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ObjectOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:258)
          com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
          com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
          com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
          com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
          com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
          com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
          com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
          com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
          com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
          com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
          com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
          com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
          com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
          org.apache.catalina.filters.CorsFilter.handleSimpleCORS(CorsFilter.java:301)
          org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:169)
  </code></pre>