OCC call is hitting storefront instead of commercewebservices
up vote
0
down vote
favorite
OCC call is hitting storefront instead of commercewebservices. The call to get token is working perfectly fine but the call to get products or order is saying:
CMS Site not found
and hitting the filters of storefront instead of commercewebservices.
Token call- https://localhost:9002/authorizationserver/oauth/token
OCC call- https://localhost:9002/mycommercewebservices/v2/indsite/products/120398IDC
EDIT 1:
I am still getting this issue. Also hitting the extension webroot from hac->extensions is still giving-
https://localhost:9002/mycommercewebservices
HTTP Status 500 : CMS Site Not Found
I can see all the classes from my acceleratoraddon/web in the addonsrc folder of mycommercewebservices
spring rest spring-security hybris storefront
add a comment |
up vote
0
down vote
favorite
OCC call is hitting storefront instead of commercewebservices. The call to get token is working perfectly fine but the call to get products or order is saying:
CMS Site not found
and hitting the filters of storefront instead of commercewebservices.
Token call- https://localhost:9002/authorizationserver/oauth/token
OCC call- https://localhost:9002/mycommercewebservices/v2/indsite/products/120398IDC
EDIT 1:
I am still getting this issue. Also hitting the extension webroot from hac->extensions is still giving-
https://localhost:9002/mycommercewebservices
HTTP Status 500 : CMS Site Not Found
I can see all the classes from my acceleratoraddon/web in the addonsrc folder of mycommercewebservices
spring rest spring-security hybris storefront
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
OCC call is hitting storefront instead of commercewebservices. The call to get token is working perfectly fine but the call to get products or order is saying:
CMS Site not found
and hitting the filters of storefront instead of commercewebservices.
Token call- https://localhost:9002/authorizationserver/oauth/token
OCC call- https://localhost:9002/mycommercewebservices/v2/indsite/products/120398IDC
EDIT 1:
I am still getting this issue. Also hitting the extension webroot from hac->extensions is still giving-
https://localhost:9002/mycommercewebservices
HTTP Status 500 : CMS Site Not Found
I can see all the classes from my acceleratoraddon/web in the addonsrc folder of mycommercewebservices
spring rest spring-security hybris storefront
OCC call is hitting storefront instead of commercewebservices. The call to get token is working perfectly fine but the call to get products or order is saying:
CMS Site not found
and hitting the filters of storefront instead of commercewebservices.
Token call- https://localhost:9002/authorizationserver/oauth/token
OCC call- https://localhost:9002/mycommercewebservices/v2/indsite/products/120398IDC
EDIT 1:
I am still getting this issue. Also hitting the extension webroot from hac->extensions is still giving-
https://localhost:9002/mycommercewebservices
HTTP Status 500 : CMS Site Not Found
I can see all the classes from my acceleratoraddon/web in the addonsrc folder of mycommercewebservices
spring rest spring-security hybris storefront
spring rest spring-security hybris storefront
edited Nov 27 at 16:11
asked Nov 22 at 7:48
Farrukh Chishti
1,04852035
1,04852035
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Have you changed the web context in mycommercewebservices?
By default, the Commerce Web Services are available under the /rest web context, as specified in the extensioninfo.xml file. So check for the webroot specified in extensioninfo.xml of the mycommercewebservices extension.
<webmodule jspcompile="false" webroot="/rest" />
Refer this doc
Yes, I have changed the web context i.e. webroot to mycommercewebservices. That's why I am hitting the OCC controller with webroot in the URL- localhost:9002/mycommercewebservices/v2/indsite/products/… but I am getting "cms site not found" and the calls are hitting storefront instead of commercewebservices.
– Farrukh Chishti
Nov 22 at 12:26
1
Also, cross verify web context from hac > extensions > search for your extension,/mycommercewebservicesshould be there under the web column
– HybrisHelp
Nov 22 at 12:56
1
What about propertycommercewebservices.rootcontextchanges mentioned here?
– HybrisHelp
Nov 22 at 12:57
Switching off SSL certificates in Postman did not solve the issue.
– Farrukh Chishti
Nov 27 at 16:13
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Have you changed the web context in mycommercewebservices?
By default, the Commerce Web Services are available under the /rest web context, as specified in the extensioninfo.xml file. So check for the webroot specified in extensioninfo.xml of the mycommercewebservices extension.
<webmodule jspcompile="false" webroot="/rest" />
Refer this doc
Yes, I have changed the web context i.e. webroot to mycommercewebservices. That's why I am hitting the OCC controller with webroot in the URL- localhost:9002/mycommercewebservices/v2/indsite/products/… but I am getting "cms site not found" and the calls are hitting storefront instead of commercewebservices.
– Farrukh Chishti
Nov 22 at 12:26
1
Also, cross verify web context from hac > extensions > search for your extension,/mycommercewebservicesshould be there under the web column
– HybrisHelp
Nov 22 at 12:56
1
What about propertycommercewebservices.rootcontextchanges mentioned here?
– HybrisHelp
Nov 22 at 12:57
Switching off SSL certificates in Postman did not solve the issue.
– Farrukh Chishti
Nov 27 at 16:13
add a comment |
up vote
1
down vote
Have you changed the web context in mycommercewebservices?
By default, the Commerce Web Services are available under the /rest web context, as specified in the extensioninfo.xml file. So check for the webroot specified in extensioninfo.xml of the mycommercewebservices extension.
<webmodule jspcompile="false" webroot="/rest" />
Refer this doc
Yes, I have changed the web context i.e. webroot to mycommercewebservices. That's why I am hitting the OCC controller with webroot in the URL- localhost:9002/mycommercewebservices/v2/indsite/products/… but I am getting "cms site not found" and the calls are hitting storefront instead of commercewebservices.
– Farrukh Chishti
Nov 22 at 12:26
1
Also, cross verify web context from hac > extensions > search for your extension,/mycommercewebservicesshould be there under the web column
– HybrisHelp
Nov 22 at 12:56
1
What about propertycommercewebservices.rootcontextchanges mentioned here?
– HybrisHelp
Nov 22 at 12:57
Switching off SSL certificates in Postman did not solve the issue.
– Farrukh Chishti
Nov 27 at 16:13
add a comment |
up vote
1
down vote
up vote
1
down vote
Have you changed the web context in mycommercewebservices?
By default, the Commerce Web Services are available under the /rest web context, as specified in the extensioninfo.xml file. So check for the webroot specified in extensioninfo.xml of the mycommercewebservices extension.
<webmodule jspcompile="false" webroot="/rest" />
Refer this doc
Have you changed the web context in mycommercewebservices?
By default, the Commerce Web Services are available under the /rest web context, as specified in the extensioninfo.xml file. So check for the webroot specified in extensioninfo.xml of the mycommercewebservices extension.
<webmodule jspcompile="false" webroot="/rest" />
Refer this doc
edited Nov 22 at 8:33
answered Nov 22 at 8:23
HybrisHelp
2,65011343
2,65011343
Yes, I have changed the web context i.e. webroot to mycommercewebservices. That's why I am hitting the OCC controller with webroot in the URL- localhost:9002/mycommercewebservices/v2/indsite/products/… but I am getting "cms site not found" and the calls are hitting storefront instead of commercewebservices.
– Farrukh Chishti
Nov 22 at 12:26
1
Also, cross verify web context from hac > extensions > search for your extension,/mycommercewebservicesshould be there under the web column
– HybrisHelp
Nov 22 at 12:56
1
What about propertycommercewebservices.rootcontextchanges mentioned here?
– HybrisHelp
Nov 22 at 12:57
Switching off SSL certificates in Postman did not solve the issue.
– Farrukh Chishti
Nov 27 at 16:13
add a comment |
Yes, I have changed the web context i.e. webroot to mycommercewebservices. That's why I am hitting the OCC controller with webroot in the URL- localhost:9002/mycommercewebservices/v2/indsite/products/… but I am getting "cms site not found" and the calls are hitting storefront instead of commercewebservices.
– Farrukh Chishti
Nov 22 at 12:26
1
Also, cross verify web context from hac > extensions > search for your extension,/mycommercewebservicesshould be there under the web column
– HybrisHelp
Nov 22 at 12:56
1
What about propertycommercewebservices.rootcontextchanges mentioned here?
– HybrisHelp
Nov 22 at 12:57
Switching off SSL certificates in Postman did not solve the issue.
– Farrukh Chishti
Nov 27 at 16:13
Yes, I have changed the web context i.e. webroot to mycommercewebservices. That's why I am hitting the OCC controller with webroot in the URL- localhost:9002/mycommercewebservices/v2/indsite/products/… but I am getting "cms site not found" and the calls are hitting storefront instead of commercewebservices.
– Farrukh Chishti
Nov 22 at 12:26
Yes, I have changed the web context i.e. webroot to mycommercewebservices. That's why I am hitting the OCC controller with webroot in the URL- localhost:9002/mycommercewebservices/v2/indsite/products/… but I am getting "cms site not found" and the calls are hitting storefront instead of commercewebservices.
– Farrukh Chishti
Nov 22 at 12:26
1
1
Also, cross verify web context from hac > extensions > search for your extension,
/mycommercewebservices should be there under the web column– HybrisHelp
Nov 22 at 12:56
Also, cross verify web context from hac > extensions > search for your extension,
/mycommercewebservices should be there under the web column– HybrisHelp
Nov 22 at 12:56
1
1
What about property
commercewebservices.rootcontext changes mentioned here?– HybrisHelp
Nov 22 at 12:57
What about property
commercewebservices.rootcontext changes mentioned here?– HybrisHelp
Nov 22 at 12:57
Switching off SSL certificates in Postman did not solve the issue.
– Farrukh Chishti
Nov 27 at 16:13
Switching off SSL certificates in Postman did not solve the issue.
– Farrukh Chishti
Nov 27 at 16:13
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53426115%2focc-call-is-hitting-storefront-instead-of-commercewebservices%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown