-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate errors
PostPosted: Wed Sep 15, 2010 2:02 am 
Newbie

Joined: Wed Sep 15, 2010 1:50 am
Posts: 2
Hi,

we're doing this payroll program using hibernate and gwt in eclipse 3.1 and having these errors:

[exec] [ERROR] Errors in 'C:\opt\omega-payroll-1.3\src\com\omega\payroll\client\util\HibernateUtil.java'
[exec] [ERROR] Line 3: The import org cannot be resolved
[exec] [ERROR] Line 4: The import org cannot be resolved
[exec] [ERROR] Line 9: SessionFactory cannot be resolved to a type
[exec] [ERROR] Line 14: sessionFactory cannot be resolved
[exec] [ERROR] Line 14: Configuration cannot be resolved to a type
[exec] [ERROR] Line 18: ExceptionInInitializerError cannot be resolved to a type
[exec] [ERROR] Line 23: SessionFactory cannot be resolved to a type
[exec] [ERROR] Line 24: sessionFactory cannot be resolved

i'm very new to java, how could this be resolved? i've been looking anywher and still cant avoid these errors, pls help.


Top
 Profile  
 
 Post subject: Re: Hibernate errors
PostPosted: Wed Sep 15, 2010 5:07 am 
Newbie

Joined: Tue Sep 14, 2010 9:44 am
Posts: 3
Hi,

You should be missing the required hibernate library files in the classpath. Try including hibernate-<version>.jar and execute the java class. This should rectify the issues.

cheers

VT


Top
 Profile  
 
 Post subject: Re: Hibernate errors
PostPosted: Wed Sep 15, 2010 5:29 am 
Newbie

Joined: Wed Sep 15, 2010 1:50 am
Posts: 2
wer should i put the library? in tomcat? ant? jboss? or the project itself?

tnx alot :)


Top
 Profile  
 
 Post subject: Re: Hibernate errors
PostPosted: Wed Sep 15, 2010 11:32 am 
Newbie

Joined: Tue Sep 14, 2010 9:44 am
Posts: 3
Hi,

Basically if you are trying to execute using Eclipse then add the jar to the eclipse build path. If you have deployed on any web server then you need to include that in the WEB-INF/lib folder of the web application.

cheers

VT.


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