Javatpoint Logo

SessionFactory error

By: ranvij*** On: Mon May 08 06:46:54 IST 2017     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
while doing program of hibernate (for inserting data into database using jsp and hibernate) this error is showing
"String id=request.getParameter("id");
name=request.getParameter("name");
email=request.getParameter("email");
SessionFactory sf=new Configuration().configure()."""buildSessionFactory();"""
Session s=sf.openSession();
Transaction tr=s.beginTransaction();
Test t=new Test(id,name,email);
s.save(t);
tr.commit();
s.close();"
In builtSessionFactory(); it showing a stripes in that method thats why run time error is comming
HTTP Status 500 error -: with this exception "org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.microsoft.sqlserver.jdbc.SQLServerDriver]".
Can anyone please tell me the solution every thing i have done(Procedure correctly).
Up0Down