Re: [appfuse-user] 2.0 problem with hibernate

2007-09-21 Thread ernasm
Matt, I am using appfuse-basic-struts. Is it the same problem as in modular type? How do I fix this? Thanks, -- Ernas M. Jamil On 9/21/07, Matt Raible <[EMAIL PROTECTED]> wrote: > FWIW, this is a bug that seems to affect Hibernate and JPA backends. > > http://issues.appfuse.org/browse/APF-910 >

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-21 Thread Matt Raible
There shouldn't be any issues with basic archetypes. Here's the synopsis: If you have a basic project, there should be a hibernate.cfg.xml in src/main/resources, not in src/test/resources. Delete the one in test if it exists. If you have a modular project, there should be a hibernate.cfg.xml in c

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-21 Thread Matt Raible
FWIW, this is a bug that seems to affect Hibernate and JPA backends. http://issues.appfuse.org/browse/APF-910 Deleting the relevant files from core/src/test/resources and web/src/main/resources and running "mvn clean" will fix the problem. Matt On 9/21/07, Michael Horwitz <[EMAIL PROTECTED]> wr

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-21 Thread Michael Horwitz
There should only be the one in core/src/main/resources, so yes delete the other two. As always in these things keep a backup just in case. Mike On 9/21/07, kace <[EMAIL PROTECTED]> wrote: > > > I have one in web/src/main/resources too. So would it be safe to delete > the > one in test and i

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-21 Thread kace
I have one in web/src/main/resources too. So would it be safe to delete the one in test and in web folder? ..kace mraible wrote: > > There should only be one of these, so it may be a bug that there's > two. The one in src/test/resources shouldn't exist. Also, there > shouldn't be one in web/sr

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-21 Thread Matt Raible
There should only be one of these, so it may be a bug that there's two. The one in src/test/resources shouldn't exist. Also, there shouldn't be one in web/src/main/resources. Matt On 9/21/07, kace <[EMAIL PROTECTED]> wrote: > > if you are running a modular project make sure you are updating the >

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-21 Thread kace
if you are running a modular project make sure you are updating the hibernate.cfg.xml file in core\src\main\resources and in core\src\test\resources. For me hibernate.cfg.xml in test was neglected by me so the tests would fail. ..kace Ernas M. Jamil wrote: > > On 9/20/07, kace <[EMAIL PR

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread ernasm
On 9/20/07, kace <[EMAIL PROTECTED]> wrote: > > on further inspection, after a cup of tea and a break, it turns out it is a > silly classpath issue . my bad. tis all better again . > > thanks > > ..kace kace, could you share your solution ? cause I'm having same problem only with 2.0. I also tri

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread masterg007
Seems like your class (com.kace.app.model.League) needs to be added to the persistence.xml file so hibernate knows about it. Example: http://java.sun.com/xml/ns/persistence"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/persist

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread kace
on further inspection, after a cup of tea and a break, it turns out it is a silly classpath issue . my bad. tis all better again . thanks ..kace kace wrote: > > hey, > > no, I dont have duplicate files. I thought it might be a hibernate > problem so i went back to 3.2.1.ga version for hibe

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread kace
hey, no, I dont have duplicate files. I thought it might be a hibernate problem so i went back to 3.2.1.ga version for hibernate but to no avail. Same problems - modify user class with OneToMany and it messes up. kace mraible wrote: > > Make sure to don't have duplicate hibernate.cfg.xml

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread Matt Raible
Make sure to don't have duplicate hibernate.cfg.xml files in your classpath. Matt On 9/20/07, kace <[EMAIL PROTECTED]> wrote: > > I just tried it with another of my apps and the exact thing happened. Any > modification to the user class with @oneToMany and the tests fail. > > > > kace wrote: >

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread kace
I just tried it with another of my apps and the exact thing happened. Any modification to the user class with @oneToMany and the tests fail. kace wrote: > > Hey, > > yeah it is added. Everything was working on rc1 but stopped when i took > it over to 2.0. > > Anything else i can check fo

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread kace
Hey, yeah it is added. Everything was working on rc1 but stopped when i took it over to 2.0. ...kace Mike Horwitz wrote: > > Have you checked that com.kace.app.model.League is included in > hibernate.cfg.xml? > > Mike > > On 9/20/07, kace <[EMAIL PROTECTED]> wrote: >> >> >> Hi fellas, >>

Re: [appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread Michael Horwitz
Have you checked that com.kace.app.model.League is included in hibernate.cfg.xml? Mike On 9/20/07, kace <[EMAIL PROTECTED]> wrote: > > > Hi fellas, > > I have a rc1 app that i have copied over to a new 2.0 app > (jsf/modular/full-source) . It was working fine in rc1 but in 2.0 it > gives > a bun

[appfuse-user] 2.0 problem with hibernate

2007-09-20 Thread kace
Hi fellas, I have a rc1 app that i have copied over to a new 2.0 app (jsf/modular/full-source) . It was working fine in rc1 but in 2.0 it gives a bunch of errors. If i leave the User class unmodified all the tests pass but when i add a OneToMany to user the following errors appear (see belo