Struts Guide Pack

Source: Internet
Author: User

I used struts-2.2.3 and started to put all the jar bags in, but I always reported

Info: Parsing configuration file [Struts-plugin.xml]
2011-6-11 8:39:56 Com.opensymphony.xwork2.util.logging.commons.CommonsLogger Error
Severity: Dispatcher initialization failed
Unable to load configuration. -bean-jar:file:/c:/users/jacky/workspaces/myeclipse%208.6/.metadata/.me_tcat/webapps/struts/web-inf/lib/ struts2-gxp-plugin-2.2.3.jar!/struts-plugin.xml:8:162
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:69)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:380)

Headache, and later saw someone say: This is the fault of Apache. According to the official documentation, running STRUTS2 must load 5 core jar packages, which is the 5 jar package that we started to copy, if you are using a version prior to STRUTS2 is not a problem, but if you go to download this new version, will be reported as the error, because also need to load an additional two jar package , but the official documentation is not updated

This method adds the following packages
Struts2-core-2.1.6.jar,
Xwork-2.1.2.jar,
Freemarker-2.3.13.jar,
Ognl-2.6.11.jar,
Commons-logging-1.0.4.jar,
Commons-fileupload-1.2.1.jar,
Commons-io-1.3.2.jar

But after the trial or error, the specific errors do not remember.

Don't be discouraged, find again, find someone to give the method, this time became:)

Unzip the Struts2-blank-2.1.6.war file in the Apps folder in Struts-2.1.6-all.zip. Enter struts2-blank-2.1.6 "Web-inf" Lib to import only 9 jar packages under this folder into Project engineering.

The decompression method is available with the WinRAR tool.

It says it's 9 jars, and I'm looking at 11 jar packs, all in the OK.

The package is as follows:
Asm-3.1.jar

Asm-commons-3.1.jar

Asm-tree-3.1.jar

Commons-fileupload-1.2.2.jar

Commons-io-2.0.1.jar

Commons-lang-2.5.jar

Freemarker-2.3.16.jar

Javassist-3.11.0.ga.jar

Ognl-3.0.1.jar

Struts2-core-2.2.3.jar

Xwork-core-2.2.3.jar

It seems to add more jar package is not a good thing ah, Google can not Baidu, Baidu can no longer Google, refueling!

Struts Guide Pack

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.