Yuke - can you please enter an issue for this in JIRA?

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

Thanks,

Matt

On 12/9/07, yuke <[EMAIL PROTECTED]> wrote:
>
>
>
> i add following exclusions and everything works fine.
>
>         <dependency>
>             <groupId>org.apache.struts</groupId>
>             <artifactId>struts2-spring-plugin</artifactId>
>             <version>${struts.version}</version>
>             <exclusions>
>                 <exclusion>
>                     <artifactId>spring-context</artifactId>
>                     <groupId>org.springframework</groupId>
>                 </exclusion>
>                 <exclusion>
>                     <artifactId>spring-web</artifactId>
>                     <groupId>org.springframework</groupId>
>                 </exclusion>
>                 <exclusion>
>                     <artifactId>spring-core</artifactId>
>                     <groupId>org.springframework</groupId>
>                 </exclusion>
>                 <exclusion>
>                     <artifactId>spring-beans</artifactId>
>                     <groupId>org.springframework</groupId>
>                 </exclusion>
>             </exclusions>
>         </dependency>
>
> thanks,
> Yuke
>
>
>
> mraible wrote:
> >
> > The problem appears to be caused by the struts2-spring-plugin, which
> > for some reason thinks spring-context 2.0.5 is newer than 2.5.
> >
> > [DEBUG] Retrieving parent-POM: org.apache:apache::2 for project:
> > org.apache.struts:struts-master:pom:4 from the repository.
> > [DEBUG]   org.apache.struts:struts2-spring-plugin:jar:2.0.11:compile
> > (selected for compile)
> > [DEBUG]     org.apache.struts:struts2-core:jar:2.0.11:compile
> > (selected for compile)
> > [DEBUG]       com.opensymphony:xwork:jar:2.0.4:compile (selected for
> > compile)
> > [DEBUG]         commons-logging:commons-logging:jar:1.0.4:compile
> > (removed - nearer found: 1.1)
> > [DEBUG]         opensymphony:ognl:jar:2.6.11:compile (selected for
> > compile)
> > [DEBUG]       freemarker:freemarker:jar:2.3.8:compile (selected for
> > compile)
> > [DEBUG]       opensymphony:ognl:jar:2.6.11:compile (selected for compile)
> > [DEBUG]       commons-logging:commons-logging:jar:1.0.4:compile
> > (removed - nearer found: 1.1)
> > [DEBUG]     org.springframework:spring-beans:jar:2.0.5:compile
> > (removed - nearer found: 2.5)
> > [DEBUG]     org.springframework:spring-core:jar:2.0.5:compile (removed
> > - nearer found: 2.5)
> > [DEBUG]     org.springframework:spring-context:jar:2.5:compile
> > (removed - nearer found: 2.0.5)
> > [DEBUG]     org.springframework:spring-context:jar:2.0.5:compile
> > (selected for compile)
> > [DEBUG]       org.springframework:spring-beans:jar:2.0.5:compile
> > (removed - nearer found: 2.5)
> > [DEBUG]       org.springframework:spring-core:jar:2.0.5:compile
> > (removed - nearer found: 2.5)
> > [DEBUG]     org.springframework:spring-web:jar:2.0.5:compile (selected
> > for compile)
> > [DEBUG]       org.springframework:spring-beans:jar:2.0.5:compile
> > (removed - nearer found: 2.5)
> > [DEBUG]       org.springframework:spring-core:jar:2.0.5:compile
> > (removed - nearer found: 2.5)
> > [DEBUG]   org.apache.struts:struts2-codebehind-plugin:jar:2.0.11:compile
> > (selected for compile)
> >
> > You might try adding an exclusion to this dependency in web/pom.xml
> > and see if that helps.
> >
> > Matt
> >
> > On 12/7/07, Michael Horwitz <[EMAIL PROTECTED]> wrote:
> >> It sounds as if the 2.0.5 dependencies are being pulled in transitively.
> >> Run
> >> maven with the -X switch and pipe the output to a file. The contents of
> >> the
> >> file will show you which dependency is pulling in the wrong spring
> >> version.
> >>
> >> Mike
> >>
> >>
> >> On Dec 7, 2007 12:13 PM, yuke <[EMAIL PROTECTED]> wrote:
> >> >
> >> >
> >> >
> >> > unfortunately that still wont work for me.
> >> >
> >> > but i found something strange, i found these jar's  in
> >> > \web\target\Lat2-webapp-1.0-SNAPSHOT\WEB-INF\lib:
> >> > spring-beans-2.0.5.jar
> >> > spring-core-2.0.5.jar
> >> > spring-web-2.0.5.jar
> >> >
> >> > even the values of spring.version in /pom.xml  :
> >> > <spring.version>2.5</spring.version>
> >> >
> >> > and after i go through to the maven repository, folder of 2.0.5 version
> >> in
> >> > spring-beans, spring-core, spring-web have newer "date modified" than
> >> 2.5
> >> > version.
> >> > is this the root of the problem ? is something wrong with my maven
> >> > repository ?
> >> >
> >> > i was try to change maven repository folder and unzip
> >> > "appfuse-dependencies-2.0.1-with-source-and-javadoc "
> >> > to make sure that my repository was clean.
> >> >
> >> > but after i run : mvn jetty:run-war -Dmaven.test.skip=true from /
> >> > i saw that these jars are downloaded :
> >> > spring-beans-2.0.5.jar
> >> > spring-core-2.0.5.jar
> >> > spring-web-2.0.5.jar
> >> >
> >> > i'm newbie in maven and appfuse, is it related problem ?
> >> >
> >> > Yuke
> >> >
> >> >
> >> >
> >> >
> >> > I was successfully able to reproduce this. Removing the following bean
> >> > definition in core/src/main/resources/applicationContext-
> >> service.xml
> >> > seems to fix the problem:
> >> >
> >> >    <!-- Fix bug in Spring 2.0.6:
> >> http://issues.appfuse.org/browse/APF-887
> >> > -->
> >> >    <bean
> >> >
> >> class="org.springframework.transaction.aspectj.AnnotationTransactionAspect"
> >> > factory-method="aspectOf" dependency-check="none" lazy-init="false">
> >> >        <property name="transactionManager" ref="transactionManager"/>
> >> >    </bean>
> >> >
> >> > If this works for you, can you please enter an issue for this in JIRA?
> >> >
> >> > http://issues.appfuse.org/browse/APF
> >> >
> >> > Thanks!
> >> >
> >> > Matt
> >> >
> >> > --
> >> > View this message in context:
> >> http://www.nabble.com/failed-after-mvn-appfuse%3Afull-source-tf4955813s2369.html#a14211478
> >> >
> >> >
> >> >
> >> > 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]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/failed-after-mvn-appfuse%3Afull-source-tp14191599s2369p14247937.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