Re: [appfuse-user] Appfuse - JPA

2007-03-07 Thread VJ22
Thanks Bryan Will try that out. Bryan Noll wrote: > > In your pom.xml, change your dao.framework property from 'hibernate' to > 'jpa-hibernate'. > > And, because of this (http://issues.appfuse.org/browse/APF-565), you'll > have to to a '-Ddao.framework=jpa-hibernate' pretty much eve

Re: [appfuse-user] war:inplace and properties

2007-03-07 Thread Matt Raible
If you're going to use "war:inplace", you should make sure and exclude WEB-INF/classes from source control so you never check these files in. You should also not modify them - you should only modify source in src/main/resources. If you want to override settings in a properties file from WEB-INF/c

Re: [appfuse-user] I18N error in tutorial - Using Struts 2

2007-03-07 Thread Matt Raible
Fixed - thanks! On 3/7/07, wnqq <[EMAIL PROTECTED]> wrote: In the tutorial of "Using Struts 2": http://appfuse.org/display/APF/Using+Struts+2 The following line of code: should be fixed as: Otherwise, the test will fail in I18N environment. -- View this message in context: http://www.

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Ealden Esto E. Escañan
On 3/8/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: /CodeRegitration.html*=ROLE_ANONYMOUS,admin,user Regitration? -- Ealden Esto E. Escañan Software Engineer Orange and Bronze Software Labs, Ltd. Co. Web: http://software.orangeandbronze.com Email : [EMAIL PROTECTED] Blog : http://bl

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
Thanks. seems to fixed it. ;) On 3/8/07, Ealden Esto E. Escañan <[EMAIL PROTECTED]> wrote: On 3/8/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: > > /CodeRegitration.html*=ROLE_ANONYMOUS,admin,user Regitration? -- Ealden Esto E. Escañan Software Engineer Orange and Bronze Software Labs, Ltd.

[appfuse-user] Remove Canoo from integration-test

2007-03-07 Thread Stine, Matt
We don't use Canoo in our environment - how can I remove it from the maven build? I'm an extremely lost old Ant pro. :-) _ Matt Stine Senior Software Engineer Hartwell Center for Bioinformatics and Biotechnology St. Jude Children's Research Hospital 332

Re: [appfuse-user] Remove Canoo from integration-test

2007-03-07 Thread Matt Raible
Do you plan on doing any UI testing? I recently integrated Selenium in a Maven 2 project and it seems pretty nice. Deleting the with cargo and canoo webtest in your pom.xml (web/pom.xml for modular project) will remove them. You can also delete src/test/resources/web-tests.xml, login.xml and c

[appfuse-user] Questions for 2.x: Archetypes and UI Testing

2007-03-07 Thread Matt Raible
A couple of questions for folks using (or planning to use) 2.x: 1. As far as archetypes go, are you using basic or modular? 2. If there was a 3rd type of archetype that included the full source (like AppFuse 1.x), would you use it over the existing basic or modular archetypes? If yes, I'm assum

Re: [appfuse-user] Questions for 2.x: Archetypes and UI Testing

2007-03-07 Thread viggo
1. I've used modular projects so far (struts and Spring MVC). I think that using modular projects is the way to go. Normally you will have business logic that you perhaps want to expose through other channels than web or reuse, so it's better to separate it in an own module. 2. I think in some ca

[appfuse-user] DbUnit

2007-03-07 Thread tdahlke
How can I have the dbunit task load a different set of data AFTER the unit tests have already been run? Thanks -- View this message in context: http://www.nabble.com/DbUnit-tf3364738s2369.html#a9361465 Sent from the AppFuse - User mailing list archive at Nabble.com. ---

Re: [appfuse-user] DbUnit

2007-03-07 Thread Matt Raible
Which version of AppFuse are you using? Matt On 3/7/07, tdahlke <[EMAIL PROTECTED]> wrote: How can I have the dbunit task load a different set of data AFTER the unit tests have already been run? Thanks -- View this message in context: http://www.nabble.com/DbUnit-tf3364738s2369.html#a9361465

Re: [appfuse-user] DbUnit

2007-03-07 Thread tdahlke
2.0-m4-SNAPSHOT My problem is that the sample data I'd like to load get's deleted by the tests (basically copies from the quickstart). This would be okay, except there's foreign keys so the deletes cascade and then some other test will fail. mraible wrote: > > Which version of AppFuse are you

Re: [appfuse-user] DbUnit

2007-03-07 Thread Matt Raible
If you add an to the dbunit plugin that executes in the "post-integration-test" phase, that should solve your issue: post-integration-test post-integration-test operation

RE: [appfuse-user] Remove Canoo from integration-test

2007-03-07 Thread Stine, Matt
Call us "unagile" I guess - we still do primarily manual UI testing. I'd really like to try Selenium sometime, just haven't had the time. We used to do a lot of HttpUnit stuff, but the weak JavaScript support and high resistance to change killed us. Do you think the WebTest or Selenium recorder

Re: [appfuse-user] Remove Canoo from integration-test

2007-03-07 Thread Matt Raible
On 3/7/07, Stine, Matt <[EMAIL PROTECTED]> wrote: Call us "unagile" I guess - we still do primarily manual UI testing. I'd really like to try Selenium sometime, just haven't had the time. We used to do a lot of HttpUnit stuff, but the weak JavaScript support and high resistance to change killed

[appfuse-user] JBoss 4.0.5.GA deployment problem

2007-03-07 Thread Stine, Matt
I'm having problems deploying to JBoss 4.0.5.GA using an Appfuse 2.0-m3 application. The JBoss instance does have a customized configuration, but it's mainly stripping out unnecessary modules for our environment like clustering, etc. At any rate, I cannot deploy. Here's the error I'm getting:

Re: [appfuse-user] JBoss 4.0.5.GA deployment problem

2007-03-07 Thread Matt Raible
If you had Canoo WebTests, you could verify everything works with Cargo. ;-) I don't know if 2.0-m3 supports testing on JBoss, but 2.0-m4-SNAPSHOT does. If you look in your pom.xml and see a "jboss" profile, than it probably does support it. Run "mvn install -Pjboss" to download and test your a

[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

[appfuse-user] howto enable postgresql in appfuse2?

2007-03-07 Thread J. David Mendoza R.
How do I set postgresql as the default database in an archetype generated app? David M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] howto enable postgresql in appfuse2?

2007-03-07 Thread Matt Raible
This should help: http://raibledesigns.com/rd/entry/database_profiles_in_appfuse_2 On 3/7/07, J. David Mendoza R. <[EMAIL PROTECTED]> wrote: How do I set postgresql as the default database in an archetype generated app? David M.

Re: [appfuse-user] Questions for 2.x: Archetypes and UI Testing

2007-03-07 Thread Trent
On Wed, 7 Mar 2007 12:01:50 -0700, Matt Raible wrote > A couple of questions for folks using (or planning to use) 2.x: > > 1. As far as archetypes go, are you using basic or modular? At this stage, basic. My app won't be much more than a webapp. > 2. If there was a 3rd type of archetype that inc

Re: [appfuse-user] Remove Canoo from integration-test

2007-03-07 Thread Trent
On Wed, 7 Mar 2007 14:27:47 -0700, Matt Raible wrote > I like Selenium because it uses your browser's JavaScript engine > whereas the rest of the tools (including HttpUnit, HtmlUnit, probably > even JMeter) are playing catchup trying to support all of the Ajax > frameworks. How's that work on a co

Re: [appfuse-user] BaseDAOTestCase populate method

2007-03-07 Thread Matt Raible
If you execute toString() on your object, is it really populated? If you have 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 BaseDaoTestCa

Re: [appfuse-user] Remove Canoo from integration-test

2007-03-07 Thread Matt Raible
On 3/7/07, Trent <[EMAIL PROTECTED]> wrote: On Wed, 7 Mar 2007 14:27:47 -0700, Matt Raible wrote > I like Selenium because it uses your browser's JavaScript engine > whereas the rest of the tools (including HttpUnit, HtmlUnit, probably > even JMeter) are playing catchup trying to support all of t

Re: [appfuse-user] Remove Canoo from integration-test

2007-03-07 Thread Trent
On Wed, 7 Mar 2007 18:05:48 -0700, Matt Raible wrote > [selenium] > I haven't tried it on headless Linux, but it does work on Windows. > The project I'm currently I'm works around this with VNC. Sounds like the choices are either a) test AJAX with Selenium but incite hackery due to its client-sid

[appfuse-user] How do I reuse a view(jsp) through SpringMVC

2007-03-07 Thread Jonathan Tse
Hi all, I don't know if my question make sense or not. I got a jsp (say, ViewOrder.jsp) displaying an order summary, i want to reuse it everytime I want to display something together with this order summary by using In this jsp it take a variable at path "order". In one controller wh

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

2007-03-07 Thread wnqq
Environment: v2.0-m4-SNAPSHOT It is too often to get "java.lang.OutOfMemoryError: PermGen space" while executing "mvn jetty:run". How to resolve it? I know that traditionally we could specify the JVM parameters like "-Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M" to increase the memory size. H

Re: [appfuse-user] Getting Pojo information from a DB

2007-03-07 Thread Luke Shannon
Within an Appfuse project is there an easy way to get a hibernate session and execute an HQL query and update? Sorry if this is an obvious spring beginner question, still trying to figure out everything going on here. I'm doing this in my onSubmit method of one of my form controlers to inject so

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

2007-03-07 Thread Matt Raible
I have MaxPermSize set to 256M on my system and I still get this issue every 5-10 minutes. My guess is resources aren't being let go. I've heard bad things about Spring and Hibernate in the past, so I don't know if they're causing this or what. The best thing is probably to slap a profiler on it

[appfuse-user] If you're using 2.0-m4-SNAPSHOT and have overridden security.xml

2007-03-07 Thread Matt Raible
If you've overriden security.xml in your project, you'll need to remove the "userCache" property on the daoAuthenticationProvider bean. Based on the following thread, we removed Acegi's userCache and made sure EhCache is configured as the default 2nd-level cache for Hibernate. This should solve a

[appfuse-user] I18N error in tutorial - Using Struts 2

2007-03-07 Thread wnqq
In the tutorial of "Using Struts 2": http://appfuse.org/display/APF/Using+Struts+2 The following line of code: should be fixed as: Otherwise, the test will fail in I18N environment. -- View this message in context: http://www.nabble.com/I18N-error-in-tutorial---Using-Struts-2-tf3361250s

[appfuse-user] war:inplace and properties

2007-03-07 Thread Benoit Moraillon
When using war:inplace, all.properties fil are set in src/main/webapp/web-inf/classes i suggests to put directly some properties inside src/main/ressources such as displaytag.properties oscache.properties errors.properties Ben.

Re: [appfuse-user] war:inplace and properties

2007-03-07 Thread wnqq
Dear Ben, I am not sure if your comments are related to my post. Did you mean that we can use label="Save" (instead of "{button.save}") with your suggestions? benoit wrote: > > When using war:inplace, all.properties fil are set in > src/main/webapp/web-inf/classes > > i suggests to put direc

Re: [appfuse-user] war:inplace and properties

2007-03-07 Thread Benoit Moraillon
No sorry, i use reply in my mail box. wnqq a écrit : Dear Ben, I am not sure if your comments are related to my post. Did you mean that we can use label="Save" (instead of "{button.save}") with your suggestions? benoit wrote: When using war:inplace, all.properties fil are set in src/main/

[appfuse-user] Appfuse - JPA

2007-03-07 Thread VJ22
Hello, Our application running on Appfuse with Hibernate as ORM is to be ported onto JPA. Some questions: A) I presume Appfuse ships with Hibernate's implementation of the JPA...So this means that I create my domain objects using Hibernate Annotations but I still can use either Hibernate /

[appfuse-user] Odd behavior from userForm.xhtml...

2007-03-07 Thread Bryan Noll
So... let me preface this with saying that the userForm.xhtml (and associated JSF class) have been tweaked here and there since the project I'm working on was started (from an AppFuse 1.9.x version). I know the issue I'm about to describe is something on my side, and I'm assuming it has to do

Re: [appfuse-user] Appfuse - JPA

2007-03-07 Thread Bryan Noll
In appfuse 2, hibernate is still the default persistence option, and the only thing different about it and the way it was in appfuse 1.x is the fact that it uses annotations instead of hbm.xml files. To implement this, we've stuck to the 'javax.persistence.*' annotations, so that it is hiberna

Re: [appfuse-user] exception is thrown when trying to change the username in 2.0 snapshot-m4

2007-03-07 Thread hiugong.gwok
If you see that during test, it might be cause by org.appfuse.webapp.controller.BaseControllerTestCase, it has "tomcat" hardcoded. natophonic wrote: > > > With > appfuse-spring-2.0-m4-20070303.161353-20.warpath.jar > and > appfuse-web-common-2.0-m4-20070303.161353-60.warpath.jar > > and Spri

Re: [appfuse-user] Odd behavior from userForm.xhtml...

2007-03-07 Thread tonyl
I'm working on the same project with Bryan so here's some more information. We've made changes in the security.xml, roles, and users so that we can have the option for groups from which users can get permissions. Almost everything works perfectly except one thing whereby a user *WITHOUT* admin r

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
Hi All, I was wrong it was not working yet I was always brought to the login.jsp. Please advise. Thanks Richard On 3/6/07, Ealden Esto E. Escañan <[EMAIL PROTECTED]> wrote: Hi Richard, On 3/6/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: > Hi All, > > Please advise on how I can expose a u

Re: [appfuse-user] Appfuse - JPA

2007-03-07 Thread VJ22
Bryan, Tks for replying So I assume that the usage of entity managers and annotations is implemented using HibernateWhat I wonder is how to get this setup running...as simple change in the pom.xml aint getting the jar to be downloaded into my repository...I can still see that appfuse-hib

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Matt Raible
Can you post your configuration? You might want to make sure the rule is at the top of the list. Matt On 3/7/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: Hi All, I was wrong it was not working yet I was always brought to the login.jsp. Please advise. Thanks Richard On 3/6/07, Ealden Est

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
Hi Matt, Here... PATTERN_TYPE_APACHE_ANT /CodeRegitration.html*=ROLE_ANONYMOUS,admin,user /clickstreams.jsp*=admin /flushCache.*=admin /passwordHint.html*=ROLE_ANONYMOUS,admin,user

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread tdahlke
Make sure you still have the anonymous filter: and that it's still being called in the filter chain: CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /images/**=#NONE#

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
thanks for the reply heres my filter chain proxy... CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /**=httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,securityContextHolderAwareRequestFilter,r

Re: [appfuse-user] Odd behavior from userForm.xhtml...

2007-03-07 Thread Matt Raible
I'm assuming you've attached a debugger to your UserForm.java class to verify this behavior? I recall experiencing a similar issue in the past, but I don't believe it was with JSF. Unfortunately, I don't recall the solution. Matt On 3/7/07, tonyl <[EMAIL PROTECTED]> wrote: I'm working on the

Re: [appfuse-user] Appfuse - JPA

2007-03-07 Thread Bryan Noll
In your pom.xml, change your dao.framework property from 'hibernate' to 'jpa-hibernate'. And, because of this (http://issues.appfuse.org/browse/APF-565), you'll have to to a '-Ddao.framework=jpa-hibernate' pretty much every time you do any 'mvn ...' command. --Bryan VJ22 wrote: Bryan, Tks

Re: [appfuse-user] exception is thrown when trying to change the username in 2.0 snapshot-m4

2007-03-07 Thread Matt Raible
That's not very nice is it. ;-) Can you please enter an issue in JIRA for this? http://issues.appfuse.org/browse/APF The best way to solve this on our end is probably to figure out a mechanism in Base*TestCase to look up the user with a "1" id in the database - or at least allow overriding of th

Re: [appfuse-user] Odd behavior from userForm.xhtml...

2007-03-07 Thread Bryan Noll
You're assuming correctly. Debugger, plus println's... shows that the 1st time 'Save' is clicked, the UserForm.save method is NOT being executed/entered. Any hints on where to start looking? Matt Raible wrote: I'm assuming you've attached a debugger to your UserForm.java class to verify this

Re: [appfuse-user] Acegi Bypass

2007-03-07 Thread Richard G. Reyes
FYI, I'm using 1.9.4 + webwork On 3/8/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: Hi All, I was wrong it was not working yet I was always brought to the login.jsp. Please advise. Thanks Richard On 3/6/07, Ealden Esto E. Escañan <[EMAIL PROTECTED]> wrote: > > Hi Richard, > > On 3/6/07, R