This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Persistence.xml | No JNDI Datasource" Watch "Persistence.xml | No JNDI Datasource" New topic
Author

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 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.


$Hi/\bEr
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9910
    
158

Post the contents of your persistence.xml file.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Persistence.xml | No JNDI Datasource
 
Similar Threads
JPA EclipseLink SEQUENCE table does not exist
Container-Manager EntityManager - Automatically joins JTA ?
Strange service=DataSourceBinding issue in JBoss
Problem with ORM by Weblogic
Error in LookUP in JBOSS 5.0.0.Beta4 EJB3.0