That worked :-).
I presume that file will not be there in the next release (or does it
serve some purpose?).
 
Thanks for the help,
 
    Anthony.

________________________________

From: Matt Raible [mailto:m...@raibledesigns.com] 
Sent: 23 November 2010 17:01
To: users@appfuse.dev.java.net
Subject: Re: [appfuse-user] AppFuse Tutorial missing persistence.xml
change


You should delete the persistence.xml file in web/src/main/resources.


On Mon, Nov 15, 2010 at 3:25 AM, Milbourne, Anthony
<anthony.milbou...@credit-suisse.com> wrote:


        Apologies if I have missed something obvious here but I think I
have found an omission in the AppFuse tutorial. 

        I am using the 2.1.0-M1 version of the modular spring archetype
and I have followed the tutorials with JPA and SpringMVC.  All works up
until the controller tutorial
(http://appfuse.org/display/APF/Using+Spring+MVC
<http://appfuse.org/display/APF/Using+Spring+MVC> ), when I get a test
failure for the PersonControllerTest:

        no persistent classes found for query class: select obj from
com.my.company.model.Person obj 

        After a bit of digging I discovered that I needed to add an
entry in web/src/main/resources/META-INF/persistence.xml.  This is kind
of obvious but the issue was complicated by the presence of
core/src/main/resources/META-INF/persistence.xml, which has a comment
stating that adding entries is optional - so first I didn't realise that
the file was in 2 places and then I thought that the optionality applied
to both.

        None of this seems to be mentioned in the tutorial, and I think
it ought to be. 

        All that said, AppFuse is great and the tutorial is generally
very well written and easy to follow. 

        Is this the right place to request updates to the tutorial (and
if not then where)? 

        Thanks, 

            Anthony. 
        


=============================================================================== 
Please access the attached hyperlink for an important electronic communications 
disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 

Reply via email to