[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.js
解决MyEclipse中[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:lora' did not find a matching property.
今天在使用MyEclipse 10整合SSH时一直遇到如下错误:
严重: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
在网上查了很久也没有找到解决的办法,无奈之下删掉了webapps里的全部文件,再次启动却遇到如下警告:
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:lora' did not find a matching property.
并且给出错误:
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\apache-tomcat-7.0.63\webapps\lora does not exist or is not a readable directory
一波未平一波又起,又开始了百度操作,千篇一律--------双击你 eclipse 下方 Servers 卡片里的服务器, 找到Server Options 卡片,请将 Publish module contexts to separate XML files 前面的复选框勾上并保存;
然而使用MyEclipse的我一脸懵逼,既然是配置的问题那我能不能找到相应的文件。挨着打开配置文件终于找到了解决方法:
1)找到tomcat的安装位置,双击打开
2)进入conf文件夹
打开server.xml
3)删掉<Context docBase="D:\apache-tomcat-7.0.63\webapps\lora" path="/lora"
reloadable="true" source="org.eclipse.jst.jee.server:lora"/>
这个错误就这样化解了,我之前的问题随之解决了。开心
第一次写博客,请大家多多鼓励。