1. 程式人生 > >servlet-api包衝突(maven)

servlet-api包衝突(maven)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
2018-01-31 10:49:15.419 ERROR 32551 — [ main] org.apache.catalina.core.ContainerBase : A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
at
servlet-api包衝突(maven)

<dependency>
            <groupId>jcifs</groupId>
            <artifactId>jcifs</artifactId>
            <version>1.3.17</version>
            <exclusions>  
                <exclusion>  
                    <groupId>javax.servlet</groupId
>
<artifactId>servlet-api</artifactId> </exclusion> </exclusions> </dependency>