To solve the problem of Setting property 'source' to 'org.eclipse.jst.jee.server , I believe my method can help 90% of people solve it!
When you run a web project with Eclipse, you will see the console appear:
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:firstProject' did not find a matching property.
This word means that the Context tag in the Host tag in the Service tag of the server.xml service tag is configured with a 'source' attribute, and the property value is 'org.eclipse.jst.jee.server:firstProject'.
But the problem is that the Context tag does not support the source attribute, so a warning jumped. So what you have also discovered is that despite the warning, most people's programs can still run without problems, but a small number of people cannot run.
Maybe you have found many problems like this online and have also given solutions, but you have followed the solution and the warning still exists!
Then now you can follow my steps:
Let me first talk about the steps others have said online, and put a pen on it
1. Double-click Tomcat v7.0 at localhost in Servers
2. Then a interface pops up:
Have you seen that there is an option for Publish module contexts to separate XML files in the Server Options option. We also click here, but the problem is not the case, so it will be solved. I said that some friends did this, but the problem is still not solved. Remember to save the click after clicking it. If the warning still exists, follow me and continue reading.
3.
If you carefully compare your own and my pictures, you will find that your default option should be the Use workspace metadata option. It is just that the author changed the installation path to tomcat. Because the path folder of Use workspace is not convenient for the file you want to find in the following explanation, I use the second tomcat installation directory to operate, and Deploy path: If you have not changed it, it should be called wtpwebapps, because before writing the article, I have changed it and it is not clear whether it is the name, but the sure thing is that it is definitely not from webapps, so here readers do the following operations based on the value of their Deploy path.
The preparation work is almost done, and now the focus is coming. Why do many people do it after 1.2 steps but yours is not good?
The reason is that you have already run the program before doing 1 2 steps, and after running the program, there will be an additional backup folder in the tomcat folder.
The directory structure inside is shown in the figure:
Do you feel very familiar? Yes, this is the file copied from the conf folder in the tomcat directory. Next, let’s just say the operation:
4. Delete the backup folder just now [the location of the backup is as mentioned in step 3. Because the author used the tomcat installation directory, I found it directly in the directory. However, if you use the Use workspace metadata option, you can see that there are many files in the /workspace/.metadata/.plugins/org.eclipse.wst.server.core path. Eclipse publishes the project here. The directory structure inside is similar to that in tomcat. In short, just delete all the files in /workspace/.metadata/.plugins/org.eclipse.wst.server.core]
5. Find a localhost folder in the Catalina directory in the conf directory in the tomcat directory and delete all the files in the folder.
6. Here I will tell you the steps 3.4.5 to tell you a detailed information about Eclipse release. Deleting the above files is actually not that troublesome:
In Tomcat v7.0 at localhost under Servers, first right-click --> remove all projects that have been added, then right-click --> Clean to clear the files in the virtual directory of the project, and then re-run your program.
Note: If someone wants to modify the project release directory in step 3 server locations like me, as long as you publish the project once, you will find that the options in server locations are gray and cannot be changed. What should you do? This requires you to remove the project and clear the file according to step 6, and then you will be surprised to find that server locations can be modified, OK.
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.