Re: [appfuse-user] AppFuse Tutorial missing persistence.xml change

2010-11-24 Thread Ramzi MAALEJ


It serves while using JPA.

On 2010-11-24 13:25, Milbourne, Anthony wrote:

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:[email protected]]
*Sent:* 23 November 2010 17:01
*To:* [email protected]
*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 
<mailto:[email protected]>> 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_), 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
==





--
Best regards, Ramzi MAALEJ


Re: [appfuse-user] AppFuse Tutorial missing persistence.xml change

2010-11-24 Thread Matt Raible
Should be fixed in latest release.

On Nov 24, 2010, at 11:25 AM, "Milbourne, Anthony" 
 wrote:

> 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:[email protected]] 
> Sent: 23 November 2010 17:01
> To: [email protected]
> 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 
>  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), 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
> ==
> 
> 


RE: [appfuse-user] AppFuse Tutorial missing persistence.xml change

2010-11-24 Thread Milbourne, Anthony
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:[email protected]] 
Sent: 23 November 2010 17:01
To: [email protected]
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
 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 
=== 



Re: [appfuse-user] AppFuse Tutorial missing persistence.xml change

2010-11-23 Thread Matt Raible
You should delete the persistence.xml file in web/src/main/resources.

On Mon, Nov 15, 2010 at 3:25 AM, Milbourne, Anthony <
[email protected]> 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*),
> 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
>
> ==
>
>


[appfuse-user] AppFuse Tutorial missing persistence.xml change

2010-11-15 Thread Milbourne, Anthony
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), 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 
===