Re: [appfuse-user] one problem about appfuse2

2008-09-16 Thread dengqf
when visit "http://localhost:8080/appAgentForm.html"; WARN [btpool0-2] PageNotFound.noHandlerFound(1068) | No mapping found for HTTP r equest with URI [/appAgentForm.html] in DispatcherServlet with name 'dispatcher' mraible wrote: > > Try running mvn test with a "-Dsurefile.useFile=false" arg

Re: [appfuse-user] one problem about appfuse2

2008-09-16 Thread dengqf
when i run mvn jetty:run-war -Dmaven.test.skip=true it can run ok but when i visit "http://localhost:8080/appAgents.html"; it is 404 error!(appAgents.html is exist) i think it cant pass test,because of it alibehzadian wrote: > > Hi, > > See your hibernate.cfg.xml in src/test/resources folde

Re: [appfuse-user] one problem about appfuse2

2008-09-16 Thread dengqf
HI,when i run "mvn test -Dsurefile.useFile=false" it is same to run"mvn test" when i run mvn jetty:run-war -Dmaven.test.skip=true it can run ok but when i visit "http://localhost:8080/appAgents.html"; it is 404 error!(appAgents.html is exist) i think it cant pass test,because of it mraible wr

[appfuse-user] Re: Re[appfuse-user] direct to page after login

2008-09-16 Thread Martin Homik
Copy the index.jsp from target/work/webapp into your project and change to where you want to go. Martin Mauriff wrote: > > Hello, I need know how redirect to page after to login. > I read about Acegi but the redirection it's set in applicationContext.xml > with the bean authentication

Re: [appfuse-user] ant test-canoo -Dtestcase=Login FAILS

2008-09-16 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > > Did I miss instructions somewhere in the tutorial to change the login > credentials or change the user_role for mraible?! > Don't answer that! I just realized I (attempted) to add a user to the sample-data.xml, but it didn't work anyway because I tried to leave th

Re: [appfuse-user] ant test-canoo -Dtestcase=Login FAILS

2008-09-16 Thread [EMAIL PROTECTED]
Dang! Did I miss instructions somewhere in the tutorial to change the login credentials or change the user_role for mraible?! Sorry about the boneheaded question. Hopefully this is the last ;) Thanks a lot Matt!! You're awesome. Seriously, Appfuse is genius. -Steve mraible wrote: > > If

Re: [appfuse-user] ant test-canoo -Dtestcase=Login FAILS

2008-09-16 Thread Matt Raible
If you look at the test, you should be able to see and understand what it's trying to do. I'd try manually doing what the test is doing to see if you can reproduce. Matt On Tue, Sep 16, 2008 at 5:48 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi! > > Since I'm starting to develop project

Re: [appfuse-user] why hibernate.cfg.xml and persistence.xml ?

2008-09-16 Thread Matt Raible
Are you using JPA or Hibernate? You should delete persistence.xml if you're using Hibernate and hibernate.cfg.xml if you're using JPA. Matt On Tue, Sep 16, 2008 at 4:09 PM, Rick <[EMAIL PROTECTED]> wrote: > I'm confused why both are used in the appfuse project? I thought you > don't need to use t

Re: [appfuse-user] Solutions: AppFuse automatic build with eclipse + model generator

2008-09-16 Thread Matt Raible
On Tue, Sep 16, 2008 at 3:29 PM, Vincenzo Caselli <[EMAIL PROTECTED]> wrote: > I use appfuse:gen regularly and it is great. > But Matt, where are located the appfuse:gen scripts/sources ? They're located in the plugin itself, but you can run "appfuse:copy-templates" if you want to copy them into y

Re: [appfuse-user] Solutions: AppFuse automatic build with eclipse + model generator

2008-09-16 Thread Matt Raible
What version of AppFuse are you using? This functionality is built into both 1.x and 2.x. 1.x: http://raibledesigns.com/wiki/Wiki.jsp?page=AppGen 2.x: http://appfuse.org/display/APF/AppFuse+Maven+Plugin Regardless of the fact that these exist, it's always great to hear about other projects with

[appfuse-user] ant test-canoo -Dtestcase=Login FAILS

2008-09-16 Thread [EMAIL PROTECTED]
Hi! Since I'm starting to develop projects that were started with Appfuse and indeed starting my own projects with Appfuse, I figured it was time to come ask my questions at the forum (instead of bothering my manager all the time with these problems!). Using Appfuse 1.9.4 Going through the tuto

[appfuse-user] why hibernate.cfg.xml and persistence.xml ?

2008-09-16 Thread Rick
I'm confused why both are used in the appfuse project? I thought you don't need to use the hibernate.cfg.xml if you move the mapping definitions to persitence.xml (the User model is defined in both in the app fuse project.) I'm new to hibernate so possibly I'm misunderstanding. -- Rick -

Re: [appfuse-user] Solutions: AppFuse automatic build with eclipse + model generator

2008-09-16 Thread Vincenzo Caselli
I use appfuse:gen regularly and it is great. But Matt, where are located the appfuse:gen scripts/sources ? Vincenzo Caselli On Tue, Sep 16, 2008 at 10:43 PM, Matt Raible <[EMAIL PROTECTED]>wrote: > On Tue, Sep 16, 2008 at 1:15 PM, agathon <[EMAIL PROTECTED]> wrote: > > > > The Build and compile

Re: [appfuse-user] Solutions: AppFuse automatic build with eclipse + model generator

2008-09-16 Thread agathon
well to be honest i never used the appfuse:gen or gen-model command, i am using appfuse since two years now and i didn't know there was such a thing ... :confused: i can tell you what the script does ... than you see the differences: Model with fields

Re: [appfuse-user] Solutions: AppFuse automatic build with eclipse + model generator

2008-09-16 Thread Matt Raible
On Tue, Sep 16, 2008 at 1:15 PM, agathon <[EMAIL PROTECTED]> wrote: > > The Build and compile process took me to much time so i took advantage of the > eclipse autobuild function! > > http://snackycracky.wordpress.com/2008/09/16/appfuse-automatic-build-with-eclipse/ > automatic build with eclipse

[appfuse-user] Solutions: AppFuse automatic build with eclipse + model generator

2008-09-16 Thread agathon
The Build and compile process took me to much time so i took advantage of the eclipse autobuild function! http://snackycracky.wordpress.com/2008/09/16/appfuse-automatic-build-with-eclipse/ automatic build with eclipse Generating all the files for introducing a new Model to my Application(Spring

Re: [appfuse-user] APF-1071

2008-09-16 Thread java_user_
I did try the first this work around: lazyLoadingFilter /kml But I would get a LazyInitializationException error. I just successfully tried the applicationContext-service.xml workaround. I ran all the tests and they passed. I am unsure of what this fix does. Should I

[appfuse-user] CRUD with domain class that is subclassed.

2008-09-16 Thread Jeremy Flowers
I need to be able to effectively select from a combo box a record/concrete subclass type then edit details for the appropriate subclass. I'm thinking I'd need to condition fields in my web page using JSTL tags and update the appropriate subclass after selecting it's type on the first screen. To

Re: [appfuse-user] APF-1071

2008-09-16 Thread Matt Raible
Have you looked at the comments on the issue. There seems to be a couple different workarounds. Matt On Tue, Sep 16, 2008 at 9:51 AM, java_user_ <[EMAIL PROTECTED]> wrote: > > (APF-1071) LazyLoading filter turned on break the ability to update a > password > http://issues.appfuse.org/browse/APF-1

[appfuse-user] APF-1071

2008-09-16 Thread java_user_
(APF-1071) LazyLoading filter turned on break the ability to update a password http://issues.appfuse.org/browse/APF-1071 What was the fix for this bug? I need LazyLoading turned on. -- View this message in context: http://www.nabble.com/APF-1071-tp19514695s2369p19514695.html Sent from the AppFu

Re: [appfuse-user] appfuse light not using hibernate/jta annotations - reasoning- pros/consl?

2008-09-16 Thread Matt Raible
On Mon, Sep 15, 2008 at 12:04 PM, Rick <[EMAIL PROTECTED]> wrote: > On Mon, Sep 15, 2008 at 1:02 PM, Matt Raible <[EMAIL PROTECTED]> wrote: >> I like the annotation approach. The reason AppFuse Light doesn't use >> annotations is I haven't gotten around to adding them. >> >> Here's something I blog

Re: [appfuse-user] confusion about warning in persistence.xml in resources/META-INF

2008-09-16 Thread Matt Raible
You can ignore this comment - it's only meant to warn developers of the AppFuse project itself. Matt On Tue, Sep 16, 2008 at 8:26 AM, Rick <[EMAIL PROTECTED]> wrote: > The resources/META-INF/persistence.xml file has this warning in it: > > > > I'm confused though since there is no > web/commo

[appfuse-user] confusion about warning in persistence.xml in resources/META-INF

2008-09-16 Thread Rick
The resources/META-INF/persistence.xml file has this warning in it: I'm confused though since there is no web/common/src/main/resources/META-INF dir. In the standard appfuse builds should we be modifying the persistence.xml in resources/META-INF ? -- Rick --

Re: [appfuse-user] Using Stored Procedures.

2008-09-16 Thread Youssef Mohammed
yeah JPA is not the way to go for that. Try SqlMaps of iBATIS .. they are quite nice http://ibatis.apache.org/javadownloads.cgi a simple demo .. it has many nice blogs about that ( db is oracle here ) http://www.it-eye.nl/weblog/2008/07/04/simple-delete-and-insert-statements-with-ibatis/ On Tu

[appfuse-user] Re[appfuse-user] direct to page after login

2008-09-16 Thread Mauriff
Hello, I need know how redirect to page after to login. I read about Acegi but the redirection it's set in applicationContext.xml with the bean authenticationProcessingFilter and her property defaultTargetUrl. How I should set this redirection in AppFuse? Regards! -- View this message in conte

Re: [appfuse-user] Using Stored Procedures.

2008-09-16 Thread Mauriff
Any ideas? I read about "JavaTM Persistence API: Best Practices and Tips" from Java One and here they says: "Stored Procedures How to invoke them -Not specified by Java Persistence API -Three ways to do this -Can use persistence provider specific support -Can use the underlying Java