Re: [appfuse-user] dbunit running twice

2007-04-25 Thread Matt Raible
Because the data is in a modified state after teh tests run. In order to reset the data for the integration test, it's run again. Matt On 4/25/07, Janos Mucsi <[EMAIL PROTECTED]> wrote: In the generated application why is DBUnit run twice, once for test-compile and once for test? Thanks.

Re: [appfuse-user] Which web framework are you using with AppFuse?

2007-04-25 Thread Matt Raible
Yes, they are using separate account management. However, we are planning on using Crowd in the near future and synchronizing all of the accounts. Matt On 4/25/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Matt, Is JIRA and Confluence using separate account management system? I cannot use m

Re: [appfuse-user] Which web framework are you using with AppFuse?

2007-04-25 Thread Jonathan Tse
Matt, Is JIRA and Confluence using separate account management system? I cannot use my JIRA account to log on confluence. Best regards, Jonathan Matt Raible wrote: As part of my upcoming Comparing Java Web Frameworks talk, I'd like to show some statistics of web framework usage in AppF

[appfuse-user] dbunit running twice

2007-04-25 Thread Janos Mucsi
In the generated application why is DBUnit run twice, once for test-compile and once for test? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[appfuse-user] Overriding Controllers?

2007-04-25 Thread Nick Sillik
Dear Helpful Mailing List, I was wondering how one would override the appfuse controllers to add extra functionality to them. I'm looking to make modifications to the following files: org.appfuse.webapp.controller.UserFormController org.appfuse.webapp.controller.UserController

Re: [appfuse-user] Dojo Problem

2007-04-25 Thread J. David Mendoza
Aridany, did you ever find it? David M. Matt Raible wrote: I don't know - according to the following issue (and some googling), it looksl ike it's in there: https://issues.apache.org/struts/browse/WW-1598 Matt On 4/18/07, Aridany Ramirez <[EMAIL PROTECTED]> wrote: I thought that too, but i c

Re: [appfuse-user] how to tell Cargo that I have a datasource

2007-04-25 Thread Janos Mucsi
Thanks, I figured it out: .. mysql mysql-connector-java Matt Raible wrote: I think your best bet is to point at an existing Tomca

Re: [appfuse-user] how to tell Cargo that I have a datasource

2007-04-25 Thread Matt Raible
I think your best bet is to point at an existing Tomcat install that has the JDBC Driver installed. If you look at the Cargo configuration, there should be a comment that tells you how to do this. Matt On 4/25/07, Janos Mucsi <[EMAIL PROTECTED]> wrote: Thanks, I tried this and worked. The only

[appfuse-user] how to tell Cargo that I have a datasource

2007-04-25 Thread Janos Mucsi
Thanks, I tried this and worked. The only problem is Tomcat can not load the JDBC driver: [INFO] [talledLocalContainer] datasource org.apache.tomcat.dbcp.dbcp.BasicDataSo [EMAIL PROTECTED] [INFO] [talledLocalContainer] org.apache.tomcat.dbcp.dbcp.SQLNestedException: Ca nnot load JDBC driver c

Re: [appfuse-user] how to tell Cargo that I have a datasource

2007-04-25 Thread Matt Raible
From http://blogs.atlassian.com/developer/2007/03/from_manual_to_automatic.html: ${project.build.directory}/tomcat5x/container 8095 high cargo.dataso

[appfuse-user] how to tell Cargo that I have a datasource

2007-04-25 Thread Janos Mucsi
Hi I am using Appfuse and see that for integration tests cargo puts the context into Tomcat 5 like this: docBase="C:\projects\saeuser\target\saeuser-1.0-SNAPSHOT.war" debug="2"> If I have a web application that has a datasource, how do I make Cargo declare it? For example: docBase="C:\

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread Matt Raible
I'd suggest searching for BaseFormControllerTestCase and see if there's duplicates (or possibly a .class file checked in). Another thing you could so is download 1.9.4, create a project with the same name/packages and then use Beyond Compare to diff the two projects. Matt On 4/25/07, joejakes <

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread joejakes
Hi Matt, I have got a clean system classpath. I tried downloading Appfuse now and went through your tutorial quickly. When I run ant test-web for your tutorial project, it seems to be passing all the tests. So I believe it is a configuration problem in the current project. As you know the inter

Re: [appfuse-user] datepicker problems in appfuse 2m4

2007-04-25 Thread Matt Raible
AFAIK, the StaticFilter works if the resource in on the filesystem. It doesn't work if the resource is in Struts' JAR file. If it's served from a JAR file, it's not exactly static is it. ;-) Since Struts recommends moving the Dojo files to your filesystem, I don't know that if we should fix the

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread Matt Raible
NoClassDefFound usually implies duplicate classes rather than a missing class. Do you have a clean system classpath? Matt On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote: I am running the code on: Win XP Machine Ant 1.6 JDK 5 Is this any problem that's got to do with the classpath settings??

Re: [appfuse-user] datepicker problems in appfuse 2m4

2007-04-25 Thread J. David Mendoza
Another way to get the struts2 ajax features working (dojo), is to add some lines to the decorators.xml, change the parser in the sitemesh.xml and change the .html struts mapping so you can remove the staticFilter. Decorator's lines: /styles/* /scripts/* /images/*

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread joejakes
I am running the code on: Win XP Machine Ant 1.6 JDK 5 Is this any problem that's got to do with the classpath settings?? mraible wrote: > > What's your environment - it's probably an environment issue (i.e. JDK 6 > vs. 5). > > Matt > > On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote: >> >>

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread Matt Raible
What's your environment - it's probably an environment issue (i.e. JDK 6 vs. 5). Matt On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote: Hi, There is a BaseControllerTestCase in the mentioned folder. Is there any other way other than downloading the springmvc version of Appfuse to sove this pro

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread joejakes
Hi, There is a BaseControllerTestCase in the mentioned folder. Is there any other way other than downloading the springmvc version of Appfuse to sove this problem? This is because I am a consultant and have downloaded the code for a MVC application built on Appfuse from my client's repository s

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread Matt Raible
If you cd'd into extra/spring and ran "mvn install", that means you installed it. In reality, the results of downloading vs. installing should be the same. However, we have seen issues with folks installing on some OSs - that's why we recommend the download. If you look in test/web/**/action -

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread joejakes
Hi Matt, Thanks for your quick reply. I guess I installed Spring MVC. I am not very sure about it. Is there any way by which you can say the difference? I tried running "ant clean test-web", but am getting the same error. Thanks!! mraible wrote: > > Did you install Spring MVC or download the

Re: [appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread Matt Raible
Did you install Spring MVC or download the springmvc version of AppFuse? You might try running "ant clean test-web". Matt On 4/25/07, joejakes <[EMAIL PROTECTED]> wrote: Hi, I am a newbie to Appfuse and am trying to develop a web application in Appfuse. I am using the command-line to run my

[appfuse-user] Web Tests failing because of BaseControllerTestCase

2007-04-25 Thread joejakes
Hi, I am a newbie to Appfuse and am trying to develop a web application in Appfuse. I am using the command-line to run my ant tests. However, when I try to run ant test-web from the command-line, I get the following error on all classes that extend BaseControllerTestCase. com.appfuse.webapp

Re: [appfuse-user] login to someplace other than mainmenu?

2007-04-25 Thread Dale Newfield
Matt Raible wrote: The defaultTargetUrl in security.xml has the default target That's what I was looking for! Thank you! (And since I went back to the acegi docs after posting, I just found it as well -- I should learn to delay posting just a bit longer :-). > The question is - can the def

Re: [appfuse-user] How to redirect mvn -e jetty:run-war to a log file

2007-04-25 Thread Matt Raible
.html is the default extension for Struts, so if your action is named "pentaho", it'll be available at /pentaho.html (unless you have a custom namespace). I don't know what's going wrong in your application, but adding a new action should be similar to how its done in the Person Tutorial. Have y

Re: [appfuse-user] How to redirect mvn -e jetty:run-war to a log file

2007-04-25 Thread nmall
Thanks, Matt. How do I redirect all the stderr or a log file. I did the following but somehow it is redirecting the page to http://localhost:8080/pentaho.html and it hangs there with a blank screen and the repeating error logs are too huge, the first part runs out of my sight. The last part look

Re: [appfuse-user] login to someplace other than mainmenu?

2007-04-25 Thread Matt Raible
The defaultTargetUrl in security.xml has the default target: You're right in that http://localhost:8080 results in a redirect to mainMenu.html and subsequent login. You should be able to make index.jsp your mainMenu and have a login box on it (if

[appfuse-user] login to someplace other than mainmenu?

2007-04-25 Thread Dale Newfield
Acegi handles where the user should wind up after logging in fairly well if a request for a protected page results in the display of the login form, but not when that form is explicitly requested by the user. My app has many pages that do not require that users be logged in, but which may have

Re: [appfuse-user] Where are the jetty logs

2007-04-25 Thread Matt Raible
Your should match the name of your action. So changing: action="Pentaho" to: action="pentaho" Should solve your problem. Matt On 4/25/07, nmall <[EMAIL PROTECTED]> wrote: Hi Matt But these are just names for my actions - Pentaho has not yet even been called or integrated here. All I wan

Re: [appfuse-user] Where are the jetty logs

2007-04-25 Thread nmall
Hi Matt But these are just names for my actions - Pentaho has not yet even been called or integrated here. All I want to do is call a method report() inside an PentahoAction.java class when a button is clicked. Will the folllowing jsp and struts.xml do it. Thanks so much for any help! mraible

Re: [appfuse-user] Where are the jetty logs

2007-04-25 Thread Matt Raible
If you take Pentaho out of the mix, does it work? It sounds like there may be issues getting Pentaho to work with Struts 2. I'd simplify the problem, then try to fix it. Matt On 4/25/07, nmall <[EMAIL PROTECTED]> wrote: Thanks for this input. The strange thing is I am modifying the jsps so th

Re: [appfuse-user] Where are the jetty logs

2007-04-25 Thread nmall
Thanks for this input. The strange thing is I am modifying the jsps so they should be newer than the appfuse files. Another question about struts forms: If I have something like this in my jsp, will it call the method PentahoAction.report() when I click on the button.report as I have specified

Re: [appfuse-user] Sitemesh; Jetty vs. Tomcat

2007-04-25 Thread Matt Raible
There's a Tomcat Maven Plugin that you can use to do "tomcat:run" if you'd prefer. However, it's an alpha release and not as actively developed as the Jetty plugin. Also, Jetty typically starts up faster and it monitors files for changes, whereas the Tomcat plugin does not.

Re: [appfuse-user] run jetty on something other than localhost

2007-04-25 Thread Will Berger
I asked the jetty forum. Here was a possible solution. I haven't verified that it works. Will --- Check out the section Configuration Common to all Goals, in particular the example and the element of the : http://jetty.mortbay.org/maven-plugin/howto.html

[appfuse-user] Sitemesh; Jetty vs. Tomcat

2007-04-25 Thread Janos Mucsi
Thanks a lot for the answer. I have an other question. I see that Tomcat is used to execute the Canoo tests, but Jetty to run the application. Why is the difference? Thanks. Christian Giese wrote: Hi Janos. I'm assuming you are using appfuse 1.9(.4) because that's what I use. In web\WEB-I

[appfuse-user] Which web framework are you using with AppFuse?

2007-04-25 Thread Matt Raible
As part of my upcoming Comparing Java Web Frameworks talk, I'd like to show some statistics of web framework usage in AppFuse. Please vote for the one you're using by clicking on the link below. I'm mostly looking for current AppFuse users. By that, I mean folks that have used 1.x or 2.x on a proj

Re: [appfuse-user] maven and jsps and menu-config.xml

2007-04-25 Thread Matt Raible
If you have files that are getting overwritten by AppFuse, it's likely because the files are newer in AppFuse. The overlay is timestamp-based, so as long as your files are newer, you shouldn't have any issues. When you do, there's two ways to solve the problem: 1. Run a touch script like the one

Re: [appfuse-user] maven and jsps

2007-04-25 Thread nmall
Yes, I get build successful. It sounds like something isn't working correctly. Do you get "Build Successful" when running the maven command? Nathan >> >> Thanks, Nathan. However this doesn't work. I am having to manually copy >> from >> the src/main/webapp/WEB-INF/pages/ to the 3 target fo

Re: [appfuse-user] maven and jsps and menu-config.xml

2007-04-25 Thread nmall
This is true forsrc/main/webapp/WEB-INF/menu-config.xml as well. I changed it - did a mvn clean -e jetty:run-war. I still didn't have the ones in target/work/webapp/WEB-INF and target/wat/work/appfuse-struts-2.0-m4/WEB-INF/ reflecting the changes. Thanks for any pointers. nmall wrote: > > H

Re: [appfuse-user] maven and jsps

2007-04-25 Thread nmall
Yes, I get build successful. It sounds like something isn't working correctly. Do you get "Build Successful" when running the maven command? Nathan >> >> Thanks, Nathan. However this doesn't work. I am having to manually copy >> from >> the src/main/webapp/WEB-INF/pages/ to the 3 target fo

Re: [appfuse-user] running generated web app

2007-04-25 Thread Michael Horwitz
AppFuse uses the war overlay feature of the Maven War plugin to merge your own JSPs etc with those from AppFuse. You may find this entry in the AppFuse FAQ useful: http://www.appfuse.org/display/APF/FAQ#FAQ-whereisthesource Mike On 4/24/07, Janos Mucsi <[EMAIL PROTECTED]> wrote: Matt Yes, I c

Re: [appfuse-user] Two different foder for xml confgiuration in appfuse 2.0 is not a godd thing

2007-04-25 Thread Chris Love
Yes you can, but I believe that these files are in those places for the purposes of unit tests. Spring is configurable too load the files out of the classpath or a file location. Inside of your web app the web.xml drives the configuration for the placement of these files. Chris On 4/24/07, ben