Rohit, thnx for ur reply. Do you mean to say that instead of separate projects, i should place both the hibernate code and the struts code in the same project in eclipse?
I have posted my code and all the details in a reply to rejeevkumar, can you please check it out and let me know if anything looks wrong?
Any help would be much appreciated.
Thanks.
Sagi wrote:
resh123, rajeevkumar,
one thing to note here is that it's NoClassDefFoundError and not Exception, this error is severe than exception the class might be in class path but its not getting loaded under same JVM.
resh123,
make sure that hibernate classes are under WEB-INF/classes or lib folder, try to run whole application without eclipse and see any changes.... some times the java application runs under JVM started by eclipse and not the server you are running.
alternatively you can put all hibernate and struts classes in one jar file ... and if that doesn't helps try adding hibernate class file entry in MANIFEST file of your jar..