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 .



Eclipse Maven to create Struts2 Project_struts2





  • 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




作者:高级测试开发网

本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。