Friday, June 9, 2017

CMN1245E Server fails to redirect to the view URL

Issue - CMN1245E: Server fails to redirect to the view URL.

Sometime when you move to new environment yo face above issue while doing any transection (Like registration or moving to some other view)

Solution : This happens mostly when url filtring is enabled in wc-server.xml and your hostname is not mentioned under allowed domail.

Follow below step:

1. Open the WebSphere Commerce configuration file. (wc-server.xml)
2. Locate the web module where you want to enable this feature. For example, if you want to enable this feature for the Stores web module, modify the following section:

<Module contextPath="/webapp/wcs/stores"
                fileServletEnabled="false" name="Stores"
                urlMappingPath="/servlet" webAlias="/wcsstore">
                <InitParameters adapters="XML/HTTP, BrowserAdapter"
                contextSetName="Store" handleDoubleClick="true"/>
                <URLRedirectFilter enable="true">
                <AllowedHost name="www.mycompany1.com"/>
                <AllowedHost name="www.mycompany2.com"/>
                <AllowedDomain name="mycompany3.com"/>
                </URLRedirectFilter>
</Module>


Refrence - Technote