Skip to main content


Showing posts from February, 2017

Error while configuring Spring with FreeMarker

Today I got a strange problem while configuring FreeMarker with Spring . The project compiles well without any error. All seems to be fine. When I tried to run the application strangely I got following error: Spring in Action, 4ed (Manning) java.lang.NoSuchMethodError: freemarker.template.Configuration. Lfreemarker/template/Version;)V Now for struggling and googling for around one hour I got the answer :) Instant FreeMarker Starter I am using Spring 4.3.5.RELEASE and FreeMarker 2.3.20 before I found the answer. This isstrange but the actual problem lies with the version compatibility of FreeMarker with Spring . It seems that Spring had some issues with FreeMarker . After changing the FreeMarker version from 2.3.20 to 2.3.23 all works fine. Hope this solution help the developers out there configuring FreeMarker with Spring. Enjoy coding!