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:
java.lang.NoSuchMethodError: freemarker.template.Configuration. Lfreemarker/template/Version;)V
Now for struggling and googling for around one hour I got the answer :)
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!
java.lang.NoSuchMethodError: freemarker.template.Configuration.
Now for struggling and googling for around one hour I got the answer :)
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!
Comments
Post a Comment