gweb 集成总结

 昨晚搞了一个晚上都没有搞出来,今天终于把所以的集成问题解决了

    关于 classnotfound问题,asm。2.2.3jar及listener star error问题。。。。
  
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<servlet>
   <servlet-name>SpringContextServlet</servlet-name>
   <servlet-class>
    org.springframework.web.context.ContextLoaderServlet
   </servlet-class>
   <load-on-startup>1</load-on-startup>
</servlet>
<servlet>
   <servlet-name>SpringLog4jConfigServlet</servlet-name>
   <servlet-class>
    org.springframework.web.util.Log4jConfigServlet
   </servlet-class>
</servlet>
<servlet>
   <servlet-name>web</servlet-name>
   <servlet-class>
    org.springframework.web.servlet.DispatcherServlet
   </servlet-class>
  </servlet>




   关于 延迟加载引起的session close,导致flex序列化失败问题
   发现所有view框架都有这种问题,开启OpenSessionInViewFilte
    <filter>
     <filter-name>hibernateFilter</filter-name>
     <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
   </filter>
  
   <filter-mapping>
     <filter-name>hibernateFilter</filter-name>
     <url-pattern>/*</url-pattern>
   </filter-mapping>

你可能感兴趣的:(Web)