aspose file tools*
The moose likes Spring and the fly likes java.lang.NoSuchMethodError: HandlerMethodResolver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "java.lang.NoSuchMethodError: HandlerMethodResolver " Watch "java.lang.NoSuchMethodError: HandlerMethodResolver " New topic
Author

java.lang.NoSuchMethodError: HandlerMethodResolver

Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
I've a web application using spring 3.0.5 and Tomcat 6.0.16

The following exception occurs in the browser when trying to access the application




The pom.xml :




Many thanks in advance !!!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Not sure why you posted the pom file.

Anyway, is there more to that stack trace. It looks like you didn't paste the entire stack trace. Look at the very bottom of your stack trace to find the root cause exception and post that please.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
Hi Mark, thanks for reply. The full stacktrace is in the log file localhost.2011-06-07.log in the directory logs from tomcat.

Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

You are facing some version-clashes.
Try to exclude the spring-context dependency from spring-tomcat-weaver:


and use the current version of webflow (if possible):



Maybe there are more clashes but those are the ones I could spot.
Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
Hi Joachim , thanks for suggestion.

I removed spring-tomcat-weaver , it compiled fine but still have the same exception.

I didn't find version 2.3.0 of spring-webflow. The version I found is 1.0.6. I added this version, but still same exception.

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Frank VanOor wrote:Hi Joachim , thanks for suggestion.

I removed spring-tomcat-weaver , it compiled fine but still have the same exception.

I didn't find version 2.3.0 of spring-webflow. The version I found is 1.0.6. I added this version, but still same exception.



When you build, in your target directory, what are the third party jars that get packaged with your application. Look at them and tell us if you see any duplicates with different version numbers.

Mark
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Have you considered that the groupId changed for the new SpringWebFlow versions?
But as Mark mentioned: it would be best to have a look in your target directory for duplicates.
Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
H Mark,

You were right !!! I looked into the Target directory and indeed, lots of Spring 2.5.6 jars were still sitting there. I did a maven clean which removes the content of Target, made a new build, deploy and the Exception isn't happening anymore.

Many many thanks !!!

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Frank VanOor wrote:H Mark,

You were right !!! I looked into the Target directory and indeed, lots of Spring 2.5.6 jars were still sitting there. I did a maven clean which removes the content of Target, made a new build, deploy and the Exception isn't happening anymore.

Many many thanks !!!



It was definitely a team effort.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoSuchMethodError: HandlerMethodResolver