Matt,
Yes, I did try that by uncommenting the following segments in web.xml:
<filter>
<filter-name>lazyLoadingFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
and
<filter-mapping>
<filter-name>lazyLoadingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
but it didn't seem to do anything. No exceptions; it just did what it did
before. Is there something else I'm missing? I should also note that I'm
using JPA in my POJOs for defining the relationships, so there isn't a
Hibernate mapping file. I do, however, have the mapped classes defined in
my hibernate.cfg.xml.
Thanks,
Jeremiah
mraible wrote:
>
> Have you tried uncommenting the OpenSessionInViewFilter in your web.xml?
>
> Matt
>
> On 6/14/07, jeremiah.lopez <[EMAIL PROTECTED]> wrote:
>>
>> I am using Appfuse 2.0-M5 with Hibernate 3 and JSF. I have a simple
>> parent
>> child relationship implemented in my POJOs, Team --> Player. A team can
>> have many players; a player can only be a member of one team. I have
>> design
>> the POJOs, unit tests, daos, and managers. All of the unit tests pass
>> successfully.
>>
>> assertTrue(team.getPlayers().size() > 0) passes during test execution.
>> This
>> test gets writes a Team object to the database and then reads it back to
>> make sure everything was written correctly.
>>
>> The problem I'm having is when I try and inject these objects into a JSF
>> page. If I have a table that wants to display the team and the number of
>> players on that team, I get an exception because the players object is
>> null.
>> All of the other details about the team show up in the stack trace, but
>> the
>> team.getPlayers() is null. So my question is why isn't this getting
>> loaded
>> in the context of the server, but runs just fine when running unit tests?
>> Is there some additional configuration that needs to be done in AppFuse
>> to
>> make this happen or for parent-child relationships using Hibernate?
>>
>> Thanks for your help.
>>
>> -Jeremiah
>> --
>> View this message in context:
>> http://www.nabble.com/Children-not-getting-loaded-on-Jetty-server-tf3924244s2369.html#a11128637
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Children-not-getting-loaded-on-Jetty-server-tf3924244s2369.html#a11131309
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]