File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibe rnate/Session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibe rnate/Session" Watch "java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibe rnate/Session" New topic
Author

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

vShyam Sundar
Ranch Hand

Joined: Oct 13, 2010
Posts: 60
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

Joined: Mar 24, 2008
Posts: 3825

Place your application specific jars inside the lib folder of the application.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
vShyam Sundar
Ranch Hand

Joined: Oct 13, 2010
Posts: 60
Hi,
Thanks. This has been solved.


Thanks,
Shyam.
Aman Kachhal
Greenhorn

Joined: May 13, 2013
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibe rnate/Session