Java Tomcat类路径包含重复的Catalina Server.class

Java Tomcat类路径包含重复的Catalina Server.class,java,spring,maven,tomcat,catalina,Java,Spring,Maven,Tomcat,Catalina,试图运行springboot应用程序,但我遇到了一个问题,告诉我“请更正应用程序的类路径,使其包含org.apache.catalina.Server的一个兼容版本”。我在依赖关系树中看不到任何表示重复依赖关系的内容。我还试图从下面的核心依赖项中排除J2EEGroupID,但没有效果 聚甲醛 任何帮助都将不胜感激。谢谢 <parent> <groupId>org.springframework.boot</groupId> <artifa

试图运行springboot应用程序,但我遇到了一个问题,告诉我“请更正应用程序的类路径,使其包含org.apache.catalina.Server的一个兼容版本”。我在依赖关系树中看不到任何表示重复依赖关系的内容。我还试图从下面的核心依赖项中排除J2EEGroupID,但没有效果

聚甲醛

任何帮助都将不胜感激。谢谢

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.4.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>*The Group id*</groupId>
<artifactId>*the artifact id*</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>my-project</name>

<properties>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>*the group id*</groupId>
        <artifactId>core</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-validation</artifactId>
        <version>2.3.4.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
        <version>2.3.4.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.apache.ibatis</groupId>
        <artifactId>ibatis-sqlmap</artifactId>
        <version>2.3.4.726</version>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
    </dependency>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        </exclusions>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following 
location:
org.apache.catalina.startup.Tomcat.initBaseDir(Tomcat.java:888)

The following method did not exist:

org.apache.catalina.Server.setCatalinaBase(Ljava/io/File;)V

The method's class, org.apache.catalina.Server, is available from the following locations:

jar:file:/.m2/repository/j2ee/j2ee/1.0/j2ee-1.0.jar!/org/apache/catalina/Server.class
jar:file:/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.38/tomcat-embed-core-9.0.38.jar!/org/apache/catalina/Server.class

The class hierarchy was loaded from the following locations:

org.apache.catalina.Server: file:/.m2/repository/j2ee/j2ee/1.0/j2ee-1.0.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.catalina.Server