Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persistence.xml | No JNDI Datasource

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When trying to configure a non-jndi jdbc parameters in persistence.xml in jboss 5.1, i am getting

java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named

How it should be done?

PS:
No JNDI dataource.
Hibernate/EntityManager.
persistence.xml.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the contents of your persistence.xml file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic