Hey,

I have a Custom 404 page that uses the hibernate session to render part of the 
page. If I visit the page explicitly it works fine, but if I set it as the 404 
page in web.xml then it throws an exception that the session is closed:

org.hibernate.LazyInitializationException : failed to lazily initialize a 
collection of role: com.ifactory.cms.entities.StandardPage.children, no session 
or session was closed

Here is how I set it in the web.xml:

<error-page>
     <error-code>404</error-code>
    <location>/app?service=page&amp;page=main/Custom404</location>
</error-page>

Any thoughts?
Thanks!

- Mike Leonardo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to