default HSQL jta-data-source is not found in context
----------------------------------------------------
Key: JBAS-8149
URL:
https://jira.jboss.org/browse/JBAS-8149
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: EJB3
Affects Versions: 6.0.0.M3, 6.0.0.M2, 6.0.0.M1
Environment: Build SVNTag:JBoss_6.0.0.20100429-M3 date: 20100502, Seam 2.2.1.CR1
Reporter: Marek Novotny
Assignee: Carlo de Wolf
Seam jee5 booking example at
http://anonsvn.jboss.org/repos/seam/branches/community/Seam_2_2/examples/...
can't get connection from java:/DefaultDS due to wrong setup of CONNECTION_PROVIDER in
org.hibernate.ejb.Ejb3Configuration. This is caused by jtaDataSource = null in
org.jboss.jpa.impl.deployment.PersistenceUnitInfoImpl.jtaDataSource.
From quick debugging - PersistentUnitMetaData has got these
properties:
PersistenceUnitMetaData(a)c6d08c4{provider=org.hibernate.ejb.HibernatePersistence,
jta-data-source=java:/DefaultDS, non-jta-data-source=null, non-jta-data-source=null,
excludeUnlistedClasses=false,
properties={hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider,
hibernate.hbm2ddl.auto=create-drop, hibernate.transaction.flush_before_completion=true,
hibernate.show_sql=true, hibernate.dialect=org.hibernate.dialect.HSQLDialect},
name=bookingDatabase, transactionType=null}
but when jtaDataSource should be set, it is not found in a context and it is set null
value to org.jboss.jpa.impl.deployment.PersistenceUnitInfoImpl.jtaDataSource :
if (metaData.getJtaDataSource() != null) {
this.setJtaDataSource((javax.sql.DataSource) ctx.lookup(metaData.getJtaDataSource()));
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira