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

Loading multiple backoffice contexts (in a multi-tenant setup) fails

abderzakeboufeta
Explorer
0 Likes
805

Context:

  • Upgrade to Sap Commerce 1905.2
  • Tests done on a windows10 machine


Beside the master tenant, I have a partner tenant setup, let's call it "partner"

When starting the server, the loading of the context backoffice_partner fails because of an error.

The source cause is:

Caused by: java.io.IOException: Unable to remove a module library: pathto\hybris\data \backoffice\widgetlib\deployed\platformbackoffice.jar at com.hybris.backoffice.BackofficeModulesManager.removeModuleJarImmediately(BackofficeModulesManager.java:355) at com.hybris.backoffice.BackofficeModulesManager.refreshAndFetch(BackofficeModulesManager.java:116)



The removal of this module library is not possible because the jar platformbackoffice.jar is locked by the very same hybris java process.

There doesn't seem to be any bug opened (yet) at SAP's side. We're in the process of opening such a ticket.

Have you experienced this issue on your multi-tenant setup?

Thanks for your feedback.

Cheers,

Abderzake

Accepted Solutions (0)

Answers (1)

Answers (1)

abderzakeboufeta
Explorer
0 Likes

Hi @arvind-kumar-avinash,

Sorry for the delay, I was off...!

To answer your question, the issue was occurring at the server boot not during build time.

Was occurring, because I've actually found the solution. It's actually documented in the wiki here

https://help.sap.com/viewer/5c9ea0c629214e42b727bf08800d8dfa/1811/en-US/c7e1bf2832414c8ea15c001d5cf1...

But I didn't find this page when I had searched for it initially....

Anyway: In short, to avoid this library clashes, you can (and must) different library folders after configuring the property "backoffice.library.home" for the all of your non-master tenants through the property "backoffice.library.home".

In case it can help someone some day!