Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two or more Web modules defined in the configuration have the same context root

Tags:

tomcat

tomcat6

I am running tomcat server 6.0, when I tried to run any web app on this server it gives me a error saying "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)."

I am using Eclipse 3.6 helios.

How do I remove the duplicates?

like image 265
Jeevan Dongre Avatar asked Mar 09 '11 09:03

Jeevan Dongre


1 Answers

In your tomcat conf directory, edit server.xml. My guess is that in there you have two entries for teh same context. Look for two occurrences of the same line. The line will look like the following, where "someApplication" would be your context root.

<Context docBase="someApplication" path="/someApplication" reloadable="true" source="org.eclipse.jst.jee.server:someApplication"/>
like image 130
misterblinky Avatar answered Sep 19 '22 15:09

misterblinky