Eclipse Maven to create Struts2 Project

Source: Internet
Author: User

Follow the guide on this page:

http://blog.csdn.net/topwqp/article/details/8882965

Problem met:

    • Description Resource Path location typethe superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Pat H Index.jsp/sample_struts/src/main/webapp Line 1 JSP problem

Solution:right Click the project->properties->targeted runtimes-> Select the TOMCAT and click the Ok Button

    • Missing Src/main/java source folder:

Solution:right Click the Project->properties->java Build path-> Source Tab Click the red error mssing entry lik e Projectname/src/main/java (missing)

Click the "Add Folder" Check the "src" checkbox.

    • ClassNotFound error for Lib folder is not contain the libraries.

Solution:right Click the Project->properties->deployment assembly-> add the Maven folder for project (click Add Button->java Build Path entries->next->maven Dependencies

Eclipse Maven to create Struts2 Project

Related Article

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.