If you're using JPA, you should have persistence.xml. If you're using
Hibernate, you should have a hibernate.cfg.xml. You should not have
both files, nor have duplicates of either in your project.

Matt

On Wed, Dec 3, 2008 at 3:08 AM, Charles G. <[EMAIL PROTECTED]> wrote:
>
> Dear ,
>
> I am new to appfuse, don t know much about maven and libs that are use in
> appfuse... I am an occasional developer that looks for solutions to speed up
> my web app dev time (I am normally a scientist doing data analysis). After
> reading stuff, Appfuse seems to provide just what I need! So I just
> installed it and tried the Spring MVC- basic then struts-basic but got stuck
> each time with the same error. All I did is follow the video demo of Matt on
> CRUD generation with a very simple object (a Shop that has only a name and
> an id). Anyway, I could finally find the problem : persistence.xml and
> hibernate.cfg.xml are not updated in both test/resources/* and
> target/test-classes/* (I am not sure if there is a third place where I had
> to copy these files as well) which causes tests to fail (for the eg
> ShopAction since the "Shop" entity is not declared) when running mvn
> jetty:run-war (note I tried mvn clean but w/o success). I am sure it is a
> stupid little 'copy' missing in some mvn goal.
>
> NB: I have run mvn appfuse:full-source right after installation, I am using
> appfuse 2.0.2
>
> Hope this helps. If somebody could tell me how to fix this to avoid copying
> these files over and over again. Or if I did something wrong, that'd be real
> cool...
>
> Have a nice day
>
> Charles
>
>
> --
> View this message in context: 
> http://www.nabble.com/Bug-in-gen-plugin--tp20810065s2369p20810065.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to