Skip to Content
0
Nov 26, 2019 at 09:43 AM

Add-on webservices no longer work in 1808

154 Views Last edit Nov 26, 2019 at 09:44 AM 2 rev

Hello one and all,

We just upgraded from version 6.5 to 1808 of SAP Commerce Cloud.

After tests on our entire website on local environments, we deployed our fully migrated code to an integration environment and are faced with a Class Loader error when using SOAP web services implemented in one of our custom add-on extensions.

Here's the situation :

The first call of each web service loads data structure classes generated from our WSDL file.

The second call returns a class loader exception as if Hybris was trying to define the same class twice :

javax.xml.ws.WebServiceException: java.lang.reflect.InvocationTargetException

Caused by: java.lang.LinkageError: loader (instance of de/hybris/bootstrap/loader/PlatformInPlaceClassLoader): attempted duplicate class definition for name: <Path_To_Class>

We have other web services that are fully functionnal (in a different extension that isn't an add-on) ; the only difference between the two extensions is that one is an add-on.

This problem only appears in our integration environment which runs on Ubuntu 18.04 (our local development environments run Windows).

Is there any difference in Hybris' class loader implementation between 6.5 and 1808 that could explain a different behaviour in class loading between regular extensions and add-ons ?