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.