Ways to resolve warning: Setting property 'source' to 'org.eclipse.jst.jee.server_:' did not find a matching property.

Today, I built the struts2 framework for the first time. After importing the corresponding jar package according to the online tutorial, I started to write the login jsp page, but there was a problem during runtime.

The browser displays the prompt "The requested resource is not available.".

 

So I checked the Console and found this warning

"Setting property 'source' to 'org.eclipse.jst.jee.server struts2 (my project name):' did not find a matching property."

 

So Baidu searched and found a solution

1. Right-click on the server -> select properties

 

2. Click Switch Location, at this time, the path becomes as shown in the figure below, save

 

 3. Double-click the server, open the Tomcat v7.0 Server at localhost.server file, select publish module context to separate xml file and save it (stop the server before saving)

 

Finally restart the server and run the login page successfully!

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324933580&siteId=291194637