关于启动tomcat遇到 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ’source’ to ‘org.eclipse.jst.jee.server:*’ did not find a matching property.的问题的解决方法。
前几天买了本儿eclipse+struts2+spring+hibernates集成开发宝典的书,想去年进入当时的ebay易趣的时候儿给我面试还问我这方面的东西来的,爷tmd哪儿懂啊。。。所以就一直在这里过着与PHP为伍的日子。
好了废话不说,言归正传,
按照书中的例子,先配置好java,eclise等等,运行纯jsp网页没问题,但是加入了struts2的框架后,问题就tnnd出现了,先是:The requested resource (/StrutsTutorial/pages/HelloWorld.jsp) is not available
告诉我这个404错误,然后我看eclipse控制台的信息,发现了一条是:
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ’source’ to ‘org.eclipse.jst.jee.server:*’ did not find a matching property.
其中的*应该是你项目的名字。
于是乎上网搜索资料,总结出解决这个问题的方法有如下几个:
1.如果你是用apache-tomcat-6.0.14以上版本的web server,请降级到apache-tomcat-6.0.14
2.如果你在新建项目时,选择的是:Dynamic Web Project,并且在next后选择的版本是2.5,请选择2.4试试看,反之,如果选择的是2.4,请选择2.5试试看。
3.从http://tomcat.apache.org/download-native.cgi这个网页中找到一个链接为:“You may download them from HERE ”这样的dd,点击,下载里面的win32或者win64(对应你的系统)中的tcnative-1.dll,下载后,复制到你的%JAVA_HOME%\bin或者$JAVA_HOME\bin中,然后再重新启动eclipse中的server。
4.将方法3中下载的文件复制到tomcat目录的bin目录下(貌似这个没有用)
以上四个情况,请其他也遇到这个问题的朋友自己组合试试看,不一定一个就能解决问题,没准儿你是降级tomcat版本和将Dynamic Web Project的2.5版本变成2.4版本可以解决问题,另外个就是下载个文件可以解决问题,包括我自己解决这个问题的时候也试验了好几次。多试试,总会成功的。
下面给出解决这个问题的参考网址:
[news.eclipse.webtools] Re: Error "The requested resource is not availab
Eclipse WTP Tutorials – Creating Bottom Up Web Service via Apache Axis2
關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法
启动Tomcat时发生java.library.path错误的解决方法
最后预祝各位在学习这些个烦人东西的时候儿一帆风顺!!!
欢迎交流,讨论。。。
我的简介: 谁说tmd巨蟹座傻来的?我就是tmd巨蟹里边儿最聪明的!!!
House Properties…
Go to each listing and find the reference to the offending Wikipage. You’ ll find most of them in the See Also section or linked throughout the article. This is where the simplicity that I was talking about before comes into play. Listings such as“…