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

while running license.bat -temp CPS_SQL getting Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at de.hybris.platform.util.VelocityHelper.init(VelocityHelper.java:31)

nikhil-ku
Explorer
0 Kudos
353

while runcense.bat -temp CPS_SQL getting Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at de.hybris.platform.util.VelocityHelper.init(VelocityHelper.java:31)

Accepted Solutions (0)

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Kudos

We've previously experienced a bug in the classpath for the license.bat file. SAP had updated the Spring version used but not reflected this change in license.bat

E.g. for Hybris 6.1.0.2 we run this replacement before running the license.bat file

 sed -i 's/\(spring-\w\+-4\.1\)\.7/\1.9/g' /opt/hybris/bin/platform/license.sh

You could also just edit the file manually to change 4.1.7 to 4.1.9 (or whatever the correct version is)

Ask a Question
Top Q&A Solution Author