简体   繁体   English

Tomcat Eclipse中的SetProperties问题

[英]SetProperties issue in Tomcat Eclipse

Today I finished a project of mine that I've been working of for a few weeks. 今天,我完成了我一个已经工作了几个星期的项目。 The program is a tomcat 7.0 server that responds to certain http posts. 该程序是响应某些http帖子的tomcat 7.0服务器。

I had originally started the eclipse project with a silly name which I was planning to change when I was done. 我最初以一个愚蠢的名字开始了eclipse项目,我打算在完成时更改它。 So today, I decided to do a last clean-up, add the javadoc, etc - as well as refactoring the project name into something more correct. 因此,今天,我决定进行最后的清理,添加javadoc等-并将项目名称重构为更正确的名称。

This is when I got the following error in Eclipse: 这是当我在Eclipse中遇到以下错误时:

[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:aegis' did not find a matching property.

I have searched for solutions to this issue, but none of them I found online helped me resolve it. 我已经搜索了此问题的解决方案,但是我在网上找不到这些解决方案。 What I tried: 我试过的

  • Deleting and recreating the Server in Eclipse. 在Eclipse中删除并重新创建服务器。
  • Redownloading tomcat 重新下载tomcat
  • Deleting the .metadata folder in my project. 在我的项目中删除.metadata文件夹。
  • Double checked that everything in web.xml is correct (it is). 仔细检查了web.xml中的所有内容是否正确。
  • Double checked that Everything in the build path is correct (it is). 仔细检查了构建路径中的所有内容是否正确。
  • Checked that the paths in the Server Overview tab are correct (they are) and that the option " Use Tomcat Installation " is selected. 检查“服务器概述”选项卡中的路径是否正确(正确),并且选择了“ 使用Tomcat安装 ”选项。
  • Tried to run the server with the option " Publish module context to separate xml files " enabled (didn't resolve). 尝试在启用选项“将模块上下文发布到单独的xml文件 ”的情况下运行服务器(无法解析)。
  • Tried closing the project, create a new dyn. 试图关闭项目,创建一个新的dyn。 web project and launch it on the server "as is" (to see if the issue is project-related) - but I get the same warning. Web项目并“按原样”在服务器上启动它(以查看问题是否与项目有关)-但我得到了相同的警告。

At this point I've gone past page 3 on my google searches and I'm just out of ideas. 至此,我已经超过了Google搜索中的第3页,但我的想法不多。

Any other suggestions? 还有其他建议吗? Thanks. 谢谢。

PS: The server doesn't give any other warnings or errors and the last message is INFO: Server startup in X ms . PS:服务器未发出任何其他警告或错误,最后一条消息是INFO: Server startup in X ms

请尝试运行以下maven命令

mvn eclipse:clean eclipse:eclipse -Dwtpversion=2.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM