Hi all,
I am new to hibernate and was following up the pdf i got. i use java6 and no web server is used.
if i say sessionfactory.getCurrentSession(); the error is "No TransactionManagerLookup specified"
and if i say sessionfactory.opensession();
then an error is thrown at session.beginTransaction();
the error is
"Could not find UserTransaction in JNDI: " "Caused by: 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"
i am stuck here i tried few options after googling but all in vein.
I need some help to clear this hurdle
Thanks in advance
Shasi
|