Author Topic: NoClassDefFoundError: freemarker.template.Configuration  (Read 55182 times)

ushacomm

  • Customer
  • Newbie
  • *
  • Posts: 34
    • View Profile
NoClassDefFoundError: freemarker.template.Configuration
« on: July 05, 2012, 12:52:05 PM »
I am getting this error (NoClassDefFoundError: freemarker.template.Configuration) when trying to run new version of CRD (crdnew). This is application specific as other applications are running fine.

I suspect this is a setup problem. Can you please advise?

Dev Team

  • Customer
  • Hero Member
  • *
  • Posts: 593
    • View Profile
Re: NoClassDefFoundError: freemarker.template.Configuration
« Reply #1 on: July 05, 2012, 12:54:49 PM »
Try to output all environment variable values in clientAgent.bat before it starts application so that we can review values.

If you get NoClassDefFoundError for freemarker it means you're missing freemarker.jar on CLASSPATH.

In email you shown that you have a lot of jars including ajaxswing.jar on -Xbootclasspath, since you add ajaxswing.jar and freemarker.jar is on normal classpath - it would fail since ajaxswing code from bootclasspath won't be able to load freemarker. Remove ajaxswing.jar form -Xbootclasspath, AjaxSwing only required asboot.jar there.

ushacomm

  • Customer
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: NoClassDefFoundError: freemarker.template.Configuration
« Reply #2 on: July 06, 2012, 12:41:54 AM »
Removed ajaxswing.jar from bootclasspath. Working now.

Thanks a lot.