Hello,
Apologies for my previous post, there was an error I believe.
I just got my first hibernate application running, but I am getting some warnings about not being able to bind to JNDI. This is a standalone application, so I do not have a JNDI source. The warnings are:
02:02:23,691 INFO NamingHelper:26 - JNDI InitialContext properties:{}
02:02:23,701 WARN SessionFactoryObjectFactory:98 - Could not bind factory to JNDI javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
Is this some harmless warning, or something that needs to be fixed by me?
Also, about jta.jar: even though in my hibernate.cfg.xml I have
<property name="hibernate.transaction.factory_class">
net.sf.hibernate.transaction.JDBCTransactionFactory</property>
My application still requires jta.jar.
I am using hibernate synchronizer for eclipse plugin. Initially it created:
<property name="hibernate.transaction.factory_class">
net.sf.hibernate.transaction.JTATransactionFactory
</property>
<property name="jta.UserTransaction">
java:comp/UserTransaction
</property>
which then I turned into JDBCTransaction factory thinking that it was a JTA releated problem, but it did not solve my problem.
Greetings,
-O.B.
|