Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

java lang NoClassDefFoundError

 
Greenhorn
Posts: 4
  • 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
 
Ranch Hand
Posts: 2874
  • 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.
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • 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
  • 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.
 
Hey cool! They got a blimp! But I have a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!