Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用maven tomcat7插件无法启动项目 #18

Open
SpeakSugar opened this issue Sep 15, 2018 · 2 comments
Open

使用maven tomcat7插件无法启动项目 #18

SpeakSugar opened this issue Sep 15, 2018 · 2 comments

Comments

@SpeakSugar
Copy link

jdk 1.8 版本 idea 2018.2.3

重要的异常信息 SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializer

引入的tomcat插件

org.apache.tomcat.maven
tomcat7-maven-plugin
2.0

8080
/
utf-8

maven启动配置 clean tomcat7:run
pom配置 只改了log4j依赖为1.2.17 并添加tomca插件配置

(用tomcat启动可以,但使用插件启动报错)

@zhoujin7
Copy link

zhoujin7 commented Jul 11, 2021

别折腾了, 老实用tomcat >=8
另外我研究明白了怎么使用tomcat9:run

image

@snjfeng
Copy link

snjfeng commented Dec 18, 2021

                <dependency>
			<groupId>org.apache.tomcat.embed</groupId>
			<artifactId>tomcat-embed-core</artifactId>
			<version>9.0.2</version>
		</dependency>

这个依赖和插件冲突,去掉就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants