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 core/src/main/resources. This should be the only hibernate.cfg.xml in your project. If you're using JPA, hibernate.cfg.xml = META-INF/persistence.xml. If you're using iBATIS, hibernate.cfg.xml = sql-map-config.xml. With iBATIS, you shouldn't have to worry about duplicates, but you should delete them to eliminate confusion. Matt On 9/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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 > > > > 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]> wrote: > > > 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 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/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 > > > > >> 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 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 tried [EMAIL PROTECTED] suggesstion but still have same > > > > >> error. > > > > >> > > > > > >> > Thanks, > > > > >> > > > > > >> > -- > > > > >> > Ernas M. Jamil > > > > >> > > > > > >> > > > > --------------------------------------------------------------------- > > > > >> > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > > >> > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > >> -- > > > > >> View this message in context: > > > > >> > > > > > http://www.nabble.com/2.0-problem-with-hibernate-tf4487595s2369.html#a12815031 > > > > >> 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/2.0-problem-with-hibernate-tf4487595s2369.html#a12822190 > > > > 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] > > > > > > > -- > Ernas M. Jamil > > --------------------------------------------------------------------- > 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]