Quantcast
Channel: Adobe Community : Unanswered Discussions - Digital Marketing Suite
Viewing all articles
Browse latest Browse all 937

404 page rendering for non html requests

$
0
0

I am facing an issue when I am requesting an unavailable page which has an extension other than .html.

 

For ex: .../foo.html renders the 404 page but .../foo.xml doesn't.

 

Inside the 404.jsp page in /apps/sling/servlet/errorhandler, I am including a footer script like:

<cq:include script="/apps/blahsite/components/page/blahpage/footer.jsp"/>

and inside th footer.jsp, I am including a component like:

<cq:include path="/content/blahsite/jcr:content/mycomponent" resourceType="/apps/blahsite/components/mycomponent" />

 

For a ../foo.html page, the component - mycomponent renders fine but for the ../foo.xml request, it breaks to include the component and gives an error:

 

Error during include of component '/apps/blahsite/components/mycomponent' Error Message:java.lang.IllegalStateException

 

I am unable to resolve this issue. Can someone please help me?


Viewing all articles
Browse latest Browse all 937

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>