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
>
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
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
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
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
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
>
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
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
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
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
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
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:
>
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
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,
>>
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
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
16 matches
Mail list logo