Problemas com Hibernete

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

[code]- 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[/code]

Valew Abraços para todos!!!

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

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

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

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

valewww abraços a todos