Error starting Tomcat server

Asked

Viewed 105 times

0

I am inserting two Hibernate dependencies into my pom.xml

<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core -->
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>5.2.12.Final</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager -->
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-entitymanager</artifactId>
        <version>5.2.12.Final</version>
    </dependency>

When I start the Tomcat server gives error

inserir a descrição da imagem aqui

Console log:

INFORMATION: At least one JAR was Scanned for Tlds yet contained no 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 can improve startup time and JSP Compilation time. Feb 16, 2018 11:34:20 AM org.apache.Containerbase startInternal GRAVE: The Child container failed During start java.util.Concurrent.Executionexception: org.apache.Catalina.Lifecycleexception: Failed to initialize Component [org.apache.Catalina.webresources.Jarresourceset@5fd5d6d1] at java.util.Concurrent.FutureTask.report(Unknown Source) at java.util.Concurrent.FutureTask.get(Unknown Source) .....................

Feb 16, 2018 11:34:20 AM org.apache.Coyote.Abstractprotocol pause INFORMATION: Pausing Protocolhandler ["http-nio-8080"] Feb 16, 2018 11:34:20 AM org.apache.Coyote.Abstractprotocol pause INFORMATION: Pausing Protocolhandler ["ajp-nio-8009"] Feb 16, 2018 11:34:20 AM org.apache.Catalina.core.Standardservice stopInternal INFORMATION: Stopping service [Catalina] Feb 16, 2018 11:34:20 AM org.apache.Coyote.Abstractprotocol Destroy INFORMATION: Destroying Protocolhandler ["http-nio-8080"] Feb 16, 2018 11:34:20 AM org.apache.Coyote.Abstractprotocol Destroy INFORMATION: Destroying Protocolhandler ["ajp-nio-8009"]

1 answer

0

Tomcat 8.5 . Inside Catalina.properties, located in the set of / conf directories:

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\*.jar

Or go to context.xml, located in Tomcat’s / conf directory and add:

<JarScanner scanClassPath="false"/>

  • tried both ways, but the error persists.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.