| Author |
java lang NoClassDefFoundError
|
Kevin Lee
Greenhorn
Joined: Oct 06, 2007
Posts: 4
|
|
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
Joined: Aug 15, 2004
Posts: 2874
|
|
It seems, none of your jar files contain this class. Just make sure, you have it. Cheers.
|
 |
Alaa Nassef
Ranch Hand
Joined: Jan 28, 2008
Posts: 460
|
|
|
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
|
Visit my blog: http://jnassef.blogspot.com/
|
 |
Kevin Lee
Greenhorn
Joined: Oct 06, 2007
Posts: 4
|
|
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.
|
 |
 |
|
|
subject: java lang NoClassDefFoundError
|
|
|