marek wrote:
hibernate.cfg.xml
Code:
<session-factory>
<!-- local connection properties -->
<property name="hibernate.connection.url">jdbc:postgresql://localhost/test</property>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.username">test</property>
<property name="hibernate.connection.password">test</property>
<!-- transaction configuration -->
<property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">net.sf.hibernate.transaction.JBossTransactionManagerLookup</property>
Maybe (only maybe) the problem is in the configuration file.
you make hibernate create a jdbc SessionFactory (not container datasource) and also define it to use JTA (which is container managed transaction).
My suggestion is to remove the the underlined rows, and try again.
Alternatively, you can use a datasource and not connection url.
again, maybe i m right, maybe not.
Jus.