Announcement Announcement Module
Collapse
No announcement yet.
Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source

    using jboss5.1 + spring + jpa.,
    i have done the following set up

    In persistence.xml

    <persistence-unit name="THEATRE" transaction-type="RESOURCE_LOCAL">

    In application-context.xml

    <bean id="dataSource"
    class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
    <property name="url" value="jdbc:oracle:thin:@localhost:1521:xe" />
    <property name="username" value="xyz" />
    <property name="password" value="xyz" />
    </bean>

    <bean id="entityManagerFactory"
    class="org.springframework.orm.jpa.LocalContainerE ntityManagerFactoryBean">
    <property name="persistenceUnitName" value="THEATRE" />
    <property name="dataSource" ref="dataSource" />
    <property name="jpaVendorAdapter">
    <bean
    class="org.springframework.orm.jpa.vendor.Hibernat eJpaVendorAdapter">
    <property name="databasePlatform" value="org.hibernate.dialect.Oracle9iDialect" />
    <property name="showSql" value="true" />
    <!-- <property name="generateDdl" value="true" /> -->
    </bean>
    </property>
    </bean>


    getting the following error

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

  • #2
    Check this link: http://seamframework.org/Community/S...singJBoss501GA

    It might help

    And also this one: https://issues.jboss.org/browse/EJBT...ction_12453872

    Comment


    • #3
      The above code deployed and works properly in jboss4.2, but there is problem deploying it in jboss 5.1. few of them have suggested to use the below tag to work. but its ain't working

      <property name="persistenceXmlLocation">
      <list>
      <value>classpath:META-INF/persistence.xml</value>
      </list>
      </property>

      Comment

      Working...
      X