Results 1 to 4 of 4
- 08-30-2012, 05:33 PM #1
Member
- Join Date
- Jul 2011
- Posts
- 76
- Rep Power
- 0
ClassNotFoundException: org.hibernate.cfg.Configuration
I am writing a web application in java for the first time and using hibernate framework. When I run my index.jsp class that invokes hibernate I am getting ClassNotFoundException: org.hibernate.cfg.Configuration. I figure the problem it that the hibernate.cfg.xml file is not being location so I went online and found some information has how to approach this. So what I did now is create a new folder called config and put the hibernate.cfg.xml file in it then config the build path making config a class folder. But the problem still exist. Is the problem that the hibernate.cfg.xml file is not being located and if so how do i fix this
- 08-30-2012, 05:50 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: ClassNotFoundException: org.hibernate.cfg.Configuration
Are the hibernate jar files deployed?
And is it only the one version of hibernate?Please do not ask for code as refusal often offends.
- 08-30-2012, 06:06 PM #3
Member
- Join Date
- Jul 2011
- Posts
- 76
- Rep Power
- 0
Re: ClassNotFoundException: org.hibernate.cfg.Configuration
Don't fully understand what u mean when u say that if the hibernate jar files are deployed but I did add all the hibernate jar files in the build path and yes it is only one version.
- 08-30-2012, 06:24 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: ClassNotFoundException: org.hibernate.cfg.Configuration
I don't know how you;re deploying this to the server (I never rely on in built servers in IDEs), but those jar files need to be in the WEB-INF/lib directory of your deployed application.
If they are then you'll need to list that directory here so we can see what has been deployed there.Please do not ask for code as refusal often offends.
Similar Threads
-
ClassNotfoundException
By shirleympearls in forum New To JavaReplies: 4Last Post: 10-17-2011, 08:12 PM -
Could not parse configuration: /hibernate.cfg.xml
By Matang in forum Web FrameworksReplies: 2Last Post: 04-10-2011, 02:28 PM -
classNotFoundException
By jyothi.priyanka in forum NetBeansReplies: 5Last Post: 08-24-2010, 10:13 AM -
JVM configuration, -xmx over 4 gb
By tolja in forum Advanced JavaReplies: 3Last Post: 06-30-2010, 12:09 PM -
org.hibernate.ejb.Version <clinit> INFO: Hibernate EntityManager 3.2.0.CR1
By Heather in forum JDBCReplies: 2Last Post: 06-30-2007, 03:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks