Boa tarde a todos
to tentando aprender sobre o hibernate na unha…
to seguindo alguns tutoriais mas ta dando o erro abaixo. Se alguém puder
me ajudar agaradeceria muito. Ou se suber de algum tutorial bakana
me manda também.
abraços e ate mais.
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1418)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1352)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1338)
at Principal.HibernateUtility.<clinit>(HibernateUtility.java:11)
at Principal.Teste.main(Teste.java:8)
Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte UTF-8 sequence. Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1408)
... 4 more
java.lang.NullPointerException
at Principal.HibernateUtility.getSession(HibernateUtility.java:19)
at Principal.Teste.main(Teste.java:8)
Exception in thread "main"