http://www.roseindia.net
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please visit our lastest forum and start dicussing the topics
This is a Hibernate questions.

 
Post new topic   Reply to topic    http://www.roseindia.net Forum Index -> Struts
View previous topic :: View next topic  
Author Message
sudhakartv



Joined: 05 May 2005
Posts: 1

PostPosted: Thu May 05, 2005 4:30 pm    Post subject: This is a Hibernate questions. Reply with quote

Hi, I am trying to run the firstexample as explained in the tutorial (http://www.roseindia.net/hibernate/firstexample.shtml).
I am using hibernate2 with WSAD5.1.1 .I got the following error.

I put my hibernate.cfg.xml file under WEB-INF/hibernate.cfg.xml.

I have follwing in my class path.
cglib-full-2.0.1.jar
coomons-collections.jar
commmons-logging.jar
dom4j-1.4.jar
hibernate2.jar
odmg-3.0.jar
struts.jar


May 5, 2005 11:21:44 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1.4
May 5, 2005 11:21:44 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
May 5, 2005 11:21:44 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
/hibernate.cfg.xml not found
May 5, 2005 11:21:44 AM net.sf.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
May 5, 2005 11:21:44 AM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
May 5, 2005 11:21:44 AM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
WARNING: /hibernate.cfg.xml not found
Exception in thread "main" java.lang.NullPointerException
at com.FirstExample.main(FirstExample.java:44)

Thanks for oyur help.
Sudhakar
Back to top
View user's profile Send private message
Deepak Kumar
Guest





PostPosted: Sat May 07, 2005 10:47 am    Post subject: Connect place to put config file Reply with quote

Hi,

It is required to put the config file in the classes directory of the web application. so move the hibernate.cfg.xml into WEB-INF/classes/hibernate.cfg.xml directory.

Regards
Deepak kumar
Back to top
Guest






PostPosted: Wed Jun 28, 2006 3:53 am    Post subject: Reply with quote

excellentSmile!!
Back to top
balaji
Guest





PostPosted: Wed Sep 20, 2006 2:45 pm    Post subject: getting null pointer exception when executing FirstExample Reply with quote

good tutorial
Back to top
kchinta
Guest





PostPosted: Wed Dec 27, 2006 5:27 am    Post subject: WARNING: /hibernate.cfg.xml not found Reply with quote

i put the hibernate.cfg.xml file inWEB-INF/classes/hibernate.cfg.xml ,but this is not working, same error is came, can you please help me
Back to top
Display posts from previous:   
Post new topic   Reply to topic    http://www.roseindia.net Forum Index -> Struts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group