Setting the 'source' property to 'org.eclipse.jst.jee.server: GestorContenidoWS' did not find a suitable property. Try all the solutions

This is my first post here (but not the first time I am on the page, I have found many solutions here), first of all, sorry for my English, I will try to explain myself as best as possible.

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

I made a project for Eclipse (indigo) to run, for example, for WebService (I did it before using succes, not the first time), and when I run on the server (Tomcat7) everything seems fine, and this warning appears.

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

Then, in the Eclipse web perspective, the HTTP 404 page appears. I say this because I read in another post that this warning is not a problem, but it seems to be for me (the project is also supported with JPA preservation).

. I found two solutions to eliminate this warning. First go to Server Overview and select the option "Publish module contexts for splitting XML files", and then try to run on the server again, but it does not work.

Another option is to remove the project from the server from the Server view. Then run the project under the same server for the recreated server.xml, but it does not work either.

Can anybody help me? Perhaps the problem with this "HTTP 404 requested resource (/ GestorContenidoWS /) is unavailable." Is it in a different part or because of this warning? "

Code of my server.xml (no comment):

  <?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> 

thanks

+6
source share
4 answers

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

This source attribute is set by Eclipse (or, more specifically, the Eclipse web tool platform) to the Tomcat server.xml file to match the running application in the project in the workspace.

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

+3
source

This is a warning and can be safely ignored. Tomcat or web container don't understand what to do with property set by Eclipse

0
source

install contex-root

 <property name="context-root" value="path" /> 

and http: // localhost: 8080 / path show your index file

0
source

Find server.xml. For example, "C: \ Dev \ apache-tomcat-8.5.23 \ conf \ server.xml"

Find your application in server.xml

  <Context docBase="C:\Dev\apache-tomcat-8.5.23\wtpwebapps\SpringRestExample" path="/spring" reloadable="true" source="org.eclipse.jst.jee.server:SpringRestExample"/></Host> 

Expected URL http: // localhost: 8080 / SpringRestExample / rest / emp / 9999

But (path = "/ spring") instead (path = "/ SpringRestExample")

Therefore, the current url is http: // localhost: 8080 / spring / rest / emp / 9999

0
source

Source: https://habr.com/ru/post/944427/


All Articles