Re: [appfuse-user] appfuse:gen-model error

2010-11-20 Thread Philip Barlow
I believe this is because the appfuse gen plugin does not support database realtionships, foreign keys etc? Correct me if i'm wrong Matt? On 18/11/2010 12:10, Mark Rosenthal wrote: Hi All, I am using the latest appfuse 2.1.0-M2, running against a MSSQL database. The stack is Struts2 basic wit

Re: [appfuse-user] Creating two logins

2009-09-01 Thread Philip Barlow
Hi GreenHorn, I had a similar problem and got around it by using the security.xml that comes with appfuse and adding the following: class="org.springframework.security.ui.webapp.AuthenticationProcessingFilter"> value="/admin/j_security_check_admin" /> value="/admin/login.jsp?error=t

Re: [appfuse-user] multilpe login forms

2009-03-18 Thread Philip Barlow
Hi Tibi, I had the same problem but what was happening for me was that I would get redirected to the default login if the session timed out and i tried to access a link. Let me know if you are seeing this behaviour. I got around it with a filter which probably isn't ideal but if you can find a

Re: [appfuse-user] Moving pages to new folder

2008-12-10 Thread Philip Barlow
I'm going to give this a go, but if anyone has a nicer solution, please let me know: http://forum.springframework.org/showthread.php?t=57151&highlight=multiple+login+forms Philip Barlow wrote: > > Hi Matt/All, > > Sorry for the late comeback on this I was working on

Re: [appfuse-user] Moving pages to new folder

2008-12-09 Thread Philip Barlow
s2369.html mraible wrote: > > The login page is configured in security.xml. > > Matt > > On Fri, Nov 21, 2008 at 10:28 AM, Philip Barlow <[EMAIL PROTECTED]> > wrote: >> >> Hi Matt, >> >> Thanks I managed to do that part quite easily but it i

Re: [appfuse-user] Moving pages to new folder

2008-11-21 Thread Philip Barlow
today will be enough. Thanks mraible wrote: > > It should be as easy as moving the files and changing the paths in > struts.xml. If it doesn't work, please send us the errors you're > seeing. > > Matt > > On Fri, Nov 21, 2008 at 2:53 AM, Philip Barlow <[EM

Re: [appfuse-user] Moving pages to new folder

2008-11-21 Thread Philip Barlow
JSPs in all Actions from your > 'struts.xml'??! > > Ice-Man > > 2008/11/20 Philip Barlow <[EMAIL PROTECTED]> > >> >> Hi, >> >> Has anyone ever moved all jsp's to a new folder in appfuse 2? I am trying >> to >> achieve somet

[appfuse-user] Moving pages to new folder

2008-11-20 Thread Philip Barlow
Hi, Has anyone ever moved all jsp's to a new folder in appfuse 2? I am trying to achieve something like http://localhost:8080/admin is where my login will be and where all my pages will reside. Leaving http://localhost:8080/ as a static public website. I have tried a few times to move the pages

Re: [appfuse-user] Moving from Spring's XML to Annotations

2008-11-05 Thread Philip Barlow
Excuse my ignorance i haven't been keeping abreast of changes as much as i'd like to. Does this mean you are doing away with the applicationContext*.xml files in favour of annotations? Marcello Teodori wrote: Hi Matt, I already have an appfuse2 based application in production started from the

Re: [appfuse-user] 2 Java Processes

2008-10-30 Thread Philip Barlow
a good idea but maybe it's a little buggy, I will monitor and feedback any interesting findings. Thanks again Philip Barlow wrote: > > Hi All, > > I searched the mailing list for this problem and i couldn't find any > references to it. I have noticed that sometimes

[appfuse-user] 2 Java Processes

2008-10-29 Thread Philip Barlow
Hi All, I searched the mailing list for this problem and i couldn't find any references to it. I have noticed that sometimes when I run mvn test, the tests hang. This is not an OOM error as we discussed some time ago, it seems to me that a second java process starts up at some point during my tes

[appfuse-user] 2 Java processes

2008-10-28 Thread Philip Barlow
Hi All, I searched the mailing list for this problem and i couldn't find any references to it. I have noticed that sometimes when I run mvn test, the tests hang. This is not an OOM error as we discussed some time ago, it seems to me that a second java process starts up at some point during my

Re: [appfuse-user] Opinion

2008-09-10 Thread Philip Barlow
02 PM, Philip Barlow <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Thank You Vincenzo for your input. I would agree that XML serialization is not the fastest and i have yet to finish my research on Matt's suggested approach but i will share any useful informati

Re: [appfuse-user] Opinion

2008-09-08 Thread Philip Barlow
the business/dao/model layer and the presentation/client side (opening to Flex of .NET GUIs for example), though there could be some performace loss due to the XML serialization and deserialization Regards Vincenzo Caselli On Sat, Sep 6, 2008 at 4:23 PM, Philip Barlow <[EMAIL PROTECTED]

Re: [appfuse-user] good jsp editor

2008-09-08 Thread Philip Barlow
? Thanks - Original Message ----- From: Philip Barlow Sent: 07/09/08 12:20 am To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] good jsp editor This may be useful: http://www.eclipse.org/webtools/ sam wun wrote: > Hi there, > > > I know it is better for me to ask this

Re: [appfuse-user] Opinion

2008-09-06 Thread Philip Barlow
lk to them by pointing at the appropriate URL to load them up. http://static.springframework.org/spring/docs/2.0.x/reference/remoting.html#remoting-httpinvoker HTH, Matt On Fri, Sep 5, 2008 at 1:45 PM, Philip Barlow <[EMAIL PROTECTED]> wrote: Hi All, I am looking for peoples opinions on

Re: [appfuse-user] good jsp editor

2008-09-06 Thread Philip Barlow
This may be useful: http://www.eclipse.org/webtools/ sam wun wrote: Hi there, I know it is better for me to ask this quetion in a jsp forum, but I couldn't find one for mailing list . And you guys are very helpful too in terms of this experience. If you are using a good jsp editor, can

[appfuse-user] Opinion

2008-09-05 Thread Philip Barlow
Hi All, I am looking for peoples opinions on 2 subjects, I think they are relevant enough to Appfuse and hopefully you agree. A design decision has recently arisen at work that i'm hoping people on this list could help advise me on. Basically i want to use the Appfuse service and data access

Re: [appfuse-user] Re: Displaying list (with DisplayTag) starting at last page

2008-03-31 Thread Philip Barlow
ments? Maybe in the context of your data this doesn't make sense but generally I would do it the way i have described above... Derek Broughton wrote: Philip Barlow wrote: Hi Derek, I think you may be over complicating this issue but i am not fully sure what you are trying to achi

Re: [appfuse-user] Displaying list (with DisplayTag) starting at last page

2008-03-30 Thread Philip Barlow
Hi Derek, I think you may be over complicating this issue but i am not fully sure what you are trying to achieve. Is it not as simple as sorting your list, so the page you want to display first is page 1 of 7 and page 2 of 7, 3 of 7 etc. contains the relevant following data? This seems to be

Re: [appfuse-user] TSSJS - Friends of Appfuse!

2008-03-25 Thread Philip Barlow
Hi Matt, Quick question. I just wondered if you have ever done any articles covering which design patterns are used in Appfuse? Regards, Philip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: [appfuse-user] ID Passed as Parameter

2007-11-20 Thread Philip Barlow
e day, whatever works ;-) Mike On 11/19/07, *Rob Hills* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hi Phillip, Philip Barlow wrote: > I'm just wondering is there a general solution to the following example: > > I pass a Tea

[appfuse-user] ID Passed as Parameter

2007-11-19 Thread Philip Barlow
Hi, I'm just wondering is there a general solution to the following example: I pass a TeamId as a request parameter to a PersonAction to list all people in a team with Person.TeamId=TeamId. However I want to stop a logged in user being able to manually change the Team Id and look up people they

Re: [appfuse-user] Tomcat SSL

2007-06-06 Thread Philip Barlow
something over the next couple of days. Thanks Nigel Philip Barlow wrote: Hi Nigel, Would you be willing to put up a short walk through of adding SSL to appfuse on the wiki? I would be very interested in this, particularly with Struts.I'm sure i'm not the only one. Have a look here

Re: [appfuse-user] Struts 2 not clearing error messages

2007-06-06 Thread Philip Barlow
Never mind, i got it working. I changed a few things but I suspect this was being caused by the zero configuration feature. I removed the init params from the filterdispatcher and it works fine now. Philip Barlow wrote: > > Hi, > > Has anyone come across the following in Struts

[appfuse-user] Struts 2 not clearing error messages

2007-06-06 Thread Philip Barlow
Hi, Has anyone come across the following in Struts 2: I am validating an input form using struts 2 action validation i.e. MyAction-validation.xml. The validation works fine, however when I resubmit the original error messages are not deleted, they are in fact appended to the original errors. Thi

Re: [appfuse-user] Tomcat SSL

2007-05-28 Thread Philip Barlow
Hi Nigel, Would you be willing to put up a short walk through of adding SSL to appfuse on the wiki? I would be very interested in this, particularly with Struts.I'm sure i'm not the only one. Have a look here and searc for HTTPS: http://tomcat.apache.org/tomcat-5.5-doc/apr.html Nigel in NZ

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
rwarded" to by your > actions/controllers. > > Matt > > On 5/25/07, Philip Barlow <[EMAIL PROTECTED]> wrote: >> >> I added FORWARD and it works, thanks alot. Now i >> need to understand why it works but i'll figure that out myself by RTFM! >> &g

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
etc., > rather than view paths. If you have REQUEST and FORWARD in your > mapping, you'll need to specify both the controller/action path and > the view path. > > Matt > > On 5/25/07, Philip Barlow <[EMAIL PROTECTED]> wrote: >> >> Thanks for the quick repl

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
: > > If you move the main decorator under the centred one, does it work > better? What does your filter-mapping for SiteMesh look like? > > Matt > > On 5/25/07, Philip Barlow <[EMAIL PROTECTED]> wrote: >> >> Hi guys, >> >> Hopefully someone can

[appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
Hi guys, Hopefully someone can help me out here. I am trying to get an old project that used tiles to work with Sitemesh and Struts 2. Sitemesh is pretty cool by the way but i am having a problem with specifying which pages i want decorated. My setup is jsp pages are in /WEB-INF/pages/[several f

Re: [appfuse-user] cut down version of appfuse?

2007-05-19 Thread Philip Barlow
As far as i know all you should need is the appfuse-service-[version].jar and appfuse-hibernate-[version].jar. Can anyone else confirm this? j2ee dodo wrote: Hi guys, Is there a cut down version of appfuse that only deals with the backend dao and service layers without the web layer files?

Re: [appfuse-user] Basic One-To-Many

2007-05-16 Thread Philip Barlow
Try: private Set addresses = new HashSet(); HashSets cannot contain duplicates and are generally a better fit. One thing to note when using HashSets, always implement hashCode in objects that may end up inside a hashSet, this is how they are checked for uniqueness. I learned this the hard way

Re: [appfuse-user] Basic One-To-Many

2007-05-16 Thread Philip Barlow
I see you have used commonclipse to generate the hashcode, great plugin, apologies for not reading all of your post :) paulie wrote: I have been looking through the forum and user guides trying to piece together the code for putting together a one-to-many relationship. In my code, a Person can

[appfuse-user] Resolving Placeholders

2007-05-15 Thread Philip Barlow
Hi Guys, Matt maybe you might have had this problem at some stage and hopefully you can help me. I have a project which is a self made port from 1.9.4 architecture to 2.0 architecture. The project has a service jar similar to appfuse's service jar, in this jar i have an applicationContext-ser

Re: [appfuse-user] Warpath

2007-05-12 Thread Philip Barlow
Thanks alot Michael Michael Horwitz wrote: Hi Philip, The binary is stored in the AppFuse maven repository: http://static.appfuse.org/ under org/appfuse/maven-warpath-plugin. Mike. On 5/11/07, [EMAIL PROTECTED] * <[EMAIL PROTECTED] > wrot

Re: [appfuse-user] Warpath

2007-05-12 Thread Philip Barlow
Ok thanks Matt, i actually got it eventually in a round about way, i installed appfuse into my local repository and the warpath plugin also got installed by default, so i had a copy of it to work with! Now i just have to get it working with our project Matt Raible wrote: I believe you mea

Re: [appfuse-user] Did I miss a step?

2007-05-08 Thread Philip Barlow
/WEB-INF/lib rm src/main/webapp/WEB-INF/classes/struts.xml mvn install eclipse:eclipse tibi Philip Barlow wrote: I haven't used intelliJ but in eclipse you can create external tools. I have created an external tool that calls things like mvn test or mvn compile, effectively you are m

Re: [appfuse-user] Did I miss a step?

2007-05-08 Thread Philip Barlow
I haven't used intelliJ but in eclipse you can create external tools. I have created an external tool that calls things like mvn test or mvn compile, effectively you are making command line calls from within your IDE... Cliff wrote: Oh wait! I see the problem! I'm running the test from my IDE

Re: [appfuse-user] Did I miss a step?

2007-05-08 Thread Philip Barlow
There is a good chance it is something to do with database population, carried out by DBUnit This is not called from inside your IDE Cliff wrote: Oh wait! I see the problem! I'm running the test from my IDE (IntelliJ) instead of from Maven. When run from Maven the error matches the tutorial

Re: [appfuse-user] Maven Repository

2007-05-07 Thread Philip Barlow
Assuming you have maven setup properly and the repository folder you point to exists, this page should help: http://maven.apache.org/maven-1.x/plugins/eclipse/goals.html Aled Rhys Jones wrote: Hi all I'm completely new to AppFuse and a lot of its associated tools, so bear with me. I'm trying

Re: [appfuse-user] NullPointerException when trying to populate in test case

2007-04-27 Thread Philip Barlow
I had this problem before and i got around it by using commons beanutils instead of springs implementation, you also have to switch "source" and "destination" parameters in the copyproperties method as commons takes them in the opposite way. Don't know if there are any advantages to using springs

Re: [appfuse-user] Bug?

2007-04-26 Thread Philip Barlow
.html Matt On 4/26/07, Philip Barlow <[EMAIL PROTECTED]> wrote: Hi, I was just trying out the file upload feature in appfuse and it worked fine. I then clicked on the link to view the file which was an image, this worked fine also. Then i hit back in my browser and got the followin

[appfuse-user] Bug?

2007-04-26 Thread Philip Barlow
Hi, I was just trying out the file upload feature in appfuse and it worked fine. I then clicked on the link to view the file which was an image, this worked fine also. Then i hit back in my browser and got the following exception: java.io.FileNotFoundException: [path to image] (The requested ope

Re: [appfuse-user] How To Get All Users in an Action

2007-04-23 Thread Philip Barlow
It shouldn't really matter once your applicationContext*.xml file follows the correct structure and is loaded up in the correct way i.e. propbably through your web.xml in this case. Can you mail me or post your applicationContext files? Maybe if you post you Struts2 Fan wrote:

Re: [appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Philip Barlow
Sorry this is what i meant to type :) Philip Barlow wrote: Have you added this to your applictionContext.xml? class="org.appfuse.tutorial.webapp.action.PersonAction" scope="prototype"> Struts2 Fan wrote: Hi All, I have a problem. I created the P

Re: [appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Philip Barlow
Have you added this to your applictionContext.xml? Struts2 Fan wrote: Hi All, I have a problem. I created the PersonAction as shown in the tutorials and in this PersonAction I want to use the userManager which defined in the BaseAction. And the userManager is null. What am I supp

Re: [appfuse-user] Filter ?

2007-04-09 Thread Philip Barlow
Hi Nathan, Thanks for adding that Wiki, VERY useful. I was wondering is there something similar out there for all of the different Acegi security filters? Philip Nathan Anderson wrote: This looks like useful stuff... so I made a wiki page out of it ;) http://appfuse.org/display/APF/Web+Filter

Re: [appfuse-user] Maven2 problem

2007-03-26 Thread Philip Barlow
You can add this to your pom but it shouldn't be necessary, we had the same problem, i think it might be something to do with eclipse auto building the project, are you using eclipse? ${basedir}/src/java *.hbm.xml

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-03-11 Thread Philip Barlow
-version Thanks Philip wnqq wrote: Regarding surefire, I use default settings (i.e., Sun JVM) for tests and it works every time too. Philip Barlow wrote: I had this problem in work recently, i set surefire to use JRockit as the JVM for tests and it worked every time. I realise this is not a

Re: [appfuse-user] BaseDAOTestCase populate method

2007-03-08 Thread Philip Barlow
Matt On 3/8/07, Philip Barlow <[EMAIL PROTECTED]> wrote: I have not implemented toString() on the object i am testing, i take it this is a requirement for BeanUtils.copyProperties()? If so should it be implemented using ToStringBuilder as in Appfuse 2.x? Matt Raible wrote: > If you execute t

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-03-08 Thread Philip Barlow
suggested. Put it to the test Matt Raible wrote: I don't know how these settings will affect "mvn jetty:run" - the surefire plugin isn't executed during a reload of the app in Jetty. Matt On 3/8/07, Philip Barlow <[EMAIL PROTECTED]> wrote: Haven't tried this but

Re: [appfuse-user] BaseDAOTestCase populate method

2007-03-08 Thread Philip Barlow
a setup method, is it calling super.setup()? Matt On 3/7/07, Philip Barlow <[EMAIL PROTECTED]> wrote: Hi guys, Are there any known issues with populating your model objects using the populate method in BaseDaoTestCase class. I have set up a .properties file with the same name as my tes

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-03-08 Thread Philip Barlow
ible <[EMAIL PROTECTED]> wrote: > > An XML snippet would be great. Do you think it's possible to delegate > > to one Sun JVM for testing and another for running? For example, test > > under JDK 5, run under JDK 6. > > > > Matt > > > > On

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-03-08 Thread Philip Barlow
Do you think it's possible to delegate > > to one Sun JVM for testing and another for running? For example, test > > under JDK 5, run under JDK 6. > > > > Matt > > > > On 3/8/07, Philip Barlow <[EMAIL PROTECTED]> wrote: > > > Yes, exactly, sur

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-03-08 Thread Philip Barlow
. Matt Raible wrote: Philip, What's your configuration for this look like? I'm assuming you just use JRockit for your tests, but you still use Sun's JVM for "mvn jetty:run"? Matt On 3/8/07, Philip Barlow <[EMAIL PROTECTED]> wrote: I had this problem in work

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-03-08 Thread Philip Barlow
I had this problem in work recently, i set surefire to use JRockit as the JVM for tests and it worked every time. I realise this is not a fix but i have read alot about this subject and there a very differing opinions on it. Matt is correct in stating that resources are not being released but J

[appfuse-user] BaseDAOTestCase populate method

2007-03-07 Thread Philip Barlow
Hi guys, Are there any known issues with populating your model objects using the populate method in BaseDaoTestCase class. I have set up a .properties file with the same name as my test case and entered values for each property of the model object, yet when BeanUtils.copyProperties is called the

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
see this before? Admittedly I think i need to read up on Spring MVC in detail! Michael Horwitz wrote: Hi Philip, On 3/1/07, *Philip Barlow* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hi, I recently set up Appfuse 2.0M3 on my machine at home so i could play

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
rties. HTH, Matt On 3/1/07, Philip Barlow <[EMAIL PROTECTED]> wrote: Thanks Michael, i'll have a go at that and post again if i need further assistance. Philip Michael Horwitz wrote: > Hi Philip, > > On 3/1/07, *Philip Barlow* <[EMAIL PROTECTED] > <mailto:[EM

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
Thanks Michael, i'll have a go at that and post again if i need further assistance. Philip Michael Horwitz wrote: Hi Philip, On 3/1/07, *Philip Barlow* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hi, I recently set up Appfuse 2.0M3 on my machine at hom

[appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
Hi, I recently set up Appfuse 2.0M3 on my machine at home so i could play around with it a bit. Coming from a Struts background i decided to try out Spring MVC and so i downloaded and ran the Spring MVC Basic package. All is working fine after following the excellent quickstart guide on the a