Adding the following to your pom.xml should fix this:

       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-web</artifactId>
           <version>${spring.version}</version>
       </dependency>

Matt

On Fri, Apr 25, 2008 at 12:52 AM, ftjn689 <[EMAIL PROTECTED]> wrote:
>
>   i just learn appfuse 2.0.1 and try to create modular struts, but i found
>  some problem.
>  I did following steps :
>
>  1.mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
>  -DarchetypeArtifactId=appfuse-basic-struts
>  -DremoteRepositories=http://static.appfuse.org/releases
>  -DarchetypeVersion=2.0.1 -DgroupId=com.yeeach.framework
>  -DartifactId=myproject
>
>  2.mvn jetty:run-war
>  and i got some errors :
>
>  [haha] ERROR [main] ContextLoader.initWebApplicationContext(203) | Context
>  initi
>  alization failed
>  org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
>  excep
>  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/facto
>  ry/parsing/BeanComponentDefinition;)V
>  Caused by:
>  java.lang.NoSuchMethodError:
>  org.springframework.beans.factory.xml.ParserContext
>  
> .registerBeanComponent(Lorg/springframework/beans/factory/parsing/BeanComponentD
>  efinition;)V
>         at
>  org.springframework.transaction.config.AnnotationDrivenBeanDefinition
>  
> Parser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefi
>  nitionParser.java:130)
>         at
>  org.springframework.transaction.config.AnnotationDrivenBeanDefinition
>  Parser.parse(AnnotationDrivenBeanDefinitionParser.java:79)
>         at
>  org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(N
>  amespaceHandlerSupport.java:69)
>  ----------->
>
>  is there any steps that i missed ?
>  how to make  jetty:run-war ???
>
>
>
>  best regards,
>  jack
>
>
>
>  --
>  View this message in context: 
> http://www.nabble.com/failed-after-mvn-jetty%3Arun-war-tp16892296s2369p16892296.html
>  Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  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]

Reply via email to