This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes java.lang.NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "java.lang.NoClassDefFoundError" Watch "java.lang.NoClassDefFoundError" New topic
Author

java.lang.NoClassDefFoundError

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
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

Joined: Oct 08, 2002
Posts: 66
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

Joined: Sep 10, 2009
Posts: 237
i am using eclips.
i added the hibernate3.jar to lib folder at WEB-INF.
anyway now nullpointer exception
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
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

Joined: Sep 10, 2009
Posts: 237
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoClassDefFoundError
 
Similar Threads
is there a any validation API in java
HTTP STATUS 404: requested resource is not available.
Data truncation: Truncated incorrect DOUBLE value:
what sould be generator element & where to put save method
change to soap request