OCC的电话正在打到店面,而不是商业网络服务



OCC呼叫正在命中storefront而不是commercewebservices。获取代币的电话工作得很好,但获取产品或订单的电话说:

CMS站点未找到

并命中storefront而不是commercewebservices的筛选器。

令牌调用 -https://localhost:9002/authorizationserver/oauth/token

OCC呼叫 -https://localhost:9002/mycommercewebservices/v2/indsite/products/120398IDC

编辑1:我仍然有这个问题。此外,从hac->extensions中点击扩展webroot仍在提供-https://localhost:9002/mycommercewebservices

HTTP状态500:未找到CMS站点

我可以在mycommercewebservicesaddonsrc文件夹中看到我的acceleratoraddon/web中的所有类

您是否更改了mycommercewebservices中的web上下文默认情况下,Commerce Web Services在/restWeb上下文下可用,如extensioninfo.xml文件中所指定。因此,请检查mycommercewebservices扩展的extensioninfo.xml中指定的webroot。

<webmodule jspcompile="false" webroot="/rest" />

参考本文件

请运行ant server(如果您以前没有这样做过(,因为tomcat的server.xml必须使用/mcommercewebservices的上下文条目进行更新。

最新更新