ERROR ContextLoader:204 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentDao' defined in ServletContext resource [/WEB-INF/applicationContext-common.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.dao.StudentDao]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.dao.StudentDao]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by:
java.lang.NullPointerException
at org.springframework.orm.hibernate3.support.HibernateDaoSupport.getSession(HibernateDaoSupport.java:140)
at com.dao.StudentDao.<init>(StudentDao.java:17)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
SSH2异常
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentDao' defined in ServletContext resource [/WEB-INF/applicationContext-common.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.dao.StudentDao]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.dao.StudentDao]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by:
java.lang.NullPointerException
at org.springframework.orm.hibernate3.support.HibernateDaoSupport.getSession(HibernateDaoSupport.java:140)
at com.dao.StudentDao.<init>(StudentDao.java:17)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
SSH2异常
studentDao 这个自己检查下 是不是没注入
把配置贴出来
class路径写错了吧