Back Forum Reply New

Spring 3 MVC and Tiles 2.2.2 Integration Error

I get the following error when attempting to integrate Tiles 2.2.2 with Spring 3.0.4 or 5 MVC.

java.lang.ClassNotFoundException: org.apache.tiles.startup.BasicTilesInitializer

I am configuring tiles and my view resolver with the following xml configuration:

lt;beans:bean id=quot;tilesConfigurerquot; class=quot;org..web.servlet.view.tiles2  .TilesConfigurerquot;gt;
lt;beans:property name=quot;definitionsquot;gt;
lt;beans:listgt;
lt;beans:valuegt;/WEB-INF/tiles/tiles.xmllt;/beans:valuegt;
lt;/beans:listgt;
lt;/beans:propertygt;
lt;beans:property name=quot;preparerFactoryClassquot;
value=quot;org..web.servlet.view.tiles2  .Spring BeanPreparerFactoryquot; /gt;
lt;/beans:beangt;
lt;beans:bean id=quot;viewResolverquot; class=quot;org..web.servlet.view.uclBas  edViewResolverquot;gt;
lt;beans:property name=quot;viewClassquot; value=quot;org..web.servlet.view.tiles2  .TilesViewquot; /gt;
lt;beans:property name=quot;orderquot; value=quot;2quot; /gt;
lt;/beans:beangt;

Any ideas regarding the issue. I already referenced tiles-core*.jar which contains the BasicTilesInitializer which has been deprecated.

I solved my problem by adding the tiles jar files to my web-inf\lib folder
¥
Back Forum Reply New