]
Lincoln Baxter III closed SEAMFORGE-271.
----------------------------------------
Fix Version/s: 1.0.0.Beta1
Resolution: Done
Resolved in Beta1 - Thanks for reporting!
persistence setup creates incorrect persistence.xml for JBoss AS 7
------------------------------------------------------------------
Key: SEAMFORGE-271
URL:
https://issues.jboss.org/browse/SEAMFORGE-271
Project: Seam Forge
Issue Type: Bug
Components: Builtin Plugins
Affects Versions: 1.0.0.Alpha4
Environment: Mac OS X 10.5, Java 1.6.26, forge 1.0.0.Alpha4, JBoss AS 7 full
Reporter: Philip Reimer
Labels: datasource, jndi, persistence.xml
Fix For: 1.0.0.Beta1
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 {"Services with
missing/unavailable dependencies" =>
["jboss.persistenceunit.\"forgetest.war#forge-default\" missing [
jboss.naming.context.java.H2DS ]"]}"
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: