javax.persistence.PersistenceException: Invalid persistence.xml

后端 未结 4 1760
暗喜
暗喜 2021-01-14 17:22

I\'m working on project with Servlet,JPA,EJB and JBoss in eclipse. As you can see in the title of my topic I have an error on my persistence.xml file but I don\'t know whi

4条回答
  •  一生所求
    2021-01-14 17:43

    Unless you didn't copy-paste the complete file, the closing tag is missing. Append

    
    

    in your persistence.xml

    EDIT

    It seems that the JNDI name of your datasource is wrong. Usually it starts with : java:/

提交回复
热议问题