java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
at org.apache.http.client.protocol.RequestAuthCache.process(RequestAuthCache.java:75)
at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:131)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:193)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
URL urlOfClass =ClassPathXmlApplicationContext.class.getClassLoader().getResource("org/slf4j/spi/LocationAwareLogger.class");
System.out.println(urlOfClass);
用上面的方法找到所在jar包
jar:file:/D:/Program%20Files/MyEclipse%20for%20Spring/plugins/com.genuitec.eclipse.j2eedt.core_11.0.2.me201308131645/data/libraryset/EE_6/bean-validator.jar!/org/slf4j/spi/LocationAwareLogger.class
解决:将myeclipse自带的Jee 6 library 移除就可以了