SEVERE: Dispatcher initialization failed Unable to load configuration

前端 未结 3 1213
广开言路
广开言路 2021-01-06 10:13

I am developing Struts 2 application and after all I am getting following error.

SEVERE: Dispatcher initialization failed
Unable to load configuration. - be         


        
相关标签:
3条回答
  • 2021-01-06 11:04

    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.

    0 讨论(0)
  • 2021-01-06 11:06

    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

    0 讨论(0)
  • 2021-01-06 11:11

    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.

    0 讨论(0)
提交回复
热议问题