• 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
  • 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: 3953
21
Chrome Fedora Hibernate
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks. This has been solved.


Thanks,
Shyam.
 
Aman Kachhal
Greenhorn
Posts: 1
  • 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!