javasf@googlegroups.com
[Top] [All Lists]

[javasf] [OT]Problema com Open Session in View do Spring

Subject: [javasf] [OT]Problema com Open Session in View do Spring
From: Rafael Roque
Date: Tue, 5 Apr 2011 05:11:24 -0700 PDT
Galera,configurei o filtro do OSV do Spring,mas continuo recebendo uma
LazyInitializationException.Onde posso estar errando?
Segue minha configuração.

 <filter>
            <filter-name>openSessionInViewFilter</filter-name>
            <filter-
class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</
filter-class>
        </filter>

        <filter-mapping>
            <filter-name>openSessionInViewFilter</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>

        <filter>
                <display-name>RichFaces Filter</display-name>
                <filter-name>richfaces</filter-name>
                <filter-class>org.ajax4jsf.Filter</filter-class>
        </filter>

        <filter-mapping>
                <filter-name>richfaces</filter-name>
                <servlet-name>Faces Servlet</servlet-name>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        <listener>
                <listener-
class>org.springframework.web.context.ContextLoaderListener</listener-
class>
        </listener>
        <listener>
                <listener-
class>com.sun.faces.config.ConfigureListener</listener-
class>
        </listener>

        <filter>
                <filter-name>login</filter-name>
                <filter-class>filter.LoginFilter</filter-class>
        </filter>
        <filter-mapping>
                <filter-name>login</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>

        <servlet>
                <servlet-name>Faces Servlet</servlet-name>
                <servlet-class>javax.faces.webapp.FacesServlet</
servlet-class>
                <load-on-startup>0</load-on-startup>
        </servlet>

Atenciosamente,
Rafael Roque
Analista de Sistemas
IBM CERTIFIED SOA ASSOCIATE
ITIL FOUNDATIONS CERTIFIED
SUN CERTIFIED ENTERPRISE ARCHITECT(I)
SUN CERTIFIED WEB COMPONENT DEVELOPER
SUN CERTIFIED JAVA PROGRAMMER

-- 
Você recebeu esta mensagem por que é membro do  Javasf
http://groups.google.com/group/javasf

Conheça também o Java Brazil: http://groups.google.com/group/thejavabrazil

<Prev in Thread] Current Thread [Next in Thread>