[appfuse-user] Re: Re: Executing Named query

2008-03-22 Thread Derek Broughton
Rob Hills wrote: > That may well work, but I suspect it's a bad habit to get into. > Creating your own Manager (extending GenericManager) and Dao (extending > GenericDao) and their implementing classes can be a bit of a chore, but > unless your app is a _very_ simple one, I think the collective wi

[appfuse-user] Re: Re: Executing Named query

2008-03-22 Thread Derek Broughton
Rob Hills wrote: > Derek Broughton wrote: >> > Yes, and GenericManager does its DB stuff via GenericDao... >> I think I have it, now. It's trivial :-) >> >> WebApplicationContext ctx = >> WebApplicationContextUtils.getRequiredWebApplicationContext(this.getRequest().getSession().getServ

Re: [appfuse-user] Error deploying in Jetty

2008-03-22 Thread dusty
I think this error means that spring cannot find the correct implementation for your LookupManager interface. What I would do is go look at the applicationContext.xml and verify that the class you have specified there implements the correct interface. This has happened to me in the past when I

Re: Re: [appfuse-user] Executing Named query

2008-03-22 Thread dusty
+1 to Rob. You are absolutely right on the pattern you describe. One of the main reasons is that you want to have repeated patterns throughout your code even when your code becomes more complex. When I am first starting, I will usually create a model and an Action and use a GenericManager, bu

[appfuse-user] Database versioning in appfuse applications

2008-03-22 Thread Ashkan Roshanayi
Hi all, This is not solely about appfuse applications so I apologize if it is rather off topic. I want to put a huge database (used by an appfusian app) under change control (subversion). And of course I need to automate applying the changes to our central db on build server. So far I used a sing

Re: [appfuse-user] Re: Executing Named query

2008-03-22 Thread Rob Hills
Hi Derek, Derek Broughton wrote: Rob Hills wrote: Derek Broughton wrote: Appfuse 2.0, Struts basic, Postgres I want to execute a Hibernate NamedQuery, but I can't figure out how to get the hibernate Session from within my Action. Can somebody point me to some useful documentation - every

[appfuse-user] Re: Executing Named query

2008-03-22 Thread Derek Broughton
Rob Hills wrote: > Hi Derek, > > Derek Broughton wrote: >> Appfuse 2.0, Struts basic, Postgres >> >> I want to execute a Hibernate NamedQuery, but I can't figure out how to >> get the hibernate Session from within my Action. >> >> Can somebody point me to some useful documentation - every example

[appfuse-user] Error deploying in Jetty

2008-03-22 Thread Acrobat
Hi all, I'm trying to run AppFuse in Jetty, without having done any changes to code and I'm getting this error: java.lang.ClassCastException: $Proxy36 cannot be cast to com.app.ebun.service.LookupManager This error is not appearing when I create the WAR file for the application and deploying it

Re: [appfuse-user] Executing Named query

2008-03-22 Thread Rob Hills
Hi Derek, Derek Broughton wrote: Appfuse 2.0, Struts basic, Postgres I want to execute a Hibernate NamedQuery, but I can't figure out how to get the hibernate Session from within my Action. Can somebody point me to some useful documentation - every example I've found assumes you already have t

Re: [appfuse-user] Error while expanding C:\DOCUME~1\...\Locals~1\cargo\..\apache-tomcat-6.0.14.zip

2008-03-22 Thread Matt Raible
See the following for an answer: http://appfuse.org/display/APF/FAQ#FAQ-useexistingtomcat Matt On Mar 22, 2008, at 3:20 AM, PeterZh wrote: After creating myproject,I run the mvn command ,error occurs, . http://www.nabble.com/file/p16218102/mvnerror.jpg What and where should I config in

[appfuse-user] Executing Named query

2008-03-22 Thread Derek Broughton
Appfuse 2.0, Struts basic, Postgres I want to execute a Hibernate NamedQuery, but I can't figure out how to get the hibernate Session from within my Action. Can somebody point me to some useful documentation - every example I've found assumes you already have the Session. -- derek

[appfuse-user] Error while expanding C:\DOCUME~1\...\Locals~1\cargo\..\apache-tomcat-6.0.14.zip

2008-03-22 Thread PeterZh
After creating myproject,I run the mvn command ,error occurs, . http://www.nabble.com/file/p16218102/mvnerror.jpg What and where should I config in the pom.xml to use the existed tomcat instead of downloading the tomcat.zip and unzip it after creating myproject -- View this message

[appfuse-user] mvn appfuse:full-source Error

2008-03-22 Thread PeterZh
After creating project, I run the command mvn appfuse:full-source,error occurs http://www.nabble.com/file/p16217985/mvnappfusefull-source.jpg -- View this message in context: http://www.nabble.com/mvn--appfuse%3Afull-sourceError-tp16217985s2369p16217985.html Sent from the AppFuse - User ma