1

I am trying to access my DXA model data in JSON format by using the format=json query string parameter (as outlined in the docs). However I get an error displayed:

HTTP Status 404 – Not Found

Type Status Report

Message /WEB-INF/Views/jsonFeedView.jsp

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

I have hunted around for this jsonFeedView.jsp but cannot find it anywhere - is this perhaps missing from DXA 2.0?

3

Found the problem, an extra UrlBasedViewResolver bean is in place with viewClass JstlView and order 5. Because of this new UrlBasedViewResolver the BeanNameViewResolver is never reached. This is why we get HTTP Status 404 – Not Found.

1

This is weird; for sure, the ability to retrieve A JSON representation by means of specifying format=json in the URL query string has not been removed in DXA 2.0 (as proven by automated regression tests).

I don’t know why you are getting that error, though. AFAIK, the JSON representation does not use a JSP view, but my knowledge of the Java implementation is limited.

  • We are not using the core module, could it be that something from this module is required? – Will Price Jan 16 at 14:20
  • That could explain why we’re not observing this problem in-house, indeed. Would of course be a defect if this is the case. – Rick Pannekoek Jan 16 at 18:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.