-->
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.  [ 6 posts ] 
Author Message
 Post subject: first application in reference document
PostPosted: Wed Jan 04, 2006 11:51 pm 
Beginner
Beginner

Joined: Mon Dec 05, 2005 2:59 am
Posts: 31
hi, i'm following the instruction in the reference document. as i tried out the first hibernate application on http://www.hibernate.org/hib_docs/v3/re ... l-firstapp, i found an unsolved errors in EventManager.java where error 'the method getTransaction is undefined under for the type session' on line 'session.getTransaction().commit();' displayed. so how to fix it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 12:23 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Why didn't you try the source code that comes with it? It runs just fine.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 1:42 am 
Beginner
Beginner

Joined: Mon Dec 05, 2005 2:59 am
Posts: 31
i didn't find the source attached. where can i get it? thanx.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 3:09 am 
Senior
Senior

Joined: Tue Aug 23, 2005 8:52 am
Posts: 181
http://www.hibernate.org/hib_docs/v3/re ... orial/src/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 8:23 pm 
Beginner
Beginner

Joined: Mon Dec 05, 2005 2:59 am
Posts: 31
the same error 'the method getTransaction is undefined for the type session' on line 'session.getTransaction().commit();' is displayed after i copied the source file. So what can i do?

for 'EventManagerServlet.java', the import javax.servlet.http.* and javax.servlet.ServletException cannot be resolved . Where can i get this two package?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 6:22 am 
Senior
Senior

Joined: Tue Aug 23, 2005 8:52 am
Posts: 181
can you post the actual stack trace? The other errors about not finding javax.servlet.http.* indicate you need to link to the servlet jar files while compiling. check for a servlet.jar from your webserver library files


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.