• Post Reply Bookmark Topic Watch Topic
  • New Topic

Persistence.xml | No JNDI Datasource  RSS feed

 
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
Sheriff
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!