-
Bug
-
Resolution: Done
-
Major
-
1.0.0.Alpha4
Executing "persistence setup --provider HIBERNATE --container JBOSS_AS7" creates persistence.xml with the following jata-datasource: "<jta-data-source>java:/H2DS</jta-data-source>"
But AS7 default standalone configuration has "<datasource jndi-name="java:jboss/datasources/ExampleDS" enabled="true" use-java-context="true" pool-name="H2DS">"
This leads to the following exception during deployment:
"[org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "forgetest.war" was rolled back with failure message
"
After changing persistence.xml to contain "<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>" instead the project successfully compiles.
BTW: "<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>" also does not seem to be the "right" dialect for H2 database.