You are correct that AppFuse 2.0.1:Struts 2 Modular:full-source has issues. After running full-source, if you change web/pom.xml from:
<dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-spring-plugin</artifactId> <version>${struts.version}</version> </dependency> To: <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-spring-plugin</artifactId> <version>${struts.version}</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </exclusion> </exclusions> </dependency> It should solve this issue. Matt On Mon, Apr 28, 2008 at 10:23 AM, Alex Worden <[EMAIL PROTECTED]> wrote: > > On Mon, Apr 28, 2008 at 8:42 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > > On Mon, Apr 28, 2008 at 9:23 AM, Alex Worden <[EMAIL PROTECTED]> wrote: > > > On Mon, Apr 28, 2008 at 5:49 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > > > > Using "mvn appfuse:full-source" works best if you do it at the > > > > beginning of a project, not after you've already started creating > > > > entities. > > > > > > > > Matt > > > > > > Hi Matt, > > > > > > I fear that it doesn't work at all. I tried this with the Struts2 > > > Modular archetype and could not get the JUnit tests to pass due to > > > many missing resources. I checked out another copy of the project and > > > was able to build and pass all tests 100% before executing the > > > full-source goal. Once I ran that goal, the tests failed. I also tried > > > it before building with the same failures. Have you tried it on a > > > clean install lately? I'd *really* appreciate it if you could try > > > this, fix these issues, and describe what you did to resolve them. > > > > > > I notice that the package names of the classes produced by executing > > > appfuse:full-source are renamed to match my project. I think this is > > > probably causing much of the problems. They should remain as part of > > > an appfuse package. This would relieve much of the upgrade and > > > reference issues. It is also is far more intuitive. This, afterall, is > > > not my code, and should not be created under my project's package > > > name. > > > > > > > Renaming the package names is done "by design". You can turn it off > > using "mvn appfuse:full-source -DrenamePackages=false". > > > > It might be your OS that's causing these issues - everything works > > fine on my Mac. > > I'm also using OSX (10.5). So I doubt that's it. Have you tried > creating the archetype with a different package name and project name > than that from the tutorial? Also - it could be that your local > repository is different. For a truly clean test, you'd need to > temporarily rename your maven repository and try from scratch. I don't > think I'm being dumb here - I can honestly say that the tests do not > pass with a clean build out of the box. > > > > > > > Matt > > > > > > > > > Alex > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Apr 28, 2008 at 12:18 AM, Ryan Withers <[EMAIL PROTECTED]> > wrote: > > > > > Vincent / Matt, > > > > > > > > > > I was successful at pulling down the sources with mvn > appfuse:full-source. > > > > > I had to adjust all of my code to reference the newly pulled down > classes > > > > > with my projects package structure (that was to be expected). > However, what > > > > > I'm wrestling with is that it seems none of the configuration for > all of the > > > > > appfuse classes came down with them. I'm mainly thinking of the > > > > > applicationContext.xml, etc. > > > > > > > > > > The other issue is that after doing the full-source command I > was getting > > > > > a FileNotFound exception looking for > /WEB-INF/ApplicationContext.xml this > > > > > exception is shown below: > > > > > > > > > > testRemove(com.oci.jnb.webapp.action.UserActionTest) Time > elapsed: 0.084 > > > > > sec <<< ERROR! > > > > > org.springframework.beans.factory.BeanDefinitionStoreException: > Could not > > > > > resolve bean definition resource pattern > [/WEB-INF/applicationContext*.xml]; > > > > > nested exception is java.io.FileNotFoundException: class path > resource > > > > > [WEB-INF/] cannot be resolved to URL because it does not exist > > > > > > > > > > I modified this to just ApplicationContext.xml and now I'm > getting a: > > > > > > > > > > org.springframework.beans.factory.UnsatisfiedDependencyException: > Error > > > > > creating bean with name > 'com.oci.jnb.webapp.action.UserActionTest': > > > > > Unsatisfied dependency expressed through bean property > 'userAction': Set > > > > > this property value or disable dependency checking for this bean. > > > > > > > > > > All of this makes me think I'm missing configuration for the Base > appfuse > > > > > project. Do I need to configure all of the provided classes by > hand, is > > > > > there another command to run to pull this down? I'd appreciate > any > > > > > guidance. > > > > > > > > > > Thanks, > > > > > > > > > > Ryan > > > > > > > > > > > > > > > On Fri, Apr 25, 2008 at 10:12 AM, Vincent Ramdhanie <[EMAIL > PROTECTED]> > > > > > wrote: > > > > > > I had a similar problem with netbeans before, using mvn > > > > > appfuse:full-source solved the problem for me. > > > > > > Vincent > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Apr 25, 2008 at 10:56 AM, Ryan Withers <[EMAIL > PROTECTED]> > > > > > wrote: > > > > > > > > > > > > > Matt, > > > > > > > > > > > > > > Thanks for the response. I was hoping to verify that the > struts2 > > > > > appfuse basic struts jar file was at least getting downloaded. > In the > > > > > project itself when implementing the unit test for the action > class > > > > > Netbeans is complaining that it can't find the > BaseActionTestCase. Looking > > > > > at the project libraries and the project test libraries I can > tell that the > > > > > library below doesn't exist in either list. I'm not in a good > spot to > > > > > differentiate whether or not this is a netbeans issue, I'll try > to run from > > > > > the command line. Based on what I find out, I'll post again. If > you happen > > > > > to have any further thoughts I'd appreciate it. > > > > > > > > > > > > > > Thanks again, > > > > > > > > > > > > > > Ryan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Apr 25, 2008 at 9:02 AM, Matt Raible <[EMAIL > PROTECTED]> > > > > > wrote: > > > > > > > > > > > > > > > I don't understand what the problem is. What are you hoping > to see > > > > > > > > with the find command? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Apr 25, 2008 at 7:49 AM, Ryan Withers <[EMAIL > PROTECTED]> > > > > > wrote: > > > > > > > > > Hello All, > > > > > > > > > > > > > > > > > > I'm working on a project (writing an article actually) > concerning > > > > > appfuse. > > > > > > > > > I'm using the following archtype: > > > > > > > > > > > > > > > > > > mvn archetype:create > > > > > > > > > -DarchetypeGroupId=org.appfuse.archetypes > > > > > > > > > -DarchetypeArtifactId=appfuse-basic-struts > > > > > > > > > -DremoteRepositories=http://static.appfuse.org/releases > > > > > > > > > -DarchetypeVersion=2.0.1 -DgroupId=com.ociweb.jnb > > > > > -DartifactId=timeEntryApp > > > > > > > > > > > > > > > > > > this is as specified in the quickstart tutorial. Trouble > is that > > > > > the > > > > > > > > > project doesn't seem to be recognizing that I have the > struts 2 > > > > > library > > > > > > > > > downloaded to the maven repository. I'm using / running > the example > > > > > in > > > > > > > > > Netbeans 6.0.1, checking the maven repository for the > appfuse > > > > > related jars > > > > > > > > > yielded: > > > > > > > > > > > > > > > > > > [EMAIL PROTECTED]:~/.m2/repository$ find . -name *.jar | > grep appfuse > > > > > > > > > > > > > > > ./org/codehaus/mojo/appfuse-maven-plugin/2.0.1/appfuse-maven-plugin-2.0.1.jar > > > > > > > > > > ./org/appfuse/appfuse-service/2.0.1/appfuse-service-2.0.1.jar > > > > > > > > > ./org/appfuse/appfuse-jpa/2.0.1/appfuse-jpa-2.0.1.jar > > > > > > > > > > > > > > > ./org/appfuse/maven-warpath-plugin/2.0.1/maven-warpath-plugin-2.0.1.jar > > > > > > > > > > > > > > > ./org/appfuse/appfuse-data-common/2.0.1/appfuse-data-common-2.0.1.jar > > > > > > > > > > > > > > > ./org/appfuse/archetypes/appfuse-modular-jsf/2.0.1/appfuse-modular-jsf-2.0.1.jar > > > > > > > > > > > > > > > > > > > > > > > > ./org/appfuse/archetypes/appfuse-basic-jsf/2.0.1/appfuse-basic-jsf-2.0.1.jar > > > > > > > > > > > > > > > ./org/appfuse/archetypes/appfuse-basic-spring/2.0.1/appfuse-basic-spring-2.0.1.jar > > > > > > > > > > > > > > > ./org/appfuse/archetypes/appfuse-modular-tapestry/2.0.1/appfuse-modular-tapestry-2.0.1.jar > > > > > > > > > > > > > > > > > > > > > > > > ./org/appfuse/archetypes/appfuse-modular-struts/2.0.1/appfuse-modular-struts-2.0.1.jar > > > > > > > > > > > > > > > ./org/appfuse/archetypes/appfuse-basic-tapestry/2.0.1/appfuse-basic-tapestry-2.0.1.jar > > > > > > > > > > > > > > > ./org/appfuse/archetypes/appfuse-basic-struts/2.0.1/appfuse-basic-struts-2.0.1.jar > > > > > > > > > > ./org/appfuse/appfuse-hibernate/2.0.1/appfuse-hibernate-2.0.1.jar > > > > > > > > > > > > > > > > > > Could this be a problem with the pom.xml file? > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > Ryan > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]