I am developing Struts 2 application and after all I am getting following error.
SEVERE: Dispatcher initialization failed
Unable to load configuration. - be
As the exception clearly states,
Caused by: java.lang.ClassNotFoundException: freemarker.cache.TemplateLoader
It is just a simple case of some missing jars ( freemarker in this case ).
If this is the first time you are making a struts application, I suggest you start with the blank struts war. It is a simple deployabe war file that contains all the basic jars and resources/files that are required to deploy and run a struts2 project successfully.
Here is the direct link to the war file.
You just have to check that did you added all the required .jar files. these are below jar which you have to add: Maintain following version of jars in you lib. I think you won't face any problem
antlr-2.7.6.jar
commons-beanutils-1.7.0.jar
commons-collections-3.2.jar
commons-digester.jar
commons-fileupload-1.2.2.jar
commons-io-2.4.jar
commons-lang-1.2.jar
commons-logging-1.1.jar
freemarker-2.3.16.jar
javassist-3.7.ga.jar
ognl-3.0.jar
struts2-core-2.2.3.jar
xwork-core-2.2.1.jar
Looks like freemarker jar is missing. This should rectify current issue. If other dependent JARs are missing then you will some other exceptions after this.