Tomcat Eclipse中的SetProperties问题 [英] SetProperties issue in Tomcat Eclipse

查看:127
本文介绍了Tomcat Eclipse中的SetProperties问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我完成了一个我已经工作了几个星期的项目。该程序是一个tomcat 7.0服务器,它响应某些http帖子。



我最初启动了一个愚蠢的名称,当我完成。所以今天,我决定最后一次清理,添加javadoc等,以及将项目名称重构为更正确的东西。



这是当我在Eclipse中出现以下错误:

  [SetPropertiesRule] {Server / Service / Engine / Host / Context}设置属性'source'到'org.eclipse.jst.jee.server:aegis'没有找到匹配的属性。 

我已经搜索了这个问题的解决方案,但是我没有找到在线帮助我解决了这个问题。我试过的:




  • 在Eclipse中删除并重新创建服务器。

  • 重新加载tomcat

  • 删除项目中的.metadata文件夹。

  • 双重检查web.xml中的所有内容是否正确(是)。

  • 双击检查生成路径中的所有内容是否正确(是)。

  • 检查服务器概述选项卡中的路径是否正确(它们是),并且选项

  • 尝试使用选项发布模块上下文以分离xml文件启动服务器(没有解决)。

  • 尝试关闭该项目,创建一个新的dyn。 Web项目并在服务器上按原样启动(查看问题是否与项目相关) - 但我收到相同的警告。



在这一点上,我已经超越了第3页对我的谷歌搜索,我只是想出来。



其他任何建议?谢谢。



PS:服务器没有发出任何其他警告或错误,最后一条消息是 INFO:X ms中的服务器启动

解决方案

请尝试运行以下maven命令

  mvn eclipse:clean eclipse:eclipse -Dwtpversion = 2.0 


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.

I had originally started the eclipse project with a silly name which I was planning to change when I was done. 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.

This is when I got the following error in 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.
  • Redownloading tomcat
  • Deleting the .metadata folder in my project.
  • Double checked that everything in web.xml is correct (it is).
  • 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.
  • Tried to run the server with the option "Publish module context to separate xml files" enabled (didn't resolve).
  • Tried closing the project, create a new 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.

At this point I've gone past page 3 on my google searches and I'm just out of ideas.

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.

解决方案

Please try to run the below maven command

mvn eclipse:clean eclipse:eclipse -Dwtpversion=2.0

这篇关于Tomcat Eclipse中的SetProperties问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆