Re: [appfuse-user] mvn install fails - failed download from codehaus

2011-01-12 Thread Matt Raible
I was able to run this successfully. Are you behind a firewall, using Nexus
or have you customized your settings.xml?

On Wed, Jan 12, 2011 at 9:03 AM, John john.arild.ol...@gmail.com wrote:


 installed java 5, maven 2.2.1, confirmed running ok

 ran

 mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes
 -DarchetypeArtifactId=appfuse-basic-spring-archetype
 -DarchetypeVersion=2.1.0-M2 -DgroupId=no.grails -DartifactId=pma

 successfully.

 mvn install fails on:

 downloading

 http://repository.codehaus.org/org/apache/maven/maven-project/2.0/maven-project-2.0.pom
 with a checksum error.

 looking into the repository via the browser indicates there is no
 org.apache
 folder . ..

 what is wrong?
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/mvn-install-fails-failed-download-from-codehaus-tp3214279p3214279.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] AppFuse and JAXWS

2011-01-06 Thread Matt Raible
AppFuse 2.1.x uses CXF which supports JAX-WS.

http://cxf.apache.org/docs/jax-ws-configuration.html

On Thu, Jan 6, 2011 at 7:25 AM, gmehta gautam.m.me...@googlemail.comwrote:


 Hello,

 Just wanted to know if AppFuse can be used with JAXWS or are we just
 limited
 to XFire?

 Are there any examples of AppFuse and JAXWS?

 Regards
 GM
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/AppFuse-and-JAXWS-tp3177493p3177493.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] LDAP Integration with appfuse 2.1.x and Spring Security 3

2011-01-03 Thread Matt Raible
This is great stuff Tomàs! Thanks for updating the wiki, much appreciated.

On Sun, Jan 2, 2011 at 2:21 AM, Tomàs Reverter Morelló shin...@gmail.comwrote:

 Hi!

 Recently I've added a new part into the wiki to explain how to configure an
 LDAP integration with the new version of AppFuse, that uses Spring Security
 3.

 You can see it at: http://appfuse.org/display/APF/LDAP+Authentication

 Regars and happy new year,

 Tomàs Reverter



 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread Matt Raible
On Tue, Dec 14, 2010 at 5:47 AM, Josep García jgar...@isigma.es wrote:

 I have found this while doing some search:


 /**
  * This class is extended by all ActionTests. It basically
  * contains common methods that they might use.
  *
  * p
  * a href=BaseStrutsTestCase.java.htmliView Source/i/a
  *
  * @author a href=mailto:m...@raibledesigns.com;Matt Raible/a
  */
 public abstract class BaseStrutsTestCase extends MockStrutsTestCase {

 However, in my AppFuse 2.0.2, ActionTests extend BaseActionTestCase. This
 lacks the possibility of testing action messages, struts validation, etc.

 Where is this appfuse BaseStrutsTestCase availble? Can it be used to test
 struts validation and so on?


Yes, you should be able to test these things. What does your test case look
like and what's not working?


Re: [appfuse-user] Failed to start appfuse light 2.1.0-M1

2010-12-14 Thread Matt Raible
Can you try M2 and use mvn jetty:run instead?

On Dec 13, 2010, at 11:35 AM, Tony Luo xiuxiu.luo.x...@gmail.com wrote:

 Hi All,
 
 I create one appfuse light project but failed to start the web server. I 
 found someone raised the same question but no answer evetually. So I have to 
 raise it again.
 
 Steps
 1)Create project
 mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes 
 -DarchetypeArtifactId=appfuse-light-struts-archetype 
 -DarchetypeVersion=2.1.0-M1 -DgroupId=com.abc -DartifactId=abc
 
 2)cd abc
 
 3)mvn jetty:run-war
 
 And then I met the following error messages. Could anyone to help?
 
 [INFO] [jetty:run-war {execution: default-cli}]
 [INFO] Configuring Jetty for project: AppFuse Light Struts 2 Module
 [INFO] Context path = /
 [INFO] Tmp directory =  determined at runtime
 [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
 [INFO] Web overrides =  none
 [INFO] Starting jetty 6.1.21 ...
 2010-12-14 02:19:30.392::INFO:  jetty-6.1.21
 2010-12-14 02:19:30.482::WARN:  Could not instantiate listener 
 org.springframework.web.context.ContextLoaderListener
 java.lang.ClassNotFoundException: 
 org.springframework.web.context.ContextLoaderListener
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at 
 org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
 at 
 org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
 at 
 org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
 at 
 org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at 
 org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401)
 at 
 org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
 at 
 org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.java:1101)
 at 
 org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:630)
 at 
 org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368)
 at 
 org.mortbay.jetty.plus.webapp.AbstractConfiguration.initWebXmlElement(AbstractConfiguration.java:190)
 at 
 org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289)
 at 
 org.mortbay.jetty.plus.webapp.AbstractConfiguration.initialize(AbstractConfiguration.java:133)
 at 
 org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222)
 at 
 org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:113)
 at 
 org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)
 at 
 org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96)
 at 
 org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:149)
 at 
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1247)
 at 
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
 at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
 at 
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
 at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at 
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
 at 
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
 at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at 
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
 at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at 
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
 at org.mortbay.jetty.Server.doStart(Server.java:224)
 at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at 
 org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
 at 
 org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
 at 
 org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
 at org.mortbay.jetty.plugin.Jetty6RunWar.execute(Jetty6RunWar.java:67)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
 at 
 

Re: [appfuse-user] mvn site hang

2010-12-10 Thread Matt Raible
Can you please enter an issue in JIRA with steps to reproduce? I hope to 
release 2.1 in the next couple weeks and I'd like to make sure this is fixed 
beforehand.

http://issues.appfuse.org/browse/APF

Thanks,

Matt

On Dec 10, 2010, at 12:49 AM, dan wrote:

 于 2010-12-9 9:13, Matt Raible 写道:
 What version of Maven are you using? What version of AppFuse. I need to know 
 what you're doing so I can try and reproduce.
 
 On Dec 8, 2010, at 5:16 PM, dan wrote:
 
 I meet a problem that when i use mvn site to generate the report,the log
 in console below
 
 [INFO] [dbunit:operation {execution: test}]
 [INFO] Preparing surefire-report:report-only
 [INFO] No goals needed for project - skipping
 [INFO] [site:site {execution: default-site}]
 [ERROR] No URL set in Issue Management. No JIRA Report will be generated.
 [ERROR] No URL set in Issue Management. No Trac Report will be generated.
 [INFO] Skipped Test JavaDocs report, file testapidocs/index.html
 already exi
 sts for the English version.
 [INFO] Skipped JavaDocs report, file apidocs/index.html already
 exists for t
 he English version.
 [INFO] Skipped Surefire Report report, file surefire-report.html
 already exi
 sts for the English version.
 [INFO] Generating Issue Tracking report.
 [INFO] Generating Project Team report.
 [INFO] Generating Surefire Report report.
 [INFO] Generating Dependencies report.
 
 then, it will elapse about 10 min,i don't know what's the maven doing
 the final result is Build Success
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 when i execute mvn site in 2.1.0-M2
 
 [INFO] [hibernate3:hbm2ddl {execution: default}]
 [INFO] Configuration XML file loaded: 
 file:/D:/workspace/Bals/src/main/resources
 /hibernate.cfg.xml
 [INFO] Configuration XML file loaded: 
 file:/D:/workspace/Bals/src/main/resources
 /hibernate.cfg.xml
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Unable to load class declared as mapping 
 class=org.bals.model.User/ i
 n the configuration:
 [INFO] 
 
 [INFO] Trace
 org.hibernate.MappingException: Unable to load class declared as mapping 
 class=
 org.bals.model.User/ in the configuration:
 at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
 ionConfiguration.java:602)
 at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav
 a:1555)
 at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
 at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
 at org.hibernate.cfg.Configuration.configure(Configuration.java:1443)
 
 
 but when i execute mvn hibernate3:hbm2ddl
 [INFO] [hibernate3:hbm2ddl {execution: default-cli}]
 
 finally,it is successful.
 so my question is what's the difference between [default] and [default-cli] 
 during the hibernate3:hbm2ddl
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Clover

2010-12-09 Thread Matt Raible
I agree it's worth patching the source. Please enter an issue in JIRA.

http://issues.appfuse.org/browse/APF

Thanks!

On Thu, Dec 9, 2010 at 6:39 AM, Milbourne, Anthony 
anthony.milbou...@credit-suisse.com wrote:

  I have found the cause of the Clover problem, and it appears to be an
 error in the AppFuse POM.
 Line 70 of the core POM is:
 propertyfiletarget/test-classes/jdbc.properties/propertyfile

 Clover has to instrument the java code (unlike cobertura which instruments
 the class files), so it copies everything to a separate directory and sets
 all the maven variables to make it work.  But the line above hard-codes one
 of the locations that Clover has changed, so the Clover version of the code
 can't find the file.

 All works fine if you change the line above to:

 propertyfile${project.build.testOutputDirectory}/jdbc.properties/propertyfile

 This is mentioned here as well (middle of section 9.2.1):

 http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.html

 After the above change, Clover will run fine with the config given in my
 previous mail.

 *Matt: I think it would be worth patching the source, unless I have missed
 something?*

 Thanks,

 Anthony.
  --
 On the 30 November 2010 14:17 Josep García Wrote:
 mvn site has its own lifecycle, and does not incluce
 process-test-resources.


 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

 What is the output in the console? Which are the goals executed when you
 issue mvn site?

 Josep

 2010/11/30 Milbourne, Anthony

  Hi All,

 I am using the 2.1.0-M1 version of the modular spring archetype and I'm
 trying to get Clover (3.0.2) working with AppFuse and I seem to be going
 backwards :-(.

 I have added a clover profile, as below (I have tried adding it to the top
 level POM and the core sub-POM):

 profile
   idclover/id
   build
 plugins
   plugin
 groupIdcom.atlassian.maven.plugins/groupId
 artifactIdmaven-clover2-plugin/artifactId
 configuration
   license
 ![CDATA[OURLICENSEKEY]]
   /license
 /configuration
 executions
   execution
 idclover/id
 phaseverify/phase
 goals
   goalinstrument/goal
   goalaggregate/goal
 /goals
   /execution
   execution
 phasepre-site/phase
 goals
   goalinstrument/goal
   goalaggregate/goal
 /goals
   /execution
 /executions
   /plugin
   /plugins
   /build
   reporting
 plugins
   plugin
 groupIdcom.atlassian.maven.plugins/groupId
 artifactIdmaven-clover2-plugin/artifactId
   /plugin
 /plugins
   /reporting
 /profile

 This seemed to conflict with the canoo testes in the web module so I
 commented out the activation block that caused canoo to run, as so:

 !--activation
   property
 name!skipTests/name
   /property
 /activation--

 I now have to run canoo manually with mvn verify -Pintegration-test, but
 I can build the project and Clover does appear to run when I specify mvn
 verify -Pclover. However, if I run mvn site -Pclover I get an error from
 Hibernate as below:

 The dialect was not set. Set the property hibernate.dialect.

 Even if I explicitly set the DB profile with something like mvn site
 -Pclover,h2 it still fails with the same error.

 *Has anyone else got Clover working with AppFuse?*  Matt, I read another
 post where you mentioned that you used Clover, but I couldn't find any more
 details apart from Dustin 
 Pearce-2http://appfuse.547863.n4.nabble.com/template/NamlServlet.jtp?macro=user_nodesuser=37190's
 suggestion to add a dependency (which didn't seem to fix things).

 Thanks,

 Anthony.



 ==
 Please access the attached hyperlink for an important electronic
 communications disclaimer:
 http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html

 ==




Re: [appfuse-user] mvn site hang

2010-12-09 Thread Matt Raible

On Dec 9, 2010, at 12:04 AM, dan wrote:

 于 2010-12-9 13:32, Matt Raible 写道:
 
 On Dec 8, 2010, at 10:17 PM, dan wrote:
 
 于 2010-12-9 9:57, Matt Raible 写道:
 On Dec 8, 2010, at 6:47 PM, dancmaj...@gmail.com  wrote:
 
 于 2010-12-9 9:13, Matt Raible 写道:
 What version of Maven are you using? What version of AppFuse. I need to 
 know what you're doing so I can try and reproduce.
 
 On Dec 8, 2010, at 5:16 PM, dan wrote:
 
 I meet a problem that when i use mvn site to generate the report,the log
 in console below
 
 [INFO] [dbunit:operation {execution: test}]
 [INFO] Preparing surefire-report:report-only
 [INFO] No goals needed for project - skipping
 [INFO] [site:site {execution: default-site}]
 [ERROR] No URL set in Issue Management. No JIRA Report will be 
 generated.
 [ERROR] No URL set in Issue Management. No Trac Report will be 
 generated.
 [INFO] Skipped Test JavaDocs report, file testapidocs/index.html
 already exi
 sts for the English version.
 [INFO] Skipped JavaDocs report, file apidocs/index.html already
 exists for t
 he English version.
 [INFO] Skipped Surefire Report report, file surefire-report.html
 already exi
 sts for the English version.
 [INFO] Generating Issue Tracking report.
 [INFO] Generating Project Team report.
 [INFO] Generating Surefire Report report.
 [INFO] Generating Dependencies report.
 
 then, it will elapse about 10 min,i don't know what's the maven doing
 the final result is Build Success
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 hi Matt,I follow your manual,first i create a web project
 
 mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes 
 -DarchetypeArtifactId=appfuse-basic-struts -DarchetypeVersion=2.0.2 
 -DgroupId=org.dbss -DartifactId=DBSync
 may be the appfuse version is 2.0.2
 then i want to generate the report,so i execute mvn site
 
 first,the console produce
 
 Repository 'snapshots-maven-codehaus' will be blacklisted
 
 so i grep in my maven repository to find the key words,i find a lot of 
 pom file have this site
 such as
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\springframework\security\spring-security-parent\2.0.1\spring-security-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugins\1\maven-plugins-1.pom
 org\codehaus\plexus\plexus\1.0.4\plexus-1.0.4.pom
 org\codehaus\plexus\plexus\1.0.5\plexus-1.0.5.pom
 org\codehaus\plexus\plexus-compiler-api\1.5.1\plexus-compiler-api-1.5.1.pom
 org\codehaus\plexus\plexus-compilers\1.5.3\plexus-compilers-1.5.3.pom
 org\codehaus\mojo\mojo\7\mojo-7.pom
 
 
 
 so i comment theurlsnapshots-maven-codehaus/maven2/url
 
 but when i execute mvn site again,it still hang at
 
 [INFO] Generating Dependencies report
 
 Does this same thing happen with the latest release (2.1.0-M2)?
 
 hi Matt,I use 2.1.0-M2 but when i exeucte mvn eclipse:eclipse
 the error below
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Request to merge when 'filtering' is not identical. 
 Original=resource sr
 /main/resources: output=target/classes, include=[], 
 exclude=[ApplicationResourc
 s_de.properties|ApplicationResources_fr.properties|ApplicationResources_ko.prop
 rties|ApplicationResources_nl.properties|ApplicationResources_no.properties|App
 icationResources_pt*.properties|ApplicationResources_tr.properties|ApplicationR
 sources_zh*.properties|applicationContext-resources.xml|struts.xml|**/*.java],
 est=false, filtering=true, merging with=resource src/main/resources: 
 output=tar
 et/classes, include=[applicationContext-resources.xml|struts.xml], 
 exclude=[**/
 .java], test=false, filtering=false
 [INFO] 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 
 [INFO] Total time: 1 minute 27 seconds
 [INFO] Finished at: Thu Dec 09 11:22:39 CST 2010
 [INFO] Final Memory: 29M/123M
 [INFO] 
 
 
 mvn install mvn test ,it will be successfuly
 mvn site,the error is
 
 org.hibernate.MappingException: Unable to load class declared as mapping 
 class=
 org.bals.model.User/ in the configuration:
at 
 org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
 ionConfiguration.java:650)
at 
 org.hibernate.cfg.Configuration.parseSessionFactory

Re: [appfuse-user] mvn site hang

2010-12-08 Thread Matt Raible
What version of Maven are you using? What version of AppFuse. I need to know 
what you're doing so I can try and reproduce.

On Dec 8, 2010, at 5:16 PM, dan wrote:

 I meet a problem that when i use mvn site to generate the report,the log
 in console below
 
 [INFO] [dbunit:operation {execution: test}]
 [INFO] Preparing surefire-report:report-only
 [INFO] No goals needed for project - skipping
 [INFO] [site:site {execution: default-site}]
 [ERROR] No URL set in Issue Management. No JIRA Report will be generated.
 [ERROR] No URL set in Issue Management. No Trac Report will be generated.
 [INFO] Skipped Test JavaDocs report, file testapidocs/index.html
 already exi
 sts for the English version.
 [INFO] Skipped JavaDocs report, file apidocs/index.html already
 exists for t
 he English version.
 [INFO] Skipped Surefire Report report, file surefire-report.html
 already exi
 sts for the English version.
 [INFO] Generating Issue Tracking report.
 [INFO] Generating Project Team report.
 [INFO] Generating Surefire Report report.
 [INFO] Generating Dependencies report.
 
 then, it will elapse about 10 min,i don't know what's the maven doing
 the final result is Build Success
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] mvn site hang

2010-12-08 Thread Matt Raible


On Dec 8, 2010, at 6:47 PM, dan cmaj...@gmail.com wrote:

 于 2010-12-9 9:13, Matt Raible 写道:
 What version of Maven are you using? What version of AppFuse. I need to know 
 what you're doing so I can try and reproduce.
 
 On Dec 8, 2010, at 5:16 PM, dan wrote:
 
 I meet a problem that when i use mvn site to generate the report,the log
 in console below
 
 [INFO] [dbunit:operation {execution: test}]
 [INFO] Preparing surefire-report:report-only
 [INFO] No goals needed for project - skipping
 [INFO] [site:site {execution: default-site}]
 [ERROR] No URL set in Issue Management. No JIRA Report will be generated.
 [ERROR] No URL set in Issue Management. No Trac Report will be generated.
 [INFO] Skipped Test JavaDocs report, file testapidocs/index.html
 already exi
 sts for the English version.
 [INFO] Skipped JavaDocs report, file apidocs/index.html already
 exists for t
 he English version.
 [INFO] Skipped Surefire Report report, file surefire-report.html
 already exi
 sts for the English version.
 [INFO] Generating Issue Tracking report.
 [INFO] Generating Project Team report.
 [INFO] Generating Surefire Report report.
 [INFO] Generating Dependencies report.
 
 then, it will elapse about 10 min,i don't know what's the maven doing
 the final result is Build Success
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 hi Matt,I follow your manual,first i create a web project
 
 mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes 
 -DarchetypeArtifactId=appfuse-basic-struts -DarchetypeVersion=2.0.2 
 -DgroupId=org.dbss -DartifactId=DBSync
 may be the appfuse version is 2.0.2
 then i want to generate the report,so i execute mvn site
 
 first,the console produce
 
 Repository 'snapshots-maven-codehaus' will be blacklisted
 
 so i grep in my maven repository to find the key words,i find a lot of pom 
 file have this site
 such as
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\springframework\security\spring-security-parent\2.0.1\spring-security-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugins\1\maven-plugins-1.pom
 org\codehaus\plexus\plexus\1.0.4\plexus-1.0.4.pom
 org\codehaus\plexus\plexus\1.0.5\plexus-1.0.5.pom
 org\codehaus\plexus\plexus-compiler-api\1.5.1\plexus-compiler-api-1.5.1.pom
 org\codehaus\plexus\plexus-compilers\1.5.3\plexus-compilers-1.5.3.pom
 org\codehaus\mojo\mojo\7\mojo-7.pom
 
 
 
 so i comment the urlsnapshots-maven-codehaus/maven2/url
 
 but when i execute mvn site again,it still hang at
 
 [INFO] Generating Dependencies report
 
Does this same thing happen with the latest release (2.1.0-M2)?

 

-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] mvn site hang

2010-12-08 Thread Matt Raible

On Dec 8, 2010, at 10:17 PM, dan wrote:

 于 2010-12-9 9:57, Matt Raible 写道:
 
 On Dec 8, 2010, at 6:47 PM, dancmaj...@gmail.com  wrote:
 
 于 2010-12-9 9:13, Matt Raible 写道:
 What version of Maven are you using? What version of AppFuse. I need to 
 know what you're doing so I can try and reproduce.
 
 On Dec 8, 2010, at 5:16 PM, dan wrote:
 
 I meet a problem that when i use mvn site to generate the report,the log
 in console below
 
 [INFO] [dbunit:operation {execution: test}]
 [INFO] Preparing surefire-report:report-only
 [INFO] No goals needed for project - skipping
 [INFO] [site:site {execution: default-site}]
 [ERROR] No URL set in Issue Management. No JIRA Report will be generated.
 [ERROR] No URL set in Issue Management. No Trac Report will be generated.
 [INFO] Skipped Test JavaDocs report, file testapidocs/index.html
 already exi
 sts for the English version.
 [INFO] Skipped JavaDocs report, file apidocs/index.html already
 exists for t
 he English version.
 [INFO] Skipped Surefire Report report, file surefire-report.html
 already exi
 sts for the English version.
 [INFO] Generating Issue Tracking report.
 [INFO] Generating Project Team report.
 [INFO] Generating Surefire Report report.
 [INFO] Generating Dependencies report.
 
 then, it will elapse about 10 min,i don't know what's the maven doing
 the final result is Build Success
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 hi Matt,I follow your manual,first i create a web project
 
 mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes 
 -DarchetypeArtifactId=appfuse-basic-struts -DarchetypeVersion=2.0.2 
 -DgroupId=org.dbss -DartifactId=DBSync
 may be the appfuse version is 2.0.2
 then i want to generate the report,so i execute mvn site
 
 first,the console produce
 
 Repository 'snapshots-maven-codehaus' will be blacklisted
 
 so i grep in my maven repository to find the key words,i find a lot of pom 
 file have this site
 such as
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\springframework\security\spring-security-parent\2.0.1\spring-security-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
 org\apache\maven\plugins\maven-plugins\1\maven-plugins-1.pom
 org\codehaus\plexus\plexus\1.0.4\plexus-1.0.4.pom
 org\codehaus\plexus\plexus\1.0.5\plexus-1.0.5.pom
 org\codehaus\plexus\plexus-compiler-api\1.5.1\plexus-compiler-api-1.5.1.pom
 org\codehaus\plexus\plexus-compilers\1.5.3\plexus-compilers-1.5.3.pom
 org\codehaus\mojo\mojo\7\mojo-7.pom
 
 
 
 so i comment theurlsnapshots-maven-codehaus/maven2/url
 
 but when i execute mvn site again,it still hang at
 
 [INFO] Generating Dependencies report
 
 Does this same thing happen with the latest release (2.1.0-M2)?
 
 hi Matt,I use 2.1.0-M2 but when i exeucte mvn eclipse:eclipse
 the error below
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Request to merge when 'filtering' is not identical. Original=resource 
 sr
 /main/resources: output=target/classes, include=[], 
 exclude=[ApplicationResourc
 s_de.properties|ApplicationResources_fr.properties|ApplicationResources_ko.prop
 rties|ApplicationResources_nl.properties|ApplicationResources_no.properties|App
 icationResources_pt*.properties|ApplicationResources_tr.properties|ApplicationR
 sources_zh*.properties|applicationContext-resources.xml|struts.xml|**/*.java],
 est=false, filtering=true, merging with=resource src/main/resources: 
 output=tar
 et/classes, include=[applicationContext-resources.xml|struts.xml], 
 exclude=[**/
 .java], test=false, filtering=false
 [INFO] 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 
 [INFO] Total time: 1 minute 27 seconds
 [INFO] Finished at: Thu Dec 09 11:22:39 CST 2010
 [INFO] Final Memory: 29M/123M
 [INFO] 
 
 
 mvn install mvn test ,it will be successfuly
 mvn site,the error is
 
 org.hibernate.MappingException: Unable to load class declared as mapping 
 class=
 org.bals.model.User/ in the configuration:
at 
 org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
 ionConfiguration.java:650)
at 
 org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav
 a:1589)
at org.hibernate.cfg.Configuration.doConfigure

Re: [appfuse-user] latest appfuse version

2010-12-06 Thread Matt Raible
The mailing list documents the many issues that folks have found. AFAIK, the 
problem is caused by bugs in 2.7 that don't exist in version 2.5.1. 

http://appfuse.markmail.org/search/?q=maven-eclipse-plugin

There is a version 2.8 out now that you might want to try.

Matt

On Dec 6, 2010, at 8:54 AM, Ice-Man wrote:

 Matt,
 
 Why maven-eclipse version 2.7 cause errors when converting a Archtype AppFuse 
 to Eclipse Project??!
 Tnx in advance,
 
 Derlon
 
 
 2010/11/17 Vanessa Pacheco vpach...@bowmansystems.com
 I had to change the maven-eclipse plugin version to 2.5.1 as this is what I 
 read from one of the posts. 2.7 makes you run into errors
 
 V
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 17, 2010 1:04:08 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] latest appfuse version
 
 Can you send the command you're using to create the project. I want to see if 
 I can reproduce.
 
 
 On Wed, Nov 17, 2010 at 7:00 PM, Vanessa Pacheco  vpach...@bowmansystems.com 
  wrote:
 
 
 I created a brand new project, then used mvn to build. That's when I got the 
 error.
 
 Sorry to bother so much and Thnx in advance for all the help
 
 Vanessa
 
 
 
 - Original Message -
 From: Matt Raible  m...@raibledesigns.com 
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 17, 2010 12:56:59 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] latest appfuse version
 
 Do get this error when you create a new project or when you try to upgrade 
 your existing 2.x project to Spring 3?
 
 
 On Wed, Nov 17, 2010 at 6:34 PM, Vanessa Pacheco  vpach...@bowmansystems.com 
  wrote:
 
 
 Is anyone running into build problems with latest Appfuse and SPring3. I run 
 into a test issuesthe spring***test:jar cannot be downloaded. Also does 
 the new appfuse use @PathVariable, @RequestMapping in the controller code?
 
 Missing:
 --
 1) org.springframework:spring-test:jar:3
 
 Try downloading the file manually from the project website.
 
 Then, install it using the command:
 mvn install:install-file -DgroupId=org.springframework -DartifactId=spring
 -test -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file
 
 Alternatively, if you host your own repository you can deploy the file there:
 
 mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring-t
 est -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
 -DrepositoryId=
 [id]
 
 Path to dependency:
 1) com.bowmansystems:SyncPtSpr3:war:1.0-SNAPSHOT
 2) org.springframework:spring-test:jar:3
 
 --
 1 required artifact is missing.
 
 Vanessa
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 
 -- 
 Derlon
  
 Siga-me no meu blog...
 Engenharia de Software
 
 http://blig.ig.com.br/derlon/ 
 
 
 
 



Re: [appfuse-user] AppFuse Tutorial missing persistence.xml change

2010-11-24 Thread Matt Raible
Should be fixed in latest release.

On Nov 24, 2010, at 11:25 AM, Milbourne, Anthony 
anthony.milbou...@credit-suisse.com wrote:

 That worked :-).
 I presume that file will not be there in the next release (or does it serve 
 some purpose?).
  
 Thanks for the help,
  
 Anthony.
 
 From: Matt Raible [mailto:m...@raibledesigns.com] 
 Sent: 23 November 2010 17:01
 To: users@appfuse.dev.java.net
 Subject: Re: [appfuse-user] AppFuse Tutorial missing persistence.xml change
 
 You should delete the persistence.xml file in web/src/main/resources.
 
 On Mon, Nov 15, 2010 at 3:25 AM, Milbourne, Anthony 
 anthony.milbou...@credit-suisse.com wrote:
 Apologies if I have missed something obvious here but I think I have found an 
 omission in the AppFuse tutorial.
 
 I am using the 2.1.0-M1 version of the modular spring archetype and I have 
 followed the tutorials with JPA and SpringMVC.  All works up until the 
 controller tutorial (http://appfuse.org/display/APF/Using+Spring+MVC), when I 
 get a test failure for the PersonControllerTest:
 
 no persistent classes found for query class: select obj from 
 com.my.company.model.Person obj
 
 After a bit of digging I discovered that I needed to add an entry in 
 web/src/main/resources/META-INF/persistence.xml.  This is kind of obvious but 
 the issue was complicated by the presence of 
 core/src/main/resources/META-INF/persistence.xml, which has a comment stating 
 that adding entries is optional - so first I didn't realise that the file was 
 in 2 places and then I thought that the optionality applied to both.
 
 None of this seems to be mentioned in the tutorial, and I think it ought to 
 be.
 
 All that said, AppFuse is great and the tutorial is generally very well 
 written and easy to follow.
 
 Is this the right place to request updates to the tutorial (and if not then 
 where)?
 
 Thanks,
 
 Anthony. 
 
 
 ==
 Please access the attached hyperlink for an important electronic 
 communications disclaimer:
 http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
 ==
 
 


Re: [appfuse-user] Appfuse versions

2010-11-23 Thread Matt Raible
On Mon, Nov 15, 2010 at 1:33 AM, Marian N. Ion mn...@etai.fr wrote:

 From the issues mailing list I read that Fix Version/s: (was: 2.1.0-M2)
 2.1.0 = but how could I get it? On the quickstart  page
 (http://appfuse.org/display/APF/AppFuse
 +QuickStart#AppFuseQuickStart-create) the versions go up to
 2.1.0-SNAPSHOT, however on http://issues.appfuse.org/browse/APF/ one
 can see that there's a 2.1.1 and even a 3.0-M1 version! How could I
 create a project in 2.1.1 or in 3.0 ?


No, the versions that haven't been released yet are for planning.



 Regards,

 Marian


 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] AppFuse Tutorial missing persistence.xml change

2010-11-23 Thread Matt Raible
You should delete the persistence.xml file in web/src/main/resources.

On Mon, Nov 15, 2010 at 3:25 AM, Milbourne, Anthony 
anthony.milbou...@credit-suisse.com wrote:

  Apologies if I have missed something obvious here but I think I have
 found an omission in the AppFuse tutorial.

 I am using the 2.1.0-M1 version of the modular spring archetype and I have
 followed the tutorials with JPA and SpringMVC.  All works up until the
 controller tutorial 
 (*http://appfuse.org/display/APF/Using+Spring+MVC*http://appfuse.org/display/APF/Using+Spring+MVC),
 when I get a test failure for the PersonControllerTest:

 no persistent classes found for query class: select obj from com.
 my.company.model.Person obj

 After a bit of digging I discovered that I needed to add an entry in
 web/src/main/resources/META-INF/persistence.xml.  This is kind of obvious
 but the issue was complicated by the presence of
 core/src/main/resources/META-INF/persistence.xml, which has a comment
 stating that adding entries is optional - so first I didn't realise that the
 file was in 2 places and then I thought that the optionality applied to
 both.

 None of this seems to be mentioned in the tutorial, and I think it ought to
 be.

 All that said, AppFuse is great and the tutorial is generally very well
 written and easy to follow.

 Is this the right place to request updates to the tutorial (and if not then
 where)?

 Thanks,

 Anthony.


 ==
 Please access the attached hyperlink for an important electronic
 communications disclaimer:
 http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html

 ==




Re: [appfuse-user] web server architecture

2010-11-23 Thread Matt Raible
I'd recommend Apache in front of Tomcat so you can do things like gzip
compression, expires headers and things of that sort in Apache. You can
either front multiple Tomcat instances with one Apache server, or use
something like a load balancer in front of Apache to distribute the load
across many servers.

Hope this helps,

Matt

On Wed, Nov 17, 2010 at 5:39 AM, Josep García jgar...@isigma.es wrote:

 Sorry about the somewhat off-topic, but is there any good references on
 Internet with recommended architecture for an intranet/extranet web server,
 taking into account the security aspects? I mean, is it recommended to have
 Apache httpd + Tomcat? Same machine? etc.

 Josep




Re: [appfuse-user] maven build goals in appfuse

2010-11-23 Thread Matt Raible
resources:resources processes files in src/main/resources
resources:testResources processes files in src/test/resources

The reason why things might not be getting replaced properly is because of
the native2ascii plugin.

Matt

On Wed, Nov 17, 2010 at 10:53 AM, Josep García jgar...@isigma.es wrote:

 Is it normal that, in AppFuse 2.0.2, resources are processed twice in mvn
 test phase?
 In this log, you can see resources:resources and resources:testResources
 being processed twice. Why?

 I am experiencing a problem for maven property substituion in a resource
 file.
 I have:
 myfile.properties:
 myproperty=${my.pom.property}

 parent's pom.xml:
 my.pom.property${project.parent.basedir}/hello/my.pom.property

 If I run mvn clean process-resources, myproperty in myfile.properties gets
 replaced correctly.

 However, if I run mvn clean test, or just mvn clean test-compile, what I
 get in my  myproperty in myfile.properties is${my.pom.property} literally,
 without being replaced by its value.

 Am I missing anything?

 Below is the output of mvn clean test.
 Josep


 [INFO]
 
 [INFO] Building AppFuse Struts 2 Application
 [INFO]task-segment: [clean, test]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] Deleting directory
 E:\Projects\portasigma\appfuseTest\mono\\target
 [INFO] [aspectj:compile {execution: default}]
 [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
 [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] File encoding has not been set, using platform encoding UTF8,
 i.e. build is platform dependent!
 [WARNING] Using platform encoding (UTF8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 45 resources
 [INFO] Copying 2 resources
 [INFO] Copying 119 resources
 [INFO] Copying 119 resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources {execution: default-testResources}]
 [INFO] Copying 18 resources
 [INFO] Copying 11 resources
 [INFO] Preparing hibernate3:hbm2ddl
 [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
 invocation.
 [INFO] [aspectj:compile {execution: default}]
 [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
 [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
 [INFO] [resources:resources {execution: default-resources}]
 [INFO] Copying 45 resources
 [INFO] Copying 2 resources
 [INFO] Copying 119 resources
 [INFO] Copying 119 resources
 [INFO] Copying 119 resources
 [INFO] Copying 119 resources
 [INFO] [hibernate3:hbm2ddl {execution: default}]
 ...
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] Compiling 23 source files to
 E:\Projects\portasigma\appfuseTest\mono\\target\test-classes
 [INFO] [dbunit:operation {execution: test-compile}]
 [INFO] [surefire:test {execution: default-test}]
 ...





Re: [appfuse-user] userFormController onSubmit()

2010-11-17 Thread Matt Raible

On Nov 16, 2010, at 10:19 AM, Vanessa Pacheco wrote:

 Is that Appfuse 2.1.0M2?
 
 I did get it, but it still doesn't have pathVariable.
 
 I see spring.version2.5.6/spring.version in pom.xml. If I replace that 
 with 3, would 3 be downloaded and be used? Also what repurcussions wud this 
 have.

Yes. No repercussions should happen.

 
 Thnx in advance
 Vanessa
 - Original Message -
 From: Ramzi MAALEJ ramzi.atv...@gmail.com
 To: users@appfuse.dev.java.net
 Sent: Monday, November 15, 2010 10:01:47 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] userFormController onSubmit()
 
 
 a new version of appfuse has been released, it does include Spring 3.
 
 
 On 2010-11-15 13:00, Vanessa Pacheco wrote:
 I'm using this tutorial 
 http://viralpatel.net/blogs/2010/11/spring3-mvc-hibernate-maven-tutorial-eclipse-example.html;
 
 I see that Appfuse 2.x uses spring 2.5.6 (saw this in pom.xml).
 
 The tutorial uses org.springframework.web.bind.annotation.PathVariable, 
 which I think is Spring 3.0. If I change the spring version, will it affect 
 anything? Also, would I need to run
 mvn appfuse:full-source, mvn eclipse:eclipse again?
 
 Vanessa
 - Original Message -
 From: Josep Garcíajgar...@isigma.es
 To: users@appfuse.dev.java.net
 Sent: Monday, November 15, 2010 11:13:26 AM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] userFormController onSubmit()
 
 I suggest you don't use onSubmit. Instead, generate a deletion url, which 
 then does the actual deletion. In Struts2, that would be an action. For 
 Spring MVC, I don't know.
 
 Josep
 
 
 2010/11/15 Vanessa Pacheco  vpach...@bowmansystems.com
 
 
 Hi all,
 
 So, this is still about my delete button for every row in userList table. 
 (userlist.jsp).
 
 I used 'c:forEach', thus replacing the displaytag. I was able to get the 
 delete button/link to show up. However, when I click it, it doesn't do 
 anything, because it somehow doesn't call the onSubmit() in 
 userFormController. I don't have a form element on the page, cos there was 
 never one to begin with. Could someone tell me how to get it to call that 
 onSubmit method?
 
 Attached it the userList.jsp. Am not attaching userFormcontroller because I 
 didn't make any changes to it.
 
 Vanessa
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 
 -- 
 Best regards, Ramzi MAALEJ
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] latest appfuse version

2010-11-17 Thread Matt Raible
Do get this error when you create a new project or when you try to upgrade
your existing 2.x project to Spring 3?

On Wed, Nov 17, 2010 at 6:34 PM, Vanessa Pacheco vpach...@bowmansystems.com
 wrote:

 Is anyone running into build problems with latest Appfuse and SPring3. I
 run into a test issuesthe spring***test:jar cannot be downloaded. Also
 does the new appfuse use @PathVariable, @RequestMapping in the controller
 code?

 Missing:
 --
 1) org.springframework:spring-test:jar:3

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.springframework
 -DartifactId=spring
 -test -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:

  mvn deploy:deploy-file -DgroupId=org.springframework
 -DartifactId=spring-t
 est -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
 -DrepositoryId=
 [id]

  Path to dependency:
1) com.bowmansystems:SyncPtSpr3:war:1.0-SNAPSHOT
2) org.springframework:spring-test:jar:3

 --
 1 required artifact is missing.

 Vanessa

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] latest appfuse version

2010-11-17 Thread Matt Raible
Can you send the command you're using to create the project. I want to see
if I can reproduce.

On Wed, Nov 17, 2010 at 7:00 PM, Vanessa Pacheco vpach...@bowmansystems.com
 wrote:

 I created a brand new project, then used mvn to build. That's when I got
 the error.

 Sorry to bother so much and Thnx in advance for all the help

 Vanessa
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 17, 2010 12:56:59 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] latest appfuse version

 Do get this error when you create a new project or when you try to upgrade
 your existing 2.x project to Spring 3?


 On Wed, Nov 17, 2010 at 6:34 PM, Vanessa Pacheco 
 vpach...@bowmansystems.com  wrote:


 Is anyone running into build problems with latest Appfuse and SPring3. I
 run into a test issuesthe spring***test:jar cannot be downloaded. Also
 does the new appfuse use @PathVariable, @RequestMapping in the controller
 code?

 Missing:
 --
 1) org.springframework:spring-test:jar:3

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.springframework -DartifactId=spring
 -test -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
 there:

 mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring-t
 est -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
 -DrepositoryId=
 [id]

 Path to dependency:
 1) com.bowmansystems:SyncPtSpr3:war:1.0-SNAPSHOT
 2) org.springframework:spring-test:jar:3

 --
 1 required artifact is missing.

 Vanessa

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] userFormController onSubmit()

2010-11-17 Thread Matt Raible
You should have spring.version3.0.5.RELEASE/spring.version in your
pom.xml. The available versions in Maven Central can be seen at the
following URL:

http://repo2.maven.org/maven2/org/springframework/spring-test/

On Wed, Nov 17, 2010 at 7:41 PM, Vanessa Pacheco vpach...@bowmansystems.com
 wrote:

 That doesn't run either. I had to change spring.version to 3 in pom.xml
 soon after i ran the archtype command.

 C:\Source\SyncPtSpr3mvn dependency:tree
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'dependency'.
 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend
 ency-plugin/2.0/maven-dependency-plugin-2.0.pomhttp://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend%0Aency-plugin/2.0/maven-dependency-plugin-2.0.pom

 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend
 ency-plugin/2.0/maven-dependency-plugin-2.0.jarhttp://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend%0Aency-plugin/2.0/maven-dependency-plugin-2.0.jar

 [INFO]
 
 [INFO] Building AppFuse Spring MVC Application
 [INFO]task-segment: [dependency:tree]
 [INFO]
 
 Downloading:
 http://repo1.maven.org/maven2/org/springframework/spring-test/3/spr
 ing-test-3.pom
 [INFO] Unable to find resource 'org.springframework:spring-test:pom:3' in
 reposi
 tory central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/springframework/spring-test/3/spr
 ing-test-3.jarhttp://repo1.maven.org/maven2/org/springframework/spring-test/3/spr%0Aing-test-3.jar
 [INFO] Unable to find resource 'org.springframework:spring-test:jar:3' in
 reposi
 tory central (http://repo1.maven.org/maven2)
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) org.springframework:spring-test:jar:3

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.springframework
 -DartifactId=spring
 -test -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:

  mvn deploy:deploy-file -DgroupId=org.springframework
 -DartifactId=spring-t
 est -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
 -DrepositoryId=
 [id]

  Path to dependency:
1) com.bowmansystems:SyncPtSpr3:war:1.0-SNAPSHOT
2) org.springframework:spring-test:jar:3

 --
 1 required artifact is missing.

 for artifact:
  com.bowmansystems:SyncPtSpr3:war:1.0-SNAPSHOT

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  appfuse-snapshots (
 http://oss.sonatype.org/content/repositories/appfuse-snapsh
 ots)



 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 7 seconds
 [INFO] Finished at: Wed Nov 17 13:16:20 EST 2010
 [INFO] Final Memory: 23M/56M
 [INFO]
 
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 17, 2010 1:10:41 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] userFormController onSubmit()

 Can you run mvn dependency:tree to see what dependency is trying to point
 to this JAR. It shouldn't be Spring version 3.0.5.RELEASE rather than 3.


 On Wed, Nov 17, 2010 at 5:06 PM, Vanessa Pacheco 
 vpach...@bowmansystems.com  wrote:


 When trying to build (mvn), here's what I get.

 Downloading:
 http://repo1.maven.org/maven2/org/springframework/spring-test/3/spr
 ing-test-3.jar
 [INFO] Unable to find resource 'org.springframework:spring-test:jar:3' in
 reposi
 tory central ( http://repo1.maven.org/maven2 )
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) org.springframework:spring-test:jar:3

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.springframework
 -DartifactId=spring
 -test -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:

  mvn deploy:deploy-file -DgroupId=org.springframework
 -DartifactId=spring-t
 est -Dversion=3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
 -DrepositoryId=
 [id

[appfuse-user] [ANN] AppFuse 2.1.0 M2 Released

2010-11-15 Thread Matt Raible
The AppFuse team is pleased to announce the release of AppFuse 2.1.0 M2!

AppFuse 2.1.0 M2 is available as a Maven archetype. For information on
creating a new project using this release, please see the QuickStart Guide:

http://appfuse.org/display/APF/AppFuse+QuickStart

The 2.x series of AppFuse has a minimum requirement of the following
specification versions:

* Java Servlet 2.4 and JavaServer Pages (JSP) 2.0
* Java 2 Standard Platform Edition (J2SE) 5.0

For more information, see my blog post on this release at:

http://raibledesigns.com/rd/entry/appfuse_2_1_milestone_2

Cheers,

Matt


Re: [appfuse-user] Re: appfuse hidden id

2010-11-10 Thread Matt Raible
You should be able to do something like the user list JSP does, where you
use a different property (e.g. project name) and still link with the id.

display:column property=username escapeXml=true sortable=true
titleKey=user.username style=width: 25%
url=/editUser.html?from=list paramId=id paramProperty=id/

2010/11/10 Cody Zhang codyzhang.w...@gmail.com

 Hi,All


 jsp:

 display:table name=moduleSvnUrls class=table requestURI=
 id=moduleSvnUrlList export=true pagesize=25

display:column property=id sortable=true
 href=onePrjModuleSvnUrl.html
 paramId=prj_id paramProperty=id titleKey=project.id/  !--I
 want to hidden this prj_id--
 display:column property=prj_module_name sortable=true
 titleKey=moduleSvnUrl.prj_module_name/
 display:column property=prj_module_svnurl sortable=true
 titleKey=moduleSvnUrl.prj_module_svnurl/
 display:setProperty name=paging.banner.item_name value=person/
 display:setProperty name=paging.banner.items_name value=people/

 display:setProperty name=export.excel.filename value=Person
 List.xls/
 display:setProperty name=export.csv.filename value=Person
 List.csv/
 display:setProperty name=export.pdf.filename value=Person
 List.pdf/
 /display:table
 Best Regards,
 --Cody.Zhang


 在 2010年11月10日 下午3:38,Cody Zhang codyzhang.w...@gmail.com写道:

  Hi,Matt
 I want hidden prj_id,But action class request.getParameter(prj_id)
 always is null.
 In action :request.getParameter(prj_id)
 how to do it? example:
 Best Regards,
 --Cody.Zhang





Re: [appfuse-user] Integrating Spring Social with Appfuse

2010-11-09 Thread Matt Raible
This article (and its comments) might help:

http://www.infoq.com/news/2010/11/spring-social-integration

On Nov 9, 2010, at 3:39 PM, sridhar vennela wrote:

 Hi ,
  
 I am not able to come with desing that can be integrated with spring 
 security. when it redirects, how to handle it spring?
  
 thanks,
 SRidhar
 
 
  
 On Tue, Nov 9, 2010 at 2:11 PM, Matt Raible m...@raibledesigns.com wrote:
 What errors are you seeing?
 
 On Nov 9, 2010, at 3:08 PM, sridhar vennela wrote:
 
 Hi ,
  
 I am trying to integrate Spring Social with appfuse. having issue with 
 spring security. Can someone give some ideas or pointers, how to integrate 
 with spring secuirty?
  
 following are the links
 http://static.springsource.org/spring-security/oauth/tutorial.html
 http://git.springsource.org/spring-social
  
 Thanks
 Sai
 
 



Re: [appfuse-user] Appfuse gen

2010-11-08 Thread Matt Raible
)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at 
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at 
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
 failure
at 
 org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
at 
 org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
at 
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:577)
... 14 more
 [ERROR]
 [ERROR]
 [ERROR] For more information about the errors and possible solutions, please 
 read the following articles:
 [ERROR] [Help 1] 
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 
 
 On 2010-11-08 01:52, Matt Raible wrote:
 Have you tried installing the m2eclipse plugin so you can run Maven from 
 w/in Eclipse?
 
 On Nov 6, 2010, at 1:02 PM, Ramzi MAALEJ wrote:
 
   
 Hi all,
 
 I would like to know how to use appfuse maven plugin from eclipse instead 
 of using the command line.
 
 Best regards
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
   
 
 
 -- 
 Best regards, Ramzi MAALEJ
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Appfuse gen

2010-11-07 Thread Matt Raible
Have you tried installing the m2eclipse plugin so you can run Maven from w/in 
Eclipse?

On Nov 6, 2010, at 1:02 PM, Ramzi MAALEJ wrote:

 Hi all,
 
 I would like to know how to use appfuse maven plugin from eclipse instead of 
 using the command line.
 
 Best regards
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Appfuse 2.1 release

2010-11-05 Thread Matt Raible
Yes. There's 40ish open issues left. I hope to fix 10 more or so, then release 
2.1.0-M2. 2.1.0 shortly after.

On Nov 5, 2010, at 12:54 AM, Kissue Kissue kissue...@gmail.com wrote:

 Hi Matt,
 
 Is there any chance that appfuse 2.1 could still be released this year?
 
 Thanks.

-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] starting with Appfuse 2 from scratch

2010-11-05 Thread Matt Raible

On Nov 5, 2010, at 7:26 AM, Vanessa Pacheco wrote:

 I got all my issues solved (except one).
 
 I am able to follow the QuickStart steps and get a running working app. My 
 problem was the java version. I had java6 update02. I got update 22 and now 
 everything works fine.
 
 My only issue is that with my env CATALINA variable and one other change to 
 pom.xml, it still doesn't depoly to my installed version of tomcat. 

What do you see when run echo %CATALINA_HOME% from the command line?

 
 The -ve values for PK IDs in the database is because my sample-data.xml has 
 -ve values. Was there a reason for this?

Nope, I don't believe the -ve was done by AppFuse. If it was, it might be a bug.

 
 Vanessa
 
 - Original Message -
 From: dan cmaj...@gmail.com
 To: users@appfuse.dev.java.net
 Sent: Friday, November 5, 2010 1:23:56 AM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 Thanks for Matt's remind,I find why this error happens,because my 
 default account admin which is created from the 
 src/test/resource/sample-data.xml,but the md5 password is not the 
 admin,so the
 src/test/resources/login.xml will show the errors because it tests the 
 login action use admin/admin,
 but i don't know when the admin's md5 password changes,the 
 sample-data.xml keep frozen
 
 
 
 于 2010-11-5 12:03, Matt Raible 写道:
 If you create a new app and run mvn install, does it work?
 
 On Nov 4, 2010, at 8:54 PM, dancmaj...@gmail.com  wrote:
 
 I am using apache-tomcat-6.0.29,first i meet the same 404 error.as we 
 know,since tomcat6.x version,it add the memory detect module,but it is not 
 so smart,so i comment it,see below
 1.find server.xml in $TOMCAT_HOME/conf
 2.find the
 !-- Prevent memory leaks due to use of particular java/javax APIs
 Listener 
 className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  --
 3.mvn deploy
 so the 404 will not exist,but it then generate extra errors
 
 D:\workspace\DBSync\src\test\resources\login.xml:6: Wrong document title 
 found!.
 
 from 2010-11-3 22:12, Vanessa Pacheco say:
 Tried it, but I get the same 404 error.
 
 I already have tomcat installed in my c:\ dir that I use for my other 
 applications. Is it possible to make Appfuse use this tomcat (v. 6.0.18)? 
 What changes would I need to make to pom.xml and where else will I have to 
 make changes? Would there be any changes to this file 
 myproject/web/.settings/org.eclipse.wst.common.component??
 
 Thanks in advance for all of your help
 
 Vanessa
 - Original Message -
 From: dancmaj...@gmail.com
 To: users@appfuse.dev.java.net
 Sent: Tuesday, November 2, 2010 10:11:58 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 SyncPoint-1.0-SNAPSHOT now is your web namespace,but the first line in 
 login.xml still didn't change,
 let's seeinvoke description=get Login Page url=//
 so change the url=/ to url=/SyncPoint-1.0-SNAPSHOT maybe you can pass 
 the test,Good Luck
 
 
 On 2010-11-3 6:06, Matt Raible wrote:
 The port number is controlled by Cargo and properties in your pom.xml. If 
 you want to run it on a port other than the default, change the 
 cargo.port property in the bottom of pom.xml.
 
 On Nov 2, 2010, at 3:09 PM, Vanessa Pacheco wrote:
 
 That helped Matt. I copied the properties from the postgres profile to 
 the properties at the bottom of pom.xml. So I've now got my app talking 
 with postgres.
 
 Now I get this when I run mvn from within my project dir to download 
 JARs, Tomcat and run the integration tests in my project. I see the 3 
 tables in my database (app_user, role, user_role), so its gotten past 
 that stage. This is the TESTS stage.
 
 Login:
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] An Ant BuildException has occured: The following error occurred 
 while exe
 cuting this line:
 C:\Source\SyncPoint\src\test\resources\login.xmlf:1: HTTP error 404
 
 404 Not Found for http://localhost:8081/SyncPoint-1.0-SNAPSHOT/
 
 Do I need to make some changes somewhere. I see localhost:8081 in there. 
 My tomcat isn't running (should it be running for the tests?). Also when 
 I run any of my tomcat apps I use localhost:8080, so I changed it to 
 8080 in pom.xml. However, no luck still. What should I do here?
 
 
 Vanessa
 - Original Message -
 From: Matt Raiblem...@raibledesigns.com
 To: Vanessa Pachecovpach...@bowmansystems.com
 Cc: usersusers@appfuse.dev.java.net
 Sent: Tuesday, November 2, 2010 4:36:20 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 There might be issues with this working properly. If it's still talking 
 to MySQL, you might have to move the property values from the postgres 
 profile to the properties at the bottom of pom.xml (overriding the 
 default/mysql's properties

Re: [appfuse-user] warpath and release plugin

2010-11-05 Thread Matt Raible
The warpath plugin allows you to include a WAR as a JAR and get its 
dependencies. The war plugin does overlaying, but it doesn't allow you to 
depend on a WAR as if it's a JAR. Don't know if that helps or not.

On Nov 5, 2010, at 9:51 AM, Josep García wrote:

 I am trying to use the maven release plugin, which seems to be very 
 interesting.
 
 I have a multi-module project, in which I use the warpath plugin to do 
 overlaying. This works nicely.
 
 However, when doing a mvn release:prepare, I get a build error on the first 
 module that uses warpath:
 
 [INFO] [INFO] Unable to find resource 
 'es.isigma.firmaqui:portasigma-web:warpath:1.4.0' in repository internal 
 third party (http://1
 92.168.0.10:8084/nexus/content/repositories/thirdparty)
 [INFO] Downloading: 
 http://repo1.maven.org/maven2/es/isigma/firmaqui/portasigma-web/1.4.0/portasigma-web-1.4.0.war
 [INFO] [INFO] Unable to find resource 
 'es.isigma.firmaqui:portasigma-web:warpath:1.4.0' in repository central 
 (http://repo1.maven.or
 g/maven2)
 [INFO] [INFO] 
 
 [INFO] [ERROR] BUILD ERROR
 [INFO] [INFO] 
 
 [INFO] [INFO] Failed to resolve artifact.
 [INFO]
 [INFO] Missing:
 [INFO] --
 [INFO] 1) es.isigma.firmaqui:portasigma-web:warpath:1.4.0
 
 Apparently, the release plugin does not interpret correctly the warpath 
 dependency. Should I upgrade to maven-war-plugin, which I've seen it has also 
 overlaying features?
 
 Josep
 



Re: [appfuse-user] warpath and release plugin

2010-11-05 Thread Matt Raible
Yes, overlaying will still happen if you remove the warpath dependency. If your 
app still runs and works properly, you might not need to have it at all.

On Nov 5, 2010, at 10:00 AM, Josep García wrote:

 It seems to me that the release plugin tries to resolve the declared 
 dependencies in the pom, and for the warpath overlaying I have:
 dependency
 groupId${pom.parent.groupId}/groupId
 artifactIdportasigma-web/artifactId
 version${pom.parent.version}/version
 typewar/type
 /dependency
 dependency
 groupId${pom.parent.groupId}/groupId
 artifactIdportasigma-web/artifactId
 version${pom.parent.version}/version
 typewarpath/type
 /dependency
 
 which tries to resolve from the repos, and then fails. All this is just my 
 assumption. Can I delete the warpath type dependency and still have the 
 overlaying being done?
 
 
 2010/11/5 Matt Raible m...@raibledesigns.com
 The warpath plugin allows you to include a WAR as a JAR and get its 
 dependencies. The war plugin does overlaying, but it doesn't allow you to 
 depend on a WAR as if it's a JAR. Don't know if that helps or not.
 
 On Nov 5, 2010, at 9:51 AM, Josep García wrote:
 
 I am trying to use the maven release plugin, which seems to be very 
 interesting.
 
 I have a multi-module project, in which I use the warpath plugin to do 
 overlaying. This works nicely.
 
 However, when doing a mvn release:prepare, I get a build error on the first 
 module that uses warpath:
 
 [INFO] [INFO] Unable to find resource 
 'es.isigma.firmaqui:portasigma-web:warpath:1.4.0' in repository internal 
 third party (http://1
 92.168.0.10:8084/nexus/content/repositories/thirdparty)
 [INFO] Downloading: 
 http://repo1.maven.org/maven2/es/isigma/firmaqui/portasigma-web/1.4.0/portasigma-web-1.4.0.war
 [INFO] [INFO] Unable to find resource 
 'es.isigma.firmaqui:portasigma-web:warpath:1.4.0' in repository central 
 (http://repo1.maven.or
 g/maven2)
 [INFO] [INFO] 
 
 [INFO] [ERROR] BUILD ERROR
 [INFO] [INFO] 
 
 [INFO] [INFO] Failed to resolve artifact.
 [INFO]
 [INFO] Missing:
 [INFO] --
 [INFO] 1) es.isigma.firmaqui:portasigma-web:warpath:1.4.0
 
 Apparently, the release plugin does not interpret correctly the warpath 
 dependency. Should I upgrade to maven-war-plugin, which I've seen it has 
 also overlaying features?
 
 Josep
 
 
 



Re: [appfuse-user] starting with Appfuse 2 from scratch

2010-11-05 Thread Matt Raible

On Nov 5, 2010, at 10:13 AM, Vanessa Pacheco wrote:

 Matt,
 
 My only issue is that with my env CATALINA variable and one other change to 
 pom.xml, it still doesn't depoly to my installed version of tomcat. 
 What do you see when run echo %CATALINA_HOME% from the command line?
 
 Here's the command I ran, with output. In windows its a user environment 
 variable, not a system env var. Don't know if that makes a diff. I also have 
 %CATALINA_HOME%\bin in my path, though I don't think that should matter
 C:\echo %CATALINA_HOME%
 c:\tomcat6

This should work. What makes you think Cargo is not using it when running 
tests? To be sure it's using it, you could remove the following from your 
pom.xml:

zipUrlInstaller
url${cargo.container.url}/url
installDir${installDir}/installDir
/zipUrlInstaller

 
 The -ve values for PK IDs in the database is because my sample-data.xml has 
 -ve values. Was there a reason for this?
 Nope, I don't believe the -ve was done by AppFuse. If it was, it might be a 
 bug.
 
 Attaching a sample test data xml file after running the archtype-generate 
 command.

This file doesn't have any -ve values in it. Am I missing something?

 
 Vanessasample-data.xml-
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] starting with Appfuse 2 from scratch

2010-11-05 Thread Matt Raible

On Nov 5, 2010, at 10:34 AM, Vanessa Pacheco wrote:

 C:\echo %CATALINA_HOME%
 c:\tomcat6
 This should work. What makes you think Cargo is not using it when running 
 tests? To be sure it's using it, you could remove the following from your 
 pom.xml:
 
 Yeah, the zipUrlInstaller section is commented in my actual file. I guess 
 what I am looking for is my appfuse project folder in c:\Tomcat6\webapps. So 
 that when I go to localhost:8080 manager 
 (http://localhost:8080/manager/html), I see the app listed there with all my 
 other non-appfuse apps. This doesn't seem to be happening. I don't want to be 
 copying my .war file over cos that doesn't seem to work for me (that's what I 
 was trying to do yesterday)

Cargo deploys the WAR, runs the tests and then undeploys it, that's why you 
don't see it after your tests complete. You can add the following profile if 
you want to deploy it to Tomcat using mvn install -Pauto-deploy. You may have 
to change the deployer-redeploy goal to deploy for the initial deployment. 
Tomcat will need to be running for this to work. More documentation can be 
found at http://cargo.codehaus.org/Maven2+plugin.

profile
!-- Profile that deploys to Tomcat after a successful build. --
!-- Developers should not have to run this profile directly; --
!-- it's meant to support the internal build process.--
idauto-deploy/id
build
plugins
plugin
groupIdorg.codehaus.cargo/groupId
artifactIdcargo-maven2-plugin/artifactId
version1.0/version
executions
execution
idverify-deploy/id
phaseinstall/phase
goals
goaldeployer-redeploy/goal
/goals
configuration
container
containerIdtomcat6x/containerId
typeremote/type
/container
configuration
typeruntime/type
properties
cargo.tomcat.manager.url
http://${cargo.host}/manager
/cargo.tomcat.manager.url

cargo.remote.usernameadmin/cargo.remote.username

cargo.remote.passwordadmin/cargo.remote.password
/properties
/configuration
deployer
typeremote/type
deployables
deployable
groupId${project.groupId}/groupId

artifactId${project.artifactId}/artifactId
typewar/type
properties
context${deploy.path}/context
/properties
pingURL
http://${cargo.host}/${deploy.path}
/pingURL
pingTimeout3/pingTimeout
/deployable
/deployables
/deployer
/configuration
/execution
/executions
/plugin
/plugins
/build

properties
deploy.path${project.artifactId}/deploy.path
cargo.hostlocalhost:8080/cargo.host
/properties
/profile


 
 This file doesn't have any -ve values in it. Am I missing something?
 There's -1 for the id. This is 1 table row from the sample data file.
row
value description=id-1/value
value description=usernameuser/value
value 
 description=password12dea96fec20593566ab75692c9949596833adc9/value
value description=first_nameTomcat/value
value description=last_nameUser/value
value description=address/value
value description=cityDenver/value
value description=countryUS/value
value description=emailmatt_rai...@yahoo.com/value
value description=phone_number/value
value description=postal_code80210/value
value description=provinceCO/value
value description=websitehttp://tomcat.apache.org/value
value description=password_hint![CDATA[A male 
 kitty.]]/value
value description=version1/value
value description=account_enabled1/value
value description=account_expired0/value
value 

Re: [appfuse-user] changed from spring to struts (still facing issues)

2010-11-04 Thread Matt Raible
If you set a CATALINA_HOME environment variable, Cargo will deploy the WAR to 
this server and run tests against it. If you're simply looking to copy your WAR 
to your server and run it, that's a different story (and I'm guessing what 
you're trying to do). The error from doing that is:

[INFO] [talledLocalContainer] ERROR [main] 
ContextLoader.initWebApplicationContext(215) | Context initialization failed
[INFO] [talledLocalContainer] 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource 
[META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Could not instantiate 
bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw 
exception; nested exception is java.lang.LinkageError: JAXB 2.0 API is being 
loaded from the bootstrap classloader, but this RI (from 
jar:file:/C:/Source/SP5SyncPoint/syncpoint/target/tomcat6x/container/webapps/syncpoint-1.0-SNAPSHOT/WEB-INF/lib/jaxb-impl-2.1.12.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
 needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in 
the bootstrap classloader. (See 
http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
[INFO] [talledLocalContainer]   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
[INFO] [talledLocalContainer]   at 
java.security.AccessController.doPrivileged(Native Method)

To fix, use Java 5 or see section 7.1.2 on the following page:

https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html

Hope this helps,

Matt

On Nov 4, 2010, at 9:12 AM, Vanessa Pacheco wrote:

 Matt,
 
 I made the changes you asked me to, but it seems to be something else I think.
 
 I ran mvn package and put the war in ${CATALINA_HOME}\webapps. However the 
 app won't start there either.
 
 I can't tell much from the log, but its attached. All the tests pass, then it 
 tries to start the app and freaks out there.
 
 I've attached 2 txt file, one from running the mvn command, and the other 
 from placing the war in my tomcat/webapps and starting tomcat (its what came 
 up in the command prompt)
 
 Thanks for all your help
 Vanessa
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 3, 2010 5:17:54 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] changed from spring to struts (still facing 
 issues)
 
 To use your local installation, you can set a CATALINA_HOME environment 
 variable that points to c:\tomcat6 and everything should work. You can also 
 hard-code c:\tomcat6 into the following property.
 
 cargo.container.home${env.CATALINA_HOME}/cargo.container.home
 
 On Nov 3, 2010, at 2:25 PM, Vanessa Pacheco wrote:
 
 I could continue with my spring installation if only I could get a handle on 
 how to get past the tests (error below). I would prefer deploying to my own 
 tomcat installation which is @ c:\tomcat6 (v. 6.0.18)
 
 I get the this error. how do i resolve it
 
 Login: 
 [INFO] 
  
 [ERROR] BUILD ERROR 
 [INFO] 
  
 [INFO] An Ant BuildException has occured: The following error occurred 
 while exe 
 cuting this line: 
 C:\Source\SyncPoint\src\test\resources\login.xmlf:1: HTTP error 404 
 
 404 Not Found for http://localhost:8081/SyncPoint-1.0-SNAPSHOT/ 
 
 Vanessa
 - Original Message -
 From: Vanessa Pacheco vpach...@bowmansystems.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 3, 2010 4:09:24 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] changed from spring to struts (still facing 
 issues)
 
 Would 2.1.0-M2-SNAPSHOT work, cos I don't see 2.0.2-M2-SNAPSHOT in the 
 drop-down to generate the archtype
 
 I'm looking at instructions on this page
 http://appfuse.org/display/APF/AppFuse+QuickStart
 
 Thanks for all your help. Sorry to bother so much
 Vanessa
 
 
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 3, 2010 3:43:56 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] changed from spring to struts (still facing 
 issues)
 
 The error you're seeing is caused

Re: [appfuse-user] starting with Appfuse 2 from scratch

2010-11-04 Thread Matt Raible
If you create a new app and run mvn install, does it work?

On Nov 4, 2010, at 8:54 PM, dan cmaj...@gmail.com wrote:

 I am using apache-tomcat-6.0.29,first i meet the same 404 error.as we 
 know,since tomcat6.x version,it add the memory detect module,but it is not so 
 smart,so i comment it,see below
 1.find server.xml in $TOMCAT_HOME/conf
 2.find the
 !-- Prevent memory leaks due to use of particular java/javax APIs
 Listener 
 className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  --
 3.mvn deploy
 so the 404 will not exist,but it then generate extra errors
 
 D:\workspace\DBSync\src\test\resources\login.xml:6: Wrong document title 
 found!.
 
 from 2010-11-3 22:12, Vanessa Pacheco say:
 Tried it, but I get the same 404 error.
 
 I already have tomcat installed in my c:\ dir that I use for my other 
 applications. Is it possible to make Appfuse use this tomcat (v. 6.0.18)? 
 What changes would I need to make to pom.xml and where else will I have to 
 make changes? Would there be any changes to this file 
 myproject/web/.settings/org.eclipse.wst.common.component??
 
 Thanks in advance for all of your help
 
 Vanessa
 - Original Message -
 From: dancmaj...@gmail.com
 To: users@appfuse.dev.java.net
 Sent: Tuesday, November 2, 2010 10:11:58 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 SyncPoint-1.0-SNAPSHOT now is your web namespace,but the first line in 
 login.xml still didn't change,
 let's seeinvoke description=get Login Page url=//
 so change the url=/ to url=/SyncPoint-1.0-SNAPSHOT maybe you can pass 
 the test,Good Luck
 
 
 On 2010-11-3 6:06, Matt Raible wrote:
 The port number is controlled by Cargo and properties in your pom.xml. If 
 you want to run it on a port other than the default, change the cargo.port 
 property in the bottom of pom.xml.
 
 On Nov 2, 2010, at 3:09 PM, Vanessa Pacheco wrote:
 
 That helped Matt. I copied the properties from the postgres profile to the 
 properties at the bottom of pom.xml. So I've now got my app talking with 
 postgres.
 
 Now I get this when I run mvn from within my project dir to download JARs, 
 Tomcat and run the integration tests in my project. I see the 3 tables in 
 my database (app_user, role, user_role), so its gotten past that stage. 
 This is the TESTS stage.
 
 Login:
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] An Ant BuildException has occured: The following error occurred 
 while exe
 cuting this line:
 C:\Source\SyncPoint\src\test\resources\login.xmlf:1: HTTP error 404
 
 404 Not Found for http://localhost:8081/SyncPoint-1.0-SNAPSHOT/
 
 Do I need to make some changes somewhere. I see localhost:8081 in there. 
 My tomcat isn't running (should it be running for the tests?). Also when I 
 run any of my tomcat apps I use localhost:8080, so I changed it to 8080 in 
 pom.xml. However, no luck still. What should I do here?
 
 
 Vanessa
 - Original Message -
 From: Matt Raiblem...@raibledesigns.com
 To: Vanessa Pachecovpach...@bowmansystems.com
 Cc: usersusers@appfuse.dev.java.net
 Sent: Tuesday, November 2, 2010 4:36:20 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 There might be issues with this working properly. If it's still talking to 
 MySQL, you might have to move the property values from the postgres 
 profile to the properties at the bottom of pom.xml (overriding the 
 default/mysql's properties).
 
 On Nov 2, 2010, at 1:56 PM, Vanessa Pacheco wrote:
 
 Matt,
 
 Did you mean mvn eclipse:eclipse -Ppostgres?
 
 I've added the following to pom.xml for the postgres profile
activation
activeByDefaulttrue/activeByDefault
/activation
 
 
 Vanessa
 - Original Message -
 From: Matt Raiblem...@raibledesigns.com
 To: Vanessa Pachecovpach...@bowmansystems.com
 Sent: Tuesday, November 2, 2010 3:38:01 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 Try running it with -Ppostgres - also look in pom.xml for the settings 
 for Postgres.
 
 
 On Tue, Nov 2, 2010 at 1:35 PM, Vanessa Pacheco   
 vpach...@bowmansystems.com   wrote:
 
 
 Hi all,
 
 I realized the mistake...I had to get into my prj folder to run the 
 command. However, now I get a mySQL access error Embedded error: Access 
 denied for user 'root'@'localhost' (using password: NO)
 
 Anyways, I want to use Appfuse 2 with postgres. How do I configure it to 
 use postgres?
 
 Vanessa
 
 
 
 - Original Message -
 From: Vanessa Pacheco   vpach...@bowmansystems.com
 To: users@appfuse.dev.java.net
 Cc: m...@raibledesigns.com
 Sent: Tuesday, November 2, 2010 2:08:58 PM (GMT-0500) America/New_York
 Subject: [appfuse-user] starting with Appfuse 2 from scratch
 
 Hi all,
 
 I'm starting from scratch with Appfuse 2.0.
 
 I've got Eclipse

Re: [appfuse-user] changed from spring to struts (still facing issues)

2010-11-03 Thread Matt Raible
When you say changed to use struts, did you create a new project or try to 
switch your own? Which version of AppFuse are you using?

On Nov 3, 2010, at 12:43 PM, Vanessa Pacheco wrote:

 I've changed to use struts now
 
 When I run mvn, all of my 17 tests fail. In one of the reports I see this (I 
 attached the error report). Where do I make changes?
 
 ---
 Test set: com.mycompany.webapp.webapp.action.SignupActionTest
 ---
 Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec  
 FAILURE!
 warning(junit.framework.TestSuite$1)  Time elapsed: 0 sec   FAILURE!
 junit.framework.AssertionFailedError: Exception in constructor: testExecute 
 (java.lang.Error: Unresolved compilation problem: 
   The declared package com.mycompany.webapp.action does not match the 
 expected package com.mycompany.webapp.webapp.action
 ==
 
 com.mycompany.webapp.action.SignupActionTest.txt-
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] changed from spring to struts (still facing issues)

2010-11-03 Thread Matt Raible
You should at least use 2.0.2. If that doesn't work, try 2.1.0-M2-SNAPSHOT.


On Wed, Nov 3, 2010 at 1:30 PM, Vanessa Pacheco
vpach...@bowmansystems.comwrote:

 I created a brand new project. I'm using Appfuse 2.0

 Vanessa
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 3, 2010 3:27:22 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] changed from spring to struts (still facing
 issues)

 When you say changed to use struts, did you create a new project or try
 to switch your own? Which version of AppFuse are you using?

 On Nov 3, 2010, at 12:43 PM, Vanessa Pacheco wrote:

  I've changed to use struts now
 
  When I run mvn, all of my 17 tests fail. In one of the reports I see this
 (I attached the error report). Where do I make changes?
 
 
 ---
  Test set: com.mycompany.webapp.webapp.action.SignupActionTest
 
 ---
  Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
  FAILURE!
  warning(junit.framework.TestSuite$1)  Time elapsed: 0 sec   FAILURE!
  junit.framework.AssertionFailedError: Exception in constructor:
 testExecute (java.lang.Error: Unresolved compilation problem:
The declared package com.mycompany.webapp.action does not match
 the expected package com.mycompany.webapp.webapp.action
  ==
 
 
 com.mycompany.webapp.action.SignupActionTest.txt-
  To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
  For additional commands, e-mail: users-h...@appfuse.dev.java.net


 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net



 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] changed from spring to struts (still facing issues)

2010-11-03 Thread Matt Raible
The error you're seeing is caused by a newer version of the archetype
plugin. The 2.0-alpha-5 version creates projects that have duplicate package
names (as you see below). This has been fixed in 2.0.2-M2-SNAPSHOT.

On Wed, Nov 3, 2010 at 1:40 PM, Vanessa Pacheco
vpach...@bowmansystems.comwrote:

 I haven't set up my smtp server, but I don't think that should affect the
 tests? since that is mainly for email stuff. Am I right?

 Attaching my pom.xml, since I made changes to use postgres. This is the
 only place I made changes. Did I have to make changes elsewhere (hibernate),
 since my tables have -ve values for primary key IDs.

 Vanessa
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 3, 2010 3:27:22 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] changed from spring to struts (still facing
 issues)

 When you say changed to use struts, did you create a new project or try
 to switch your own? Which version of AppFuse are you using?

 On Nov 3, 2010, at 12:43 PM, Vanessa Pacheco wrote:

  I've changed to use struts now
 
  When I run mvn, all of my 17 tests fail. In one of the reports I see this
 (I attached the error report). Where do I make changes?
 
 
 ---
  Test set: com.mycompany.webapp.webapp.action.SignupActionTest
 
 ---
  Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
  FAILURE!
  warning(junit.framework.TestSuite$1)  Time elapsed: 0 sec   FAILURE!
  junit.framework.AssertionFailedError: Exception in constructor:
 testExecute (java.lang.Error: Unresolved compilation problem:
The declared package com.mycompany.webapp.action does not match
 the expected package com.mycompany.webapp.webapp.action
  ==
 
 
 com.mycompany.webapp.action.SignupActionTest.txt-
  To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
  For additional commands, e-mail: users-h...@appfuse.dev.java.net


 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net


 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] changed from spring to struts (still facing issues)

2010-11-03 Thread Matt Raible
To use your local installation, you can set a CATALINA_HOME environment 
variable that points to c:\tomcat6 and everything should work. You can also 
hard-code c:\tomcat6 into the following property.

cargo.container.home${env.CATALINA_HOME}/cargo.container.home

On Nov 3, 2010, at 2:25 PM, Vanessa Pacheco wrote:

 I could continue with my spring installation if only I could get a handle on 
 how to get past the tests (error below). I would prefer deploying to my own 
 tomcat installation which is @ c:\tomcat6 (v. 6.0.18)
 
 I get the this error. how do i resolve it
 
 Login: 
 [INFO] 
  
 [ERROR] BUILD ERROR 
 [INFO] 
  
 [INFO] An Ant BuildException has occured: The following error occurred 
 while exe 
 cuting this line: 
 C:\Source\SyncPoint\src\test\resources\login.xmlf:1: HTTP error 404 
 
 404 Not Found for http://localhost:8081/SyncPoint-1.0-SNAPSHOT/ 
 
 Vanessa
 - Original Message -
 From: Vanessa Pacheco vpach...@bowmansystems.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 3, 2010 4:09:24 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] changed from spring to struts (still facing 
 issues)
 
 Would 2.1.0-M2-SNAPSHOT work, cos I don't see 2.0.2-M2-SNAPSHOT in the 
 drop-down to generate the archtype
 
 I'm looking at instructions on this page
 http://appfuse.org/display/APF/AppFuse+QuickStart
 
 Thanks for all your help. Sorry to bother so much
 Vanessa
 
 
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: users@appfuse.dev.java.net
 Sent: Wednesday, November 3, 2010 3:43:56 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] changed from spring to struts (still facing 
 issues)
 
 The error you're seeing is caused by a newer version of the archetype plugin. 
 The 2.0-alpha-5 version creates projects that have duplicate package names 
 (as you see below). This has been fixed in 2.0.2-M2-SNAPSHOT. 
 
 
 On Wed, Nov 3, 2010 at 1:40 PM, Vanessa Pacheco  vpach...@bowmansystems.com 
  wrote: 
 
 
 I haven't set up my smtp server, but I don't think that should affect the 
 tests? since that is mainly for email stuff. Am I right? 
 
 Attaching my pom.xml, since I made changes to use postgres. This is the only 
 place I made changes. Did I have to make changes elsewhere (hibernate), since 
 my tables have -ve values for primary key IDs. 
 
 
 Vanessa 
 - Original Message - 
 From: Matt Raible  m...@raibledesigns.com  
 To: users@appfuse.dev.java.net 
 Sent: Wednesday, November 3, 2010 3:27:22 PM (GMT-0500) America/New_York 
 Subject: Re: [appfuse-user] changed from spring to struts (still facing 
 issues) 
 
 
 
 
 When you say changed to use struts, did you create a new project or try to 
 switch your own? Which version of AppFuse are you using? 
 
 On Nov 3, 2010 , at 12:43 PM, Vanessa Pacheco wrote: 
 
 I've changed to use struts now 
 
 When I run mvn, all of my 17 tests fail. In one of the reports I see this (I 
 attached the error report). Where do I make changes? 
 
 ---
  
 Test set: com.mycompany.webapp.webapp.action.SignupActionTest 
 ---
  
 Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec 
  FAILURE! 
 warning(junit.framework.TestSuite$1)  Time elapsed: 0 sec   FAILURE! 
 junit.framework.AssertionFailedError: Exception in constructor: testExecute 
 (java.lang.Error: Unresolved compilation problem: 
   The declared package com.mycompany.webapp.action does not match the 
 expected package com.mycompany.webapp.webapp.action 
 == 
 
 com.mycompany.webapp.action.SignupActionTest.txt-
  
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
 For additional commands, e-mail: users-h...@appfuse.dev.java.net 
 
 
 - 
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
 For additional commands, e-mail: users-h...@appfuse.dev.java.net 
 
 
 - 
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
 For additional commands, e-mail: users-h...@appfuse.dev.java.net 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net

Re: [appfuse-user] integrating webtest-maven-plugin in AppFuse

2010-11-03 Thread Matt Raible
Thanks Josep! If there's a new release of the webtest-maven-plugin before
AppFuse's next release (this month), I'll make sure and switch to the
plugin.

On Fri, Oct 29, 2010 at 11:07 AM, Josep García jgar...@isigma.es wrote:

 Hello,
 I have succeded in the integration of webtest-maven-plugin into AppFuse
 2.0.2.
 Below is the diff.
 Beware, where it says 0.6.7-isigma, it means the trunk version of
 webtest-maven-plugin from the cvs repo:
 http://svn.codehaus.org/mojo/trunk/sandbox/webtest-maven-plugin

 It seems the webtest-maven-plugin-0.6.7-SNAPSHOT.jar artifact available in
 the maven repo is different from the one generated from a fresh checkout! I
 renamed the version in my local installation to 0.6.7-isigma so there is no
 mix-up.

 If you don't use the fresh one, you will get an error:

 Embedded error: import requires support in ProjectHelper
 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException:
 ...

 With these, you can do a mvn clean verify site and you'll get a nice
 Webtest report :-)
 Beware, I have configured it so it does not fail if any webtest fails.

 Cheers,
 Josep

 Diff:
 diff -r 82ed445c829b pom.xml
 --- a/pom.xmlFri Oct 29 18:36:06 2010 +0200
 +++ b/pom.xmlFri Oct 29 18:52:38 2010 +0200
 @@ -686,31 +686,19 @@
reporting
  plugins
  plugin
 -artifactIdmaven-changes-plugin/artifactId
 -/plugin
 -plugin
 -artifactIdmaven-checkstyle-plugin/artifactId
 +artifactIdmaven-surefire-report-plugin/artifactId
 +reportSets
 +reportSet
 +reports
 +reportreport-only/report
 +/reports
 +/reportSet
 +/reportSets
  /plugin
  plugin
  groupIdorg.codehaus.mojo/groupId
 -artifactIdcobertura-maven-plugin/artifactId
 -version2.0/version
 -/plugin
 -plugin
 -artifactIdmaven-javadoc-plugin/artifactId
 -/plugin
 -plugin
 -artifactIdmaven-jxr-plugin/artifactId
 -/plugin
 -plugin
 -artifactIdmaven-pmd-plugin/artifactId
 -configuration
 -linkXreftrue/linkXref
 -targetJdk1.5/targetJdk
 -/configuration
 -/plugin
 -plugin
 -artifactIdmaven-surefire-report-plugin/artifactId
 +artifactIdwebtest-maven-plugin/artifactId
 +version0.6.7-isigma/version
  /plugin
  /plugins
/reporting
 @@ -733,7 +721,7 @@
  wait${cargo.wait}/wait
  container

 containerId${cargo.container}/containerId
 -!--home${cargo.container.home}/home--
 +type${cargo.type}/type
  zipUrlInstaller
  url${cargo.container.url}/url
  installDir${installDir}/installDir
 @@ -765,50 +753,37 @@
  /executions
  /plugin
  plugin
 -artifactIdmaven-antrun-plugin/artifactId
 -version1.1/version
 -configuration
 -tasks
 -taskdef
 resource=webtest_base_relaxed.taskdef
 -classpath
 refid=maven.test.classpath/
 -/taskdef
 -mkdir dir=target/webtest-data/
 -!-- Delete old results file if it exists
 --
 -delete
 file=target/webtest-data/web-tests-result.xml/
 -!-- This is so the default will be used
 if no test case is specified --
 -property name=test
 value=run-all-tests/
 -echo level=infoTesting
 '${project.build.finalName}' with locale '${user.language}'/echo
 -ant
 antfile=src/test/resources/web-tests.xml target=${test}
 -property name=user.language
 value=${user.language}/
 -property name=webapp.name
 value=${project.build.finalName}/
 -property name=host
 value=${cargo.host}/
 -property name=port
 value=${cargo.port}/
 -/ant
 -/tasks
 -/configuration
 +groupIdorg.codehaus.mojo/groupId
 +

Re: [appfuse-user] starting with Appfuse 2 from scratch

2010-11-02 Thread Matt Raible
There might be issues with this working properly. If it's still talking to 
MySQL, you might have to move the property values from the postgres profile to 
the properties at the bottom of pom.xml (overriding the default/mysql's 
properties).

On Nov 2, 2010, at 1:56 PM, Vanessa Pacheco wrote:

 Matt,
 
 Did you mean mvn eclipse:eclipse -Ppostgres?
 
 I've added the following to pom.xml for the postgres profile
 activation
   activeByDefaulttrue/activeByDefault
 /activation
 
 
 Vanessa
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: Vanessa Pacheco vpach...@bowmansystems.com
 Sent: Tuesday, November 2, 2010 3:38:01 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 Try running it with -Ppostgres - also look in pom.xml for the settings for 
 Postgres. 
 
 
 On Tue, Nov 2, 2010 at 1:35 PM, Vanessa Pacheco  vpach...@bowmansystems.com 
  wrote: 
 
 
 Hi all, 
 
 I realized the mistake...I had to get into my prj folder to run the command. 
 However, now I get a mySQL access error Embedded error: Access denied for 
 user 'root'@'localhost' (using password: NO) 
 
 Anyways, I want to use Appfuse 2 with postgres. How do I configure it to use 
 postgres? 
 
 Vanessa 
 
 
 
 - Original Message - 
 From: Vanessa Pacheco  vpach...@bowmansystems.com  
 To: users@appfuse.dev.java.net 
 Cc: m...@raibledesigns.com 
 Sent: Tuesday, November 2, 2010 2:08:58 PM (GMT-0500) America/New_York 
 Subject: [appfuse-user] starting with Appfuse 2 from scratch 
 
 Hi all, 
 
 I'm starting from scratch with Appfuse 2.0. 
 
 I've got Eclipse Release 3.5.0. I don't know whats Callisto so I didn't 
 follow this step use Callisto (Software Update) to get plugins for 
 developing web and database-driven applications. Could someone shed some 
 light please, to a newbie 
 
 I also tried C:\Sourcemvn eclipse:eclipse to generate prj files, but I get 
 an error. 
 
 [INFO] 
  
 [INFO] Building Maven Default Project 
 [INFO]task-segment: [eclipse:eclipse] 
 [INFO] 
  
 [INFO] Preparing eclipse:eclipse 
 [INFO] No goals needed for project - skipping 
 [INFO] 
  
 [ERROR] BUILD ERROR 
 [INFO] 
  
 [INFO] Cannot execute mojo: eclipse. It requires a project with an existing 
 pom. 
 xml, but the build is not using one. 
 [INFO] 
  
 [INFO] For more information, run Maven with the -e switch 
 [INFO] 
  
 
 Can someone please help me with these steps. 
 
 Thank you 
 Vanessa 
 
 - 
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
 For additional commands, e-mail: users-h...@appfuse.dev.java.net 
 
 
 
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] starting with Appfuse 2 from scratch

2010-11-02 Thread Matt Raible
The port number is controlled by Cargo and properties in your pom.xml. If you 
want to run it on a port other than the default, change the cargo.port property 
in the bottom of pom.xml.

On Nov 2, 2010, at 3:09 PM, Vanessa Pacheco wrote:

 That helped Matt. I copied the properties from the postgres profile to the 
 properties at the bottom of pom.xml. So I've now got my app talking with 
 postgres.
 
 Now I get this when I run mvn from within my project dir to download JARs, 
 Tomcat and run the integration tests in my project. I see the 3 tables in my 
 database (app_user, role, user_role), so its gotten past that stage. This is 
 the TESTS stage.
 
 Login:
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] An Ant BuildException has occured: The following error occurred while 
 exe
 cuting this line:
 C:\Source\SyncPoint\src\test\resources\login.xmlf:1: HTTP error 404
 
 404 Not Found for http://localhost:8081/SyncPoint-1.0-SNAPSHOT/
 
 Do I need to make some changes somewhere. I see localhost:8081 in there. My 
 tomcat isn't running (should it be running for the tests?). Also when I run 
 any of my tomcat apps I use localhost:8080, so I changed it to 8080 in 
 pom.xml. However, no luck still. What should I do here?
 
 
 Vanessa
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: Vanessa Pacheco vpach...@bowmansystems.com
 Cc: users users@appfuse.dev.java.net
 Sent: Tuesday, November 2, 2010 4:36:20 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 There might be issues with this working properly. If it's still talking to 
 MySQL, you might have to move the property values from the postgres profile 
 to the properties at the bottom of pom.xml (overriding the default/mysql's 
 properties).
 
 On Nov 2, 2010, at 1:56 PM, Vanessa Pacheco wrote:
 
 Matt,
 
 Did you mean mvn eclipse:eclipse -Ppostgres?
 
 I've added the following to pom.xml for the postgres profile
activation
  activeByDefaulttrue/activeByDefault
/activation
 
 
 Vanessa
 - Original Message -
 From: Matt Raible m...@raibledesigns.com
 To: Vanessa Pacheco vpach...@bowmansystems.com
 Sent: Tuesday, November 2, 2010 3:38:01 PM (GMT-0500) America/New_York
 Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch
 
 Try running it with -Ppostgres - also look in pom.xml for the settings for 
 Postgres. 
 
 
 On Tue, Nov 2, 2010 at 1:35 PM, Vanessa Pacheco  vpach...@bowmansystems.com 
  wrote: 
 
 
 Hi all, 
 
 I realized the mistake...I had to get into my prj folder to run the command. 
 However, now I get a mySQL access error Embedded error: Access denied for 
 user 'root'@'localhost' (using password: NO) 
 
 Anyways, I want to use Appfuse 2 with postgres. How do I configure it to use 
 postgres? 
 
 Vanessa 
 
 
 
 - Original Message - 
 From: Vanessa Pacheco  vpach...@bowmansystems.com  
 To: users@appfuse.dev.java.net 
 Cc: m...@raibledesigns.com 
 Sent: Tuesday, November 2, 2010 2:08:58 PM (GMT-0500) America/New_York 
 Subject: [appfuse-user] starting with Appfuse 2 from scratch 
 
 Hi all, 
 
 I'm starting from scratch with Appfuse 2.0. 
 
 I've got Eclipse Release 3.5.0. I don't know whats Callisto so I didn't 
 follow this step use Callisto (Software Update) to get plugins for 
 developing web and database-driven applications. Could someone shed some 
 light please, to a newbie 
 
 I also tried C:\Sourcemvn eclipse:eclipse to generate prj files, but I 
 get an error. 
 
 [INFO] 
  
 [INFO] Building Maven Default Project 
 [INFO]task-segment: [eclipse:eclipse] 
 [INFO] 
  
 [INFO] Preparing eclipse:eclipse 
 [INFO] No goals needed for project - skipping 
 [INFO] 
  
 [ERROR] BUILD ERROR 
 [INFO] 
  
 [INFO] Cannot execute mojo: eclipse. It requires a project with an existing 
 pom. 
 xml, but the build is not using one. 
 [INFO] 
  
 [INFO] For more information, run Maven with the -e switch 
 [INFO] 
  
 
 Can someone please help me with these steps. 
 
 Thank you 
 Vanessa 
 
 - 
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net 
 For additional commands, e-mail: users-h...@appfuse.dev.java.net 
 
 
 
 
 
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail

Re: [appfuse-user] invalid repository url

2010-10-29 Thread Matt Raible
I'm not sure which artifact has this hard-coded in it. You might grep
through *.pom in your local repository.

On Fri, Oct 29, 2010 at 3:51 AM, Josep García jgar...@isigma.es wrote:

 While generating my project site, it gets to a point where it kind of
 freezes waiting for a timeout of an invalid repository url. See log below.
 How can I know which dependency is causing this? Can this be avoided?

 [INFO] Skipped Surefire Report report, file surefire-report.html
 already exists for the English version.
 [INFO] Generating Project Team report.
 [INFO] Generating Issue Tracking report.
 [INFO] Generating Surefire Report report.
 [WARNING] Unable to locate Test Source XRef to link to - DISABLED
 [INFO] Generating Continuous Integration report.
 [INFO] Generating Project Plugins report.
 [INFO] Generating Dependencies report.
 [WARNING] The repository url '
 http://s3.amazonaws.com/maven.springframework.org/release' is invalid -
 Repository 'spring-release' wi
 ll be blacklisted.
 [WARNING] The repository url '
 http://s3.amazonaws.com/maven.springframework.org/external' is invalid -
 Repository 'spring-external'
 will be blacklisted.
 [WARNING] The repository url 'http://snapshots.maven.codehaus.org/maven2'
 is invalid - Repository 'snapshots-maven-codehaus' will be
  blacklisted.

 Josep

   [image: isotipo isigma]
  Josep García Corral
 Ingeniero de Software
   isigma, la referencia en firma electrónica
 Tel. +34 932 387 108
 www.isigma.es

  [image: logotipo portasigma]
 ¡Prueba gratis la firma online! http://www.portasigma.com



Re: [appfuse-user] overriding default maven-reporting version?

2010-10-28 Thread Matt Raible
To override the version used in the super pom, add the dependency in your pom 
with the version you'd like to use.

On Oct 28, 2010, at 6:21 AM, Josep García wrote:

 Hey,
 I'm having problem in my AppFuse 2.0.2 project at generating the site:
 
 [INFO] Generating Project Team report.
 [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink 
 instance and no SinkFactory available. Please update this p
 gin.
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] 1
 [INFO] 
 
 [INFO] Trace
 java.lang.ArrayIndexOutOfBoundsException: 1
 at 
 org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)
 at 
 org.apache.maven.doxia.module.xhtml.XhtmlSink.tableHeaderCell(XhtmlSink.java:777)
 at 
 org.apache.maven.reporting.AbstractMavenReportRenderer.tableHeaderCell(AbstractMavenReportRenderer.java:267)
 at 
 org.apache.maven.reporting.AbstractMavenReportRenderer.tableHeader(AbstractMavenReportRenderer.java:356)
 at 
 org.apache.maven.report.projectinfo.TeamListReport$TeamListRenderer.renderBody(TeamListReport.java:160)
 at 
 org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:79)
 at 
 org.apache.maven.report.projectinfo.TeamListReport.executeReport(TeamListReport.java:58)
 at 
 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
 at 
 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:144)
 at 
 org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
 at 
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
 at 
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
 at 
 org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
 at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 at 
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 
 This seems to be related to the maven-reporting version. Apparently, version 
 2.1.1 should work, but I cannot override the version used by maven. Seems to 
 get the actual used version from the super pom. How can I override this? Or 
 else, any working alternative for generating my site?
 All told, I have tweaked my pom files many times, so they are not the default 
 AppFuse 2.0.2 ones!
 
 Josep
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: Will There Be Some JEE-Spring Appfuse Projects?

2010-10-17 Thread Matt Raible
http://raibledesigns.com/rd/entry/re_moving_from_spring_to

On Sun, Oct 17, 2010 at 5:38 PM, markwen bradley...@163.com wrote:


 Ok, I got the picture. Thanks for all the opinions.

 BTW, I think Seam is doing excellent job in simplifying enterprise Java
 programming. If I use JSF, I'd like to use Seam, instead of Spring, because
 the former solved lots of JSF issues.  And Hibernate + Spring is not a good
 combination, as it stated in the Seam official guide.


 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/Will-There-Be-Some-JEE-Spring-Appfuse-Projects-tp2714955p2999507.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] making hit in two different database

2010-10-11 Thread Matt Raible
Do you need to the core classes to hit different databases or just new
classes you create? It should be as easy as creating another datasource bean
(in applicationContext-resources.xml) and referencing it accordingly.

You might have to import the core classes into your project if you get an
error when two datasources exist.

http://appfuse.org/display/APF/AppFuse+Core+Classes

Matt

On Mon, Oct 11, 2010 at 12:54 AM, Anshu Dhamija 
a.dham...@mpstechnologies.com wrote:

 Hi

 I want to make the hit in two different databases using appfuse how can it
 be possible.

 Regards
 Anshu

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] How to Roll Tomcat stdout log file

2010-10-11 Thread Matt Raible
First Google result: http://www.minaret.biz/tips/log4j.html

On Fri, Oct 8, 2010 at 5:15 AM, Babu babu.ideas...@gmail.com wrote:


 Hi,

 I need to roll-out or rotate tomcat stdout log when its size exceeds.Any
 one
 can help me how to do with tomcat logging configuration.Am using Tomcat 6
 and windows 2008 server.

 Thanks
 G
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/How-to-Roll-Tomcat-stdout-log-file-tp2968140p2968140.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: appfuse:full-source failed

2010-10-06 Thread Matt Raible
Can you try removing local AppFuse artifacts (rm -r
~/.m2/repository/org/appfuse) and trying again. This should be fixed with
the latest snapshot build.

On Wed, Oct 6, 2010 at 12:24 AM, m_aliyar mohammedali@gmail.com wrote:


 Version of appfuse is 2.1.0-M2-SNAPSHOT
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/appfuse-full-source-failed-tp2529181p2964294.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] appfuse gen with different resource bundle

2010-10-06 Thread Matt Raible
Currently, it's not possible to change this as a configuration mechanism. If
you'd like to see it changed, please enter an issue in JIRA.

On Wed, Oct 6, 2010 at 8:27 AM, Josep García jgar...@isigma.es wrote:

 I am running appfuse:gen but get an error because I changed the default
 ApplicationResources.properties filename for resource bundle:

 [info] [AppFuse] Installing generated files (pattern: **/*.java)...
 [info] [AppFuse] Installing sample data for DbUnit...
 [info] [AppFuse] Installing Struts views and configuring...
 [info] [AppFuse] Installing generated files (pattern: **/model/*.xml)...
 [info] [AppFuse] Installing generated files (pattern:
 **/webapp/action/*.xml)...
 [info] [AppFuse] Installing i18n messages...
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Replace: source file
 E:\Projects\portasigma\modular\portasigma-web\src\main\resources\ApplicationResources.properties
 doesn't exist

 Any way of specifying a different resource bundle filename?

 Josep




Re: [appfuse-user] invinite loop ;)

2010-10-05 Thread Matt Raible
I'm not sure I understand the question and/or problem. Can you explain it in
simpler terms?

On Tue, Oct 5, 2010 at 3:54 AM, t...@dds.nl wrote:


 i had an infinite loop and could find why. after some debugging a found
 this very unexpectedly.
 matt did you know??
 jsp file:
 s:radio key=verbruikvergelijker.stadsverwarming
 list=stadsverwarmingOpties/

 corresponding action has this method

   public ListString getStadsverwarmingOpties() {
   ListString list = new ArrayListString();
   list.add(getText(stadsverwarmingOpties.ja)); // 1
   list.add(getText(stadsverwarming.opties.nee)); // 2
   return list;
}

 well line with comment 1 will call the method itself probably because the
 first part in gettext corresponds to the method name (prepended with 'get')

 i did not know this worked this why. thought getText would only search in
 the ApplicationResources.properties

 when i do this:

public ListString getStadsverwarmingOpties() {
ListString list = new ArrayListString();
// TODO (tibi) create enum
list.add(getText(test.stadsverwarming.opties.ja));
list.add(getText(test.stadsverwarming.opties.nee));
return list;
}

public String getTest() {
return test;
}

 the getTest method is called form the getText method. in the jsp this ends
 up:
 'test.stadsverwarming.opties.nee'
 so the test text is not shown suggesting that the getText method is still
 searching (and not finding because i did not put it there) the string
 'test.stadsverwarming.opties.nee' in the ApplicationResources.properties...

 is this a feature or a bug??


 tibi


 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Out of memory error !!! Is this is a reason?

2010-10-05 Thread Matt Raible
You should make sure your JAVA_OPTS or MAVEN_OPTS are set appropriately. I'd
set your JAVA_OPTS to -Xmx512M.

Matt

On Tue, Oct 5, 2010 at 2:49 AM, itsdipak itsdi...@gmail.com wrote:


 Hi,
 my application is giving out of memory error.
 i m using two models... E2work and Workdata.
 and i  want to add/update workdata on adding entry to e2work.
 what i had done is, i added workdatamanager with setter in e2work action .
 and in save method before saving im calling updateworkdata() method to save
 data to workdata.
 like
 in my e2workAction.java
 private GenericManagerE2work, Long e2workManager;
 private GenericManagerWorkData, Long workDataManager;
 .
 .
 .
  public void setE2workManager(GenericManagerE2work, Long e2workManager) {
this.e2workManager = e2workManager;

}
 public void setWorkDataManager(GenericManagerWorkData, Long
 workDataManager) {
this.workDataManager = workDataManager;
 }
 .
 .
 .
 .
  public String save() throws Exception {
 if(updateWorkData())
{
e2workManager.save(e2work);
}
return SUCCESS;
 }
 .
 .
 .
 ..
 public boolean updateWorkData()
{
 WorkData wd =new WorkData();
 wd.setJobNO(e2work.getJobNO());
wd.setType(e2work.getType());
wd.setStation(e2work.getStation());
workDataManager.save(wd);
 return true;
 }

 ===

 Is it a right process of doing it? if not please tell me the right way...
 :-(
 Waiting for your relpy...
 I am Using Appfuse Struts2 recent version of appfuse.

 Regards
 Dipak

 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/Out-of-memory-error-Is-this-is-a-reason-tp2955624p2955624.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: appfuse:full-source failed

2010-10-05 Thread Matt Raible
Which version of AppFuse are you using? I fixed this a few nights ago in 
2.1.0-M2-SNAPSHOT.

On Oct 5, 2010, at 11:39 AM, m_aliyar wrote:

 
 I tried with Maven 2.2.1 and project created successfully , but when I try to
 compile it shows 7 required artifacts are missing. full log is given below.
 
  [INFO] Scanning for projects...
 [INFO] Reactor build order: 
 [INFO]   AppFuse Modular Application
 [INFO]   AppFuse Modular Application - Core
 [INFO]   AppFuse Modular Application - Web (Spring MVC)
 [INFO]
 
 [INFO] Building AppFuse Modular Application
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
 [INFO] [install:install {execution: default-install}]
 [INFO] Installing D:\Java Programs\FixedAssets\pom.xml to C:\Users\Mohammed
 Ali\.m2\repository\RoyalSoft\FixedAssets\1.0-SNAPSHOT\FixedAssets-1.0-SNAPSHOT.pom
 [INFO]
 
 [INFO] Building AppFuse Modular Application - Core
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 8 resources
 Downloading:
 http://repo1.maven.org/maven2/commons-lang/commons-lang/${commons.lang.version}/commons-lang-${commons.lang.version}.pom
 [INFO] Unable to find resource
 'commons-lang:commons-lang:pom:${commons.lang.version}' in repository
 central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/log4j/log4j/${log4j.version}/log4j-${log4j.version}.pom
 [INFO] Unable to find resource 'log4j:log4j:pom:${log4j.version}' in
 repository central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.pom
 [INFO] Unable to find resource 'org.slf4j:slf4j-api:pom:${slf4j.version}' in
 repository central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/${slf4j.version}/jcl-over-slf4j-${slf4j.version}.pom
 [INFO] Unable to find resource
 'org.slf4j:jcl-over-slf4j:pom:${slf4j.version}' in repository central
 (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/${slf4j.version}/slf4j-log4j12-${slf4j.version}.pom
 [INFO] Unable to find resource
 'org.slf4j:slf4j-log4j12:pom:${slf4j.version}' in repository central
 (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/${spring.security.version}/spring-security-core-${spring.security.version}.pom
 [INFO] Unable to find resource
 'org.springframework.security:spring-security-core:pom:${spring.security.version}'
 in repository central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/springframework/security/spring-security-config/${spring.security.version}/spring-security-config-${spring.security.version}.pom
 [INFO] Unable to find resource
 'org.springframework.security:spring-security-config:pom:${spring.security.version}'
 in repository central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/${spring.security.version}/spring-security-core-${spring.security.version}.jar
 Downloading:
 http://repo1.maven.org/maven2/commons-lang/commons-lang/${commons.lang.version}/commons-lang-${commons.lang.version}.jar
 Downloading:
 http://repo1.maven.org/maven2/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.jar
 Downloading:
 http://repo1.maven.org/maven2/log4j/log4j/${log4j.version}/log4j-${log4j.version}.jar
 [INFO] Unable to find resource
 'org.springframework.security:spring-security-core:jar:${spring.security.version}'
 in repository central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/springframework/security/spring-security-config/${spring.security.version}/spring-security-config-${spring.security.version}.jar
 [INFO] Unable to find resource 'org.slf4j:slf4j-api:jar:${slf4j.version}' in
 repository central (http://repo1.maven.org/maven2)
 Downloading:
 http://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/${slf4j.version}/jcl-over-slf4j-${slf4j.version}.jar
 [INFO] Unable to find resource
 'commons-lang:commons-lang:jar:${commons.lang.version}' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] Unable to find resource 'log4j:log4j:jar:${log4j.version}' in
 repository central (http://repo1.maven.org/maven2)
 [INFO] Unable to find resource
 'org.springframework.security:spring-security-config:jar:${spring.security.version}'
 in repository central (http://repo1.maven.org/maven2)
 [INFO] Unable to find resource
 

Re: [appfuse-user] Re: Out of memory error !!! Is this is a reason?

2010-10-05 Thread Matt Raible
What version of Maven are you using? I'd suggest 2.2.1.

On Oct 5, 2010, at 12:32 PM, itsdipak wrote:

 
 thanks for the reply... i always wait for your valuable reply.. :-)
 
 
 i already set those as environment variables.
 
 Whether my procedure is right for updating the another model? or there is
 any better way to do that?
 
 analyzing memory dump it shows following info.. Also showing more memory
 usage for hashmap objects and string objects..
 
 ERROR:
 Problem Suspect 1
 
 One instance of org.apache.maven.project.DefaultMavenProjectBuilder loaded
 by org.codehaus.classworlds.RealmClassLoader @ 0x22e88af0 occupies
 24,820,560 (37.14%) bytes. The memory is accumulated in one instance of
 org.apache.maven.project.DefaultMavenProjectBuilder loaded by
 org.codehaus.classworlds.RealmClassLoader @ 0x22e88af0.
 
 Keywords
 org.apache.maven.project.DefaultMavenProjectBuilder
 org.codehaus.classworlds.RealmClassLoader @ 0x22e88af0
 
 http://appfuse.547863.n4.nabble.com/file/n2956633/chart16.png  
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/Out-of-memory-error-Is-this-is-a-reason-tp2955624p2956633.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: Incorporate a search region handling tables with foreign keys

2010-10-02 Thread Matt Raible
AMP is not able to properly generate a UI for relationships such as 
one-to-many. If you comment out the relationship for the generation, it should 
work. You can also copy the FreeMarker templates into your project if you want 
to try and modify things so it can generate a UI for relationships.

Matt

On Oct 2, 2010, at 3:44 AM, webmeiker wrote:

 
 This is Error trace:
 
 ERROR freemarker.runtime - 
 Method public java.lang.String
 org.hibernate.tool.hbm2x.pojo.EntityPOJOClass.generateJoinColumnsAnnotation(org.hibernate.mapping.Property,org.hibernate.cfg.Configuration)
 threw an exception when invoked on Entity: org.webmeiker.model.Localidades
 The problematic instruction:
 --
 == ${pojo.generateJoinColumnsAnnotation(property)} [on line 11, column 15
 in appfuse/model/Ejb3PropertyGetAnnotation.ftl]
 in include Ejb3PropertyGetAnnotation.ftl [on line 1, column 1 in
 appfuse/model/GetPropertyAnnotation.ftl]
 in include GetPropertyAnnotation.ftl [on line 9, column 5 in
 appfuse/model/PojoPropertyAccessors.ftl]
 in include PojoPropertyAccessors.ftl [on line 9, column 1 in
 appfuse/model/Pojo.ftl]
 --
 
 Java backtrace for programmers:
 --
 freemarker.template.TemplateModelException: Method public java.lang.String
 org.hibernate.tool.hbm2x.pojo.EntityPOJOClass.generateJoinColumnsAnnotation(org.hibernate.mapping.Property,org.hibernate.cfg.Configuration)
 threw an exception when invoked on Entity: org.webmeiker.model.Localidades
   at 
 freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136)
 --
 
 Just several observations:
 
 - No model class Localidades is created anywhere.
 - Provincias model class under
 ‘target/appfuse/generated-sources/org/webmeiker/model’ path and only under
 that path is ‘refactorized’ to add Localidad(es) Set. I mean, Provincias
 class under ‘src/main/java/org/webmeiker/model’ isn’t touched.
 
 Finally, this is the code of that refactorized Provincias model class
 (inside target/…/…):
 package org.webmeiker.model;
 
 /* imports omitted */
 
 @Entity
 @Table(name=provincias,catalog=pro1)
 public class Provincias extends BaseObject implements Serializable {
private Long id;
private String nombre;
private SetLocalidades localidadeses = new HashSetLocalidades(0);
 
@Id @GeneratedValue(strategy=IDENTITY) @GeneratedValue(strategy =
 GenerationType.AUTO)
public Long getId() {
return this.id;
}
 
public void setId(Long id) {
this.id = id;
}
 
@Column(name=nombre, nullable=false, length=50)
public String getNombre() {
return this.nombre;
}
 
public void setNombre(String nombre) {
this.nombre = nombre;
}
 @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY,
 mappedBy=provincias)
public SetLocalidades getLocalidadeses() {
return this.localidadeses;
}
 
public void setLocalidadeses(SetLocalidades localidadeses) {
this.localidadeses = localidadeses;
}
 
 /* equals, toString and hashCode omitted */
 
 }
 
 Thanks!
 
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/Incorporate-a-search-region-handling-tables-with-foreign-keys-tp2714244p2952303.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: Incorporate a search region handling tables with foreign keys

2010-10-01 Thread Matt Raible
What is the failure message?

On Oct 1, 2010, at 6:57 AM, webmeiker wrote:

 
 It doesn’t matters Mr. Raible ;-)
 I have started doing the work:
 
 1.
 CREATE TABLE localidades(
 id int NOT NULL AUTO_INCREMENT ,
 nombre varchar( 100 ) NOT NULL ,
 fk_provincia int NOT NULL ,
 PRIMARY KEY ( id ) ,
 INDEX fk_provincia_ind( fk_provincia ) ,
 FOREIGN KEY ( fk_provincia ) REFERENCES provincias( id ) ON DELETE RESTRICT
 ) TYPE = innodb;
 
 OK!!
 
 2. 
 appfuse:gen-model -Dentity=localidades
 
 fails!!
 
 I’ am wondering myself If I have to delete the work done for provincias
 before doing localidades work. When all cleaned, then launch first
 appfuse:gen-model -Dentity=localidades
 and then appfuse:gen-model -Dentity=provincias
 
 (I tell you this as a curiosity, because now I’m involved in other
 things...)
 
 Thank you anyway!
 
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/Incorporate-a-search-region-handling-tables-with-foreign-keys-tp2714244p2902090.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: Get id of newly inserted record

2010-09-30 Thread Matt Raible
Try calling super.flush() to get the object persisted. 

On Sep 30, 2010, at 12:43 AM, itsdipak wrote:

 
 I m using  Hibernate..
 but the id value is null if i try to get id as you said..
 please help me out
 :-(
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/Get-id-of-newly-inserted-record-tp2720150p2720252.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Incorporate a search region handling tables with foreign keys

2010-09-30 Thread Matt Raible
If you haven't gotten an answer by now, it sounds like no one has an answer.
Sorry about that.

On Sun, Sep 26, 2010 at 4:37 AM, webmeiker i...@webmeiker.com wrote:


 Hi,

 While I continue learning AppFuse and playing with it (Spring MVC basic
 archetype) I have completed the first steps which consisted in:

 1.  Creating a new MySQL table (called provinces; with and Id and a
 Name
 columns).
 2.  Creating the model stuff (with mvn appfuse:gen-model
 -Dentity=provinces).
 3.  Creating the CRUD material (with mvn appfuse:gen
 -Dentity=Provinces)

 Now, before doing the next steps, which are:
 4.  In the provinces.jsp in which the province list is displayed,
 incorporate
 a search region before the table (one name input field and a search
 button).
 5.  Repeat the same steps (1 to 4) for a table called villages (or
 locations), which have a foreign key (fk_province) to connect this table
 with the provinces one.

 …I want to ask the community for examples of these two things. Or if
 AppFuse
 includes some mvn commands to automate the process. (??)

 (I trust other talented people work would avoid me to reinvent the wheel
 again and accelerate the development process a lot).

 Thanks in advance.

 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/Incorporate-a-search-region-handling-tables-with-foreign-keys-tp2714244p2714244.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Will There Be Some JEE-Spring Appfuse Projects?

2010-09-30 Thread Matt Raible
AppFuse uses Spring because back in the day (2003) when I started it, people
were using EJB and it was clunky and cumbersome. Spring came along in 2004
and changed everything. When I integrated it into AppFuse, I was able to
reduce a lot of code and make things a fair amount simpler.

Fast forward 5 years and I believe that Spring still gives you all the power
of Java EE, in a servlet container. Sure you can use GlassFish or JBoss with
Java EE 6, but I've often found the Spring documentation to be better than
Java EE's. The good news is there's nothing in AppFuse preventing you from
using JEE. You can use JMS, you can use JPA, you can even use JSF.

In my experience, a full scale container like GlassFish or JBoss leads to
less scalability than lightweight containers like Tomcat and Jetty. Your
best bet to scale infinitely is to use a stateless architecture with lots of
caching rather than a clustered session architecture like many full scale
containers promote.

Of course, I'm always interested in hearing others opinions on this subject.

On Sun, Sep 26, 2010 at 11:36 PM, markwen bradley...@163.com wrote:


 Hi everyone,

 I've been a fan of Appfuse for several years, and I always liked it.

 However, it seems that all Appfuse projects are simply spring + web
 framework projects, and none of them are under the JEE architecture(with
 EJB
 / JMS and a full scale container etc.). While JEE is very popular in the
 industry, especially in bigger companies, it's very important for us to get
 known better of such kind of powerful features provided by Java, to make a
 remarkable career :).

 So I am wondering that whether it is possible Appfuse will roll out some
 real JEE + Spring projects?

 Of course you can google, observe, learn, and make one for yourself, but
 that doesn't mean it's easy, straightforward, and embraces the best
 practices of modern JEE. There are also lots of debates about the
 overlapping of JEE and Spring.

 Just a thought. Hope some people agree with me.

 Thanks.

 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/Will-There-Be-Some-JEE-Spring-Appfuse-Projects-tp2714955p2714955.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




[appfuse-user] New Tutorial: Clustering with Terracotta

2010-09-30 Thread Matt Raible
This tutorial describes how to integrate
Terracottahttp://www.terracotta.org/(TC) into AppFuse using the TC
Maven 
Pluginhttp://forge.terracotta.org/releases/projects/tc-maven-plugin/configuration.html.
We hence assume that you have a general understanding of what these
applications can do. At the end of this tutorial, you should have a TC
enabled application capable of scaling up to several thousands of
simultaneous users within a few clicks

Since Terracotta is a library used to cluster data seamlessly amongst many
nodes, we'll be sharing parts of the info that are running in every instance
of AppFuse amongst n-number of Jetty Servers.
http://appfuse.org/display/APF/Clustering+with+Terracotta

Many thanks to Ayman Abou Hamra for writing this up!
 http://www.setic.eu/


Re: [appfuse-user] powered by AppFuse

2010-09-30 Thread Matt Raible
Looks like the last time I updated our Powered By page was 2007. If you've
put an AppFuse application in production since then, please reply to this
thread or update the following wiki page.

http://appfuse.org/display/APF/Powered+By+AppFuse

Thanks!

On Wed, Jun 23, 2010 at 9:34 AM, Matt Raible m...@raibledesigns.com wrote:

 Sweet! Thanks for letting us know. Well done!

 2010/6/23 Josep García jgar...@isigma.es

 One for the list:

 http://www.portasigma.com

 Electronic signature online for PDF documents.

 Josep





Re: [appfuse-user] Re: appfuse:full-source failed

2010-09-29 Thread Matt Raible
This looks like a Maven 3 issue. Can you try with Maven 2.2.1?

On Wed, Sep 29, 2010 at 2:50 AM, m_aliyar mohammedali@gmail.com wrote:


 Here is the command I used to create the project:


 mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes
 -DarchetypeArtifactId=appfuse-modular-spring-archetype
 -DarchetypeVersion=2.1.0-M2-SNAPSHOT -DgroupId=RoyalSoft
 -DartifactId=FixedAsset
 -DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/appfuse-full-source-failed-tp2529181p2718556.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Get id of newly inserted record

2010-09-29 Thread Matt Raible
If you're using Hibernate or JPA, it's as simple as calling the following
after a save:

Long newId = e8workReport.getId();

Hope this helps,

Matt

On Wed, Sep 29, 2010 at 9:58 PM, itsdipak itsdi...@gmail.com wrote:


 Hi,
 How to get id for the newly inserted record? I want to save that id in
 another table.

 In My action, in save method

 e8workReportManager.save(e8workReport);


 After this i want to insert this newly created id in e2work table.
 currently what im doing  is-
 ListE8workReport e8mList  = e8workReportManager.getAll(order by id DESC
 LIMIT 1);
 (added getAll(String) in generic manager to get ordered list)
 then
 Long newid = e8mList .get(0).getId();

 then i m saving this 'newid' in required table.
 I know this is wrong and lengthy way in doing.
 Please suggest me the correct way of doing it.

 Waiting for reply


 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/Get-id-of-newly-inserted-record-tp2720150p2720150.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: canoo webtest report for maven site?

2010-09-28 Thread Matt Raible
Here's the response I received from Siegfried:


Hi Josep,

+) I actually have an integration test using external entity references
(it9)

+) what Maven version are you using (for the records) - I'm on Maven 2.2.1

+) I found an old email where this problem was solved - I changed the code
accordingly and committed into the Codehaus SVN. Can you get a fresh
checkout, install the plugin and give it another go

+) success stories are also welcome ... :-)

Thanks in advance

Siegfried Goeschl


On Tue, Sep 28, 2010 at 8:37 AM, dtops friendlymo...@yahoo.com wrote:


 Did anyone get this to work?  We are trying to integrate automated tests
 with
 Canoo's webtest as well and have run into the same error;Embedded
 error:
 import requires support in ProjectHelper

 Did Sigfried get back to you?  please post the solution if there was one
 Thanks!!
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/canoo-webtest-report-for-maven-site-tp2544079p2717296.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: mapping ListString

2010-09-28 Thread Matt Raible
I'm not sure when persistence 2.0 will show up in the repo. You might try
asking the Hibernate folks or the Maven guys. I'd track it down, but I have
enough to do trying to get 2.1.0 out the door. ;-)

On Tue, Sep 28, 2010 at 5:08 PM, jackalista j...@twaxx.com wrote:


 Thanks, yeah,  I was afraid it would turn out to be something like this.
 This is a client side project, and doesn't warrant such effort to address
 two fields as the point is made architecturally without going to such
 lengths but I am introducing AppFuse to these folks as it's very much
 within
 their design parameters... I suspect they'll like it.

 I'm betting that persistence-2.0 eventually will show up in the
 aforementioned repo, is that correct by your estimation?

 -=j=-

 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/mapping-List-String-tp2549056p2718099.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: mapping ListString

2010-09-23 Thread Matt Raible
The persistence dependencies are in appfuse-data-common's pom.xml. The
hardest part of upgrading is it doesn't seem like there's a 2.0 version of
the dependencies in Maven's repo. In an ideal world, you could simply do the
following in your core/pom.xml:

dependency
groupIdjavax.persistence/groupId
artifactIdpersistence-api/artifactId
version2.0/version
/dependency

But it doesn't work. You might try downloading the JAR yourself and
installing it or use something like the following tutorial and exclude the
above dependency.

http://paulszulc.wordpress.com/2010/01/09/jpa-2-0-and-spring-3-0-with-maven/

Hope this helps,

Matt

On Wed, Sep 22, 2010 at 6:21 PM, jackalista j...@twaxx.com wrote:


 OK, this stuff is in java persistence 2.0, we're using 1.0, but I didn't
 see
 any reference to it in either the top level pom.xml or the core pom.xml
 (I'm
 using a modular archetype).

 I would much rather stick to the javax.persistence.* annotations.  Will all
 hell break loose if I do upgrade to 2.0?  I'd think not, it looks like
 there
 were mostly additions rather than changes...  Anybody know how I can pull
 in
 the 2.0 version?
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/mapping-List-String-tp2549056p2551254.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] hibernate id

2010-09-23 Thread Matt Raible
I'm not against using it. Do you want to try and make it work and create a
patch in JIRA if you succeed?

On Thu, Sep 23, 2010 at 7:04 AM, t...@dds.nl wrote:


 hi matt,

 just came accross this in the hibernate documentation:

 Important

 We recommend all new projects to use
 hibernate.id.new_generator_mappings=true as the new generators are more
 efficient and closer to the JPA 2 specification semantic. However they are
 not backward compatible with existing databases (if a sequence or a table is
 used for id generation). See Section 1.3, ?Properties? for more information
 on how to activate them.



 http://docs.jboss.org/hibernate/stable/annotations/reference/en/html/entity.html

 need to add this to appfuse??


 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: mapping ListString

2010-09-22 Thread Matt Raible
AFAICT, it looks like this annotation is part of the JPA 2.0 API.

http://grepcode.com/search?query=javax+persistence+CollectionTablestart=0entity=typen=

On Wed, Sep 22, 2010 at 5:50 PM, jackalista j...@twaxx.com wrote:


 No, I had found some other reference, but this one is better, thanks.  I am
 trying to use a collection of basic types, as spec'ed in the doc you
 referenced but am getting import cannot be resolved errors for
 annotations
 like @ElementCollection and @CollectionTable.

 Does this mean that we're missing a jar?  I'm surprised that these
 annotation are pitching a fit but haven't found any reference to their
 being
 contained in an optional jar or something like that.  I looked in
 persistence-api-1.0.jar and while the normal annotations we use for
 collections involving mapped classes are all there. these annotations for
 basic types, in my case a ListString or SetString, definitely aren't
 in this jar file.   Where are these puppies squirreled away, any clue?


 Here are the exceptions:


 /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:19:0::0
 The import javax.persistence.ElementCollection cannot be resolved
 error at import javax.persistence.CollectionTable;
   

 /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:20:0::0
 The import javax.persistence.CollectionTable cannot be resolved
 error at @ElementCollection
  ^^

 /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:240:0::0
 ElementCollection cannot be resolved to a type
 error at @CollectionTable(name=permitted_catalogs,
 joincolum...@joincolumn(name=id))
  

 /home/jack/java/foo/af/poc/schema/fooosssoa/core/src/main/java/com/foo/mdm/poc/model/Profile.java:241:0::0
 CollectionTable cannot be resolved to a type


 -=j=-
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/mapping-List-String-tp2549056p2551243.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: problem with hibernate tutorial imports for annotations

2010-09-20 Thread Matt Raible
I don't think it needs to be documented because your project is the first one 
I've seen with this attribute. Folks should be able to search the archives for 
the error if they see a similar issue.

On Sep 20, 2010, at 1:17 PM, jackalista wrote:

 
 Hey, while it's fresh in my mind, should I put a note regarding this name=
 attribute of session-factory in the tutorial for Dao's?  I created a new
 project to look at fullsource stuff and that project didn't have this
 strange attribute (name=).  I am pretty damn sure I didn't manually put
 that in my regular (non-fullsource) project, so I'm not sure how it got in
 there but if you want me to write up a note about it, let me know... thanks
 again Matt
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/problem-with-hibernate-tutorial-imports-for-annotations-tp2541421p2547547.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: restarting Jetty to take the changes in the app on the fly

2010-09-20 Thread Matt Raible
If you use jetty:run-war, Jetty is looking at your WAR and when you change 
things, it won't see them. I'd recommend using jetty:run and only jetty:run.

On Sep 20, 2010, at 2:26 PM, webmeiker wrote:

 
 I’ am working with the appfuse-basic-spring-archetype (2.1.0-M1). 
 
 I use Eclipse Helios and launch all the Maven commands via m2eclipse plugin
 (Run as - Maven build …)
 
 For example, if I simply change the order of menu options in
 menu-config.xml, save and do maven jetty:run, changes aren’t reflected.
 
 What are the steps you do?
 1.Mvn jetty:run-war
 2.Modify some file (.jsp, .xml)
 3.(Stop the maven console or not?)
 4.Mvn jetty:run (in different console?)
 
 Have I forgotten something?
 Thanks!
 
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/restarting-Jetty-to-take-the-changes-in-the-app-on-the-fly-tp2546190p2547629.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] add new class error

2010-09-17 Thread Matt Raible
Have you read the AppFuse tutorials?

http://appfuse.org/display/APF/Tutorials

They should help you figure out the issue. 

If you don't know much about Spring, you might start by reading up on Spring 
and learning what the error message means.

On Sep 17, 2010, at 12:57 AM, Cody zhang wrote:

 Hi,Matt
 I will add something on xml file when new project class?
 applicationContext-struts.xml
 hibernate.cfg.xml
 
 How do it?
 
 Best Regards,
 --Cody.Zhang 
 
 
 2010/9/17 Matt Raible m...@raibledesigns.com
 Did you create a PersonDao interface and implementation in your project? If 
 so, did you register them in an XML file or with annotations? If so, what 
 version of AppFuse are you using?
 
 2010/9/16 Cody Zhang codyzhang.w...@gmail.com
 Hi,All
Can you help me?
   error:
 
 
 Unable to instantiate Action, projectAction,  defined for 'project' in 
 namespace '/'Error creating bean with name 'projectAction' defined in 
 ServletContext resource [/WEB-INF/applicationContext-struts.xml]: Cannot 
 resolve reference to bean 'projectManager' while setting bean property 
 'projectManager'; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'projectManager': Autowiring of methods failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 method: public void 
 com.infowarelab.service.impl.ProjectManagerImpl.setProjectDao(com.infowarelab.dao.ProjectDao);
  nested exception is 
 org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique 
 bean of type [com.infowarelab.dao.ProjectDao] is defined: Unsatisfied 
 dependency of type [interface com.infowarelab.dao.ProjectDao]: expected at 
 least 1 matching bean
 
 
 
 
 Best Regards,
 --Cody.Zhang 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 



Re: [appfuse-user] 'oversubscribed literal/length tree' error message

2010-09-17 Thread Matt Raible
I haven't seen this error before. I'd suggest trying mvn clean and if that 
doesn't work, try using a newer version of the plugin.

On Sep 17, 2010, at 3:57 AM, webmeiker wrote:

 
 Yesterday my AppFuse installation works, today doesn´t.
 
 When I launch the mvn jetty:run-war it complains with the next log:
 
 Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile
 (default) on project pro1: Error in component graph of plugin
 org.codehaus.mojo:aspectj-maven-plugin:1.2: Error reading configuration
 jar:file:/F:/.m2/repository/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar!/META-INF/plexus/components.xml:
 oversubscribed literal/length tree
 
 Does somebody knows how to fix it?
 Is this error familiar to you?
 
 thanks!
 
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/oversubscribed-literal-length-tree-error-message-tp2543636p2543636.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] canoo webtest report for maven site?

2010-09-17 Thread Matt Raible
I've been meaning to integrate the webtest-maven-plugin for quite some time, 
just haven't got around to it. You might try it.

http://mojo.codehaus.org/webtest-maven-plugin/

Please let me know if you get it to work.

Matt

On Sep 17, 2010, at 10:09 AM, Josep García wrote:

 We currently use Appfuse 2.0.2.
 In our pom we have an integration-test profile which runs Canoo webtests. See 
 below.
 How can we add generation of the Canoo webtest reports and include in the 
 maven site generation?
 
 profile
 idintegration-test/id
 activation
 property
 name!maven.test.skip/name
 /property
 /activation
 build
 plugins
 plugin
 groupIdorg.codehaus.cargo/groupId
 artifactIdcargo-maven2-plugin/artifactId
 version0.3/version
 configuration
 wait${cargo.wait}/wait
 container
 containerId${cargo.container}/containerId
 !--home${cargo.container.home}/home--
 zipUrlInstaller
 url${cargo.container.url}/url
 installDir${installDir}/installDir
 /zipUrlInstaller
 /container
 configuration
 
 home${project.build.directory}/${cargo.container}/container/home
 properties
 
 cargo.hostname${cargo.host}/cargo.hostname
 
 cargo.servlet.port${cargo.port}/cargo.servlet.port
 /properties
 /configuration
 /configuration
 executions
 execution
 idstart-container/id
 phasepre-integration-test/phase
 goals
 goalstart/goal
 /goals
 /execution
 execution
 idstop-container/id
 phasepost-integration-test/phase
 goals
 goalstop/goal
 /goals
 /execution
 /executions
 /plugin
 plugin
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 configuration
 tasks
 taskdef 
 resource=webtest_base_relaxed.taskdef
 classpath refid=maven.test.classpath/
 /taskdef
 mkdir dir=target/webtest-data/
 !-- Delete old results file if it exists --
 delete 
 file=target/webtest-data/web-tests-result.xml/
 !-- This is so the default will be used if 
 no test case is specified --
 property name=test value=run-all-tests/
 echo level=infoTesting 
 '${project.build.finalName}' with locale '${user.language}'
 /echo
 ant 
 antfile=src/test/resources/web-tests.xml target=${test}
 property name=user.language 
 value=${user.language}/
 property name=webapp.name 
 value=${project.build.finalName}/
 property name=host 
 value=${cargo.host}/
 property name=port 
 value=${cargo.port}/
 /ant
 /tasks
 /configuration
 executions
 execution
 phaseintegration-test/phase
 goals
 goalrun/goal
 /goals
 /execution
 /executions
 dependencies
 dependency
 groupIdcom.canoo.webtest/groupId
 artifactIdwebtest/artifactId
 version${webtest.version}/version
 !-- groovy-all doesn't have a pom in central 
 repo --

Re: [appfuse-user] canoo webtest report for maven site?

2010-09-17 Thread Matt Raible
] 
 
 [INFO] Executing 
 E:\Projects\portasigma\modular\portasigma-web\target\test-classes\web-tests.xml
  failed
 
 Embedded error: import requires support in ProjectHelper
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Executing 
 E:\Projects\portasigma\modular\portasigma-web\target\test-classes
 web-tests.xml failed
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 at 
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Executing 
 E:\Projects\portasigma\modular\portasigma-web\target\test-class
 es\web-tests.xml failed
 at 
 org.codehaus.mojo.webtest.WebtestTestMojo.execute(WebtestTestMojo.java:64)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
 ... 17 more
 Caused by: 
 E:\Projects\portasigma\modular\portasigma-web\target\test-classes\web-tests.xml:21:
  import requires support in ProjectHel
 per
 at 
 org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:100)
 at 
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
 at org.apache.tools.ant.Task.perform(Task.java:348)
 at org.apache.tools.ant.Target.execute(Target.java:357)
 at 
 org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
 at 
 org.codehaus.mojo.webtest.components.AntExecutor.init(AntExecutor.java:65)
 at 
 org.codehaus.mojo.webtest.WebtestTestMojo.execute(WebtestTestMojo.java:59)
 ... 19 more
 
 
 2010/9/17 Matt Raible m...@raibledesigns.com
 I've been meaning to integrate the webtest-maven-plugin for quite some time, 
 just haven't got around to it. You might try it.
 
 http://mojo.codehaus.org/webtest-maven-plugin/
 
 Please let me know if you get it to work.
 
 Matt
 
 On Sep 17, 2010, at 10:09 AM, Josep García wrote:
 
 We currently use Appfuse 2.0.2.
 In our pom we have an integration-test profile which runs Canoo webtests. 
 See below.
 How can we add generation of the Canoo webtest reports and include in the 
 maven site generation?
 
 profile
 idintegration-test/id
 activation
 property
 name!maven.test.skip/name
 /property
 /activation
 build
 plugins
 plugin
 groupIdorg.codehaus.cargo/groupId
 artifactIdcargo-maven2-plugin/artifactId
 version0.3/version
 configuration
 wait${cargo.wait}/wait
 container
 containerId${cargo.container}/containerId

Re: [appfuse-user] problem with hibernate tutorial imports for annotations

2010-09-16 Thread Matt Raible
Comments inline below...

On Sep 15, 2010, at 6:34 PM, jackalista wrote:

 
 Hi,
 
 I'm using the modular struts archetype, this is my command for creating the
 project:
 
 mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes
 -DarchetypeArtifactId=appfuse-modular-struts-archetype
 -DarchetypeVersion=2.1.0-M1 -DgroupId=com.foo.commerce.poc -DartifactId=mdm
 
 I am following the hibernate tutorial and there are missing imports, I have
 sorted all of them out except the @ExpectedException one for test method
 testAddAndRemovePerson.
 
 I'm getting this exception without any import for this:
 
 [INFO] Compilation failure
 /home/jack/java/foo/af/poc/mdm/core/src/test/java/com/foo/commerce/poc/dao/PersonDaoTest.java:[24,5]
 cannot find symbol
 symbol  : class ExpectedException
 location: class com.nike.commerce.poc.dao.PersonDaoTest
 
 I searched the archives for ExpectedException and found a possible import
 statement in a few posts which is this:
 
 import org.springframework.test.annotation.ExpectedException;
 
 However, while this builds, when I run the test all hell breaks loose and
 I'm getting a really strange excpetion I've never seen before from an
 appfuse project, is this the wrong import or what's the problem here?  The
 exception I'm getting is the following, which starts out talking about an
 initial context problem?!?!?  Any help would be greatly appreciated, thanks!
 
 
 ---
 T E S T S
 ---
 Running com.foo.commerce.poc.dao.PersonDaoTest
 [core] WARN [main] SessionFactoryObjectFactory.addInstance(121) | Could not
 bind factory to JNDI
 javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property, or as an applet parameter, or in an
 application resource file:  java.naming.factory.initial
   at 
 javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
   at 
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
   at

I haven't seen this before, so I'm guessing Hibernate isn't getting initialized 
correctly.

snip/

 
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
 [core] ERROR [main] TestContextManager.prepareTestInstance(258) | Caught
 exception while allowing TestExecutionListener
 [org.springframework.test.context.support.dependencyinjectiontestexecutionliste...@189a773]
 to prepare test instance [com.foo.commerce.poc.dao.persondaot...@509df8]
 org.springframework.beans.factory.BeanCreationException: Error creating bean
 with name 'com.foo.commerce.poc.dao.PersonDaoTest': Autowiring of fields
 failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not autowire
 field: private com.foo.commerce.poc.dao.PersonDao
 com.foo.commerce.poc.dao.PersonDaoTest.personDao; nested exception is
 org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique
 bean of type [com.foo.commerce.poc.dao.PersonDao] is defined: Unsatisfied
 dependency of type [interface com.foo.commerce.poc.dao.PersonDao]: expected
 at least 1 matching bean

Do you have implementations of PersonDao in your project? If so, does it 
contain a @Repository annotation?


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: problem with hibernate tutorial imports for annotations

2010-09-16 Thread Matt Raible
If you look in the Spring XML files, there's a component-scan tag that tells 
Spring what packages to look in.

On Sep 16, 2010, at 10:01 AM, jackalista j...@twaxx.com wrote:

 
 OK, I'm *not* going to use the package from the tutorial code... Since the
 archetype creation went and created the folders for my packages, it looks
 like that is working properly, and so I'm guessing (but don't know for sure)
 that this package thing isn't the problem... ifanybody knows differently
 tough, please tell me!
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/problem-with-hibernate-tutorial-imports-for-annotations-tp2541421p2542500.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 

-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: problem with hibernate tutorial imports for annotations

2010-09-16 Thread Matt Raible
What's the strange new exception you're referring to? The Hibernate JNDI 
error, the can't fine class error or uncaught exception issue?

Feel free to zip up your project and send to me and I can try to reproduce.

On Sep 16, 2010, at 10:26 AM, jackalista wrote:

 
 Yes, I saw that, it's set to the correct package, this is from
 core/src/main/resources/applicationContext.xml:
 
 context:component-scan base-package=com.foo.commerce.poc/
 
 I am thinking that this is not related to that strange new exception, but do
 you disagree?  Should I regenerate a project using org.appfuse.tutorial?
 
 
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/problem-with-hibernate-tutorial-imports-for-annotations-tp2541421p2542554.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: problem with hibernate tutorial imports for annotations

2010-09-16 Thread Matt Raible
m...@raibledesigns.com

On Thu, Sep 16, 2010 at 10:55 AM, jackalista j...@twaxx.com wrote:


 Thanks, what's your email address? [or how do you want me to get it to you,
 it's been a while since I've done this so I've lost your coordinates].

 I will run through the rest of the dao test stuff and see if I can solve
 this myself but will send it to you if I get back to the same exception;...
 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/problem-with-hibernate-tutorial-imports-for-annotations-tp2541421p2542595.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: problem with hibernate tutorial imports for annotations

2010-09-16 Thread Matt Raible
XML is only needed if you don't write Java code and want to use the 
GenericDAOs. Annotations can be used if you write Java code, but they're not 
required. You can still use XML like you have below. Hope this helps clarify.

On Sep 16, 2010, at 12:25 PM, jackalista wrote:

 
 OK, I tried using the following XML in applicationContext.xml and it made no
 difference, both with the @Repository annotation present and with it
 removed:
 
 bean id=personDao
 class=com.foo.mdm.poc.dao.hibernate.PersonDaoHibernate/
 
 I'm going to try to add some language to the tutorial about commenting out
 the generic DAO reference in applicationContext.xml, as that did help to
 reduce the exceptions.
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/problem-with-hibernate-tutorial-imports-for-annotations-tp2541421p2542732.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] add new class error

2010-09-16 Thread Matt Raible
Did you create a PersonDao interface and implementation in your project? If
so, did you register them in an XML file or with annotations? If so, what
version of AppFuse are you using?

2010/9/16 Cody Zhang codyzhang.w...@gmail.com

 Hi,All
Can you help me?
   error:



 Unable to instantiate Action, projectAction,  defined for 'project' in 
 namespace '/'Error creating bean with name 'projectAction' defined in 
 ServletContext resource [/WEB-INF/applicationContext-struts.xml]: Cannot 
 resolve reference to bean 'projectManager' while setting bean property 
 'projectManager'; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'projectManager': Autowiring of methods failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 method: public void 
 com.infowarelab.service.impl.ProjectManagerImpl.setProjectDao(com.infowarelab.dao.ProjectDao);
  nested exception is 
 org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique 
 bean of type [com.infowarelab.dao.ProjectDao] is defined: Unsatisfied 
 dependency of type [interface com.infowarelab.dao.ProjectDao]: expected at 
 least 1 matching bean

 Best Regards,
 --Cody.Zhang

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] first steps with appFuse in Eclipse

2010-09-15 Thread Matt Raible
The tables are populated by dbunit when you run tests. Are you able to run mvn 
test successfully?

On Sep 15, 2010, at 1:05 PM, webmeiker wrote:

 
 Hi,
 I’ am new to AppFuse (and almost to Spring, Hibernate, Maven, etc)… so I’ am
 looking instructions for dummies.
 
 I’ve installed m2eclipse (Maven plugin for Eclipse) in my Eclipse Helios.
 Then create a new Maven Project using the archetype
 appfuse-basic-spring-archetype (2.1.0-M1).
 
 I have MySQL ready and the project is created; and also 3 tables (app_user,
 role, user_role). But they are empty. 
 Is this right? (or has the installation failed in populating them with
 sample/default  data?)
 Does somebody know what I have to do to run it?
 
 Thanks in advance for your hints.
 
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/first-steps-with-appFuse-in-Eclipse-tp2541048p2541048.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] struts2 + aop

2010-09-10 Thread Matt Raible
It's unlikely you can use Spring AOP to intercept Struts Actions since
they're not managed by Spring.

On Fri, Sep 10, 2010 at 7:41 AM, Josep García jgar...@isigma.es wrote:

 Hi all,

 I am trying to apply an interceptor to a Struts2 action, via an xml
 configured spring aop, without luck.
 Does anyone know how to do it?

 I cannot do it the standard Struts2 way of defining interceptors in
 struts.xml, as this interceptor is only to be run when a Struts2 plugin is
 present. I have:
 - Main Struts2 web app
 - Custom Struts2 plug-in which adds functionality. For this plug-in, I
 would like to add an interceptor to one of the main Struts2 web-app.

 Any help will be appreciated.
 Josep




Re: [appfuse-user] appfuse:full-source failed

2010-09-07 Thread Matt Raible
Which version of AppFuse are you using? In other words, what was the command
you used to create your project?

On Mon, Sep 6, 2010 at 11:29 PM, m_aliyar mohammedali@gmail.com wrote:


 Hi all,

 after creating new project successfully(modular with spring MVC) I ran mvn
 appfuse:full-source command but i got error message below :

 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective model
 for RoyalSoft.Com:core:jar:1.0-SNAPSHOT
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-changes-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-checkstyle-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-javadoc-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-jxr-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-pmd-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-surefire-report-plugin is missing.
 [WARNING]
 [WARNING] Some problems were encountered while building the effective model
 for RoyalSoft.Com:web:war:1.0-SNAPSHOT
 [WARNING] The expression ${pom.parent.groupId} is deprecated. Please use
 ${project.parent.groupId} instead.
 [WARNING] The expression ${pom.parent.version} is deprecated. Please use
 ${project.parent.version} instead.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-changes-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-checkstyle-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-javadoc-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-jxr-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-pmd-plugin is missing.
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-surefire-report-plugin is missing.
 [WARNING]
 [WARNING] Some problems were encountered while building the effective model
 for RoyalSoft.Com:RoyalSoft:pom:1.0-SNAPSHOT
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-changes-plugin is missing. @ line 155,
 column
 21
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ line 158,
 column 21
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 166,
 column
 21
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-jxr-plugin is missing. @ line 169, column 21
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-pmd-plugin is missing. @ line 172, column 21
 [WARNING] 'reporting.plugins.plugin.version' for
 org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ line
 179, column 21
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.
 [WARNING]
 [INFO]
 
 [INFO] Reactor Build Order:
 [INFO]
 [INFO] AppFuse Modular Application
 [INFO] AppFuse Modular Application - Core
 [INFO] AppFuse Modular Application - Web (JSF)
 [INFO]
 [INFO]
 
 [INFO] Building AppFuse Modular Application 1.0-SNAPSHOT
 [INFO]
 
 [INFO]
 [INFO] --- appfuse-maven-plugin:2.1.0-M1:full-source (default-cli) @
 RoyalSoft ---
 [INFO] [AppFuse] Source successfully exported, modifying pom.xml...
 [INFO] [AppFuse] Adding dependencies from root module...
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] AppFuse Modular Application ... FAILURE [5.024s]
 [INFO] AppFuse Modular Application - Core  SKIPPED
 [INFO] AppFuse Modular Application - Web (JSF) ... SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 5.158s
 [INFO] Finished at: Thu Sep 02 11:07:51 GST 2010
 [INFO] Final Memory: 4M/15M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.appfuse.plugins:appfuse-maven-plugin:2.1.0-M1:full-source (default-cli)
 on project RoyalSoft: Execution default-cli of goal
 org.appfuse.plugins:appfuse-maven-plugin:2.1.0-M1:full-source failed: A
 required class was 

Re: [appfuse-user] Minor question on applicationContext.xml

2010-09-01 Thread Matt Raible
Good idea. Fixed.

http://source.appfuse.org/changelog/appfuse/?cs=3379

On Sep 1, 2010, at 11:42 PM, Malix Ren wrote:

 Hi Matt,
 In applicationContext.xml it's specifying spring-beans-2.0.xsd, shall we 
 revise it to spring-beans-3.0.xsd?
 beans ...
 xsi:schemaLocation=http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/context 
 http://www.springframework.org/schema/context/spring-context.xsd; 
 
 
 Thanks and best regards
 Malix



Re: [appfuse-user] Re: Failed to build AppFuse 2.1-SNAPSHOT

2010-08-31 Thread Matt Raible
Rename your eclipse 3.5.2 directory to eclipse and try again. ;-)

On Aug 31, 2010, at 7:58 PM, sunny wrote:

 
 No, I have't. I don't know how can I do that. :(
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/Failed-to-build-AppFuse-2-1-SNAPSHOT-tp574782p2402520.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Why 'UniversalDaoHibernate' is disappered?

2010-08-31 Thread Matt Raible
Because you can do pretty much anything with GenericDaoHibernate that you could 
with UniversalDaoHibernate. Also, it seemed to cause confusion for users that 
there were two classes that did the same thing.

Of course, you're free to grab the UniversalDaoHibernate class from before we 
deleted it and implement it in your project.

http://source.appfuse.org/browse/appfuse/trunk/data/hibernate/src/main/java/org/appfuse/dao/hibernate/UniversalDaoHibernate.java#r3175

On Aug 31, 2010, at 8:34 PM, sunny wrote:

 
 I found these line in appfuse 2.0.2 document:
 • GenericDaoHibernate: A generics-based class that requires you to create a
 Spring bean definition.
 • UniversalDaoHibernate: A class that requires you to cast to the specific
 object type.
 
 Why 'UniversalDaoHibernate' is disappered now?
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/Why-UniversalDaoHibernate-is-disappered-tp2402539p2402539.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: Failed to build AppFuse 2.1-SNAPSHOT

2010-08-30 Thread Matt Raible
Have you tried building it in a source directory with no spaces in it? It 
builds fine on my machine and in Bamboo.

Matt

On Aug 29, 2010, at 9:39 PM, sunny wrote:

 
 Do you mean this issue would be solved in next snapshot version?
 -- 
 View this message in context: 
 http://appfuse.547863.n4.nabble.com/Failed-to-build-AppFuse-2-1-SNAPSHOT-tp574782p2399528.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] Re: Failed to build AppFuse 2.1-SNAPSHOT

2010-08-27 Thread Matt Raible
I would try putting your source in a directory with no spaces. That should
solve this issue.

On Thu, Aug 26, 2010 at 10:30 PM, sunny maide...@gmail.com wrote:


 Originally, I just want to fix some code in

 '/appfuse-plugins/appfuse-maven-plugin/src/main/java/org/appfuse/tool/ArtifactInstaller.java'.
 I knew and had tried run 'mvn install' for module 'appfuse-maven-plugin',
 it
 is ok.

 But I think I maybe need to modify some code in other modules, for
 customize
 something for myself. :)
 Thanks for your great work on appfuse, and can you tell me how can I
 resolve
 that error?

 --
 View this message in context:
 http://appfuse.547863.n4.nabble.com/Failed-to-build-AppFuse-2-1-SNAPSHOT-tp574782p2340617.html
 Sent from the AppFuse - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Re: Failed to build AppFuse 2.1-SNAPSHOT

2010-08-26 Thread Matt Raible
Just curious, why are you trying to build the AppFuse project itself instead
of working with one of its archetypes?

On Thu, Aug 26, 2010 at 1:09 AM, sunny maide...@gmail.com wrote:


 I have the same problem, I found the problem is
 appfuse\archetypes\build.xml
 line 33 not working:
mvn

 command=org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create-from-project
 dir=${dir}/
 How can I fix/avoid this error? Thanks for any clues.

 My error log as follows:

 E:\Users\sunny\my-src\eclipse 3.5.2
 workspace\appfuse\archetypes\appfuse-coremvn install -DskipTests=true -e
 + Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building AppFuse Core Archetype
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] skip non existing resourceDirectory E:\Users\sunny\my-src\eclipse
 3.5.2 workspace\appfuse\archetypes\appfuse-core
 \src\main\resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] No sources to compile
 [INFO] [resources:testResources {execution: default-testResources}]
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] skip non existing resourceDirectory E:\Users\sunny\my-src\eclipse
 3.5.2 workspace\appfuse\archetypes\appfuse-core
 \src\test\resources
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] No sources to compile
 [INFO] [surefire:test {execution: default-test}]
 [INFO] Tests are skipped.
 [INFO] [jar:jar {execution: default-jar}]
 [WARNING] JAR will be empty - no content was marked for inclusion!
 [INFO] [antrun:run {execution: build-archetype}]
 [INFO] Executing tasks
[delete] Deleting directory E:\Users\sunny\my-src\eclipse 3.5.2
 workspace\appfuse\archetypes\appfuse-core\target\core
 -archetype

 install-core:
[mkdir] Created dir: E:\Users\sunny\my-src\eclipse 3.5.2
 workspace\appfuse\archetypes\appfuse-core\target\core-arche
 type
 [copy] Copying 15 files to E:\Users\sunny\my-src\eclipse 3.5.2
 workspace\appfuse\archetypes\appfuse-core\target\cor
 e-archetype
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] An Ant BuildException has occured: The following error occurred
 while
 executing this line:
 E:\Users\sunny\my-src\eclipse 3.5.2
 workspace\appfuse\archetypes\build.xml:36: Replace: source file
 E:\Users\sunny\my-sr
 c\eclipse 3.5.2

 workspace\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.x
 ml doesn't exist

 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: An Ant
 BuildException has occured: The following error occurred
 while executing this line:
 E:\Users\sunny\my-src\eclipse 3.5.2
 workspace\appfuse\archetypes\build.xml:36: Replace: source file
 E:\Users\sunny\my-sr
 c\eclipse 3.5.2

 workspace\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.x
 ml doesn't exist
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:55
 6)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
 a:387)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused 

Re: [appfuse-user] Spring Roo AND Appfuse side by side?

2010-08-19 Thread Matt Raible
I'd recommend using one or the other rather than trying to use them both. I
think you'll find that Spring MVC is just as easy to use as Struts 2.

On Thu, Aug 19, 2010 at 11:33 AM, MB digital.disc...@gmail.com wrote:

 Some newcomer questions:

 Is it possible to use Spring Roo, side by side with any kind of useful
 method, like for instance using Spring Roo for generating and
 maintaining Spring and Hibernate objects and within the same project
 using Appfuse for generating code for Struts2/JQuery objects? I suppose
 this could only work if Appfuse can be made to accept and use the Spring/
 Hibernate objects and configurations Roo governs as a starting point for
 its own code generation.

 If this is not possible in a useful fashion, then I guess that I could
 still use Appfuse for plugging in the other supported frameworks, like
 Struts2 for instance? Correct?

 Or would I be better off using Spring Roo as a starter for my
 application and adding a Struts2-built interface with JQuery in a more
 conventional way and forget about Appfuse for just this? Anyone here
 uses both Spring Roo and Appfuse and can share their experience?

 Appfuse still seem like a very nice starting point for the frameworks
 I'd like to use, but Spring Roo also looks very productive and I'd like
 to try both of these.

 There seem to be so many different ways of working with java web
 development these days and it's kind of hard to get started with a
 project because there's so much to read and evaluate - which is mainly a
 good thing. It's been very helpful to read Matt's articles about his
 experiences and I'm all ears for other experiences as well.


 /MB


 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Having issues with 'package org.appfuse.webapp.action does not exist'

2010-08-17 Thread Matt Raible
Do you have a BaseAction in your project? If so, is it in 
com.mycompany.crud.action? If so, simply change the imports.

On Aug 17, 2010, at 4:10 AM, Jeremy Flowers wrote:

 Hi.
 I browsed some of the old Appfuse mailing lists from back in 2006 and it 
 looks like my issue is down to the pom.xml not importing repositories 
 correctly.
 I've attached the one Appfuse created when I started a new project.
 Can someone let me know what the current repositories are I need to add. 
 Maybe this is something that needs addressing as it's a pain to work out from 
 all the different mailing lists and the timeframe it's bee occurring for.I 
 may have done a full-source Maven command at some point too.
 
 This was the kind of stuff I was getting:
 
 [INFO] 
 
 [ERROR] BUILD FAILURE
 [INFO] 
 
 [INFO] Compilation failure
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[2,32]
  package org.appfuse.webapp.action does not exist
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[8,35]
  cannot find symbol
 symbol: class BaseAction
 public class VehicleAction extends BaseAction {
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[37,11]
  cannot find symbol
 symbol  : variable SUCCESS
 location: class com.mycompany.crud.action.VehicleAction
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[41,4]
  cannot find symbol
 symbol  : method saveMessage(java.lang.String)
 location: class com.mycompany.crud.action.VehicleAction
 
 
 pom.xml-
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] This was the related thread from back in 2006. Is it still the same issue 4 years later?

2010-08-17 Thread Matt Raible
What version of AppFuse are you using?

On Aug 17, 2010, at 7:55 AM, Jeremy Flowers jeremy_g_flow...@yahoo.co.uk 
wrote:

 Finally I managed to track down the thread from earlier again...
 I just want to make sure things haven't moved on in terms of the repository 
 locations.
 This was the related thread from back in 2006. Is it still the same issue 4 
 years later?
 http://markmail.org/message/hzfm4crqtmoyer4k#query:%22package%20org.appfuse.webapp.action%20does%20not%20exist%22+page:1+mid:u74zjvc5dxl2hbdy+state:results
 Are the repository names still relevant?
 Or have things changed?
 Cheers.
 
 --- On Tue, 17/8/10, Jeremy Flowers jeremy_g_flow...@yahoo.co.uk wrote:
 
 From: Jeremy Flowers jeremy_g_flow...@yahoo.co.uk
 Subject: Re: [appfuse-user] Having issues with 'package 
 org.appfuse.webapp.action does not exist'
 To: users@appfuse.dev.java.net
 Date: Tuesday, 17 August, 2010, 14:34
 
 Hi Matt
 I was just refreshing my memory of Struts 2 using David's AppFuse primer.
 I had noticed the maven incantations have changed a bit since he wrote the 
 book and I set the project up using the incantations here.
 
 I had assumed that since I have the import:
 import org.appfuse.webapp.action.BaseAction;
 in VehicleAction this was some sort of AppFuse base class that got downloaded 
 in a JAR.
 
 Just in case it has some bearings on things, I also found that the location 
 of the struts.xml wasn't where David had indicated either.
 David had mentioned it would be in: src/main/webapp/WEB-INF/classes
 I could only find a copy in src/main/resources
 
 Other than doing a mvn war:inplace I don't think I've done much else odd.
 
 There was an issue where I had to upgrade Maven between running the archetype 
 to create the project and doing the initial mvn command to get something up 
 and running in Maven.
 
 I've also done a mvn clean, but nothing changed as a result.
 
 The only other thing that was quirky was that I had problems the day I first 
 ran mvn in the project folder. But somehow the next day this seemed to 
 magically resolve itself.
 
 This all makes me think there was a problem accessing repositories when the 
 first set of downloads ran and it was fixed the following day.
 
 Can you check the attached pom.xml to see if there is a missing repository or 
 something of this nature for org.appfuse.webapp.action.BaseAction, as I think 
 this is at the root of the issues.
 
 I did see a thread somewhere that pointed me down this path, but when I tried 
 looking for it again later I couldn't track it down! Too many permutations 
 from Googling either of:
 package org.appfuse.webapp.action does not exist
 The import org.appfuse.webapp cannot be resolved
 
 Regards, Jeremy
 
 
 --- On Tue, 17/8/10, Matt Raible m...@raibledesigns.com wrote:
 
 From: Matt Raible m...@raibledesigns.com
 Subject: Re: [appfuse-user] Having issues with 'package 
 org.appfuse.webapp.action does not exist'
 To: users@appfuse.dev.java.net
 Date: Tuesday, 17 August, 2010, 13:39
 
 Do you have a BaseAction in your project? If so, is it in 
 com.mycompany.crud.action? If so, simply change the imports.
 
 On Aug 17, 2010, at 4:10 AM, Jeremy Flowers wrote:
 
 Hi.
 I browsed some of the old Appfuse mailing lists from back in 2006 and it 
 looks like my issue is down to the pom.xml not importing repositories 
 correctly.
 I've attached the one Appfuse created when I started a new project.
 Can someone let me know what the current repositories are I need to add. 
 Maybe this is something that needs addressing as it's a pain to work out 
 from all the different mailing lists and the timeframe it's bee occurring 
 for.I may have done a full-source Maven command at some point too.
 
 This was the kind of stuff I was getting:
 
 [INFO] 
 
 [ERROR] BUILD FAILURE
 [INFO] 
 
 [INFO] Compilation failure
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[2,32]
  package org.appfuse.webapp.action does not exist
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[8,35]
  cannot find symbol
 symbol: class BaseAction
 public class VehicleAction extends BaseAction {
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[37,11]
  cannot find symbol
 symbol  : variable SUCCESS
 location: class com.mycompany.crud.action.VehicleAction
 
 /Users/JGF/AppfuseApp/myproject/src/main/java/com/mycompany/crud/action/VehicleAction.java:[41,4]
  cannot find symbol
 symbol  : method saveMessage(java.lang.String)
 location: class com.mycompany.crud.action.VehicleAction
 
 
 pom.xml-
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net
 
 
 


Re: Fw: [appfuse-user] Fw: This was the related thread from back in 2006. Is it still the same issue 4 years later?

2010-08-17 Thread Matt Raible
If you're using 2.1.0-M1, then the BaseAction class should exist in your
project as a .java file, rather than pulling it in from a JAR. This is also
the case if you've run full-source. If you're still lost, zip up your
project and send it to me.

On Tue, Aug 17, 2010 at 8:09 AM, Jeremy Flowers 
jeremy_g_flow...@yahoo.co.uk wrote:

 I'm assuming it's 2.1.0-M1. Took snapshot of .m2 folder. See attached
 screenshot




 --- On *Tue, 17/8/10, Jeremy Flowers jeremy_g_flow...@yahoo.co.uk*wrote:


 From: Jeremy Flowers jeremy_g_flow...@yahoo.co.uk
 Subject: [appfuse-user] Fw: This was the related thread from back in 2006.
 Is it still the same issue 4 years later?
 To: Appfuse Mailing List users@appfuse.dev.java.net
 Date: Tuesday, 17 August, 2010, 15:06



 BTW: That Struts 2 base action is still in the latest tutorials for
 AppFuse...
 http://appfuse.org/display/APF/Using+Struts+2#UsingStruts2-action



 --- On *Tue, 17/8/10, Jeremy Flowers jeremy_g_flow...@yahoo.co.uk*wrote:


 From: Jeremy Flowers jeremy_g_flow...@yahoo.co.uk
 Subject: This was the related thread from back in 2006. Is it still the
 same issue 4 years later?
 To: users@appfuse.dev.java.net
 Date: Tuesday, 17 August, 2010, 14:55

 Finally I managed to track down the thread from earlier again...
 I just want to make sure things haven't moved on in terms of the repository
 locations.
 This was the related thread from back in 2006. Is it still the same issue 4
 years later?

 http://markmail.org/message/hzfm4crqtmoyer4k#query:%22package%20org.appfuse.webapp.action%20does%20not%20exist%22+page:1+mid:u74zjvc5dxl2hbdy+state:results
 Are the repository names still relevant?
 Or have things changed?
 Cheers.

 --- On *Tue, 17/8/10, Jeremy Flowers jeremy_g_flow...@yahoo.co.uk*wrote:


 From: Jeremy Flowers jeremy_g_flow...@yahoo.co.uk
 Subject: Re: [appfuse-user] Having issues with 'package
 org.appfuse.webapp.action does not exist'
 To: users@appfuse.dev.java.net
 Date: Tuesday, 17 August, 2010, 14:34

 Hi Matt
 I was just refreshing my memory of Struts 2 using David's AppFuse primer.
 I had noticed the maven incantations have changed a bit since he wrote the
 book and I set the project up using the incantations 
 herehttp://appfuse.org/display/APF/AppFuse+QuickStart
 .

 I had assumed that since I have the import:
 import org.appfuse.webapp.action.BaseAction;
 in VehicleAction this was some sort of AppFuse base class that got
 downloaded in a JAR.

 Just in case it has some bearings on things, I also found that the location
 of the struts.xml wasn't where David had indicated either.
 David had mentioned it would be in: src/main/webapp/WEB-INF/classes
 I could only find a copy in src/main/resources

 Other than doing a mvn war:inplace I don't think I've done much else odd.

 There was an issue where I had to upgrade Maven between running the
 archetype to create the project and doing the initial mvn command to get
 something up and running in Maven.

 I've also done a mvn clean, but nothing changed as a result.

 The only other thing that was quirky was that I had problems the day I
 first ran mvn in the project folder. But somehow the next day this seemed to
 magically resolve itself.

 This all makes me think there was a problem accessing repositories when the
 first set of downloads ran and it was fixed the following day.

 Can you check the attached pom.xml to see if there is a missing repository
 or something of this nature for org.appfuse.webapp.action.BaseAction, as I
 think this is at the root of the issues.

 I did see a thread somewhere that pointed me down this path, but when I
 tried looking for it again later I couldn't track it down! Too many
 permutations from Googling either of:
 package org.appfuse.webapp.action does not exist
 The import org.appfuse.webapp cannot be resolved

 Regards, Jeremy


 --- On *Tue, 17/8/10, Matt Raible m...@raibledesigns.com* wrote:


 From: Matt Raible m...@raibledesigns.com
 Subject: Re: [appfuse-user] Having issues with 'package
 org.appfuse.webapp.action does not exist'
 To: users@appfuse.dev.java.net
 Date: Tuesday, 17 August, 2010, 13:39

 Do you have a BaseAction in your project? If so, is it in
 com.mycompany.crud.action? If so, simply change the imports.

 On Aug 17, 2010, at 4:10 AM, Jeremy Flowers wrote:

 Hi.
 I browsed some of the old Appfuse mailing lists from back in 2006 and it
 looks like my issue is down to the pom.xml not importing repositories
 correctly.
 I've attached the one Appfuse created when I started a new project.
 Can someone let me know what the current repositories are I need to add.
 Maybe this is something that needs addressing as it's a pain to work out
 from all the different mailing lists and the timeframe it's bee occurring
 for.I may have done a full-source Maven command at some point too.

 This was the kind of stuff I was getting:

 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO

Re: [appfuse-user] Update/Back to where I was the other day/How do you want project?

2010-08-17 Thread Matt Raible
If you're run war:in-place, you'll need to delete somethings to get back to
a good point.

rm -r src/main/webapp/WEB-INF/classes

If you'd still like me to look at your project, run mvn clean before
zipping it up.

On Tue, Aug 17, 2010 at 8:50 AM, Jeremy Flowers 
jeremy_g_flow...@yahoo.co.uk wrote:


 I actually confused the mvn war:inplace with mvn war:full-source... :-)

 I had done the inplace command, not the full-source one before.

 When I did this, I got back to a similar situation I had the other day,
 where I thought there may have been a repository error.

 Effectively I get 503 error: service unavailable when I try and navigate to
 the application running in Jetty.
 Here's the tail end of the messages in the terminal window when I try mvn
 jetty:run-war:

 2010-08-17 15:41:28.151::WARN:  Failed startup of context
 org.mortbay.jetty.plugin.jetty6pluginwebappcont...@412429c
 {/,/Users/JGF/AppfuseApp/myproject/target/myproject-1.0-SNAPSHOT.war}
 java.lang.ClassCastException: $Proxy107 cannot be cast to
 org.appfuse.service.LookupManager
at

 com.mycompany.webapp.listener.StartupListener.setupContext(StartupListener.java:101)
at

 com.mycompany.webapp.listener.StartupListener.contextInitialized(StartupListener.java:91)
at

 org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at

 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at

 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at

 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at

 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at

 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at

 org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at

 org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
at

 org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
at
 org.mortbay.jetty.plugin.Jetty6RunWar.execute(Jetty6RunWar.java:67)
at

 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 2010-08-17 15:41:28.252::INFO:  Started
 selectchannelconnec...@0.0.0.0:8080

 When I zip the project up it comes to 158MB compressed. Rather than hog
 your
 inbox, would you like me to zip up everything but the library folder?

 Or do you have a better idea of whats' wrong now?

 -
 http://gr8fanboy.wordpress.com/ gr8fanboy
 

Re: [appfuse-user] Related to Appfuse2.X

2010-08-15 Thread Matt Raible
Yes, it's called the AppFuse Maven Plugin in AppFuse 2.

http://static.appfuse.org/plugins/appfuse-maven-plugin/

On Sun, Aug 15, 2010 at 12:55 PM, bhushan kadam kadambhus...@yahoo.comwrote:

  Hi,



 We are currently using Appfuse 1.6+ in our company. Using Appgen and
 Middlegen we can generate POJO, DAO, Hibernate etc by just giving name of
 the database table.



 Currently for new project development we are planning to use Struts2,
 Hiberante and Spring and offcourse Appfuse2.x to generate the project
 skaleton.  Do we have any such tool as appgen or middlegen for Appfuse2.x
 to fasten the project development.



 Thanks



 Bhushan Kadam








Re: [appfuse-user] Richfaces Integration

2010-08-10 Thread Matt Raible
I have no plans to integrate richfaces myself, but would welcome the 
contribution. I'd probably lean more towards Spring Faces since AppFuse is 
already fairly Spring heavy.

On Aug 10, 2010, at 4:13 AM, Kissue Kissue wrote:

 Hi,
 
 I can see that the ajax4jsf library included in appfuse is an old one and i 
 understand that this project has been integrated into the jboss richfaces 
 project. Matt, any plans about dropping the current ajax4jsf library and 
 using richfaces instead?
 
 Has anyone tried to integrate richfaces into appfuse 2.0.2? I tried it and 
 there seems to be some conflict with decorator (sitemesh). If you have done 
 it or plan to do it pls can you share your experiences/plans with me?
 
 Thanks.


-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



Re: [appfuse-user] store and serve images in appfuse

2010-08-09 Thread Matt Raible
You could store images in a database, but that's likely to be the least
scalable solution. I'd recommend storing them on the filesystem, hopefully
one that's backed up as it will become a critical part of your application.

On Mon, Aug 9, 2010 at 6:37 PM, Amit Goyal goya...@gmail.com wrote:

 Hi,

 I am using Appfuse for my application. Its a great starting point and
 thanks to all the developers. In my application, I want to add profile
 picture functionality. I looked over internet and I am kind of confused
 what is the best way to do it. It would be great if someone can help me
 here.

 Here is what I found. There are two ways to store and serve images:

 1. Store images in a database. Lot of links suggest that it is not the best
 way especially if the images are large (and many), which I think is a valid
 point. JFYI, I am using MySQL.

 2. Store images in filesystem. Looks like this solution is not a clean
 solution and it might be difficult to migrate the application (in future if
 needed). And it is slower than the database operation. But it is still good.

 My first question is: which is better and scalable? Is there a good
 article/discussion about it?

 My second question is related to serving the image to jsp: even after
 looking at so many forums, its still not clear to me how to store and serve
 images in the appfuse settings (in any of the two options). Imagine an
 action servlet (lets call it UserAction) which serves some attributes (like
 user name, age, gender etc). To serve the image to jsp, can I just add new
 private variable like

 private byte[] image;

 and build the image when the servlet is called OR do I need another
 servlet?

 Finally, for now I am assuming that code to store images would be similar
 to one in FileUploadAction.java (if it is stored in filesystem). Am I right?

 Thanks a lot,
 Amit





Re: [appfuse-user] appfuse:full-source problem

2010-08-06 Thread Matt Raible
I believe it's a Java Sun JDK issue, but regardless, you can download a
project with full-source and eclipse:eclipse run from:

http://static.raibledesigns.com/downloads/zkproject.zip

Hope this helps,

Matt

On Fri, Aug 6, 2010 at 4:45 AM, Ferenc Engárd ferenc.eng...@gmail.comwrote:

 I don't exactly understand what you exactly mean ''Change JAVA_HOME to
 the JDK. JAVA_HOME env var is not set, I simply installed sun-java6
 JDK from Karmic (interestingly enough, Lucid do not contain the sun
 java packages...). There is only one java binary on the system. I
 tried to set JAVA_HOME explicitly to /usr/lib/jvm/sun-java6-bin, but
 the results are the same.

 Meanwhile I tried it with openjdk:

 f...@fery-laptop:~/tmp$ mvn --version
 Apache Maven 2.2.1 (rdebian-1)
 Java version: 1.6.0_18
 Java home: /usr/lib/jvm/java-6-openjdk/jre
 Default locale: en_US, platform encoding: UTF-8
 OS name: linux version: 2.6.32-24-generic arch: i386 Family: unix

 But the error is the same. :(

 There is no Java5 in the Ubuntu Karmic or Lucid, and I didn't want to
 install it by hand.

 It seems that there is some curse on my machines (2 notebooks, 3
 different type of network connection) to obstruct maven here. :) But I
 would really wonder what is the cause of the problem. I will happily
 help if you need some more logs or investigation.

 Matt, I am planning to start playing with ZK framework, and quickstart
 the system with appfuse, as I am not really experienced with java web
 world. I picked out struts2 randomly instead of the GUI-less core
 because I guessed it is easier to replace the dependencies instead of
 writing many things from scratch (web.xml etc.). (And also the modular
 project seemed nicer to me, and there is no modular core archetype.)

 Could you please pick up an appropriate archetype for me, make a
 full-source, (the 'mvn eclipse:eclipse' is also welcomed ;)) and send
 me the .tgz (.zip) directly? Just for learning (that's why I wanted
 full-source) and playing, so the snapshot is also ok if you feel it
 better. . :)

 Thanks,
 Ferenc

 On Wed, Aug 4, 2010 at 6:03 PM, Matt Raible m...@raibledesigns.com
 wrote:
  Other things I can think of:
 
  1. Change JAVA_HOME to the JDK instead of the JRE.
  2. Try Java 5.
 
  On Wed, Aug 4, 2010 at 10:00 AM, Ferenc Engárd ferenc.eng...@gmail.com
  wrote:
 
  I have purged the maven2 package and reinstalled.
 
  f...@fery-laptop:~$ mvn --version
  Apache Maven 2.2.1 (rdebian-1)
  Java version: 1.6.0_20
  Java home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
  Default locale: en_US, platform encoding: UTF-8
  OS name: linux version: 2.6.32-24-generic arch: i386 Family:
 unix
 
  Nothing changed. :( Any other idea?
 
  Ferenc
 
  On Wed, Aug 4, 2010 at 5:27 PM, Matt Raible m...@raibledesigns.com
  wrote:
   I'm guessing this is caused by your Maven installation. I'd suggest
   re-installing 2.2.1 and making sure which mvn points to your new
   installation.
   On Aug 4, 2010, at 9:18 AM, Ferenc Engárd wrote:
  
   Then ther root of the problem must be locally, but I have absolutely
 no
   idea
   where to search.
  
   Tried 2.0.2, the log is here below. This f*** junit 4.4 is the guilty
   here,
   too...
  
   Cleaned repo, empty settings.xml, plain ADSL connection, tested with
   2.0.2
   and 2.1.0.M1... Anybody else has any idea? Maybe some more verbose
 log?
  
   Ferenc
 [...]

 -
 To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
 For additional commands, e-mail: users-h...@appfuse.dev.java.net




Re: [appfuse-user] Person is not mapped [from Person p where p.lastName=?]

2010-08-05 Thread Matt Raible
On Thu, Aug 5, 2010 at 10:19 AM, jackalista j...@twaxx.com wrote:


 Hi,

 I haven't used the tutorials for a while and I'm having a strange problem
 where I get a hibernate exception about my Person class not being mapped:

 Caused by: org.hibernate.hql.ast.QuerySyntaxException: Person is not mapped
 [from Person p where p.lastName=?]


 I found a post by Matt that looks similar but is from 2007 here:

 http://appfuse.547863.n4.nabble.com/Person-is-not-mapped-from-Person-where-lastName-td578225.html#a578225

 In this post, Matt resolves this problem by using the FQCN for Person in
 the
 HQL in the finder like so:

 public ListPerson findByLastName(String lastName) {
return getHibernateTemplate().find(from
 com.foo.dcs.project.model.Person p where p.lastName=?, lastName);
 }

 Using the FQCN works for me too but seems kind of nasty, is this required
 now, we have to use fully qualified class names in the HQL statements?  Or
 is there some minor tweak to the tutorial approach that allows you to
 simply
 use the more usual from Person p where p.lastName =? in your HQL queries?
 The last time I used appfuse was last December, and I didn't have to do
 this
 (I don't *think*), I don't have that code with me right now but I don't
 remember having to do this.  Can anybody shed some light on this?
  Thanks...



From the tutorial at http://appfuse.org/display/APF/Persistence:

If you specify a name value for your @Entity annotation (for example
@Entity(name=person)), this will be the alias for HQL queries. If you
don't specify this value, the name will match the short name of your class (
Person). If you want to change the table name that's generated, use the
@Table 
http://java.sun.com/javaee/5/docs/api/javax/persistence/Table.htmlannotation
with a name value.


Re: [appfuse-user] Appfuse theme

2010-08-04 Thread Matt Raible
These haven't been ported to work with AppFuse, but you can get them from
the appfuse-css project. The homepage for the project has more information.

https://appfuse-css.dev.java.net/

On Wed, Aug 4, 2010 at 2:11 PM, ramzi khlil ramzi.atv...@gmail.com wrote:

 Hi Matt,

 Can you please give me the link to download the following themes.

  deliciouslyblue http://css.appfuse.org/themes/deliciouslyblue:
 madeyourcss http://css.appfuse.org/themes/madeyourcss:
 fuseapp001 http://css.appfuse.org/themes/fuseapp001:


 Thanks,
 Ramzi



Re: [appfuse-user] Appfuse theme

2010-08-04 Thread Matt Raible
I'd love to, but the last time I did it was 3 years ago and I don't know off 
the top of my head.

On Aug 4, 2010, at 3:58 PM, ramzi khlil wrote:

 Hi Matt,
  
 Can you give some insights on how to port them to appfuse (the guidelines ) ?
  
 Thanks,
 Ramzi
 
 
  
 On Wed, Aug 4, 2010 at 5:20 PM, Matt Raible m...@raibledesigns.com wrote:
 These haven't been ported to work with AppFuse, but you can get them from the 
 appfuse-css project. The homepage for the project has more information.
 
 https://appfuse-css.dev.java.net/
 
 
 On Wed, Aug 4, 2010 at 2:11 PM, ramzi khlil ramzi.atv...@gmail.com wrote:
 Hi Matt,
  
 Can you please give me the link to download the following themes.
  
 deliciouslyblue:
 madeyourcss:
 fuseapp001:
  
 Thanks,
 Ramzi
 
 



Re: [appfuse-user] appfuse:full-source problem

2010-08-02 Thread Matt Raible
] [AppFuse] Installing source from hibernate module...
[INFO] [AppFuse] Installing source from service module...
[INFO] [AppFuse] Source successfully exported, modifying pom.xml...
[INFO] [AppFuse] Adding dependencies from data module...
[INFO] [AppFuse] Adding dependencies from data-common module...
[INFO] [AppFuse] Adding dependencies from hibernate module...
[INFO] [AppFuse] Adding dependencies from service module...
[INFO] [AppFuse] Updated dependencies in pom.xml...
[INFO] [AppFuse] Renaming packages to 'com.engard'...
[info] [AppFuse] Refactored all 'org.appfuse' packages and paths to 
'com.engard'.
[INFO] 
[INFO] Building AppFuse Modular Application - Web (Struts 2)
[INFO]task-segment: [appfuse:full-source]
[INFO] 
[INFO] [appfuse:full-source {execution: default-cli}]
[INFO] [AppFuse] Source successfully exported, modifying pom.xml...
[INFO] [AppFuse] Adding dependencies from web module...
[ maven embedder INFO] Unable to find resource 
'org.springframework.security:spring-security-acl:pom:2.0.4' in repository 
spring-release (http://s3.amazonaws.com/maven.springframework.org/release)
[ maven embedder INFO] Unable to find resource 
'org.springframework.security:spring-security-acl:pom:2.0.4' in repository 
spring-external (http://s3.amazonaws.com/maven.springframework.org/external)
[ maven embedder INFO] Unable to find resource 
'org.springframework.security:spring-security-acl:jar:2.0.4' in repository 
spring-release (http://s3.amazonaws.com/maven.springframework.org/release)
[ maven embedder INFO] Unable to find resource 
'org.springframework.security:spring-security-acl:jar:2.0.4' in repository 
spring-external (http://s3.amazonaws.com/maven.springframework.org/external)
[INFO] [AppFuse] Adding dependencies from web-common module...
[INFO] [AppFuse] Adding dependencies from struts module...
[INFO] [AppFuse] Updated dependencies in pom.xml...
[INFO] [AppFuse] Renaming packages to 'com.engard'...
[info] [AppFuse] Refactored all 'org.appfuse' packages and paths to 
'com.engard'.
[INFO] 
[INFO] 
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] AppFuse Modular Application ... SUCCESS [12.184s]
[INFO] AppFuse Modular Application - Core  SUCCESS [47.546s]
[INFO] AppFuse Modular Application - Web (Struts 2) .. SUCCESS [21.605s]
[INFO] 
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 1 minute 25 seconds
[INFO] Finished at: Mon Aug 02 07:55:18 MDT 2010
[INFO] Final Memory: 20M/89M
[INFO] 

On Aug 2, 2010, at 3:00 AM, Ferenc Engárd wrote:

 I hope so.
 
 f...@fery-engineering:~$ java -version
 java version 1.6.0_20
 Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
 Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
 f...@fery-engineering:~$ ls -l /etc/alternatives/java
 lrwxrwxrwx 1 root root 36 2010-03-09 14:51 /etc/alternatives/java -
 /usr/lib/jvm/java-6-sun/jre/bin/java
 f...@fery-engineering:~$ aptitude search java|grep ^i|grep sun
 i A sun-java6-bin   - Sun Java(TM) Runtime Environment (JRE) 
 6 (
 i   sun-java6-jdk   - Sun Java(TM) Development Kit (JDK) 6
 i A sun-java6-jre   - Sun Java(TM) Runtime Environment (JRE) 
 6 (
 i   sun-java6-plugin- The Java(TM) Plug-in, Java SE 6
 f...@fery-engineering:~$ set|grep JAVA
 JAVA_HOME=/usr/lib/jvm/java-6-sun
 
 Thanks,
 Ferenc
 
 On Mon, Aug 2, 2010 at 2:05 AM, Matt Raible m...@raibledesigns.com wrote:
 H, I haven't seen this issue before. Are you using Sun's JDK?
 
 On Aug 1, 2010, at 5:46 PM, Ferenc Engárd ferenc.eng...@gmail.com wrote:
 
 Hi all,
 
 First of all I would like to welcome everybody on this list, as this
 is my first post.
 
 I tried to download and get the full-source of the modular struts
 archetype, but encountered an error. Here is the commands and output
 (I have cut a lot, tell me if you need the whole log):
 
 f...@fery-engineering:~/magan/zk/ws$ mvn archetype:generate -B
 -DarchetypeGroupId=org.appfuse.archetypes
 -DarchetypeArtifactId=appfuse-modular-struts-archetype
 -DarchetypeVersion=2.1.0-M1 -DgroupId=com.engard
 -DartifactId=zkproject
 [...]
 [INFO] BUILD SUCCESSFUL
 [INFO] 
 
 [INFO] Total time: 1 minute 4 seconds
 [INFO] Finished at: Mon Aug 02 01:28:15 CEST 2010
 [INFO] Final Memory: 13M/109M
 [INFO

  1   2   3   4   5   6   7   8   9   10   >