| Author |
Problem in integrating apache tiles with Spring 3.0
|
Neha k Agrawal
Greenhorn
Joined: Mar 25, 2008
Posts: 25
|
|
Hi All,
First of all sorry if this is very basic & has already been answered earlier on this forum but I couldn't find it & I am very new to Spring. I am getting the below error. I also see that this package is present in tiles-core-2.2.2.jar
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/tiles/startup/BasicTilesInitializer
I have added the following jars to WEB-INF/lib folder.
tiles-api-2.2.2.jar
tiles-core-2.2.2.jar
tiles-jsp-2.2.2.jar
tiles-servlet-2.2.2.jar
tiles-template-2.2.2.jar
Here goes my dispatcher-servlet.xml
Can anyone please tell me what am I doing wrong here? Thanks in advance.
|
 |
Atul Kotwale
Greenhorn
Joined: Dec 22, 2011
Posts: 17
|
|
|
Try to put jar in WEB-INF/Classes folder. Sometime tomcat does not pick up jar for lib folder.
|
 |
Neha k Agrawal
Greenhorn
Joined: Mar 25, 2008
Posts: 25
|
|
|
I just tried that & no luck same error. Do you suggest something else?
|
 |
Atul Kotwale
Greenhorn
Joined: Dec 22, 2011
Posts: 17
|
|
|
I have created a maven project and it works fine. I would suggest you to create maven project instead of adding jar manually. It would be easier to maintain the jars in future too.
|
 |
 |
|
|
subject: Problem in integrating apache tiles with Spring 3.0
|
|
|