Say your WCS 6 Manager comes to you and says-- "Hey , I am bored with
the same content in the URL /webapp/wcs/stores . Replace it with
something exciting like "/yourock" . So the URL
https://testcommerce.com/webapp/wcs/stores/servlet/TopCategories
should be
https://testcommerce.com/webapp/wcs/stores/servlet/TopCategories
should be
https://testcommerce.com/yourock/servlet/TopCategories
Since I donot know what to do (kidding :) ) , I will google and get this solution. So, this how you have to do it.
Solution:
I know since you are intelligent you know you have to ,
a. Make sure you shut down the server while making changes.
b. Back up all files before changing them.
And then do the following.
1. In the file <WCToolkit>\xml\config\wc-server.xml
Replace all contextPath="/webapp/wcs/stores" with contextPath="/yourock"
Replace all StoresWebPath="/webapp/wcs/stores/servlet" with StoresWebPath="/yourock/servlet"
Replace all WebAppPath="/webapp/wcs/stores" with WebAppPath="/yourock"
2. In the file <WCToolkit>\workspace\Stores\WebContent\WEB-INF\web.xml
Replace <param-name>webpath</param-name>
<param-value>/webapp/wcs/stores</param-value>
with <param-name>webpath</param-name>
<param-value>/yourock</param-value>
3. In the file <WCToolkit>\workspace\WC\META-INF\application.xml
Replace <web-uri>Stores.war</web-uri>
<context-root>/webapp/wcs/stores</context-root>
with <web-uri>Stores.war</web-uri>
<context-root>/yourock </context-root>
4. In the file C:\WCToolkitEE60\wc.modules\wars\wcsstore.war\WEB-INF\web.xml
Replace <param-name>TargetContextRoot</param-name>
<param-value>/webapp/wcs/stores</param-value>
With <param-name>TargetContextRoot</param-name>
<param-value>/yourock</param-value>
5. Restart the server and hit the url below to see the home page.
http://<localhost>/yourock/store/HomeView
No comments:
Post a Comment