-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Session not created
PostPosted: Wed Feb 02, 2011 3:35 am 
Newbie

Joined: Fri Jan 28, 2011 2:45 am
Posts: 4
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


Top
 Profile  
 
 Post subject: Re: Session not created
PostPosted: Thu Feb 03, 2011 8:31 am 
Newbie

Joined: Fri Jan 28, 2011 2:45 am
Posts: 4
is there any body to reply to this

im stuck here Help needed


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.