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

infoplotter.com | 3 months ago
  1. 0

    Hibernate Configration file error

    Stack Overflow | 2 years ago | Usman Riaz
    org.hibernate.HibernateException: /hibernate.cfg.xml not found
  2. 0

    hibernate.cfg.xml already exists in my project but I'm getting this error hibernate.cfg.xml not found

    Stack Overflow | 3 years ago | Sky
    org.hibernate.HibernateException: /hibernate.cfg.xml not found
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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:170)
      1 frame
    3. Hibernate
      AnnotationConfiguration.configure
      1. org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1453)
      2. org.hibernate.cfg.Configuration.configure(Configuration.java:1475)
      3. org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:1017)
      4. org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:64)
      5. org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
      6. org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:1011)
      6 frames
    4. com.hibernate.chapter
      HelloEmployee.main
      1. com.hibernate.chapter.HelloEmployee.main(HelloEmployee.java:18)
      1 frame