Hallo,
ich will mein erstes Hibernate Projekt konfiguriern, ich habe immer gleiche fehler. Ich habe sogar im youtube ein tutorial geguckt und das gleiche gemacht. troztdem konnte nicht es schaffen.
das fehler wie folgendes:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: META-INF/classes/hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2246)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
at org.java.test.UserTest.main(UserTest.java:19)
Caused by: org.dom4j.DocumentException: Error on line 2 of document : Content ist nicht zulässig in Prolog. Nested exception: Content ist nicht zulässig in Prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)
... 2 more
wenn jemand behilflich sein könnte würde sehr dankbar
ich will mein erstes Hibernate Projekt konfiguriern, ich habe immer gleiche fehler. Ich habe sogar im youtube ein tutorial geguckt und das gleiche gemacht. troztdem konnte nicht es schaffen.
das fehler wie folgendes:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: META-INF/classes/hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2246)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
at org.java.test.UserTest.main(UserTest.java:19)
Caused by: org.dom4j.DocumentException: Error on line 2 of document : Content ist nicht zulässig in Prolog. Nested exception: Content ist nicht zulässig in Prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)
... 2 more
wenn jemand behilflich sein könnte würde sehr dankbar
Zuletzt bearbeitet von einem Moderator: