Eclipse Maven to create Struts2 Project

Follow the guide in this page:

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

 

problem met :

 

  • Description Resource Path Location TypeThe superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 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 like  Projectname/src/main/java (missing)

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

 

 

技术分享

 

 

 

 

  • ClassNotFound error for lib folder 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

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。