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 > created"" > > How can i solve it? > > On Sat, May 30, 2009 at 2:26 PM, lalit <lalit.bh...@gmail.com> wrote: > > Check if your hibernate.cfg.xml is in the class path. > > Check the sample code at <a="http://oyejava.com/tiki-index.php? > > page=Hibernate+Introduction">Introduction to Hibernate</a>, 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 file > > > > > > SessionFactory sessions = new Configuration().configure > > > ().buildSessionFactory(); > > > > > > It keeps telling me that Configuration is abstract and cannot be > > > instantiated. Is anyone else experiencing this? How should this > > > problem be resolved? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---