I made an app with springboot and when I squeeze it inside springboot it works normally but when I generate the war and boto to run in tomcat it gives some errors. I've tried some things I've seen on the internet but so far nothing has helped me. I have no idea what these mistakes mean or what to do to solve, the only one I know, for the logs, is that something is related to jdbc or hibernate ...
No manager will see these messages:
FAIL - Application in context path /noivas-0.0.1-SNAPSHOT could not be started FAIL - Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/noivas-0.0.1-SNAPSHOT]]
And in the logs:
GRAVE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/noivas-0.0.1-SNAPSHOT]] (continued ...)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration
Caused by: org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration
Caused by: java.lang.NoClassDefFoundError: javax / el / ELManager
GRAVE: Deploying web application archive error C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ webapps \ bridal-0.0.1-SNAPSHOT.war java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/noivas-0.0.1-SNAPSHOT]]
GRAVE: The web application [/noivas-0.0.1-SNAPSHOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Jul 19, 2018 9:51:43 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
GRAVE: The web application [/noivas-0.0.1-SNAPSHOT] appears to have started a thread named [Abandoned connection cleanup thread] but failed to stop it. This is very likely to create a memory leak. Jul 19, 2018 9:51:43 AM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFORMATION: validateJarFile (C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ webapps \ brides-0.0.1-SNAPSHOT \ WEB-INF \ lib \ tomcat-embed-core-8.5.31.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax / servlet / Servlet.class Jul 19, 2018 9:51:43 AM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFORMATION: validateJarFile (C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ webapps \ brides-0.0.1-SNAPSHOT \ WEB-INF \ lib \ tomcat-embed-el-8.5.31.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax / el / Expression.class Jul 19, 2018 9:51:44 AM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
INFORMATION: Illegal access: this web application instance has been stopped already. Could not load. The eventual following stack trace is due to an error thrown for debugging purposes as well as attempt to terminate the thread that caused the illegal access, and has not functional impact. Jul 19, 2018 9:51:48 AM org.apache.catalina.startup.TldConfig execute
INFORMATION: At least one JAR was scanned for TLDs yet contained in TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning JSP compilation time.