The struts2 instance encounters a problem
Today, we have implemented the Struts2 applet for logon.
During this period, I encountered many problems.
(1) The new version of tomcat9 conflicts with eclipse Neon Release (4.6.0). When the server is started, there is always a warning, but the problem cannot be found, and it has to be rolled back to the previous tomcat8, I did not expect it to be good! Okay? This is really complicated (it's been a whole day !)
(2) I went to the Internet to find a program because I only tested the environment. Because I saw two good blogs, I integrated them. I never expected it because of this negligence, cause a fatal error to the program.
For example, there was a conflict when importing the jar package. The two names were the same, but the Versions later were different. Fortunately, they were found in time. Correct:
Also, the following error occurs because the namespace is not clear.
Severe: Exception occurred during processing request: null
Java. lang. NullPointerException
At com.struts2.test.LoginAction.exe cute (LoginAction. java: 28)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
Fortunately, I saw this explanation and found that the two Blogs were used differently. I also suddenly realized it!