I need to change the default Eclipse WTP "Web Resources" dynamic folder. Currently it points to WebContent, and I need to point to src\main\webapp.
Right click your dynamic web project and open "Properties". Find Deployment Assembly and you should be able to set context paths from there. Save this answer.
This Java classes folder is created while importing a WAR file. You can also use the Java Build Path properties page to create Java classes folders. WebContent. Contains all of the web resources. For example, the HTML files, JSP files, and image files that are used to create a web application.
I found the solution:
Under .settings folder in your project's folder, there is a file named "org.eclipse.wst.common.component", inside it change the line <wb-resource deploy-path="/" source-path="/WebContent"/>
with <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
.
That's all!
Give Preference to eclipse GUI!
if don't appear to you see this
Unable to find Deployment assembly Eclipse Juno
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With