A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

AppFuse 2.0.2 and Spring 2.0.8+2.5 = NoSuchMethodError

View: New views
1 Messages — Rating Filter:   Alert me  

AppFuse 2.0.2 and Spring 2.0.8+2.5 = NoSuchMethodError

by Ivan Clavijos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there... I recently upgraded my project to AppFuse 2.0.2 on my Windows laptop and I've been able to use it without a problem.

My issue began when I decided to copy all of my code to my desktop computer (intel 64 bits with Kubuntu 8.04 installed on it) and tried to develop on it.

I installed the Maven package from the official repositories (version 2.0.8) and when invoking mvn jetty:run the funny stuff began.

I kept getting a "java.lang.NoSuchMethodError: org.springframework.beans.factory.config.AutowireCapableBeanFactory.createBean(Ljava/lang/Class;)Ljava/lang/Object;:" exception.

After googling a bit I found someone talking about two different versions of Spring being used. I had set up my pom.xml to use Spring 2.5 but I don't know why, some packages of Spring 2.0.8 were being downloaded. These packages are:

spring-context-2.0.8
spring-beans-2.0.8
spring-aop-2.0.8
spring-jdbc-2.0.8

Just these four.

For the last couple of days I've been trying to find where the reference to those packages is but without success.

I've even tried the

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

fix (even if knowing that it was intended for AppFuse 2.0.1) that I found around here, but those four packages keep being downloaded.

So the obvious question is: what am I doing wrong? what do I have to fix to be able to keep going on my desktop computer?

Thanks a whole lot in advance.
LightInTheBox - Buy quality products at wholesale price