[Java] SSH Frame Note _STRUTS2 configuration issues

Source: Internet
Author: User

1. Unable to load bean:type:class:com.opensymphony.xwork2.objectfactory-bean-jar:file:/d:/program%20files/ apache-tomcat-6.0.35/webapps/strutspro/web-inf/lib/struts2-core-2.3.4.jar!/struts-default.xml:29:72

It is because Tomcat itself Lib has the package that struts needs, and we add the package ourselves to the conflicts that arise.

2, only add 5 packages is not enough Xwork-x.x.x.jar, Commons-logging-x.x.x.jar, Freemarker-x.x.x.jar, Ognl-x.x.x.jar, Struts2-core-x.x.x.jar)

Problem: Serious: Dispatcher initialization failed
Java.lang.RuntimeException:java.lang.reflect.InvocationTargetException

Workaround: Add Javassist-x.x.x.ga.jar

Issue: Warning: Could not create jarentryrevision for [jar:file:/d:/program%20files/apache-tomcat-6.0.35/webapps/strutspro/ web-inf/lib/struts2-core-2.3.4.jar]!
Java.lang.noclassdeffounderror:org/apache/commons/io/fileutils

Workaround: Add Commons-io-x.x.x.jar

Problem: Severe: Exception starting filter Struts2
Java.lang.noclassdeffounderror:org/apache/commons/lang3/stringutils

Workaround: Add Commons-langx.x.x.jar

Problem: Serious: Dispatcher initialization failed
Unable to load configuration. -bean-jar:file:/d:/program%20files/apache-tomcat-6.0.35/webapps/strutspro/web-inf/lib/struts2-core-2.3.4.jar!/ struts-default.xml:51:178


caused By:java.lang.ClassNotFoundException:org.apache.commons.fileupload.RequestContext

Workaround: Add Commons-fileupload-x.x.x.jar

[Java] SSH Frame Note _STRUTS2 configuration issues

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.