春季启动jsp:NoClassDefFoundError TldParser

时间:2019-10-03 10:33:18

标签: spring spring-boot

在Apache Tomcat 7.0.47中部署Spring Boot应用程序时,抛出NoClassDefFoundError TldParser。

Java版本为1.7 Spring Boot版本2.1.7.RELEASE 添加了Spring Boot依赖项:spring-boot-starter-web,spring-boot-devtools, spring-boot-starter-data-jpa,spring-boot-starter-tomcat,tomcat-embed-core,tomcat-embed-el,tomcat7-websocket,tomcat-embed-jasper

在pom.xml中添加了以下依赖项以及其他spring boot依赖项

         <dependency>
                <groupId>org.apache.tomcat.embed</groupId>
                <artifactId>tomcat-embed-core</artifactId>
                <scope>provided</scope>
         </dependency>

         <dependency>
                <groupId>org.apache.tomcat.embed</groupId>
                <artifactId>tomcat-embed-el</artifactId>
                <scope>provided</scope>
         </dependency>


         <dependency>
                <groupId>org.apache.tomcat</groupId>
                <artifactId>tomcat7-websocket</artifactId>
                <version>7.0.47</version>
                <scope>provided</scope>
         </dependency>

         <dependency>
                <groupId>org.apache.tomcat.embed</groupId>
                <artifactId>tomcat-embed-jasper</artifactId>
                <scope>provided</scope>
         </dependency>


         <dependency>
                <groupId>javax.el</groupId>
                <artifactId>javax.el-api</artifactId>
                <version>3.0.0</version>
         </dependency>

0 个答案:

没有答案