<filter>
<filter-name>UserValidateFilter</filter-name>
<filter-class>com.fuhe.yjh1104.util.UserValidateFilter</filter-class>
</filter>
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>UserValidateFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<listener>
<listener-class>com.fuhe.yjh1104.framework.ContextStartListener</listener-class>
</listener>
<listener>
<listener-class>com.fuhe.yjh1104.util.SessionCounter</listener-class>
</listener>
在没有配置hibernateFilter 的时候这个配置是正确的,配置了之后就出现找不到listner ContextStartListener 了。出现了这个异常 java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?