Почему у меня есть classnotfoundexception: javax.servlet.http.httpfilter для .war после обновления от Spring Boot 2.5.5 JAVA

Программисты JAVA общаются здесь
Anonymous
Почему у меня есть classnotfoundexception: javax.servlet.http.httpfilter для .war после обновления от Spring Boot 2.5.5

Сообщение Anonymous »

У меня есть веб -приложение Spring Boot Servlet, упакованное в качестве войны. Когда я использую Spring Boot Version 2.5.5, она работает нормально. Я только что обновил приложение до Spring Boot версии 2.6.0, и теперь я получаю следующую ошибку при развертывании войны Tomcat 8.5.59: < /p>
2021-11-23 15:36:31.674 ERROR 3876 --- [ost-startStop-1] o.s.boot.SpringApplication : Application run failed

java.lang.NoClassDefFoundError: javax/servlet/http/HttpFilter
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)

< /code>
Я попытался запустить его на Tomcat 10: я получил такую ​​же ошибку.
Вот мой pom.xml: < /p>


4.0.0

org.springframework.boot
spring-boot-starter-parent
2.6.0


com.icimedia
ici-autos
3.0.0
ici-autos
Plateforme Autos Autos

war


UTF-8
11
1.4.2.Final
1.18.12

3.0.8




org.springframework.boot
spring-boot-starter-batch


org.springframework.boot
spring-boot-starter-data-jpa


org.springframework.boot
spring-boot-starter-mail


org.springframework.boot
spring-boot-starter-thymeleaf



mysql
mysql-connector-java
runtime


org.projectlombok
lombok


org.springframework.boot
spring-boot-starter-test
test


org.junit.vintage
junit-vintage-engine




org.springframework.batch
spring-batch-test
test



javax.xml.bind
jaxb-api


org.glassfish.jaxb
jaxb-runtime
runtime


org.springframework
spring-oxm


org.mapstruct
mapstruct
${mapstruct.version}



org.springframework.boot
spring-boot-starter-web



org.springframework.boot
spring-boot-devtools
true



org.springframework.boot
spring-boot-configuration-processor
provided




org.springframework.boot
spring-boot-starter-tomcat
provided




javax.servlet
jstl





org.apache.tomcat.embed
tomcat-embed-jasper
provided




org.eclipse.jdt.core.compiler
ecj
4.6.1
provided




org.apache.tiles
tiles-core
${tiles.version}


org.apache.tiles
tiles-extras
${tiles.version}


org.apache.tiles
tiles-servlet
${tiles.version}


org.apache.tiles
tiles-api
${tiles.version}


org.apache.tiles
tiles-jsp
${tiles.version}



javax.validation
validation-api


org.hibernate.validator
hibernate-validator


org.hibernate.validator
hibernate-validator-annotation-processor




commons-net
commons-net
3.7.2



org.springframework.boot
spring-boot-starter-security


org.springframework.security
spring-security-test
test


org.thymeleaf.extras
thymeleaf-extras-springsecurity5


org.springframework.security
spring-security-taglibs


org.springframework.boot
spring-boot-starter-cache


javax.cache
cache-api


org.ehcache
ehcache


com.rometools
rome
1.15.0




iciautos


org.springframework.boot
spring-boot-maven-plugin



org.apache.maven.plugins
maven-compiler-plugin

${java.version}
${java.version}


org.mapstruct
mapstruct-processor
${mapstruct.version}



org.hibernate
hibernate-jpamodelgen
${hibernate.version}


org.projectlombok
lombok
${org.projectlombok.version}



-Amapstruct.suppressGeneratorTimestamp=true
-Amapstruct.defaultComponentModel=spring




org.codehaus.mojo
build-helper-maven-plugin


add-source
generate-sources

add-source



target/generated-sources/annotations






pl.project13.maven
git-commit-id-plugin


initialize

revision




yyyyMMdd-HHmmss
${project.basedir}/.git
true
true




< /code>

Есть идеи о в чем проблема? < /p>

Подробнее здесь: https://stackoverflow.com/questions/700 ... or-a-war-a

Вернуться в «JAVA»