The problem I have is that a 2nd web module has been defined with the same context root. I don’t know how this has happened but the outcome is that I can’t launch the web app anymore and I get the message “Two or more Web modules defined in the configuration have the same context root.
To start this server you will need to remove the duplicate(s).”
How to fix it?
- Open Search Window
- Hit Search
<Context docBase=”yourProject” path=”/yourProject” reloadable=”true” source=”org.eclipse.jst.jee.server:yourProject”/>
You should see docBase word search in server.xml file. Just find the duplicate entry and just keep one of them. It fixed my problem.
OR Other way