-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: org.hibernate.HibernateException: /hibernate.cfg.xml not fou
PostPosted: Wed Oct 12, 2005 4:15 am 
Newbie

Joined: Wed Oct 12, 2005 3:51 am
Posts: 2
hi every body,

can you any one help me out i am new to hibernate. i have executed one small hibernate example successfully in eclipse. actually we are useing JDeveloper IDE. when i am trying in Jdevelopre i am getting this following error.
org.hibernate.HibernateException: /hibernate.cfg.xml not found

at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)

at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1234)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1258)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1245)

at com.procure.login.action.LoginAction.validateUser(LoginAction.java:38)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java)

at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)

at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:823)

at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)

at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)

at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)

at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)

at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

at java.lang.Thread.run(Thread.java:534)

could any one please tell me what i need to do.

Thanks in advance

Ramu


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 4:33 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
It's a classpath error. Make sure hibernate.cfg.xml is in your classpath.


Top
 Profile  
 
 Post subject: org.hibernate.HibernateException: /hibernate.cfg.xml not fou
PostPosted: Wed Oct 12, 2005 4:54 am 
Newbie

Joined: Wed Oct 12, 2005 3:51 am
Posts: 2
Hi jamie_dainton,

Thanks for your quick reply

i belive it is in classpath only. i tried in many ways
like
1)public-thml
2)web-inf
3)keeping in same folder where i have my hibernate java files. in this case even my .xml file are getting copied to bin folder.

still i have this exception

could you please explain deeply and where i need to keep this xml mapping files

Thank you


jamie_dainton wrote:
It's a classpath error. Make sure hibernate.cfg.xml is in your classpath.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.