1、import javax.servlet.http错误
参考http://yl-fighting.iteye.com/blog/1409468
在这之前需要已经有安装tomcat,下载解压好tomcat后参考http://www.cnblogs.com/marineoxy/p/5084382.html
2、查看markers发现Target runtime Apache Tomcat 7.0 is not defined
我配置的是tomcat 8.0,修改了项目文件夹中.settings/org.eclipse.wst.common.project.facet.core.xml
3、Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment.
参考http://stackoverflow.com/questions/3138384/warning-build-path-specifies-execution-environment-j2se-1-4
4、Implementation of project facet jst.web.jstl could not be found. Functionality will be limited.
由于MyEclipse里的用到了jstl,导入到Eclipse里也带过来了,修改.settings/org.eclipse.wst.common.project.facet.core.xml,删除jst.web.jstl这行
5、运行时Context initialization failed
[ERROR] - org.springframework.web.context.ContextLoader -ContextLoader.java(307) -Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/Users/chenxiaoyu/Documents/Toolkit/apache-tomcat-8.0.38/webapps/meathub_data/WEB-INF/classes/com/zhaorou/action/ProductController.class]; nested exception is java.lang.IllegalArgumentException
我导入的项目是用spring 3,但我用的是java 1.8,版本不兼容,要么升级为spring 4,要么降级为java 1.7
没有评论:
发表评论