-
Feb 15th, 2011, 09:42 AM
#1
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:
<beans:bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2 .TilesConfigurer">
<beans:property name="definitions">
<beans:list>
<beans:value>/WEB-INF/tiles/tiles.xml</beans:value>
</beans:list>
</beans:property>
<beans:property name="preparerFactoryClass"
value="org.springframework.web.servlet.view.tiles2 .Spring BeanPreparerFactory" />
</beans:bean>
<beans:bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBas edViewResolver">
<beans:property name="viewClass" value="org.springframework.web.servlet.view.tiles2 .TilesView" />
<beans:property name="order" value="2" />
</beans:bean>
Any ideas regarding the issue. I already referenced tiles-core*.jar which contains the BasicTilesInitializer which has been deprecated.
-
Feb 15th, 2011, 11:22 AM
#2
I solved my problem by adding the tiles jar files to my web-inf\lib folder
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules