[appfuse-user] ClassCastException when testing overriden save method in *Manager

2008-06-09 Thread Martin Homik
I override the test method in my managers. When testing, I get a ClassCastException. There is no problem in production state, that is jetty:run-war runs perfectly well. So, the problem must be related to the mocks in test classes. Here is my manager class: public class SurveyValueManagerImpl

[appfuse-user] Simple question about getText

2008-06-09 Thread ernasm
I know that I can get text from application resource using getText() in Action class. My question is how to access text from application resource in Service class ? I need similar method as ActionSupport.getText() Many thanks, -- Ernas M. Jamil -

RE: [appfuse-user] conditional validation

2008-06-09 Thread Anshu Dhamija
Hi Have changed it to Please select Question But it is still not working now it is not showing the any error even on - Select One - which it was showing earlier Regards Anshu -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent

Re: [appfuse-user] UserDao in the way on spring security

2008-06-09 Thread Matt Raible
I believe the easiest solution is to import the core classes into your project and customize them there. http://appfuse.org/display/APF/AppFuse+Core+Classes If that doesn't work for you, full-source your project and customize to your heart's content. Matt On Sun, Jun 1, 2008 at 3:45 PM, mschipp

Re: [appfuse-user] org.dbunit.dataset.NoSuchColumnException pain

2008-06-09 Thread Daniele De Francesco
Hi all, it looks like, I'm definitely having troubles w dbunit CLEAN_INSERT operation, because mvn hibernate3:hbm2ddl -Poracle runs successfully. The problem is in the test-compile phase where is configured dbunit operation goal. It looks like it "expects" the usual User class properties (w the

[appfuse-user] Any examples on method SimpleFormController.onFormChange

2008-06-09 Thread Carlos Ortiz
Hi Does anybody know where to look for examples of SimpleFormController.onFormChange? I want to understand this method. I cannot understand fully the Javadocs . Please help

Re: [appfuse-user] help appfuse 1.9.4 on DB2/Websphere eclipse WTP

2008-06-09 Thread Matt Raible
http://raibledesigns.com/rd/entry/remotely_debug_your_app_in On Mon, Jun 9, 2008 at 9:17 AM, Ding, Qin <[EMAIL PROTECTED]> wrote: > What about eclipse 3.2 for debugging appfuse project? Thanks > > -Original Message- > From: Matt Raible [mailto:[EMAIL PROTECTED] > Sent: Monday, June 09, 20

RE: [appfuse-user] help appfuse 1.9.4 on DB2/Websphere eclipse WTP

2008-06-09 Thread Ding, Qin
What about eclipse 3.2 for debugging appfuse project? Thanks -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2008 10:15 AM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] help appfuse 1.9.4 on DB2/Websphere eclipse WTP Unfortunately, I've

Re: [appfuse-user] help appfuse 1.9.4 on DB2/Websphere eclipse WTP

2008-06-09 Thread Matt Raible
Unfortunately, I've never used WTP so I can't offer much help. Matt On Mon, Jun 9, 2008 at 9:03 AM, Ding, Qin <[EMAIL PROTECTED]> wrote: > Matt: > > I tried to use eclipse WTP to run and debug my appfuse based > application. I have some difficulties to deploy and debug the app using > WTP. I fo

[appfuse-user] help appfuse 1.9.4 on DB2/Websphere eclipse WTP

2008-06-09 Thread Ding, Qin
Matt: I tried to use eclipse WTP to run and debug my appfuse based application. I have some difficulties to deploy and debug the app using WTP. I found the following entry but I could not find the instruction for doing that. Would you please help me with some pointers or instructions on how-to?

Re: [appfuse-user] org.dbunit.dataset.NoSuchColumnException pain

2008-06-09 Thread Daniele De Francesco
Hi Matt, I take the chance and thank you for helping me so far... mraible wrote: > > Does it look like your schema is successfully created by > hibernate3:hbm2ddl? > > Matt > As long as I can see, hibernate3:hbm2ddl creates successfully the schema...weird about it, is that yesterday I could

[appfuse-user] onSetupBeforeTransaction vs onSetupInTransaction

2008-06-09 Thread JC Oosthuizen
Hi All, I have a question regarding the use of onSetupBeforeTransaction. This will be called before the transaction is created and will therefore not be rolled back when the test is done. I know one can implement the onTearDownAfterTransaction to remove the data added in onSetupBeforeTransaction.

Re: [appfuse-user] org.dbunit.dataset.NoSuchColumnException pain

2008-06-09 Thread Matt Raible
Does it look like your schema is successfully created by hibernate3:hbm2ddl? Matt On Mon, Jun 9, 2008 at 8:03 AM, Daniele De Francesco <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have added some properties in the User class. I run on an Oracle XE > instance. > Now, no matter the data type of the

[appfuse-user] org.dbunit.dataset.NoSuchColumnException pain

2008-06-09 Thread Daniele De Francesco
Hi all, I have added some properties in the User class. I run on an Oracle XE instance. Now, no matter the data type of the properties added,when I issue mvn -e clean test-compile hibernate3:hbm2ddl -Poracle I get an org.dbunit.dataset.NoSuchColumnException: app_user. I Attach my sample-da

Re: [appfuse-user] test framework for web services

2008-06-09 Thread Matt Raible
On Mon, Jun 9, 2008 at 7:42 AM, Ben Avery <[EMAIL PROTECTED]> wrote: > > I'm also writing some tests for the web services I've deployed, but am > struggling to get the tests running at the right point. > I've written them as junit tests, but don't want them to run in the test > lifecycle phase, but

Re: [appfuse-user] login problem

2008-06-09 Thread Matt Raible
On Mon, Jun 9, 2008 at 4:36 AM, Anshu Dhamija <[EMAIL PROTECTED]> wrote: > Hi > > I have forgot password screen which I would be accessing before > login for this I have wrote the following into security.xml > > /forgotPassword*=ROLE_ANONYMOUS,ROLE_ADMIN,ROLE_USER > > Now the problem is th

Re: [appfuse-user] conditional validation

2008-06-09 Thread Matt Raible
I believe the logic should be not equal rather than equal. I know it's confusing as it's the opposite of what you'd expect - but I believe that's how it works. Matt On Sun, Jun 8, 2008 at 11:42 PM, Anshu Dhamija <[EMAIL PROTECTED]> wrote: > > Hi >I have applied the conditional validation

Re: [appfuse-user] test framework for web services

2008-06-09 Thread Ben Avery
I'm also writing some tests for the web services I've deployed, but am struggling to get the tests running at the right point. I've written them as junit tests, but don't want them to run in the test lifecycle phase, but rather run during the integration-test phase, when the webapp is running via

Re: [appfuse-user] All pages too slow

2008-06-09 Thread Campa
mraible wrote: > > On Wed, Jun 4, 2008 at 1:43 AM, Campa <[EMAIL PROTECTED]> > wrote: >> mraible wrote: >>> >>> I would use a profiler and some load testing tool to try to reproduce >>> the problem locally. >>> Matt >>> > You should be able to use something like JProfiler or YourKit. Both > all

[appfuse-user] Re: How to appfuse:gen associated pojos?

2008-06-09 Thread Stefan Pettersson
I believe I solved it myself. The mappedBy error was due to mapping the wrong thing. The real problem was due to the following error message: [INFO] Use of @OneToMany or @ManyToMany targeting an unmapped class It was possible to solve this by starting to generate the class acting as the "owner"

[appfuse-user] How to appfuse:gen associated pojos?

2008-06-09 Thread Stefan Pettersson
I've specified two model POJOs that I would like to run appfuse:gen on. They are associated with each other through a @ManyToOne and corresponding mappedBy @OneToMany. When I run mvn appfuse:gen I get a fatal error (after entering entity name): [INFO] mappedBy reference an unknown target entity p

Re: [appfuse-user] web service client.

2008-06-09 Thread Ben Avery
I've used the Spring Web Service client instead, where the class WebServiceTemplate does all the work. here's a basic test method using basic auth on a secured service. you'll probably want to check what comes back more thoroughly, I was just testing the security on it. public void testGetA

[appfuse-user] login problem

2008-06-09 Thread Anshu Dhamija
Hi I have forgot password screen which I would be accessing before login for this I have wrote the following into security.xml /forgotPassword*=ROLE_ANONYMOUS,ROLE_ADMIN,ROLE_USER Now the problem is that I am not able to apply struts taglib into this screen Can anybody help me Rega

Re: [appfuse-user] Access Denied .............. need help

2008-06-09 Thread Greenhorn2005
Well Leo, I just wanted to thank you for the help, I have got it fixed... using security.xml thanks... Philip -- View this message in context: http://www.nabble.com/Access-Denied-..-need-help-tp17727913s2369p17729623.html Sent from the AppFuse - User mailing list ar

Re: [appfuse-user] Access Denied .............. need help

2008-06-09 Thread Leo Barrientos C.
Mmm, the user has the role? (i know ... stupid question) - check it in the admin section. I dont know more tricks, Greenhorn2005 schrieb: Leo Barrientos C. wrote: Ok, just ideas: a) ROLE must be Uppercase always in the DB and the config. Like: roles="ROLE_USER, ROLE_TA" b) Play with

Re: [appfuse-user] Access Denied .............. need help

2008-06-09 Thread Greenhorn2005
Leo Barrientos C. wrote: > > Ok, just ideas: > > a) ROLE must be Uppercase always in the DB and the config. Like: > roles="ROLE_USER, ROLE_TA" > > b) Play with the spaces roles="ROLE_A,ROLE_B" or "ROLE_A, ROLE_B" > > c) mvn clean > > Hope helps. > > Hello Leo,, thanks for the quick r

Re: [appfuse-user] Access Denied .............. need help

2008-06-09 Thread Leo Barrientos C.
Ok, just ideas: a) ROLE must be Uppercase always in the DB and the config. Like: roles="ROLE_USER, ROLE_TA" b) Play with the spaces roles="ROLE_A,ROLE_B" or "ROLE_A, ROLE_B" c) mvn clean Hope helps. Greenhorn2005 schrieb: hello Leo, No, i have already added Role_TA to them (i mean

Re: [appfuse-user] Access Denied .............. need help

2008-06-09 Thread Greenhorn2005
hello Leo, No, i have already added Role_TA to them (i mean in particular menus plus I added to menu containing logout, main menu and usermenu) So it has to do something with security I think... I am a fresher.. thanks.. Philip -- View this messag

Re: [appfuse-user] Access Denied .............. need help

2008-06-09 Thread Leo Barrientos C.
In menu-config.xml ? Greenhorn2005 schrieb: Hi, I am using Maven and appfuse version 2.0.7. I have added a new role in the sample data besides ROLE_ADMIN and ROLE_USER. (a new one is ROLE_TA). so a total of three roles. When I create a new user having role ROLE_TA and logs in

[appfuse-user] Access Denied .............. need help

2008-06-09 Thread Greenhorn2005
Hi, I am using Maven and appfuse version 2.0.7. I have added a new role in the sample data besides ROLE_ADMIN and ROLE_USER. (a new one is ROLE_TA). so a total of three roles. When I create a new user having role ROLE_TA and logs in using its password and username, I get Access D