Reputation: 33
I have a dynamic web project created in eclipse. I moved the location of the WebContent folder (to be located within the /src folder). However, the project still thinks that the directory is under /projectName/WEB-INF/
(I know this because when I try to open an element in the deployment descriptor it tells me that that path does not exist (it doesn't exist, but I need to have it point to the new location).
How can I point the build to the new location of the WebContent folder (and WEB-INF etc.)? Thanks.
Upvotes: 3
Views: 46247
Reputation: 1
Uninstall Enterprise edition from Eclipse Market and then Install it again. My issue got solved by this
Upvotes: 0
Reputation: 1
Sometimes we are in default Java perspective , change it to Java EE perspective and if everything is correct then deployment descriptor is visible .
Upvotes: 0
Reputation: 129
Windows > Show view > Project Explorer should show "deployment descriptor" again
Upvotes: 6
Reputation: 79
Go to windows > perspectives > reset perspective will possibly resolve this
Upvotes: 2
Reputation: 356
The original answer was unclear on the second step -- from the Web Deployment Assembly dialog, at the bottom is an Advanced toggle, which when opened will show the folder selection dropdown.
And I intended to give a link to the Eclipse documentation for the WTP Deployment Assembly Property Page -- however I cannot find it...
Upvotes: 5
Reputation: 40168
Right click your dynamic web project -> Properties -> Deployment Assembly.
In Web Deployment Assembly
, change the package structure to reflect your change. That should work.
Upvotes: 7