java错误总结

错误一


JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path


原因是没有配置tomcat路径,需要配置tomcat,参考我的eclipse中配置tomcat的博文

这样启动工程就ok了

java错误总结_第1张图片



错误二


The content of element type "web-app" must match "(icon?,display-
 name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-
 mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-
 ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".



解决方法参考: http://blog.csdn.net/cpp_lzth/article/details/6547789

错误三


解决办法: http://www.xuebuyuan.com/1955433.html

错误四

Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
 
   
解决办法:http://www.cnblogs.com/zhouyalei/archive/2011/11/26/2264688.html

你可能感兴趣的:(java编程,maven,java,eclipse,javaweb)