File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibe rnate/Session

 
vShyam Sundar
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting the following error when i try to deploy hibernate application in Jboss whereas if i run the model layer method alone as standalone application, Everything works fine.

java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session

My full stack trace is as follows



I have placed all hibernate related jars in Jboss/server/standard/lib folder

My method which opens the session is as follows



Thanks,
Shyam.
 
Vijitha Kumara
Bartender
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place your application specific jars inside the lib folder of the application.
 
vShyam Sundar
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks. This has been solved.


Thanks,
Shyam.
 
Aman Kachhal
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vShyam Sundar wrote:Hi,
Thanks. This has been solved.


Thanks,
Shyam.



Can you please post the solution to this as soon as possible ,...!!

Thanks
Aman
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic