It's started worked again now - in Tomcat.

I have no idea what the problem was - but a new build seems to have fixed
it.

Thanks!

Jonny



mraible wrote:
> 
> Does it happen when you run "mvn jetty:run-war"?
> 
> On Fri, May 1, 2009 at 9:39 AM, Jonny Cavell <jonny.cav...@gmail.com>
> wrote:
> 
>>
>> Hi Matt
>>
>> Yes, I'd done all of that already - everything seems as it should be.
>>
>> Any other ideas?
>>
>> Thanks
>>
>> Jonny
>>
>>
>> mraible wrote:
>> >
>> > 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
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/LazyInitializationException-in-Tomcat-but-not-Jetty-tp23333501s2369p23334971.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
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/LazyInitializationException-in-Tomcat-but-not-Jetty-tp23333501s2369p23335516.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