[appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread rays
Hi there, I am trrying to run 'mvn -e integration-test" in 2.0-m2 basic-strusts app, and am getting the following mysql connection refused error. Mysql serve works fine as I am able to do the manual login on the Linux box. I would really appreciate if someone could have a look at the following

[appfuse-user] How to use 2 versions of struts.jar

2007-01-22 Thread Yesh
Hi, I need to use 2 different versions of struts in my application. I am trying to integrate xplanner with appfuse. Give some suggestions to me in the integration. -- View this message in context: http://www.nabble.com/How-to-use-2-versions-of-struts.jar-tf3053443s2369.html#a8487961 Sent from

Re: [appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread Michael Horwitz
It could be one of two things: 1) The JDBC URL is wrong. Are you running MySql on the same box on which you are doing the build? If not you will need to change the URL appropriately in the top level pom. 2) The driver used in AppFuse is not compatible with the version of MySql that you are using.

Re: [appfuse-user] How to use 2 versions of struts.jar

2007-01-22 Thread Matt Raible
What versions? Struts 1.x and Struts 2.x or point releases of Struts 1.x? If it's point releases of Struts, why do you need to different versions? If it's Struts 1 and Struts 2, Struts 2 has the ability to run Struts 1 actions. Matt On 1/22/07, Yesh <[EMAIL PROTECTED]> wrote: Hi, I need

Re: [appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread Matt Raible
This may be related to the following issue. Can you try running "mvn hibernate3:hbm2ddl" before running "mvn integrationt-test"? http://issues.appfuse.org/browse/APF-585 Matt On 1/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: It could be one of two things: 1) The JDBC URL is wrong. Are y

[appfuse-user] Controller Values not gettting set in JUnit test.

2007-01-22 Thread maskkkk
Why is it that none of the properties are getting set inside of my Controller when I retrieve it from the WebApplicationContext, inside a unit test? (Appfuse 1.9.4) My Controller Unit Test wrote: > > protected void setUp() throws Exception { > // needed to initialize a user >

Re: [appfuse-user] Controller Values not gettting set in JUnit test.

2007-01-22 Thread Matt Raible
Are you loading the action-servlet.xml in your BaseControllerTestCase? That seems strange that it's not being initialized by Spring. I suspect it's something minor, like a typo or something. Matt On 1/22/07, mas <[EMAIL PROTECTED]> wrote: Why is it that none of the properties are getting

Re: [appfuse-user] Controller Values not gettting set in JUnit test.

2007-01-22 Thread maskkkk
You mean this static block right? > // This static block ensures that Spring's BeanFactory is only loaded > // once for all tests > static { > > String pkg = > ClassUtils.classPackageAsResourcePath(Constants.class); > String[] paths = { > "clas

Re: [appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread rays
1) Mysql and AppFuse build run on the same box. 2) I am using mysql 5.0.27. And the driver version specified in POM is 5.0.4 which is the closest I can find from mysql project. Cheers Ray Michael Horwitz wrote: > > It could be one of two things: > > 1) The JDBC URL is wrong. Are you running

[appfuse-user] Can't get the tutorial working: basic-struts

2007-01-22 Thread Harmen
Hello everybody, With great interest I've downloaded Appfuse-2.0 per directions in the Quickstart Guide with this command: mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=1

Re: [appfuse-user] Can't get the tutorial working: basic-struts

2007-01-22 Thread Michael Horwitz
Have you remembered to add your Person class to hibernate.cfg.xml in src/main/resources? Mike On 1/22/07, Harmen <[EMAIL PROTECTED]> wrote: Hello everybody, With great interest I've downloaded Appfuse-2.0 per directions in the Quickstart Guide with this command: mvn archetype:create -Darche

Re: [appfuse-user] Can't get the tutorial working: basic-struts

2007-01-22 Thread Matt Raible
If Mike's suggestion works, this is a bug that we're hoping to fix in the next couple weeks: http://issues.appfuse.org/browse/APF-571 Matt On 1/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: Have you remembered to add your Person class to hibernate.cfg.xml in src/main/resources? Mike On

Re: [appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread rays
Tried with 'mvn hibernate3:hbm2ddl'. It didn't seem to make much difference to me. Here is the stack trace, [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'hibernate3'. [INFO] [INFO]

Re: [appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread Matt Raible
Can you send me your project? Running "mvn clean" first will make it easier to squeeze it through the e-mail pipes. Thanks, Matt On 1/22/07, rays <[EMAIL PROTECTED]> wrote: Tried with 'mvn hibernate3:hbm2ddl'. It didn't seem to make much difference to me. Here is the stack trace, [INFO] Sca

Re: [appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread rays
A gzipped tar file 'basic-struts.tgz' should have been uploaded. Thanks Ray Matt Raible-3 wrote: > > Can you send me your project? Running "mvn clean" first will make it > easier to squeeze it through the e-mail pipes. > > Thanks, > > Matt > > On 1/22/07, rays <[EMAIL PROTECTED]> wrote: >>

Re: [appfuse-user] Mysql Exception in 2.0-m2 basic-struts

2007-01-22 Thread Matt Raible
Looks like something is wrong with your database setup. Your project works fine for me with 5.0.20a-standard on OS X. I'd suggestion uninstalling MySQL and re-installing it again. alotta:~/Desktop/basic-struts mraible$ mysqladmin -u root -p drop appfuse Enter password: Dropping the database is p

Re: [appfuse-user] Quickstart suggestions

2007-01-22 Thread Matt Raible
On 1/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am starting a new project and thought that since Appfuse 2.0 was close I'd start using it instead of Appfuse 1.9.x. The process has been remarkably clean, and the last few days has gotten even cleaner. Still, there are a few things that

[appfuse-user] mistake in .classpath setting of appfuse-webwork-1.9.3

2007-01-22 Thread Simon Wu
at line 41 of .classpath file, the path for webwork is: But actually the webwork-2.2.2.jar is in the lib directory. So it will cause error when building the project in eclipse.

[appfuse-user] question about the struts menu config

2007-01-22 Thread Simon Wu
As this article says we should add permissions="rolesAdapter" to the tag if we want to use the security model of struts menu. Then, for example, we could use the roles attribute. But I did not find permissions attribute added in the struts-men

Re: [appfuse-user] mistake in .classpath setting of appfuse-webwork-1.9.3

2007-01-22 Thread Matt Raible
Thanks - this should be fixed in 1.9.4 - you might want to use that version if you're just starting to use AppFuse. Hopefully it wasn't too hard to fix. ;-) Matt On 1/22/07, Simon Wu <[EMAIL PROTECTED]> wrote: at line 41 of .classpath file, the path for webwork is: But actually the

Re: [appfuse-user] question about the struts menu config

2007-01-22 Thread Matt Raible
It's already there in web/pages/menu.jsp. Matt On 1/22/07, Simon Wu <[EMAIL PROTECTED]> wrote: As this article says we should add permissions="rolesAdapter" to the tag if we want to use the security model of struts menu. Then, for example, we could use the roles attribute. But I did not

Re: [appfuse-user] question about the struts menu config

2007-01-22 Thread Simon Wu
Thanks Matt! I got it and I am sorry of my carelessness. simon On 1/23/07, Matt Raible <[EMAIL PROTECTED]> wrote: It's already there in web/pages/menu.jsp. Matt On 1/22/07, Simon Wu <[EMAIL PROTECTED]> wrote: > As this article says we should add permissions="rolesAdapter" to the tag > if