The struts2 instance encounters a problem

Source: Internet
Author: User

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!

 

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.