Seba
Matt Raible escribió:
If you do mvn -X, do you see different versions of Spring in your dependencies list? Matt On Mon, Apr 28, 2008 at 11:09 AM, Seba <[EMAIL PROTECTED]> wrote:i have already added that dependency into dependencies tag: <dependencies> ... <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> <optional>true</optional> </dependency> *<dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency>* <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> ... </dependencies> Matt Raible escribió:Adding the following to your pom.xml should do the trick. <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> Matt On Mon, Apr 28, 2008 at 10:58 AM, Seba <[EMAIL PROTECTED]> wrote:Hi! i'm getting the same errors on both Ubuntu 7.10 and Windows. I'mtryingto start a new proyect but i can't make it woks enviroment: maven 2.09 (new repo) jdk1.5.0_06 mysql-5.0.51b my steps were: 1) C:\Source>mvn archetype:create-DarchetypeGroupId=org.appfuse.archetypes-DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/releases^ -DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app-DartifactId=myproject2) make changes to pom.xml file (changed mysql root password) 3) C:\Source\myproject>mvn jetty:run-war then jetty get started but: 2008-04-28 13:23:58.078::WARN: Failed startup of context org.mortbay.jetty.plug[EMAIL PROTECTED]/,jar:file:/C:/Source/myproject/target/myproject-1.0-SNAPSHOT.war!/} org.springframework.beans.factory.BeanDefinitionStoreException:Unexpectedexcep tion parsing XML document from class path resource [applicationContext-service.x ml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.ParserContext.registerBeanComponent(Lorg/springframework/beans/factory/parsing/BeanComponentDefinition;)V Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.ParserContext.registerBeanComponent(Lorg/springframework/beans/factory/parsing/BeanComponentDefinition;)V at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:130) 4) C:\Source\myproject>mvn appfuse:full-source 5) C:\Source\myproject>mvn jetty:run-war [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Compiler errors : error at Table table = AnnotationUtils.findAnnotation(User.class, Table.class); then i commented the lines 6) C:\Source\myproject>mvn jetty:run-war jetty didn't start, then cheked into surefire-reports almost all thetesthave the same errors: org.springframework.beans.factory.BeanDefinitionStoreException:Unexpectedexception parsing XML document from class path resource [applicationContext-service.xml]; nested exception is java.lang.NoSuchMethodError:org.springframework.beans.factory.xml.ParserContext.registerBeanComponent(Lorg/springframework/beans/factory/parsing/BeanComponentDefinition;)VCaused by: java.lang.NoSuchMethodError:org.springframework.beans.factory.xml.ParserContext.registerBeanComponent(Lorg/springframework/beans/factory/parsing/BeanComponentDefinition;)VHELP! Matt Raible escribió: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 startedcreating> 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 projectandwas able to build and pass all tests 100% before executing the full-source goal. Once I ran that goal, the tests failed. I alsotriedit 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 byexecutingappfuse:full-source are renamed to match my project. I think thisisprobably causing much of the problems. They should remain as partofan appfuse package. This would relieve much of the upgrade and reference issues. It is also is far more intuitive. This, afterall,isnot 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. MattAlex > > > > 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 mvnappfuse:full-source.> > I had to adjust all of my code to reference the newly pulleddownclasses> > with my projects package structure (that was to be expected).However, what> > I'm wrestling with is that it seems none of the configurationforall of the> > appfuse classes came down with them. I'm mainly thinking ofthe> > applicationContext.xml, etc. > > > > The other issue is that after doing the full-source commandIwas getting> > a FileNotFound exception looking for/WEB-INF/ApplicationContext.xml this> > exception is shown below: > > > > testRemove(com.oci.jnb.webapp.action.UserActionTest) Timeelapsed: 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 pathresource> > [WEB-INF/] cannot be resolved to URL because it does not exist > > > > I modified this to just ApplicationContext.xml and now I'mgettinga:> > > >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 thisbean.> > > > All of this makes me think I'm missing configuration for theBaseappfuse> > project. Do I need to configure all of the provided classesbyhand, is> > there another command to run to pull this down? I'dappreciateany> > 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 thestruts2> > appfuse basic struts jar file was at least getting downloaded.Inthe> > project itself when implementing the unit test for the actionclass> > Netbeans is complaining that it can't find theBaseActionTestCase.Looking> > at the project libraries and the project test libraries I cantellthat the> > library below doesn't exist in either list. I'm not in a goodspot to> > differentiate whether or not this is a netbeans issue, I'lltry torun from> > the command line. Based on what I find out, I'll post again.Ifyou 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 youhopingto 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 articleactually)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.Troubleis that> > the > > > > > > project doesn't seem to be recognizing that I have thestruts 2> > library > > > > > > downloaded to the maven repository. I'm using /runningthe example> > in > > > > > > Netbeans 6.0.1, checking the maven repository for theappfuse> > related jars > > > > > > yielded: > > > > > > > > > > > > [EMAIL PROTECTED]:~/.m2/repository$ find . -name *.jar | grepappfuse> > > > > > > >./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]
mvnx.rar
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
