简体   繁体   English

Spring Boot 1.4和Apache Axis2-Tomcat不能通过运行Jar来启动

[英]Spring Boot 1.4 and Apache Axis2 - Tomcat doesn't start by running Jar

I am now using Spring Boot 1.4 and Apache Axis2 in my project. 我现在在项目中使用Spring Boot 1.4和Apache Axis2。 After adding dependencies in pom.xml, the generated jar file can't run. 在pom.xml中添加依赖项后,生成的jar文件将无法运行。 It means the tomcat server doesn't start and 这意味着tomcat服务器无法启动,并且

java.util.concurrent.ExeutionException: org.apache.catalina.LifecycleException: Failed to start component 

I could solved the problem by adding exclusions in pom.xml. 我可以通过在pom.xml中添加排除项来解决该问题。 I think the problem is the embed Tomcat has some problems with javax.servlet-api. 我认为问题在于嵌入的Tomcat在javax.servlet-api中存在一些问题。

<dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-kernel</artifactId>
            <version>${axis2.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
            </exclusions>
</dependency>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM