日期:2014-05-17  浏览次数:20733 次

lazyLoadingFilter加载错误
web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
xmlns="http://java.sun.com/xml/ns/javaee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

  <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>/WEB-INF/applicationContext*.xml</param-value>
  </context-param>
  <listener>
  <listener-class>
  org.springframework.web.context.ContextLoaderListener
  </listener-class>
  </listener>
 
  <filter>
  <filter-name>lazyLoadingFilter</filter-name>
  <filter-class>
  org.springframerwork.orm.hibernate3.support.OpenSessionInViewFilter
  </filter-class>
  <init-param>
  <param-name>singleSession</param-name>
  <param-value>true</param-value>
  </init-param>
  </filter>
 <filter>
  <filter-name>struts2</filter-name>
  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  </filter>

  <filter-mapping>
  <filter-name>lazyLoadingFilter</filter-name>
  <url-pattern>*.action</url-pattern>
  </filter-mapping> 
  <filter-mapping>
  <filter-name>struts2</filter-name>
  <url-pattern>/*</url-pattern>
  </filter-mapping>
 
 
  <welcome-file-list>
  <welcome-file>add.jsp</welcome-file>
  </welcome-file-list>
</web-app>

错误信息如下:
2011-10-6 13:35:30 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.22.
2011-10-6 13:35:30 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
2011-10-6 13:35:30 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 534 ms
2011-10-6 13:35:30 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2011-10-6 13:35:30 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.0
2011-10-6 13:35:30 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory crm
2011-10-6 13:35:31 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://www.springframework.org/tags/form is already defined
2011-10-6 13:35:31 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://www.springframework.org/tags is already defined
2011-10-6 13:35:31 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
2011-10-6 13:35:34 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter lazyLoadingFilter