An error occurred while configuring SSH
Unable to load configuration.-Bean-jar:file:/d:/program%20files/apache%20software%20foundation/tomcat%206.0/webapps/testjson/web-inf/lib/ struts2-core-2.1.8.1.jar!/struts-default.xml:53:89
For the novice who just started to configure Struts2 , may encounter these problems, I also encountered this problem, online search for half a day did not find very satisfied with the explanation, most of the explanations are not satisfactory, did not find the root cause, so specifically write this question
Everyone to see the surface meaning know, do not recognize strust2 jar, but why, in fact, because we look at the various versions of the book introduction has a relationship, some books described a struts2 project need to load the class too little, Cause this problem, that is, you load the class less, forget the book,struts2.0.4 seems to be this version, he described above only need to load commons-logging- version . jar, Log4j.jar ( non-essential ), Ognl.jar,xwork-core,jar, Struts2-core.jar, Commons-io.jar I simply wrote the Jar 's name, But just like a name, version of the location of the version, I have omitted the name behind, but in fact, the jar described above is far from enough, if you are loaded by this jar , it will cause the above exception, more easily overlooked Jar is
commons-fileupload- version . Jar and freemarker- version . Jar, in fact, these 2 jars are also struts2 necessary jar , but very few people mention it, so write it down and make it easy for all the friends who have just begun struts2 tour
"Java EE Spring" 25, unable to load configuration. -Bean-jar:file: