]
Jason Greene reopened JBAS-8149:
--------------------------------
Due to feedback from the community, I have split the AS7 and AS6 projects and reopened all
unscheduled AS6 issues that are a year or less old. This will make it easier community
members to find and work on them.
Future releases beyond 6.1 can be done provided a community member steps up to coordinate
them.
default HSQL jta-data-source is not found in context
----------------------------------------------------
Key: JBAS-8149
URL:
https://issues.jboss.org/browse/JBAS-8149
Project: Legacy JBoss Application Server 6
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: EJB
Affects Versions: 6.0.0.M1, 6.0.0.M2, 6.0.0.M3
Environment: Build SVNTag:JBoss_6.0.0.20100429-M3 date: 20100502, Seam 2.2.1.CR1
Reporter: Marek Novotny
Assignee: Carlo de Wolf
Attachments: jboss-seam-jee5-booking.ear
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.
For more information on JIRA, see: