[appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Michael Duergner
Hi all, i've got a Appfuse Spring MVC modular project using JPA for persistence layer. Getting objects form the database works as intended but I'm not able to save a object. I've implemented a own DAO extending GenericDaoJpa with just calls super.save() for saving an object. But the object will not

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Matt Raible
Are you sure your save is wrapped in a transaction? Matt On Wed, Jul 16, 2008 at 6:56 AM, Michael Duergner <[EMAIL PROTECTED]> wrote: > Hi all, > i've got a Appfuse Spring MVC modular project using JPA for persistence > layer. Getting objects form the database works as intended but I'm not able >

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Michael Duergner
I set the stuff up like described in the JPA tutorial and the examples on springframework.org. Does appfuse take care of that stuff or do I have to add that on my own? On Wed, Jul 16, 2008 at 11:09 PM, Matt Raible <[EMAIL PROTECTED]> wrote: > Are you sure your save is wrapped in a transaction? >

[appfuse-user] acegi implementation

2008-07-16 Thread nani2ratna
Hi, I am using struts2 archetype. I think acegi was implemented in the appfuse in security.xml. But i never saw this type of implementation, can anybody explain whats the difference between implementation of appfuse -acegi implemenation and http://www.javaworld.com/javaworld/jw-10-2007/jw-10-ace

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Matt Raible
AppFuse should take care of the JPA configuration for you. Matt On Wed, Jul 16, 2008 at 3:20 PM, Michael Duergner <[EMAIL PROTECTED]> wrote: > I set the stuff up like described in the JPA tutorial and the examples on > springframework.org. Does appfuse take care of that stuff or do I have to > ad

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Michael Duergner
Any Idea how I can check if it's a transaction related problem? On Thu, Jul 17, 2008 at 12:43 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > AppFuse should take care of the JPA configuration for you. > > Matt > > On Wed, Jul 16, 2008 at 3:20 PM, Michael Duergner > <[EMAIL PROTECTED]> wrote: > > I s

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Matt Raible
When do you not see the object being persisted? In a test or when you're running the app in Tomcat/Jetty? Matt On Wed, Jul 16, 2008 at 4:44 PM, Michael Duergner <[EMAIL PROTECTED]> wrote: > Any Idea how I can check if it's a transaction related problem? > > On Thu, Jul 17, 2008 at 12:43 AM, Matt

Re: [appfuse-user] acegi implementation

2008-07-16 Thread Matt Raible
AppFuse uses a security.xml to configure Acegi/Spring Security. If you don't have this file in your project, it's merged in when your WAR is built. Matt On Wed, Jul 16, 2008 at 4:24 PM, nani2ratna <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using struts2 archetype. > I think acegi was implemented

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Michael Duergner
Both. It's neither updating an existing object nor inserting a new one. On Thu, Jul 17, 2008 at 12:46 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > When do you not see the object being persisted? In a test or when > you're running the app in Tomcat/Jetty? > > Matt > > On Wed, Jul 16, 2008 at 4:44

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Matt Raible
Can you post your test? Have you gone through the JPA tutorial on the wiki? http://appfuse.org/display/APF/Using+JPA Matt On Wed, Jul 16, 2008 at 4:50 PM, Michael Duergner <[EMAIL PROTECTED]> wrote: > Both. It's neither updating an existing object nor inserting a new one. > > On Thu, Jul 17, 200

Re: [appfuse-user] Problem with JPA Persistence

2008-07-16 Thread Michael Duergner
I just wrote tests based upon that tutorial yes. I could get the tests working by adding the following entries to applicationContext-resources.xml in src/test/resources/

Re: [appfuse-user] acegi implementation

2008-07-16 Thread nani2ratna
so that configuration only spring with acegi and not with struts2 with acegi is it thanks and reagrds ratna mraible wrote: > > AppFuse uses a security.xml to configure Acegi/Spring Security. If you > don't have this file in your project, it's merged in when your WAR is > built. > > Matt > >

Re: [appfuse-user] acegi implementation

2008-07-16 Thread Matt Raible
security.xml does not care what web framework you use - it's filter-based, so it's wired in the web.xml, as a filter before and Struts 2 filters. Matt On Wed, Jul 16, 2008 at 5:22 PM, nani2ratna <[EMAIL PROTECTED]> wrote: > > so that configuration only spring with acegi > and not with struts2 wit