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]
