aspose file tools
The moose likes JBoss/WildFly and the fly likes Persistence.xml | No JNDI Datasource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Persistence.xml | No JNDI Datasource" Watch "Persistence.xml | No JNDI Datasource" New topic

Persistence.xml | No JNDI Datasource

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
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] - You have not defined a jta-data-source for a JTA enabled persistence context named

How it should be done?

No JNDI dataource.

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10339

Post the contents of your persistence.xml file.

[My Blog] [JavaRanch Journal]
Don't get me started about those stupid light bulbs.
subject: Persistence.xml | No JNDI Datasource