cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

upgrading to CXCOM200500P_0-70004955

763

hello experts,

I try to upgrade my local environment to version 2005 according to documentation upgrade 1905 to 2005

Everything goes ok.

ant clean all and hybrisserver.sh starts without errors.

storefront is Spartacus

when i go to https://localhost:4002 I see in console that request

https://localhost:9002/rest/v2/apparel-uk-spa/cms/pages?fields=DEFAULT&pageType=ContentPage&pageLabe...

fails with 404 error

response :

{ "errors" : [ { "message": "There is no resource for path /rest/v2/apparel-uk-spa/cms/pages", "type": "UnknownResourceError" } ] }

Accepted Solutions (1)

Accepted Solutions (1)

geffchang
Active Contributor
0 Likes

Did you do "ant addoninstall" for "cmsoccaddon"?

0 Likes

No
should I reinstall all addons in the upgrade process?

copy of data folder is not enough ?

geffchang
Active Contributor
0 Likes

marian-sap-remit Can you try and see if it works? If it does, you can upvote and accept the answer. 🙂

Answers (1)

Answers (1)

daniel_zharov
Explorer
0 Likes

If you will check https://localhost:9002/rest/ Swagger, then you won't find Components webservice there. So may be you forgot to install addon or in process of migration to 2005 while copy-paste new requestMappingHandlerMapping method in WebConfig you forgot to change Handler Mapping to 'v2' in requestMappingHandlerMapping

Should be

final CommerceHandlerMapping handlerMapping = new CommerceHandlerMapping("v2"); 

in v2 WebConfig, not

final CommerceHandlerMapping handlerMapping = new CommerceHandlerMapping("v1");