If you have a web.xml
configuration file in your project, check that XML file is included in context parameters:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/application-context.xml
/WEB-INF/application-security.xml
/WEB-INF/spring-pdf-views.xml
</param-value>
</context-param>
I had the same problem integrating iText library and I had to include XML file here.