Tomcat throws ClassNotFound exceptions for classes in other open eclipse projects

后端 未结 6 982
予麋鹿
予麋鹿 2020-12-08 01:05

I have an eclipse project structure that looks something like this:

eclipse
    project a
    project b

All of these projects are Maven pro

6条回答
  •  长情又很酷
    2020-12-08 01:43

    The reason that tomcat cannot find your classes is that the project dependency in eclipse is not seen by tomcat. To resolve the issue you can add the bin folder of project a to the tomcat classpath of the app running from project b.

提交回复
热议问题