2517223 - How to fix java.lang.NoClassDefFoundError when install license | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2517223 - How to fix java.lang.NoClassDefFoundError when install license

Symptom

When install license for new version hybris, error as below.

hybadm@svrl1ecomfbacki01:~/christ/backend/17.1.0.444/bin/platform> ./license.sh -install /hybris-shopdeployments/LICENSE/entw_christ.txt

---------------------------------------------------------------  Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/MarkerFactory at de.hybris.platform.util.logging.HybrisLogger.(HybrisLogger.java:73) at de.hybris.platform.util.logging.HybrisLoggerFactory.makeNewLoggerInstance(HybrisLoggerFactory.java:32) at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:275) at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:670) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516) at de.hybris.platform.core.Log4JUtils.readConfig(Log4JUtils.java:104) at de.hybris.platform.core.Log4JUtils.startup(Log4JUtils.java:57) at de.hybris.platform.util.Utilities.(Utilities.java:124) at de.hybris.platform.licence.sap.DefaultKeySystem.loadPlatformProperties(DefaultKeySystem.java:62) at de.hybris.platform.licence.sap.DefaultKeySystem.(DefaultKeySystem.java:49) at de.hybris.platform.licence.sap.HybrisAdmin.main(HybrisAdmin.java:47) Caused by: java.lang.ClassNotFoundException: org.slf4j.MarkerFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 11 more  


Read more...

Environment

In hybris commerce suite 6.2.0, 4 digital above 6.2.0.3 version

Product

SAP Hybris Commerce 6.2

Keywords

license.sh;license.bat;install license; , KBA , CEC-COM-BSC-COR , Core component (SAP Hybris) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.