• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java lang NoClassDefFoundError

 
Kevin Lee
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,guys
I downloaded the sourcecode from
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html
,it's a small project integrates spring2 + struts2 + JPA,
I added those jars needed to the folder /WEB-INF/lib, and deployed to the tomcat5.5.when I started the tomcat,getting follow errors:


It seems that it can't find the class rg.hibernate.ejb.HibernatePersistence,I want to know how to fix it.
thanks a lot
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems, none of your jar files contain this class. Just make sure, you have it.

Cheers.
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that you don't have org.hibernate.ejb.HibernatePersistenc in your jars. This is included in the hibernate entity manager, that you may have not included in libs. I also believe that you might need the hibernate annotations project as well
 
Kevin Lee
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alaa Nassef:
The problem is that you don't have org.hibernate.ejb.HibernatePersistenc in your jars. This is included in the hibernate entity manager, that you may have not included in libs. I also believe that you might need the hibernate annotations project as well


thank you。you are good.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic