I added code to implement the RestTemplate client in my Spring MVC project (Eclipse, Maven, Spring 3.1.0.RELEASE). Everything builds, and when I start Tomcat7, I get the result below. Perhaps this is a Spring artifact that is missing from pom.xml? I have
- spring -webmvc (excluding public records)
- spring -oxm
- spring -Security-Web
- spring-configuration security
- spring-tx
- spring-aop
- spring -orm
- spring-test
- apache httpclient (excluding public records).
org.springframework.beans.factory.BeanCreationException: Error creating bean . . nested exception is java.lang.NoClassDefFoundError: org/apache/http/auth/Credentials
Caused by: java.lang.ClassNotFoundException: org.apache.http.auth.Credentials at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1676) at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1521) ... 39 more
code>
source share