Quantcast
Channel: Crunchify
Viewing all articles
Browse latest Browse all 1037

Two or more Web modules defined in the configuration have the same context root (/example)

$
0
0

I’ve been developing a web app without any problem in Eclipse for several months. All of a sudden a problem has developed with Eclipse/Tomcat.

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?

  1. Open Search Window
  2. Type docBase
  3. 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

Change Web Context Root for your Java Project

The post Two or more Web modules defined in the configuration have the same context root (/example) appeared first on Crunchify.


Viewing all articles
Browse latest Browse all 1037

Trending Articles