码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse Maven to create Struts2 Project

时间:2015-04-27 21:38:50      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:

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

 

Eclipse Maven to create Struts2 Project

标签:

原文地址:http://www.cnblogs.com/alterhu/p/4461385.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!