SAP Knowledge Base Article - Preview

2591890 - NoClassDefFoundError exception of license installing script tool in hybris 6.6

Symptom

In hybris 6.6.0.0, there's a problem with the license.sh and license.bat script in hybris. It throws the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity
at de.hybris.platform.util.VelocityHelper.init(VelocityHelper.java:31)
at de.hybris.platform.core.Registry.<clinit>(Registry.java:82)
at de.hybris.platform.util.Utilities.assureCoreUtilities(Utilities.java:221)
at de.hybris.platform.util.Utilities.loadPlatformProperties(Utilities.java:2949)
at de.hybris.platform.util.logging.log4j2.HybrisLog4j2ConfigurationFactory.getConfiguration(HybrisLog4j2ConfigurationFactory.java:55)
at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:353)
at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:260)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:613)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:122)
at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
at de.hybris.platform.util.logging.HybrisLogger.<init>(HybrisLogger.java:104)
at de.hybris.platform.util.logging.HybrisLoggerFactory.makeNewLoggerInstance(HybrisLoggerFactory.java:31)
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:103)
at de.hybris.platform.core.Log4JUtils.startup(Log4JUtils.java:56)
at de.hybris.platform.util.Utilities.<clinit>(Utilities.java:126)
at de.hybris.platform.licence.sap.DefaultKeySystem.loadPlatformProperties(DefaultKeySystem.java:61)
at de.hybris.platform.licence.sap.DefaultKeySystem.<init>(DefaultKeySystem.java:48)
at de.hybris.platform.licence.sap.HybrisAdmin.main(HybrisAdmin.java:46)
Caused by: java.lang.ClassNotFoundException: org.apache.velocity.app.Velocity
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 29 more


Read more...

Environment

hybris commerce suite 6.6.0.0

Product

SAP Hybris Commerce 6.6

Keywords

install license; script; tool; hybris 6.6; NoClassDefFoundError; license.sh; license.bat , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

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

Search for additional results

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