I've been trying to merge few different projects in to a single one in eclipse. In this attempt I've tried this following steps which causes the context path to be generated differently(incorrectly?).
Core-Problem:
- Copied a dynamic web project (Maven) in eclipse and paste as a new project (Cloned-duplicate)
- Add the project to embedded Tomcat server in eclipse.
- Go to Tomcat Server project in eclipse and open server.xml
Generated < Context > tag contains the following
<Context docBase="DuplicateApp" path="App" reloadable="true" source="org.eclipse.jst.jee.server:DuplicateApp"/>
I would've expected both 'path' and 'docBase' to point to DuplicateApp, which is the name of the cloned app, however it is appearing incorrect. Is this even expected behavior?
Quite a bit of searching confirms my learning that both 'path & 'docbase' should point to the name of the web application/war file name.
Additional Information:
- Eclipse Juno Java EE version installed
- M2E plugin installed in Eclipse
- Tomcat version 7
- pom.xml did not override war name - cross checked.