openSessionInviewfilter问题

头疼死了,明明配置了opensessioninviewfilter,可是还报org.hibernate.LazyInitializationException: could not initialize proxy - no Session
大家帮我看一下,配置有没有错,我有两个spring文件,applicationContext.xml和applicationContext-beans.xml


org.springframework.web.context.ContextLoaderListener


contextConfigLocation
classpath:applicationContext*.xml


openSessionInView
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter


openSessionInView
/*

<filter>
    <filter-name>struts</filter-name>
    <filter-class>
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>struts</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

大家别这样啊,不是我不给分,而是因为我是javaeye新手,身上没分(1分都没有),难道大家只认分?!我想不是这样吧

这个很好确定是否有起作用

你自己写个类集成 openSessionInviewFiler ,重新他的方法,然后配置,加断点,如果进你的断点了,就说明起作用了,如果没进,就说明没有起作用