[jboss-jira] [JBoss JIRA] Updated: (JBAS-8149) default HSQL jta-data-source is not found in context

Marek Novotny (JIRA) jira-events at lists.jboss.org
Fri Jul 2 08:00:46 EDT 2010


     [ https://jira.jboss.org/browse/JBAS-8149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marek Novotny updated JBAS-8149:
--------------------------------

    Attachment: jboss-seam-jee5-booking.ear


built seam jee5 example

> 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.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/jee5/booking 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 at 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

        


More information about the jboss-jira mailing list