I did that and got same error message.
The classpath:
antlr-2.7.7.jar
commons-logging.jar
dom4j-1.6.1.jar
jquery-2.0.3.js
jquery-2.0.3.min.js
jquery-2.js
jstl.jar
org.springframework.asm-3.1.1.RELEASE.jar
org.springframework.beans-3.1.1.RELEASE.jar
org.springframework.context-3.1.1.RELEASE.jar
org.springframework.context.support-3.1.1.RELEASE.jar
org.springframework.core-3.1.1.RELEASE.jar
org.springframework.expression-3.1.1.RELEASE.jar
org.springframework.web-3.1.1.RELEASE.jar
org.springframework.web.servlet-3.1.1.RELEASE.jar
standard.jar
I also tried adding jackson-all-1.9.0.jar to the classpath.
I got some response when using a GET request and sending a
string "hello" in request from the browser. I do not need a single string like hello to be displayed in my HTML but need some properties of Product like product.price, product.type etc. But when sending Product as response there is error message :
The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers ()
My Spring controller code:
So the issue is I am able to send Hello a single string in the response using below url
http://localhost:8080/MyShoppingCart/getAjaxResponse.htm?productId=abc
but I need more information to be displayed in HTML like product.price, product.type.
thanks