Problemas com Hibernete

4 respostas
Erivaldo_Arce
Boa tarde pessoal eu estou com dificuldades com o hibernete , ele mostra o seguinte erro nao sei como prosseguir , e nao tenho muita experiencia com ele , estou usando o eclipse com o oracle
- Hibernate Annotations 3.3.0.GA
- Hibernate 3.2.5
- hibernate.properties not found
- Bytecode provider name : cglib
- using JDK 1.4 java.sql.Timestamp handling
- Hibernate EntityManager 3.3.1.GA
- Error parsing XML: XML InputStream(29) The end-tag for element type "persistence" must end with a '>' delimiter.
Exception in thread "main" javax.persistence.PersistenceException: org.xml.sax.SAXParseException: The end-tag for element type "persistence" must end with a '>' delimiter.
	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:258)
	at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
	at visao.ApSetor.main(ApSetor.java:96)
Caused by: org.xml.sax.SAXParseException: The end-tag for element type "persistence" must end with a '>' delimiter.
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:70)
	at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:89)
	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:215)
	... 4 more

Valew Abraços para todos!!!

4 Respostas

Fernando_Generoso_da

Acho que está com problema no teu persistence.xml…Não está fechando alguma tag nele…tenta abrir o teu arquivo .xml no browser

Fernando

ramilani12

veja seu hibernate.cfg.xml e tag persistence precisa estar fechada …

ramilani12

exatamente o persistence.xml nao percebi que vc esta utilizando JPA

Erivaldo_Arce

:smiley: Obrigado pessoal nao tinha reparado q tinha uma tag persistence a mais fechando

valewww abraços a todos

Criado 9 de dezembro de 2008
Ultima resposta 9 de dez. de 2008
Respostas 4
Participantes 3