aspose file tools
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
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply 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: 1282

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: 1282

Please run a mvn dependency:tree from the cmd line and paste the output here.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Tiles with Spring 3.1.1 problem. Cannot find method in class
 
Similar Threads
Tiles 2.2.1 with spring framework 3.0.2
BeanDefinitionParsingException : NamespaceHandler
tiles and spring 2.5 integration problem
Tiles 2.1 integration with Spring 3.0
Is it possible to integrate Spring 2.5 and Tiles 2.1.2