Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is index.jsp


this is welcomeprocessor




this is student bean class


this is the error

but why welcomeprocessor need session class???
 
Cindy Jones
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

WelcomeProcessor is creating a new instance of hibernateClass. Since hibernateClass is using the Session class, welcomeprocessor is indirectly dependent on Session. Include the hibernate jar in your war file.

Thanks!

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using eclips.
i added the hibernate3.jar to lib folder at WEB-INF.
anyway now nullpointer exception
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
session null means it is not created the sessionFactory .why it is not created ?
this is my hbm file


this is my config file


 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think there is some confuse with generato element in hbm file.because there is no any long values in object.All are String .then i add generator as String .is it wrong?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic