Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in integrating apache tiles with Spring 3.0

 
Neha k Agrawal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to put jar in WEB-INF/Classes folder. Sometime tomcat does not pick up jar for lib folder.
 
Neha k Agrawal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried that & no luck same error. Do you suggest something else?
 
Atul Kotwale
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic