hibernate报错?
我的hibernate运行到这句就报错
sessionFactory=new Configuration().configure("hibernate.cfg.xml").buildSessionFactory();
错误信息:
java.lang.ExceptionInInitializerError
All.HibernateUtil.<clinit>(HibernateUtil.java:28)
com.toshiba.servlet.addminRegisterServlet.doPost(addminRegisterServlet.java:71)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
hibernate.cfg.xml文件:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="connection.username">sa</property>
<property name="connection.url">
jdbc:microsoft:sqlserver://localhost:3121;DatabaseName=Logistics
</property>
<property name="dialect">
org.hibernate.dialect.SQLServerDialect
</property>
<property name="myeclipse.connection.profile">conSQL</property>
<property name="connection.password">sa</property>
<property name="connection.driver_class">
com.microsoft.jdbc.sqlserver.SQLServerDriver
</property>
<mapping resource="com/toshiba/hibernate/UserInfo.hbm.xml" />
<mapping resource="com/toshiba/hibernate/OrderInfo.hbm.xml" />
<mapping resource="com/toshiba/hibernate/IndentInfo.hbm.xml" />
<mapping resource="com/toshiba/hibernate/Outgrowth.hbm.xml" />
<mapping resource="com/toshiba/hibernate/DeliverMission.hbm.xml" />
<mapping resource="com/toshiba/hibernate/RoadLog.hbm.xml" />
<mapping resource="com/toshiba/hibernate/DepotMission.hbm.xml" />
</session-factory>
</hibernate-configuration>