I would make sure the web.xml you've modified is the one that exists in the
final war. Also, after running war:inplace, you should remove the following
directories:

rm -r src/main/webapp/WEB-INF/lib
rm -r src/main/webapp/WEB-INF/classes

Matt

On Fri, May 1, 2009 at 7:57 AM, Jonny Cavell <jonny.cav...@gmail.com> wrote:

>
> I have an 'exploded' Appfuse project (i.e. one in which I have run mvn
> war:inplace).
> I am traversing the graph of a domain object in a JSP, and to enable this I
> have the OpenSessionInViewFilter definition and mapping uncommented in  my
> web.xml.
>
> This works fine when I am running Jetty via mvn jetty:run.
>
> However, when I install a WAR (using mvn clean install) into the Tomcat
> webapps directory, I am getting this error message:
>
> ERROR [http-80-Processor25] LazyInitializationException.<init>(19) | failed
> to lazily initialize a collection of role: xxxx, no session or session was
> closed
> org.hibernate.LazyInitializationException: failed to lazily initialize a
> collection of role: xxxx, no session or session was closed
>
> I don't know why I'm getting this message, as the Session should still be
> open. Maybe some other, unreported error has resulted in the Session being
> closed before this?
>
> Any help would be most welcome.
> --
> View this message in context:
> http://www.nabble.com/LazyInitializationException-in-Tomcat-but-not-Jetty-tp23333501s2369p23333501.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to