This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Tiles with Spring 3.1.1 problem. Cannot find method in class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Tiles with Spring 3.1.1 problem. Cannot find method in class" Watch "Tiles with Spring 3.1.1 problem. Cannot find method in class" New topic
Author

Tiles with Spring 3.1.1 problem. Cannot find method in class

Arun Sanky
Greenhorn

Joined: Feb 26, 2013
Posts: 3
Hi,

I am trying to integrate Spring 3.1.1 with tiles 2.x, But am getting the following errors. i have tried different versions of Tiles but this does not work.

Context resource [/WEB-INF/ottrweb-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.tiles.TilesApplicationContext.getContext()Ljava/lang/Object;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)

Thanks,
Arun
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Looks like you have conflicting versions of the tiles library on the classpath.


[How To Ask Questions][Read before you PM me]
Arun Sanky
Greenhorn

Joined: Feb 26, 2013
Posts: 3
Bill Gorder wrote:Looks like you have conflicting versions of the tiles library on the classpath.


Can you please let me know the actual Tiles which needs to be used for resolving this issue.

Also, once i add conflicting versions in Maven, am unable to delete those. I am getting the same error even after deleting the whole Tiles configuration.
Can you please let me know the reason for that.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Please run a mvn dependency:tree from the cmd line and paste the output here.
 
Consider Paul's rocket mass heater.
 
subject: Tiles with Spring 3.1.1 problem. Cannot find method in class
 
Similar Threads
Is it possible to integrate Spring 2.5 and Tiles 2.1.2
BeanDefinitionParsingException : NamespaceHandler
Tiles 2.1 integration with Spring 3.0
tiles and spring 2.5 integration problem
Tiles 2.2.1 with spring framework 3.0.2