java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

后端 未结 7 1762
执念已碎
执念已碎 2020-12-03 03:17

I have an old struts 1 app that has always been built using Ant, which I\'m converting to use Maven instead. The structure of my app is modular, with dependency management i

7条回答
  •  时光取名叫无心
    2020-12-03 03:55

    I have had the same problem in my project. I used an IntelliJ Idea 14 and Maven 8. And what I've noticed is that when I added a tomcat destination to to IDE it automaticly linked two jars from tomcat lib directory, they were servlet-api and jsp-api. Also I had them in my pom.xml. I killed a whole day trying to figure out why I'm getting java.lang.ClassNotFoundException: org.apache.jsp.index_jsp. And kewpiedoll99 is right. That is because there are dependency conflicts. When I added provided to those two jars in my pom.xml I found a happiness :)

提交回复
热议问题