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

Hibernate JIRA | Mike haller | 1 decade ago
  1. 0

    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)

    Hibernate JIRA | 1 decade ago | Mike haller
    org.hibernate.HibernateException: /hibernate.cfg.xml not found
  2. 0

    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)

    Hibernate JIRA | 1 decade ago | Mike haller
    org.hibernate.HibernateException: /hibernate.cfg.xml not found
  3. 0

    hibernate.cfg.xml not found

    Stack Overflow | 5 years ago | greenLizard
    java.lang.ExceptionInInitializerError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Maven MySQL hello world example (XML Mapping)

    viralpatel.net | 6 days ago
    org.hibernate.HibernateException: /hibernate.cfg.xml not found
  6. 0

    The Digital Voice: Eclipse/Java: Using Hibernate for Data Access

    blogspot.com | 8 months ago
    org.hibernate.HibernateException: /hibernate.cfg.xml not found

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.HibernateException

      /hibernate.cfg.xml not found

      at org.hibernate.util.ConfigHelper.getResourceAsStream()
    2. Hibernate
      ConfigHelper.getResourceAsStream
      1. org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
      1 frame
    3. Hibernate
      Configuration.configure
      1. org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405)
      2. org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
      3. org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
      3 frames
    4. org.hibernate.console
      ConsoleConfiguration.build
      1. org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:256)
      2. org.hibernate.console.ConsoleConfiguration.configureStandardConfiguration(ConsoleConfiguration.java:479)
      3. org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:460)
      4. org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:441)
      5. org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:166)
      6. org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
      7. org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:158)
      8. org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:110)
      8 frames
    5. org.hibernate.eclipse
      BasicWorkbenchAdapter.fetchDeferredChildren
      1. org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
      2. org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:88)
      3. org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:94)
      3 frames
    6. Workbench
      DeferredTreeContentManager$1.run
      1. org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:207)
      1 frame
    7. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
      1 frame