"Java EE Spring" 25, unable to load configuration. -Bean-jar:file:

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.