org.hibernate.HibernateException: /hibernate.cfg.xml not found

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via hibernate.org by Unknown author, 1 year ago
via Coderanch by nimesh hindocha, 11 months ago
/hibernate.cfg.xml not found
via viralpatel.net by Unknown author, 11 months ago
via java-forums.org by Unknown author, 2 years ago
via Stack Overflow by devger
, 1 year ago
org.hibernate.HibernateException: /hibernate.cfg.xml not found
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
at com.sp.creditmodel.servicelocator.ServiceLocator.getSessionFactory(ServiceLocator.java:139)
at com.sp.creditmodel.dao.BaseDAO.getSessionFactory(BaseDAO.java:32)
at com.sp.creditmodel.dao.AuthDAO.getSubscriberUsers(AuthDAO.java:53)
at com.sp.creditmodel.auth.modules.AuthQuery.login(AuthQuery.java:66)
at com.sp.creditmodel.auth.modules.UserAuthenticationModule.login(UserAuthenticationModule.java:229)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at com.sp.creditmodel.bo.LoginManager.login(LoginManager.java:42)
at com.sp.creditmodel.session.ScoringSessionBean.authenticate(ScoringSessionBean.java:241)
at com.sp.creditmodel.session.singleScoringSession_zoyu2_EOImpl.authenticate(singleScoringSession_zoyu2_EOImpl.java:1542)
at com.sp.creditmodel.delegate.CMDelegate.authenticate(CMDelegate.java:233)
at com.sp.creditmodel.action.LoginAction.execute(LoginAction.java:114)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:413)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:225)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.