11 June, 2013

Reject action/serveResource url

If you are getting below error during any action/serveresource URL call ,

"Reject serveResource/processAction for http://localhost.sapient.com:8080/web/guest/home on mysample_WAR_mysample"


Use below solution to get it resolve:

Add <add-default-resource>true</add-default-resource> to your portlet in liferay-portlet.xml.

e.g.
<portlet>
:
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
:
<add-default-resource>true</add-default-resource>
</portlet>

Rate Me:

0 Discussion: