Eclipse deployment descriptor not found

I have a dynamic web project created in eclipse. I moved the location of the WebContent folder (to be placed in the / src folder). However, the project still believes that the directory is under /projectName/WEB-INF/ (I know this because when I try to open an item in the deployment descriptor, it tells me that this path does not exist (it doesn’t exists, but I need to point it to a new place).

How can I point the assembly to the new location of the WebContent folder (and WEB-INF, etc.)? Thanks.

+2
java eclipse java-ee jetty
source share
2 answers

Right-click your dynamic web project -> Properties -> Assembly Deployment.

In the Web Deployment Assembly modify the package structure to reflect the changes. That should work.

+4
source share

The initial answer was unclear in the second step - in the Web Deployment Assembly dialog box, at the bottom is the Advanced switch, which when opened will display a drop-down menu for selecting a folder.

Eclipse Deployment Assembly Properties Page

And I intended to give a link to the Eclipse documentation for the WTP deployment assembly properties page - however, I cannot find it ...

+2
source share

All Articles