Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-06 Thread Matt Raible
If you delete the struts.xml from your target/classes directory and run "jetty:run" - does it get put back there? Jetty used to ignore the warpath dependencies - maybe it's reading them now? http://issues.appfuse.org/browse/APF-686 Matt On 9/6/07, nessus <[EMAIL PROTECTED]> wrote: > > > Matt, >

Re: [appfuse-user] AppFuse 2 - customisting login.jsp

2007-09-06 Thread Matt Raible
On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi Matt, > > On 6 Sep 2007 at 21:00, Matt Raible wrote: > > > If you put it in src/main/webapp and run "mvn clean", it should be picked > > up. > > > > Matt > > > > On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > > > Sorry to

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-06 Thread nessus
Matt, I tried all these commands, after mvn war:inplace, I deleted lib and classes/struts.xml, and ran mvn clean, but mvn jetty:run produced the same error as: [etpay] WARN [main] Settings.getLocale(143) | Settings: Could not parse struts.l ocale setting, substituting default VM locale 2007-09

Re: [appfuse-user] AppFuse 2 - customisting login.jsp

2007-09-06 Thread Rob Hills
Hi Matt, On 6 Sep 2007 at 21:00, Matt Raible wrote: > If you put it in src/main/webapp and run "mvn clean", it should be picked up. > > Matt > > On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > Sorry to trouble you with such a basic newbie question during the > > much-more-i

Re: [appfuse-user] AppFuse 2 - customisting login.jsp

2007-09-06 Thread Matt Raible
If you put it in src/main/webapp and run "mvn clean", it should be picked up. Matt On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi All, > > Sorry to trouble you with such a basic newbie question during the > much-more-important rush to get 2.0 final released, but... > > How do I customise l

[appfuse-user] AppFuse 2 - customisting login.jsp

2007-09-06 Thread Rob Hills
Hi All, Sorry to trouble you with such a basic newbie question during the much-more-important rush to get 2.0 final released, but... How do I customise login.jsp? I've tried putting my customised login.jsp into src/main/webapp/WEB-INF/pages and running mvn jetty:run-war but the standard login

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-06 Thread Matt Raible
You can't have 2 struts jars in your classpath - run "mvn clean" and/or "rm -r src/main/webapp/WEB-INF/lib". Matt On 9/6/07, nessus <[EMAIL PROTECTED]> wrote: > > Matt, > > thank you for the reply and I replayed it, but still I couldnt get it run > successfully. This time the exception showed bel

Re: [appfuse-user] appfuse:full-source works on modular projects on Appfuse2.0 RC1?

2007-09-06 Thread dev dev
modular (not core) mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany.app -DartifactId=myproject On 9/6/07, Matt Raible <[EMA

Re: [appfuse-user] appfuse:full-source works on modular projects on Appfuse2.0 RC1?

2007-09-06 Thread Matt Raible
Just for clarification - did you do this on a "core" archetype or a "struts 2 modular" archetype? Thanks, Matt On 9/6/07, mraible <[EMAIL PROTECTED]> wrote: > > Thanks - I guess I need to find a Windows box to test this stuff on, eh? ;-) > > Matt > > > gumiyo wrote: > > > > Matt, > > I tested it

Re: [appfuse-user] appfuse:full-source works on modular projects on Appfuse2.0 RC1?

2007-09-06 Thread mraible
Thanks - I guess I need to find a Windows box to test this stuff on, eh? ;-) Matt gumiyo wrote: > > Matt, > I tested it and got these errors. > > [ERROR] AUTOWIRE_BY_NAME cannot be resolved > [ERROR] The import org.jmock cannot be resolved > [ERROR] MockObjectTestCase cannot be resolved to a

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-06 Thread nessus
Matt, thank you for the reply and I replayed it, but still I couldnt get it run successfully. This time the exception showed below: 2007-09-07 09:43:00.972::INFO: Logging to STDERR via org.mortbay.lo

[appfuse-user] Re: Field 'DTYPE' doesn't have a default value

2007-09-06 Thread Derek Broughton
Matt Raible wrote: > Thank *you* - we love users that solve their own problems. ;-) > > Matt > > On 9/4/07, gederer <[EMAIL PROTECTED]> wrote: >> >> Problem solved. I had to add DTYPE to sample-data.xml. >> More importantly - users who report back to the list when they solve their own problems,

Re: [appfuse-user] appfuse:full-source works on modular projects on Appfuse2.0 RC1?

2007-09-06 Thread dev dev
Matt, I tested it and got these errors. [ERROR] AUTOWIRE_BY_NAME cannot be resolved [ERROR] The import org.jmock cannot be resolved [ERROR] MockObjectTestCase cannot be resolved to a type [INFO] [ERROR] BUILD ERROR [INFO] ---

Re: [appfuse-user] appfuse:full-source works on modular projects on Appfuse2.0 RC1?

2007-09-06 Thread dev dev
will do Thanks Matt. To work around it, just run "dos2unix" (assuming you have cygwin installed on your machine) against all the pom.xml and everything should work fine. dev. On 9/6/07, mraible <[EMAIL PROTECTED]> wrote: > > > I've entered this issue in JIRA: > > http://issues.appfuse.org/browse/

Re: [appfuse-user] appfuse:full-source works on modular projects on Appfuse2.0 RC1?

2007-09-06 Thread mraible
I've entered this issue in JIRA: http://issues.appfuse.org/browse/APF-876 If you have time, can you see if it's fixed (on Windows) with 2.0-SNAPSHOT. Here's how to test: mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositor

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

2007-09-06 Thread Matt Raible
That shouldn't be an issue as these are re-created and populated by the hibernate3 plugin. Matt On 9/6/07, hkadejo <[EMAIL PROTECTED]> wrote: > > if run appfuse:gen-model the data the tables app_user, user_role,role > deleted. > > > > hkadejo wrote: > > > > problem resolved > > the directory

Re: [appfuse-user] 2.0-RC1: FATAL ERROR when using tomcat:run

2007-09-06 Thread emartin24
I'm using appfuse-basic-struts. I am getting the same errors on my linux box, so it must be something with the Tomcat plugin. I think I'll take your suggestion and use Jetty...it's not worth the headache =) I appreciate your help! mraible wrote: > > What web framework are you using? The Tomcat

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

2007-09-06 Thread hkadejo
if run appfuse:gen-model the data the tables app_user, user_role,role deleted. hkadejo wrote: > > problem resolved > the directory org.mycompany.app.model is not created... > for is the error... > > Im salvadoreanmy english very badjejejejethank you very much > matt :) > > >

Re: [appfuse-user] 2.0-RC1: FATAL ERROR when using tomcat:run

2007-09-06 Thread Matt Raible
What web framework are you using? The Tomcat plugin is alpha quality, doesn't seem to be maintained and uses Tomcat 5.5.15. I recommend using the Jetty plugin for development - especially since it can monitor your project and detect changes on-the-fly. Matt On 9/6/07, emartin24 <[EMAIL PROTECTED]

Re: [appfuse-user] 2.0-RC1: FATAL ERROR when using tomcat:run

2007-09-06 Thread emartin24
Same error... I can stick with cargo:start, I just thought it was interesting that I was getting these errors when using the Tomcat plugin. I started with a fresh copy of Appfuse...maybe it's an environment issue. I'll try it elsewhere and see if I get the same error. mraible wrote: > > If y

Re: [appfuse-user] 2.0-RC1: FATAL ERROR when using tomcat:run

2007-09-06 Thread Matt Raible
If you've run "appfuse:full-source" or "war:inplace", you can probably use "tomcat:run". If you haven't, you'll need to use "tomcat:run-war". Matt On 9/6/07, emartin24 <[EMAIL PROTECTED]> wrote: > > Hmm...actually, there isn't a lib directory there. There are 3 lib > directories, but they are all

Re: [appfuse-user] 2.0-RC1: FATAL ERROR when using tomcat:run

2007-09-06 Thread emartin24
Hmm...actually, there isn't a lib directory there. There are 3 lib directories, but they are all under target/ target/test-1.0-SNAPSHOT/WEB-INF target/work/webapp/WEB-INF target/tomcat5x/container/webapps/test-1.0-SNAPSHOT/WEB-INF http://www.qos.ch/logging/classloader.jsp (Example-4) talks about

[appfuse-user] running 2.0 RC1 with Eclipse Europa WTP

2007-09-06 Thread dev dev
Has anyone successfully got it to work? Following this tutorial is not working, http://appfuse.org/display/APF/Eclipse. Thanks dev

Re: [appfuse-user] 2.0-RC1: FATAL ERROR when using tomcat:run

2007-09-06 Thread Matt Raible
Try: rm -r src/main/webapp/WEB-INF/lib On 9/6/07, emartin24 <[EMAIL PROTECTED]> wrote: > I'm trying to use the Tomcat plugin, but get the following when I run mvn > tomcat:run: C:\appfuse\test>mvn tomcat:run [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 't

[appfuse-user] 2.0-RC1: FATAL ERROR when using tomcat:run

2007-09-06 Thread emartin24
I'm trying to use the Tomcat plugin, but get the following when I run mvn tomcat:run: C:\appfuse\test>mvn tomcat:run [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'tomcat'. [INFO] [

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

2007-09-06 Thread hkadejo
problem resolved the directory org.mycompany.app.model is not created... for is the error... Im salvadoreanmy english very badjejejejethank you very much matt :) hkadejo wrote: > > I run mvn appfuse:gen-model -Dentity=Personis correct??? > > version of AppFuse is 2.0-rc1

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

2007-09-06 Thread Matt Raible
Yes, this is correct. Do you have a person table in your database? Matt On 9/6/07, hkadejo <[EMAIL PROTECTED]> wrote: > > I run mvn appfuse:gen-model -Dentity=Personis correct??? > > version of AppFuse is 2.0-rc1 and archetype JSF Basic. > > > mraible wrote: > > > > Are you prompted for your

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

2007-09-06 Thread hkadejo
I run mvn appfuse:gen-model -Dentity=Personis correct??? version of AppFuse is 2.0-rc1 and archetype JSF Basic. mraible wrote: > > Are you prompted for your POJO name? What version of AppFuse are you > using? > > Matt > > On 9/6/07, hkadejo <[EMAIL PROTECTED]> wrote: >> >> I run mvn app

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

2007-09-06 Thread Matt Raible
Are you prompted for your POJO name? What version of AppFuse are you using? Matt On 9/6/07, hkadejo <[EMAIL PROTECTED]> wrote: > > I run mvn appfuse:gen model and: > > FATAL ERROR > Parameter 'directory' is not a directory > -- > View this message in context: > http://www.nabble.com/about-appfu

Re: [appfuse-user] demo.appfuse.org down?

2007-09-06 Thread Matt Raible
Should be fixed now. Matt On 9/6/07, Troy Kelley <[EMAIL PROTECTED]> wrote: > Looks like it's back up - thanks man. One other thing (not real important) > - it looks like the "admin/admin" account isn't working - somebody must have > changed the password? > > > On 9/6/07, Matt Raible <[EMAIL PR

[appfuse-user] about appfuse:gen-model

2007-09-06 Thread hkadejo
I run mvn appfuse:gen model and: FATAL ERROR Parameter 'directory' is not a directory -- View this message in context: http://www.nabble.com/about-appfuse%3Agen-model-tf4394389s2369.html#a12530423 Sent from the AppFuse - User mailing list archive at Nabble.com. ---

Re: [appfuse-user] demo.appfuse.org down?

2007-09-06 Thread Troy Kelley
Looks like it's back up - thanks man. One other thing (not real important) - it looks like the "admin/admin" account isn't working - somebody must have changed the password? On 9/6/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > I'm looking into this now. The release currently deployed on > demo.a

Re: [appfuse-user] How to deal with potential stale connections in pool?

2007-09-06 Thread Matt Raible
If you're using AppFuse 1.9.x, your dataSource is configured WEB-INF/classes/applicationContext-resources.xml (in your final WAR). The same thing applies to AppFuse 2.x. However, in 2.x, the jdbc attributes are in a jdbc.properties file in the same directory. Matt On 9/6/07, romsrini <[EMAIL PROT

Re: [appfuse-user] How to deal with potential stale connections in pool?

2007-09-06 Thread romsrini
Michael, This is going to sound dumb, but I'm not sure how our pool is configured. We're using the appFuse defaults. Where can I find the configuration file or what is the config file called in appFuse? Matt, Thanks for the link. I had found some similar (but a couple of years old) pages. I ess

[appfuse-user] many-to-many self-reference with JPA

2007-09-06 Thread gederer
Hi, This is really a JPA question. But, I think someone around here might have a quick, simple answer. I have a Category class. According to my model, a Category can have many parent Categorys and many child Categorys. I'm having trouble getting the (JPA) annotations right for this relationship.

Re: [appfuse-user] execute junit tests in eclipse

2007-09-06 Thread arief
I'm able to run the junit test inside eclipse now.. that is using appfuse-2.0-RC1 created using commandline. Followed the guidelines given on how to use appfuse with eclipse. Maybe Abel was right, that i need to configure the .classpath file correctly so that everything can be resolved perfectly

Re: [appfuse-user] Cannot display WebWork validation error message on same page

2007-09-06 Thread BruceLee
Yes. We did with 1.9.4. Thanks for query! -Bruce mraible wrote: > > Did you get this solved? > > On 8/2/07, BruceLee <[EMAIL PROTECTED]> wrote: >> >> I use 1.9 WebWork option. I want to validate username and confirmed >> password >> in register.jsp, just same as AppFuse's Signup page. >> The v

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-06 Thread Matt Raible
The following should fix your problem: rm -r src/main/webapp/WEB-INF/lib rm src/main/webapp/WEB-INF/classes/struts.xml Matt On 9/6/07, nessus <[EMAIL PROTECTED]> wrote: > hi all, following the quickstart instructions, I encounter an exception > when running the mvn jetty:run, with all previous

Re: [appfuse-user] How to Appfuse2 RC1 without Internet?

2007-09-06 Thread Matt Raible
I need to create this download - I'll try to do it today. Matt On 9/6/07, davidOnAppfuse <[EMAIL PROTECTED]> wrote: > > After successfully trying M5 on a laptop over a slow connection, I > downloaded the dependency file. However, I could not link into a > dependency file for the latest and great

Re: [appfuse-user] demo.appfuse.org down?

2007-09-06 Thread Matt Raible
I'm looking into this now. The release currently deployed on demo.appfuse.org is 2.0 M5. Matt On 9/6/07, Troy Kelley <[EMAIL PROTECTED]> wrote: > I can ping the box, but I can't get any of the apps to come up. > > > > http://demo.appfuse.org/appfuse-spring > > > I assume that 1.9.4 is still deplo

Re: [appfuse-user] login.jsp

2007-09-06 Thread Rob Hills
Hi Matt, On 5 Sep 2007 at 20:27, Matt Raible wrote: > On 9/5/07, nmall <[EMAIL PROTECTED]> wrote: > > Is the username case sensitive in the login.jsp. Also, I found a bug where > > once a case incorrect name and password is given, even if the case of the > > username is changed to the right one

[appfuse-user] demo.appfuse.org down?

2007-09-06 Thread Troy Kelley
I can ping the box, but I can't get any of the apps to come up. http://demo.appfuse.org/appfuse-spring I assume that 1.9.4 is still deployed at this location? Thanks for any help! -Troy

[appfuse-user] How to Appfuse2 RC1 without Internet?

2007-09-06 Thread davidOnAppfuse
After successfully trying M5 on a laptop over a slow connection, I downloaded the dependency file. However, I could not link into a dependency file for the latest and greatest version, RC1. Could anyone help me with the correct file link and instructions if things have changed since Matt's m

[appfuse-user] exception in "mvn jetty:run"

2007-09-06 Thread nessus
hi all, following the quickstart instructions, I encounter an exception when running the mvn jetty:run, with all previous commands successfully run. The exception in the cmd shows: 1- 2007-09-06 19:49:23.

Re: [appfuse-user] Appfuse:gen problem SOLVED

2007-09-06 Thread Matt Raible
I still think this is a bug. We should be able to figure out when the Entity you specify is not loaded and provide error messages appropriately. I've entered an issue in JIRA for this: http://issues.appfuse.org/browse/APF-875 Thanks, Matt On 9/6/07, benoit moraillon <[EMAIL PROTECTED]> wrote:

RE: [appfuse-user] Appfuse:gen problem SOLVED

2007-09-06 Thread benoit moraillon
In fact i forgot @Entity @Table(name = "ressource") in my model class Sorry and thanks for your help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Appfuse:gen problem

2007-09-06 Thread Matt Raible
Does your class have the correct "fr.crb.testrc1.model" package at the top? Here's the Person class we use to test with - you might want to try it: http://tinyurl.com/2lfx8w I do think you've found a bug here in that it's not finding your class and failing because of it. We should give the user a

Re: [appfuse-user] How to deal with potential stale connections in pool?

2007-09-06 Thread Matt Raible
MySQL used to require adding autoReconnect=true to the JDBC URL to prevent timeouts after you were idle for 8 hours or more. I believe this is the default now. Here's a (possible) related thread from the MySQL forums: http://lists.mysql.com/java/9117 Matt On 9/6/07, Michael Horwitz <[EMAIL PROTE

RE: [appfuse-user] Appfuse:gen problem

2007-09-06 Thread benoit moraillon
On windows : yes it is After running : mvn clean and mvn install I got : BUILD SUCCESSFULL appfuse:gen => FATAL ERROR -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Matt Raible Envoyé : jeudi 6 septembre 2007 10:19 À : users@appfuse.dev.java.net O

Re: [appfuse-user] How to deal with potential stale connections in pool?

2007-09-06 Thread Michael Horwitz
Normally these are handled by configuring the connection pool to discard connections after a period of inactivity, or, in extreme cases, by running a test query before returning the connection from the pool. How is you connection pool/datasource configured in your environment? Mike On 9/5/07, rom

Re: [appfuse-user] Appfuse:gen problem

2007-09-06 Thread Matt Raible
Can you try running "mvn clean"? Did you run "full-source" on Windows? If so, can you run "mvn install" successfully? Matt On 9/6/07, benoit moraillon <[EMAIL PROTECTED]> wrote: > In addition my target directory contains : > > appfuse-hibernate/ > appfuse-root/ > appfuse-service/ > appfuse-struts

RE: [appfuse-user] Appfuse:gen problem

2007-09-06 Thread benoit moraillon
In addition my target directory contains : appfuse-hibernate/ appfuse-root/ appfuse-service/ appfuse-struts/ appfuse-web-common/ classes/ surefire-reports/ test-classes/ testrc1-1.0-SNAPSHOT/ ... But no appfuse/ and no appfuse/generated-sources ---

RE: [appfuse-user] Appfuse:gen problem

2007-09-06 Thread benoit moraillon
Yes i do the following things : 1) create a Ressource.java class 2) add in hibernate.cfg.xml 3) mvn compile hibernate3:hbm2ddl => ok 4) mvn appfuse:gen What is the name of your pojo (i.e. Person)?: Ressource => Fatal Error Thanks, Benoît. -Message d'origine- De : [EMAIL PROTECTE

Re: [appfuse-user] Appfuse:gen problem

2007-09-06 Thread Matt Raible
Does the object you're trying to generate for exist? On 9/6/07, benoit moraillon <[EMAIL PROTECTED]> wrote: > Hi appfusers, > I'm using appfuse:gen on an appfuse:full-source RC1 project and i got a > fatal error : > > [INFO] src/main/resources/database.properties not found within the project. > Tr

[appfuse-user] Appfuse:gen problem

2007-09-06 Thread benoit moraillon
Hi appfusers, I'm using appfuse:gen on an appfuse:full-source RC1 project and i got a fatal error : [INFO] src/main/resources/database.properties not found within the project. Tryi ng absolute path. [INFO] No hibernate properties file loaded. [info] [AppFuse] Installing generated files (pattern: *