Specification Violation EJB3 JPA 6.2.1.2 using Spring persistence on JBoss EAP

Solution Unverified - Updated -

Issue

  • When using Spring to manage EJB3 persistence the following error is encountered
    2010-01-26 12:41:50,024 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] (main) Starting persistence unit persistence.unit:unitName=#SomePersistenceUnit
    2010-01-26 12:41:50,106 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=persistence.unit:unitName=#SomePersistenceUnit state=Create
    java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: SomePersistenceUnit
        at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:124)
        at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275)
        ...

Environment

  • JBoss Enterprise Application Platform (EAP) 5.0.0_GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content