[java ee programming] Re: Problem with Hibernate Lab

2009-06-02 Thread EaKG
i think that the path to hibernate.cfg.xml file need to be pointed out SessionFactory sessions = new Configuration().configure (PATH_TO_HIBERNATE.CFG.XML).buildSessionFactory(); On May 26, 11:42 pm, pxk5...@njit.edu wrote: > I am having a problem with this line of code in the Main.java file

[java ee programming] Re: Problem with Hibernate Lab

2009-06-02 Thread David Amend
I got the same error. If you have imported the suited package for "session", a restart of netbeans could fix the problem. Check another import for session. Am Dienstag, 2. Juni 2009 07:54:12 schrieb mak pandian: > Hello > I got error while running this application is "Session factory can not be

[java ee programming] Re: Problem with Hibernate Lab

2009-06-01 Thread mak pandian
Hello I got error while running this application is "Session factory can not be created"" How can i solve it? On Sat, May 30, 2009 at 2:26 PM, lalit wrote: > > Check if your hibernate.cfg.xml is in the class path. > Check the sample code at http://oyejava.com/tiki-index.php? > page=Hibernate+I

[java ee programming] Re: Problem with Hibernate Lab

2009-05-30 Thread lalit
Check if your hibernate.cfg.xml is in the class path. Check the sample code at http://oyejava.com/tiki-index.php? page=Hibernate+Introduction">Introduction to Hibernate, if this works. On May 26, 9:42 pm, pxk5...@njit.edu wrote: > I am having a problem with this line of code in the Main.java fil

[java ee programming] Re: Problem with Hibernate Lab

2009-05-26 Thread Nirmal Kumar
Hi, First you need to check whether you are using the correct jar or not. Check which Configuration class does the Classloader is loading. Ideally it should pick from the following : import net.sf.hibernate.cfg.Configuration;(Hibernate2) import org.hiberna