java.lang.NoClassDefFoundError: org/hibernate/Session hibernate jars is set

后端 未结 3 602
抹茶落季
抹茶落季 2020-12-22 02:14

I inherited several projects Javas in my new job, but I\'m having some problems with settings. I\'m facing a problem that is researched so common. \"java.lang.NoClassDefFoun

相关标签:
3条回答
  • 2020-12-22 02:19

    Add all the JARS to WEB-INF and perform build path on project.

    0 讨论(0)
  • 2020-12-22 02:25

    To add jars in eclipse you have two options:

    Right click on project got to properties-->click on java build path --> configure build path--> Libraries --> and select add external jars button. It will open a window where you can add all your jars required.

    Second option is to paste jars directly to lib folder. lib folder is in Web Content --> WEB-INF --> lib.

    Use any one of them.

    0 讨论(0)
  • 2020-12-22 02:31

    From what I understand the classpath xml you provided is used by Eclipse, it has nothing to do with your web application classpath. The reason you get an NoClassDefFoundError is Tomcat not being able to find Hibernate class. Make sure your Web Module has all required jars in WEB-INF/lib directory.

    0 讨论(0)
提交回复
热议问题