Intellij suddenly throwing ClassNotFoundException

前端 未结 10 1707
栀梦
栀梦 2020-12-08 14:30

I\'m at a complete loss here. I have a project on an external hard drive called LenseProject. Inside LenseProject, I have .idea, lib, Natives

10条回答
  •  無奈伤痛
    2020-12-08 15:11

    I had similar issue. A new dependency was not being found when running tomcat. The problem was it wasn't being deployed to /WEB-INF/lib. After half a day banging my head on the desk I found this YouTube video that fixed it.

    Essentially I needed to add the dependencies from module settings-> artifact->MyWar->Output Layout tab. Under available elements open your projects folder. If there are maven dependencies listed there, select them. Then right click->Put into /WEB-INF/lib

提交回复
热议问题