The problem is whatever you edit in Web Project Settings, after save and close the properties, Reopen that page again, you would found the valuable you just edited haven't been saved, keep using the default value.
Edit Web Project Settings Content:
1) In "Project Explorer" View, right click the project, and then click properties
2) Edit the content of Context root
3) Click "Apply and Close"
Clean project
1) Server View > right click your server > select Clean
2) wait for finished
3) Server View > right click your server > select Publish
Double Check:
1) In "Project Explorer" View, right click the project, and then click properties
2) you can find the content of Context root changed, but not using the default variable.
Reference
https://stackoverflow.com/questions/2437465/how-to-change-context-root-of-a-dynamic-web-project-in-eclipse
No comments :
Post a Comment