Exception in thread "main" org.hibernate.HibernateException: could not parse configuration: hibernate.cfg.xml

Ich bin immer folgende exception:

Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1491)
        at org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
        at com.ClientForSave.main(ClientForSave.java:26)
    Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
        at org.dom4j.io.SAXReader.read(SAXReader.java:484)
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1481)
        ... 2 more

Gesamte stack-trace

Hier ist meine config Datei:

<hibernate-configuration> 
    <session-factory> 
       <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> 
       <property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:devt2x</property>
       <property name="hibernate.connection.username">scott</property> 
       <property name="hibernate.connection.password">tiger</property> 
       <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
       <property name="show_sql">true</property> 
    </session-factory>
</hibernate-configuration>
  • können Sie Ihre hibernate.cfg.xml?
  • Sie sollte die post den Inhalt Ihres hibernate.cfg.xml Datei hier als gut.
InformationsquelleAutor user3026516 | 2014-12-08
Schreibe einen Kommentar