aspose file tools
The moose likes Object Relational Mapping and the fly likes java.lang.NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.lang.NoClassDefFoundError
 
Similar Threads
Data truncation: Truncated incorrect DOUBLE value:
what sould be generator element & where to put save method
change to soap request
HTTP STATUS 404: requested resource is not available.
is there a any validation API in java