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










share|improve this question




























    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










    share|improve this question


























      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










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 at 16:11

























      asked Nov 22 at 7:48









      Farrukh Chishti

      1,04852035




      1,04852035
























          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






          share|improve this answer























          • 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, /mycommercewebservices should be there under the web column
            – HybrisHelp
            Nov 22 at 12:56






          • 1




            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











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          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

























          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






          share|improve this answer























          • 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, /mycommercewebservices should be there under the web column
            – HybrisHelp
            Nov 22 at 12:56






          • 1




            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















          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






          share|improve this answer























          • 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, /mycommercewebservices should be there under the web column
            – HybrisHelp
            Nov 22 at 12:56






          • 1




            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













          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






          share|improve this answer














          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







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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, /mycommercewebservices should be there under the web column
            – HybrisHelp
            Nov 22 at 12:56






          • 1




            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


















          • 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, /mycommercewebservices should be there under the web column
            – HybrisHelp
            Nov 22 at 12:56






          • 1




            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
















          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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Catalogne

          Violoncelliste

          Héron pourpré