[appfuse-user] populate doesn't seem to work

2007-10-27 Thread mschipperheyn
Hi, I try to use the populate method to load object properties, but it doesn't work. I don't get an error but I see in the query browser that my object values are null. Manually loading works fine. I placed UserDaoTest.properties in the same dir as UserDaoTest.java +++UserDaoTest.properties nick

Re: [appfuse-user] null pointer exception !!

2007-10-27 Thread kace
I accessed the bean from the servlet HttpSession session = request.getSession(true); FileList fl = (FileList) session.getAttribute("fileList"); but it returns null so I put this before calling the imageServlet and the bean gets instantiated. Is there another way of doing this ? ..kace kace

Re: [appfuse-user] Cannot access database with remote shared web hosting

2007-10-27 Thread BruceLee
Thank Mike for advice. I cannot login even with built-in user tomcat:tomcat either. The page displays "Invalid User or Password". In local test everything is OK. Do I need to change some configurations when I copy it from local TOMCAT_HOME/webapp/ to remote hosting directory (which is not under TO

Re: [appfuse-user] Accessing user info on main menu page

2007-10-27 Thread Rob Hills
Hi Michael, On 26 Oct 2007 at 11:14, Michael Horwitz wrote: > The best way is probably to build your own custom JSP tag that knows how to > extract you User object from the ACEGI authentication context. Thanks for that tip. I'd presumed the user object in the ACEGI authentication context was a

Re: [appfuse-user] Quick start not working 100%

2007-10-27 Thread Setomidor
Setomidor wrote: > > > > mraible wrote: >> >> On 10/26/07, Setomidor <[EMAIL PROTECTED]> wrote: >>> >>> Hi! >>> >>> Been trying out AppFuse and ran into some problems: >>> >>> 1) Ran the following on a freshly installed Ubuntu gutsy box, maven >>> 2.0.7: >>> >>> mvn archetype:create -Darchety

Re: [appfuse-user] Quick start not working 100%

2007-10-27 Thread Setomidor
mraible wrote: > > On 10/26/07, Setomidor <[EMAIL PROTECTED]> wrote: >> >> Hi! >> >> Been trying out AppFuse and ran into some problems: >> >> 1) Ran the following on a freshly installed Ubuntu gutsy box, maven >> 2.0.7: >> >> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes >> -D

Re: [appfuse-user] Cannot access database with remote shared web hosting

2007-10-27 Thread Michael Horwitz
Quick question: it looks like it is failing when you try and add a new user? Presumably to get there you can login, access the admin pages etc. If that is the case then the hibernate mappings must be good. There should be a nested lower level SQL exception which will give more details as to the exa

Re: [appfuse-user] null pointer exception !!

2007-10-27 Thread kace
Hey, I never realised my post got throught; came back as not being accepted so I ended up deleting it. Anyway, it was a servlet but I changed it to a pojo now so I can access jsf beans. Out of curiousity how would I go about accessing a bean from a servlet. ..kace Matt Raible-3 wrote: >

Re: [appfuse-user] Duplicate Users in List

2007-10-27 Thread syg6
Yep. You're using Hibernate right? Just cast the List of Users to a LinkedHashSet in your UserController. List allows duplicates, Sets do not. Cheers, Bob George.Francis wrote: > > I'm getting some strange behaviour. I find that if I assign two Roles to > User 'admin' then when I call > userM