Struts2 common exception dispatcher initialization failed filter initialization failed

Source: Internet
Author: User

Dispatcher initialization failed .. And other error solutions. You can import seven packages.


Http://blog.csdn.net/helifengwell/article/details/5855144

Generally, it can be solved in struts 2.2.1. However, my struts is struts 2.2.3. Nine packages will be imported.

The multiple are: commons-lang3-3.1.jar and javassist-3.11.0.GA.jar

My environment is: Eclipse + atat7 + jdk7

 

1.
Severe: exception starting filter struts2
Java. Lang. classnotfoundexception: org. Apache. struts2.dispatcher. Ng. Filter. strutsprepareandexecutefilter

2.
Severe: Dispatcher initialization failed
Java. Lang. runtimeexception: Java. Lang. Reflect. invocationtargetexception
Missing package: javassist-3.11.0.GA.jar
3. Severe: cocould not create jarentryrevision for [jar: file:/D:/application/Apache-Tomcat-6.0.30/webapps/SSH1/WEB-INF/lib/struts2-core-2.3.4.jar]!
Java. Lang. noclassdeffounderror: ORG/Apache/commons/IO/fileutils
Missing package: commons-io-2.0.1.jar
4.
Severe: exception starting filter struts2
Java. Lang. noclassdeffounderror: ORG/Apache/commons/lang3/stringutils
Missing package: commons-lang3-3.1.jar

Xml configuration details: http://blog.csdn.net/zz_mm/article/details/5460397

 

 

 

When dynamic action is used. Always prompts that action cannot be found

It took me two days.

No problem with Struts. xml configuration

And put it in the SRC root directory.

No problem with Web. xml.

The getter and sertter methods are also available in the action. However, the system prompts that action cannot be found. No prompt is provided for tomcat in the background.

Only debugging is left. After the namespace attribute of action is added, a message is displayed.

There is no Action mapped for namespace [/] and action name [useraction] associated with context path [/instance882].

 

When I re-delete the namespace attribute, I can re-release it and find out how to explain the action. No reason is found. Put it here first, and modify it later.

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.