org.hibernate.HibernateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • hibernate.cfg.xml not found
    via Stack Overflow by greenLizard
    ,
  • 1) Add configuration 2) Slect existing Java project 3) Do not specify hibernate configuration (Wizard does not complain) 4) Click finish 5) Open created configuration Error Tue Dec 05 12:53:09 CET 2006 org.hibernate.HibernateException: /hibernate.cfg.xml not found 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:1405) at org.hibernate.cfg.Configuration.configure(Configuration.java:1427) at org.hibernate.cfg.Configuration.configure(Configuration.java:1414) at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:256) at org.hibernate.console.ConsoleConfiguration.configureStandardConfiguration(ConsoleConfiguration.java:479) at org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:460) at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:441) at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:166) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56) at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:158) at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:110) at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:88) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:94) at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:207) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    via by Mike haller,
  • 1) Add configuration 2) Slect existing Java project 3) Do not specify hibernate configuration (Wizard does not complain) 4) Click finish 5) Open created configuration Error Tue Dec 05 12:53:09 CET 2006 org.hibernate.HibernateException: /hibernate.cfg.xml not found 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:1405) at org.hibernate.cfg.Configuration.configure(Configuration.java:1427) at org.hibernate.cfg.Configuration.configure(Configuration.java:1414) at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:256) at org.hibernate.console.ConsoleConfiguration.configureStandardConfiguration(ConsoleConfiguration.java:479) at org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:460) at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:441) at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:166) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56) at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:158) at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:110) at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:88) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:94) at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:207) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    via by Mike haller,
  • How to load hibernate.cfg.xml from different directory
    via by Unknown author,
    • 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: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 javax.security.auth.login.LoginContext.login(LoginContext.java:579) 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 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459) 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.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244) 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

    Unknown visitor1 times, last one,