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">
<hibernate-configuration>
<session-factory><property name="myeclipse.connection.profile">JDBC for MySQL</property>
<property name="show_sql">ture</property>
<property name="connection.url">jdbc:mysql://localhost:3306/demo</property>
<property name="connection.username">root</property>
<property name="conneciton.password">root</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<mapping resource="com/demo/hibernate/beans/User.hbm.xml"/>
</session-factory></hibernate-configuration>HibernateSessionFactory
package com.demo.hibernate.util;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.cfg.Configuration;
public class HibernateSessionFactory {
private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml";
private static final ThreadLocal threadLocal = new ThreadLocal();
private static final Configuration cfg = new Configuration();
private static org.hibernate.SessionFactory sessionFactory;
//取得settion
public static Session currentSession() throws HibernateException{
Session session =(Session)threadLocal.get();
if(session==null){
if(sessionFactory==null){
try{
System.out.println("asasd");
cfg.configure(CONFIG_FILE_LOCATION);
//System.out.println("asd");
sessionFactory = cfg.buildSessionFactory();
}catch(Exception e){
System.err.println("%%%%Error Creating SessionFactory%%%%");
e.getStackTrace();
}
}
session = sessionFactory.openSession();
threadLocal.set(session);
}
return session;
}
public static void closeSession()throws HibernateException{
Session session = (Session)threadLocal.get();
threadLocal.set(null);
if(session!=null){
session.close();
}
}
}
明显是运行到cfg.configure(CONFIG_FILE_LOCATION);
这一步出错 请问高手们 通常这一步出错是为什么啊 
小弟菜鸟 初接触hibernate谢谢大侠们