This question already has an answer here:
这个问题已经有了答案:
- Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property 6 answers
- 将属性“source”设置为“org.eclipse.jst.jee”。服务器:JSFTut'没有找到匹配的属性6答案
When I start Tomcat (6.0.18) from Eclipse (3.4), I receive this message (first in the log):
当我从Eclipse(3.4)启动Tomcat(6.0.18)时,我收到了这条消息(日志中的第一条):
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server: (project name)' did not find a matching property.
警告:[SetPropertiesRule]{服务器/服务/引擎/主机/上下文}将属性'source'设置为'org. eclipsee .jst.jee。服务器:(项目名称)'没有找到匹配的属性。
Seems this message does not have any severe impact, however, does anyone know how to get rid of it?
似乎这个信息没有任何严重的影响,但是,有没有人知道如何摆脱它?
12 个解决方案
#1
151
The solution to this problem is very simple. Double click on your tomcat server. It will open the server configuration. Under server options check ‘Publish module contents to separate XML files’ checkbox. Restart your server. This time your page will come without any issues.
这个问题的解决办法很简单。双击tomcat服务器。它将打开服务器配置。在“服务器选项”下,勾选“发布模块内容以分离XML文件”复选框。重新启动服务器。这次你的页面将不会有任何问题。
#2
31
From Eclipse Newsgroup:
从Eclipse新闻组:
The warning about the source property is new with Tomcat 6.0.16 and may be ignored. WTP adds a "source" attribute to identify which project in the workspace is associated with the context. The fact that the Context object in Tomcat has no corresponding source property doesn't cause any problems.
关于源属性的警告是Tomcat 6.0.16的新特性,可以忽略。WTP添加了一个“source”属性来标识工作区中的哪个项目与上下文相关联。Tomcat中的上下文对象没有相应的源属性这一事实不会导致任何问题。
I realize that this doesn't answer how to get rid of the warning, but I hope it helps.
我意识到这并不能解决如何摆脱警告的问题,但我希望这能有所帮助。
#3
5
I am using Eclipse. I have resolved this problem by the following:
我使用Eclipse。我通过以下方式解决了这个问题:
- Open servers tab.
- 打开服务器选项卡。
- Double click on the server you are using.
- 双击正在使用的服务器。
- On the server configuration page go to server options page.
- 在服务器配置页面上,转到服务器选项页面。
- Check Serve module without publishing.
- 检查服务模块,不发布。
- Then save the page and configurations.
- 然后保存页面和配置。
- Restart the server by rebuild all the applications.
- 通过重新构建所有应用程序重新启动服务器。
You will not get any this kind of error.
你不会得到这样的错误。
#4
5
Servers tab
服务器”选项卡
--> doubleclick servername
- - >双击servername
--> Server Options: tick "Publish module contexts to separate XML files"
——>服务器选项:勾选“发布模块上下文来分离XML文件”
restart your server
重新启动服务器
#5
3
Delete the server instance from Eclipse and create a new one.
从Eclipse中删除服务器实例并创建一个新的实例。
#6
0
I copied the dynamic Webproject before the issue came up. So, changing the org.eclipse.wst.common.component file in the .settings directory solved the issue for me. The other solutions did not work.
在问题出现之前,我复制了动态Webproject。因此,在.settings目录中更改org. eclipsee .common.component文件为我解决了这个问题。其他的解决方案都不管用。
#7
0
I had the same problem with Eclipse 3.4(Ganymede) and dynamic web project.
The message didn't influence successfull deploy.But I had to delete row
我对Eclipse 3.4(Ganymede)和动态web项目也有同样的问题。消息没有影响成功部署。但我必须删除行。
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
from org.eclipse.wst.common.component file in .settings folder of Eclipse
从org.eclipse.wst.common.component文件到Eclipse的.settings文件夹。
#8
0
The separate XML solution never worked for me and other's recently ...
这个独立的XML解决方案对我和其他人最近都不起作用……
I usually follow this process and something helps:
我通常遵循这一过程,有些事情会有所帮助:
- Stop the server (Make sure its stopped via Task Manager, I killed javaw.exe as many times Eclipse doesn't really shut down properly)
- 停止服务器(确保它通过任务管理器停止,我杀死了javaw)。很多时候Eclipse并没有完全关闭)
- Right click the Server->'Add and Remove'. Remove the project. Finish.
- 右键单击服务器->'Add and Remove'。删除这个项目。完成。
- Right click the Server->'Add and Remove'. Add the project. Finish.
- 右键单击服务器->'Add and Remove'。添加项目。完成。
- Restart see if works, if not continue
- 重新启动看看是否有效,如果不继续
- Double click the Server... See where its getting published (Server Path: which I think goes to a tmp# directory for me since I use an already-installed Tomcat instance I re-use, not sure if would be different if use Eclipse's internal/bundled tomcat server)
- 双击服务器……查看其发布的位置(服务器路径:我认为这是对我的tmp#目录,因为我使用了一个已安装的Tomcat实例,我不确定如果使用Eclipse的内部/绑定的Tomcat服务器是否会有所不同)
- Right click on Server and 'Clean' ... Last one worked for me last time (so may want to try this first), Adding/Removing project worked for me other times. If doesn't work, continue ...
- 右键单击服务器并“清除”……最后一个在上次为我工作(所以可能想先尝试这个),添加/删除项目在其他时候也对我有用。如果不工作,继续…
- Delete all files from the Server Path and see if all files actually get built and published there (/WEB-INF/classes and other regular files in / webroot).
- 从服务器路径中删除所有文件,并查看是否所有文件都在那里构建和发布(/WEB-INF/类和/ webroot中的其他常规文件)。
- Restart Eclipse and/or machine (not sure I ever needed to get to this point)
- 重新启动Eclipse和/或机器(我不确定我是否需要这样做)
#9
0
I respect all the solutions given here.
我尊重这里给出的所有解。
But what I came to know after reading all these, we haven't observed that on which folder the struts.xml file or any configuration file which is necessary for the web application.
但是我读了这些之后才知道,我们还没有观察到哪个文件夹上的struts。xml文件或web应用程序所需的任何配置文件。
My SOULUTION IS:
我的SOULUTION是:
- copy the struts.xml file to the src folder of our project.
- struts副本。xml文件到我们项目的src文件夹。
- click "file-->save all" in eclipse and go click "project-->clean".
- 点击eclipse中的“file——>save all”,点击“project——>clean”。
- restart the server.
- 重新启动服务器。
Hope the problem solved.
希望解决的问题。
#10
0
Make sure you have correct jsp file name in web.xml file. By replacing default .jsp filename in web.xml with my current filename solved the problem
确保在web中有正确的jsp文件名。xml文件。通过替换web中的默认.jsp文件名。使用当前文件名的xml解决了这个问题
#11
0
I am posting my answer because I suspect there might be someone out there for whom the above solutions might not have worked.
我之所以发布我的答案,是因为我怀疑可能存在这样的人,上面的解决方案可能对他们不起作用。
So, you are getting a warning,
你得到一个警告,
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server: (project name)' did not find a matching property.
警告:[SetPropertiesRule]{服务器/服务/引擎/主机/上下文}将属性'source'设置为'org. eclipsee .jst.jee。服务器:(项目名称)'没有找到匹配的属性。
Rather than disabling this warning by checking that option in Server configuration (I did try that) I would suggest you do this:
我建议您这样做,而不是通过在服务器配置中检查该选项来禁用此警告(我确实尝试了):
- First close all the existing projects by right clicking in Project explorer.
- 首先在Project explorer中右键单击,关闭所有现有的项目。
- Remove all the projects already synchronized with the server.
- 删除与服务器同步的所有项目。
- Remove the server and redeploy it.
- 删除服务器并重新部署它。
- Create a new dynamic project, do nothing yet just try running this on the server.
- 创建一个新的动态项目,什么都不做,只是在服务器上运行它。
- Check the console, do you get the warning now. (My case I didn't get any).
This means that something is wrong with your project not with eclipse or the server. - 检查控制台,现在收到警告了吗?(我的案子我没有收到)。这意味着您的项目不是在eclipse或服务器上出了问题。
- Now restart the server. Don't run any app yet.
You probably know that the Tomcat container loads up context of all the synchronized apps at the start. - 现在重新启动服务器。不要运行任何应用程序。您可能知道Tomcat容器在开始时加载了所有同步应用程序的上下文。
- It will load context of any already synchronized app.
- 它将加载任何已经同步的应用程序的上下文。
- Here is the catch, if there is really something wrong in your project it will show the stack trace of the exceptions.Look carefully and you will find where is the bug in your app.
- 这里是catch,如果您的项目确实有问题,它将显示异常的堆栈跟踪。仔细看,你会发现你的应用程序的漏洞在哪里。
Now if you successfully found that there is a bug in your app, the probable place would be look for a web.xml file which the container uses for loading the app. In my case I had misspelled a name in servlet mapping which made me debug meaninglessly for 3 hours. Your problem might be someplace else.
现在,如果你成功地发现你的应用程序中有一个bug,那么很可能你会去找一个web。容器用来装载应用程序的xml文件。在我的例子中,我在servlet映射中拼错了一个名字,这使我在3个小时内毫无意义地调试。你的问题可能在别的地方。
And another thing, if you have many apps synchronized with the server,there is a possibility some other app's context might be the source of problem. Try debugging one by one.
还有一件事,如果你有很多应用程序与服务器同步,那么其他应用程序的上下文可能是问题的根源。尝试逐个调试。
#12
-2
I'm finding that Tomcat can't seem to find classes defined in other projects, maybe even in the main project. It's failing on the filter definition which is the first definition in web.xml. If I add the project and its dependencies to the server's launch configuration then I just move on to a new error, all of which seems to point to it not setting up the project properly.
我发现Tomcat似乎无法找到在其他项目中定义的类,甚至可能是在主项目中。它在web.xml中的第一个定义过滤器定义上失败了。如果我将项目及其依赖项添加到服务器的启动配置中,那么我将继续处理一个新的错误,所有这些错误似乎都指向它没有正确地设置项目。
Our setup is quite complex. We have multiple components as projects in Eclipse with separate output projects. We have a separate webapp directory which contains the static HTML and images, as well as our WEB-INF.
我们的设置相当复杂。我们在Eclipse中有多个组件作为项目,并有单独的输出项目。我们有一个单独的webapp目录,它包含静态HTML和图像,以及我们的WEB-INF。
Eclipse is "Europa Winter release". Tomcat is 6.0.18. I tried version 2.4 and 2.5 of the "Dynamic Web Module" facet.
Eclipse是“欧罗巴冬季版”。Tomcat是6.0.18。我尝试了“动态Web模块”方面的2.4和2.5版本。
Thanks for any help!
感谢任何帮助!
- Richard
- 理查德。
#1
151
The solution to this problem is very simple. Double click on your tomcat server. It will open the server configuration. Under server options check ‘Publish module contents to separate XML files’ checkbox. Restart your server. This time your page will come without any issues.
这个问题的解决办法很简单。双击tomcat服务器。它将打开服务器配置。在“服务器选项”下,勾选“发布模块内容以分离XML文件”复选框。重新启动服务器。这次你的页面将不会有任何问题。
#2
31
From Eclipse Newsgroup:
从Eclipse新闻组:
The warning about the source property is new with Tomcat 6.0.16 and may be ignored. WTP adds a "source" attribute to identify which project in the workspace is associated with the context. The fact that the Context object in Tomcat has no corresponding source property doesn't cause any problems.
关于源属性的警告是Tomcat 6.0.16的新特性,可以忽略。WTP添加了一个“source”属性来标识工作区中的哪个项目与上下文相关联。Tomcat中的上下文对象没有相应的源属性这一事实不会导致任何问题。
I realize that this doesn't answer how to get rid of the warning, but I hope it helps.
我意识到这并不能解决如何摆脱警告的问题,但我希望这能有所帮助。
#3
5
I am using Eclipse. I have resolved this problem by the following:
我使用Eclipse。我通过以下方式解决了这个问题:
- Open servers tab.
- 打开服务器选项卡。
- Double click on the server you are using.
- 双击正在使用的服务器。
- On the server configuration page go to server options page.
- 在服务器配置页面上,转到服务器选项页面。
- Check Serve module without publishing.
- 检查服务模块,不发布。
- Then save the page and configurations.
- 然后保存页面和配置。
- Restart the server by rebuild all the applications.
- 通过重新构建所有应用程序重新启动服务器。
You will not get any this kind of error.
你不会得到这样的错误。
#4
5
Servers tab
服务器”选项卡
--> doubleclick servername
- - >双击servername
--> Server Options: tick "Publish module contexts to separate XML files"
——>服务器选项:勾选“发布模块上下文来分离XML文件”
restart your server
重新启动服务器
#5
3
Delete the server instance from Eclipse and create a new one.
从Eclipse中删除服务器实例并创建一个新的实例。
#6
0
I copied the dynamic Webproject before the issue came up. So, changing the org.eclipse.wst.common.component file in the .settings directory solved the issue for me. The other solutions did not work.
在问题出现之前,我复制了动态Webproject。因此,在.settings目录中更改org. eclipsee .common.component文件为我解决了这个问题。其他的解决方案都不管用。
#7
0
I had the same problem with Eclipse 3.4(Ganymede) and dynamic web project.
The message didn't influence successfull deploy.But I had to delete row
我对Eclipse 3.4(Ganymede)和动态web项目也有同样的问题。消息没有影响成功部署。但我必须删除行。
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
from org.eclipse.wst.common.component file in .settings folder of Eclipse
从org.eclipse.wst.common.component文件到Eclipse的.settings文件夹。
#8
0
The separate XML solution never worked for me and other's recently ...
这个独立的XML解决方案对我和其他人最近都不起作用……
I usually follow this process and something helps:
我通常遵循这一过程,有些事情会有所帮助:
- Stop the server (Make sure its stopped via Task Manager, I killed javaw.exe as many times Eclipse doesn't really shut down properly)
- 停止服务器(确保它通过任务管理器停止,我杀死了javaw)。很多时候Eclipse并没有完全关闭)
- Right click the Server->'Add and Remove'. Remove the project. Finish.
- 右键单击服务器->'Add and Remove'。删除这个项目。完成。
- Right click the Server->'Add and Remove'. Add the project. Finish.
- 右键单击服务器->'Add and Remove'。添加项目。完成。
- Restart see if works, if not continue
- 重新启动看看是否有效,如果不继续
- Double click the Server... See where its getting published (Server Path: which I think goes to a tmp# directory for me since I use an already-installed Tomcat instance I re-use, not sure if would be different if use Eclipse's internal/bundled tomcat server)
- 双击服务器……查看其发布的位置(服务器路径:我认为这是对我的tmp#目录,因为我使用了一个已安装的Tomcat实例,我不确定如果使用Eclipse的内部/绑定的Tomcat服务器是否会有所不同)
- Right click on Server and 'Clean' ... Last one worked for me last time (so may want to try this first), Adding/Removing project worked for me other times. If doesn't work, continue ...
- 右键单击服务器并“清除”……最后一个在上次为我工作(所以可能想先尝试这个),添加/删除项目在其他时候也对我有用。如果不工作,继续…
- Delete all files from the Server Path and see if all files actually get built and published there (/WEB-INF/classes and other regular files in / webroot).
- 从服务器路径中删除所有文件,并查看是否所有文件都在那里构建和发布(/WEB-INF/类和/ webroot中的其他常规文件)。
- Restart Eclipse and/or machine (not sure I ever needed to get to this point)
- 重新启动Eclipse和/或机器(我不确定我是否需要这样做)
#9
0
I respect all the solutions given here.
我尊重这里给出的所有解。
But what I came to know after reading all these, we haven't observed that on which folder the struts.xml file or any configuration file which is necessary for the web application.
但是我读了这些之后才知道,我们还没有观察到哪个文件夹上的struts。xml文件或web应用程序所需的任何配置文件。
My SOULUTION IS:
我的SOULUTION是:
- copy the struts.xml file to the src folder of our project.
- struts副本。xml文件到我们项目的src文件夹。
- click "file-->save all" in eclipse and go click "project-->clean".
- 点击eclipse中的“file——>save all”,点击“project——>clean”。
- restart the server.
- 重新启动服务器。
Hope the problem solved.
希望解决的问题。
#10
0
Make sure you have correct jsp file name in web.xml file. By replacing default .jsp filename in web.xml with my current filename solved the problem
确保在web中有正确的jsp文件名。xml文件。通过替换web中的默认.jsp文件名。使用当前文件名的xml解决了这个问题
#11
0
I am posting my answer because I suspect there might be someone out there for whom the above solutions might not have worked.
我之所以发布我的答案,是因为我怀疑可能存在这样的人,上面的解决方案可能对他们不起作用。
So, you are getting a warning,
你得到一个警告,
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server: (project name)' did not find a matching property.
警告:[SetPropertiesRule]{服务器/服务/引擎/主机/上下文}将属性'source'设置为'org. eclipsee .jst.jee。服务器:(项目名称)'没有找到匹配的属性。
Rather than disabling this warning by checking that option in Server configuration (I did try that) I would suggest you do this:
我建议您这样做,而不是通过在服务器配置中检查该选项来禁用此警告(我确实尝试了):
- First close all the existing projects by right clicking in Project explorer.
- 首先在Project explorer中右键单击,关闭所有现有的项目。
- Remove all the projects already synchronized with the server.
- 删除与服务器同步的所有项目。
- Remove the server and redeploy it.
- 删除服务器并重新部署它。
- Create a new dynamic project, do nothing yet just try running this on the server.
- 创建一个新的动态项目,什么都不做,只是在服务器上运行它。
- Check the console, do you get the warning now. (My case I didn't get any).
This means that something is wrong with your project not with eclipse or the server. - 检查控制台,现在收到警告了吗?(我的案子我没有收到)。这意味着您的项目不是在eclipse或服务器上出了问题。
- Now restart the server. Don't run any app yet.
You probably know that the Tomcat container loads up context of all the synchronized apps at the start. - 现在重新启动服务器。不要运行任何应用程序。您可能知道Tomcat容器在开始时加载了所有同步应用程序的上下文。
- It will load context of any already synchronized app.
- 它将加载任何已经同步的应用程序的上下文。
- Here is the catch, if there is really something wrong in your project it will show the stack trace of the exceptions.Look carefully and you will find where is the bug in your app.
- 这里是catch,如果您的项目确实有问题,它将显示异常的堆栈跟踪。仔细看,你会发现你的应用程序的漏洞在哪里。
Now if you successfully found that there is a bug in your app, the probable place would be look for a web.xml file which the container uses for loading the app. In my case I had misspelled a name in servlet mapping which made me debug meaninglessly for 3 hours. Your problem might be someplace else.
现在,如果你成功地发现你的应用程序中有一个bug,那么很可能你会去找一个web。容器用来装载应用程序的xml文件。在我的例子中,我在servlet映射中拼错了一个名字,这使我在3个小时内毫无意义地调试。你的问题可能在别的地方。
And another thing, if you have many apps synchronized with the server,there is a possibility some other app's context might be the source of problem. Try debugging one by one.
还有一件事,如果你有很多应用程序与服务器同步,那么其他应用程序的上下文可能是问题的根源。尝试逐个调试。
#12
-2
I'm finding that Tomcat can't seem to find classes defined in other projects, maybe even in the main project. It's failing on the filter definition which is the first definition in web.xml. If I add the project and its dependencies to the server's launch configuration then I just move on to a new error, all of which seems to point to it not setting up the project properly.
我发现Tomcat似乎无法找到在其他项目中定义的类,甚至可能是在主项目中。它在web.xml中的第一个定义过滤器定义上失败了。如果我将项目及其依赖项添加到服务器的启动配置中,那么我将继续处理一个新的错误,所有这些错误似乎都指向它没有正确地设置项目。
Our setup is quite complex. We have multiple components as projects in Eclipse with separate output projects. We have a separate webapp directory which contains the static HTML and images, as well as our WEB-INF.
我们的设置相当复杂。我们在Eclipse中有多个组件作为项目,并有单独的输出项目。我们有一个单独的webapp目录,它包含静态HTML和图像,以及我们的WEB-INF。
Eclipse is "Europa Winter release". Tomcat is 6.0.18. I tried version 2.4 and 2.5 of the "Dynamic Web Module" facet.
Eclipse是“欧罗巴冬季版”。Tomcat是6.0.18。我尝试了“动态Web模块”方面的2.4和2.5版本。
Thanks for any help!
感谢任何帮助!
- Richard
- 理查德。