将属性'source'设置为'org.eclipse.jst.jee.server:GestorContenidoWS'找不到匹配的属性。尝试所有的解决方案 [英] Setting property 'source' to 'org.eclipse.jst.jee.server:GestorContenidoWS' did not find a matching property. Try all the solutions

查看:317
本文介绍了将属性'source'设置为'org.eclipse.jst.jee.server:GestorContenidoWS'找不到匹配的属性。尝试所有的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在这里的第一篇文章(但不是我第一次访问该页面,我在这里找到了很多解决方案),首先,对我的英文抱歉,我将尽可能地解释自己。 / p>

此问题出现在此页面的另一个时间,但我尝试了人们发布的所有解决方案,我仍然遇到这个问题,这里我们走了。



我在Eclipse(靛蓝)上创建了一个像WebService一样启动的项目(我以前用succes做的不是我的第一次),当我运行在服务器(Tomcat7)上时,似乎都很好并且出现此警告。

 警告:[SetPropertiesRule] {服务器/服务/引擎/主机/上下文}设置属性的源'到'org.eclipse.jst.jee.server:GestorContenidoWS'找不到匹配的属性。 

然后出现在Eclipse的Web透视图中的HTTP 404页面。我告诉这个是因为我在其他帖子中看过这个警告并不是问题,但是似乎是对我来说(这个项目也是用JPA持久化的)。



。我发现两个解决方案使得消除此警告。首先,转到服务器概述,然后选择发布模块上下文以分离XML文件选项,然后再尝试在服务器上运行,但不起作用。



其他选项是从服务器视图从服务器中删除该项目。然后在相同的服务器上运行项目,以便重新创建server.xml,但是没有起作用。



有人可以帮助我吗?也许这个HTTP 404请求的资源(/ GestorContenidoWS /)的问题不可用。是在另一部分或因为这个警告?



我的server.xml(没有意见)的代码是这样的:

 <?xml version =1.0encoding =UTF-8?> 
- >< Server port =8005shutdown =SHUTDOWN>
< Listener SSLEngine =onclassName =org.apache.catalina.core.AprLifecycleListener/>
< Listener className =org.apache.catalina。 core.JasperListener/>
< Listener className =org.apache.catalina.core.JreMemoryLeakPreventionListener/>
< Listener className =org.apache.catalina.mbeans.GlobalResourcesLifecycleListener />
< Listener className =org.apache.catalina.core.ThreadLocalLeakPreventionListener/>
< GlobalNamingResources>
<资源auth =容器description =用户可以更新和保存的数据库factory =org.apache.catalina.users.MemoryUserDatabaseFactoryname =UserDatabasepathname =conf / tomcat-users.xmltype =org.apa che.catalina.UserDatabase/>
< / GlobalNamingResources>
<服务名称=Catalina>
< Connector connectionTimeout =20000port =8080protocol =HTTP / 1.1redirectPort =8443/>
< Connector port =8009protocol =AJP / 1.3redirectPort =8443/>
<引擎defaultHost =localhostname =Catalina>
< Realm className =org.apache.catalina.realm.LockOutRealm>
< Realm className =org.apache.catalina.realm.UserDatabaseRealmresourceName =UserDatabase/>
< / Realm>
<主机appBase =webappsautoDeploy =truename =localhostunpackWARs =true>
< Valve className =org.apache.catalina.valves.AccessLogValvedirectory =logspattern =%h%l%u%t&%r&%s%b PREFIX = localhost_access_log。 TXT 后缀= />

<上下文docBase =GestorContenidoWSpath =/ GestorContenidoWSoadable =truesource =org.eclipse.jst.jee.server:GestorContenidoWS/>< / Host>
< / Engine>
< / Service>

谢谢

解决方案

首先这是一个警告而不是错误。所以没有必要太担心。基本上这意味着,Tomcat不知道从上下文中的source属性的作用。



这个源属性是由Eclipse设置的(或者更具体的是Eclipse Web工具平台)到Tomcat的server.xml文件,以将正在运行的应用程序与工作区中的项目匹配。



Tomcat会为server.xml中的每个未知标记生成警告(即源属性),这是警告的源。你可以安全地忽略它。


This is my first post here (but not the first time that I visit the page, I found a lot of solutions here), first of all, sorry for my english I will try to explain myself as best I can.

This question appears another time in this page, but I tried all the solutions that the people post and I still with this problem, well here we go.

I made a project on Eclipse(indigo) for launch like a WebService (I did it before with succes, is not my first time) and when I Run on Server(Tomcat7) all seems fine and the appears this Warning.

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

Then appear in the Web perspective of Eclipse the page "HTTP 404". I'm telling this because I read in other post that this Warning is not a problem, but seems that it is for me (The project is also vinculated with a JPA Persistence).

.I found two solutions for make dissappear this Warning. First, go to Server Overview and select the option 'Publish module contexts to separate XML files' and then try to Run on server again, but didn't work.

The other option was, remove the project from the server from the Server View. Then run the project under the same server for recreated server.xml, but didn't work also.

Anybody can help me? Maybe the problem of this "HTTP 404 requested resource (/GestorContenidoWS/) is not available." is in another part or its because this Warning?"

The code of my server.xml (without comments) is this:

     <?xml version="1.0" encoding="UTF-8"?>
 --><Server port="8005" shutdown="SHUTDOWN">
  <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
 <Listener className="org.apache.catalina.core.JasperListener"/>
    <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
  <GlobalNamingResources>
    <Resource auth="Container" description="User database that can be updated and saved"                    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
  </GlobalNamingResources>
 <Service name="Catalina">
    <Connector connectionTimeout="20000" port="8080"  protocol="HTTP/1.1"redirectPort="8443"/>
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
<Engine defaultHost="localhost" name="Catalina">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"resourceName="UserDatabase"/>
  </Realm>
  <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." suffix=".txt"/>

  <Context docBase="GestorContenidoWS" path="/GestorContenidoWS" reloadable="true" source="org.eclipse.jst.jee.server:GestorContenidoWS"/></Host>
</Engine>
  </Service>

Thank you

解决方案

First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context.

This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace.

Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.

这篇关于将属性'source'设置为'org.eclipse.jst.jee.server:GestorContenidoWS'找不到匹配的属性。尝试所有的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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