0 Replies Latest reply on Oct 9, 2012 6:50 AM by ivtelo

    GWT 2.4.0 in JBoss AS 5.1

    ivtelo

      Hi Everybody,

       

      I'm trying to deploy a GWT aplication in JBoss AS 5.1, and the console show this error:

       

      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: transactions-optional

       

      The problems is the persistence.xml file that GWT compilations generate in eclipse, but I don't know what.

       

      <?xml version="1.0" encoding="UTF-8" ?>

      <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">

          <persistence-unit name="transactions-optional">

              <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>

              <properties>

                  <property name="datanucleus.NontransactionalRead" value="true"/>

                  <property name="datanucleus.NontransactionalWrite" value="true"/>

                  <property name="datanucleus.ConnectionURL" value="appengine"/>

              </properties>

          </persistence-unit>

      </persistence>

       

      Somebody helps me, please!!!!!

       

      Thank you,

      Iván.