1.The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.导入外部项目资源文件目录为“web”不是“webcontent”,导致项目页面无法问问
解决方法:找到项目的改配置文件,打开.setting 文件夹下的org.eclipse.wst.common.component文件,用记事本notepad++打开,
修改source-path为WebContent ,并将web目录修改为webcontent
<wb-moduledeploy-name="XXX">
<wb-resourcedeploy-path="/"source-path="/ WebContent "/>
<wb-resourcedeploy-path="/WEB-INF/classes"source-path="/src"/>
<propertyname="context-root"value="XXX"/>
<propertyname="java-output-path"value="/XXX/ WebContent /WEB-INF/classes"/>
</wb-module>
2.项目启动报错:java启动监听错误: org.springframework.web.context.ContextLoaderListener
百度之后怀疑可能是jar文件没有同步发布到自己项目的lib目录中(如果是用Maven进行构建的话)
解决方法:项目点击右键 点击 Properties 选择Deployment Assembly 再点击右边的Add按钮 选择Java Build Path Entries后点击Next按钮 然后选择你的Maven Dependencies 确定即可”,然后重新编译项目,清楚tomcat缓存,重新运行项目,问题解决
3.访问jsp页面报错:cannot be resolved in either web.xml or the jar files deployed with this application
解决方法:查资料说可能是tomcat版本过高,某些jst配置不支持,具体原因也没查到,但是试了下把jstl.jar和standard.jar放入tomcat项目WEB-INF\lib目录下,问题解决。