After running full-source, please try changing your 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>

Matt

On Mon, Apr 28, 2008 at 9:38 PM, ftjn689 <[EMAIL PROTECTED]> wrote:
>
>  I'm trying to 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=myproject
>  2. make changes to pom.xml file (changed mysql root password)
>  3. C:\myproject>mvn appfuse:full-source (SUCCESS!)
>  4. C:\Source\myproject>mvn jetty:run-war (ERROR!!):
>
>  [ERROR] The method findAnnotation(Method, Class ) in the type
>  AnnotationUtils
>  is not applicable for the arguments (Class<User>, Class<Table>)
>  [ERROR] The method findAnnotation(Method, Class ) in the type
>  AnnotationUtils
>  is not applicable for the arguments (Class<User>, Class<Table>)
>  [INFO]
>  ------------------------------------------------------------------------
>  [ERROR] BUILD ERROR
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Compiler errors :
>  error at Table table = AnnotationUtils.findAnnotation(User.class,
>  Table.class);
>                               ^^^^^
>  
> D:\myproject\src\main\java\org\appfuse\dao\hibernate\UserDaoHibernate.java:85:0::0
>  Th
>  e method findAnnotation(Method, Class ) in the type AnnotationUtils is not
>  app
>  licable for the arguments (Class<User>, Class<Table>)
>  error at Table table = AnnotationUtils.findAnnotation(User.class,
>  Table.class);
>
>  HELP!HELP!HELP!
>
>  best regards,
>  jack
>  --
>  View this message in context: 
> http://www.nabble.com/problem-occurred-after-running-mvn-jetty%3Arun-war-tp16952700s2369p16952700.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