Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Luna - Getting error - 'Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/abc"

I am using Eclipse Luna and getting

Could not publish server configuration for Tomcat v7.0 Server at localhost.
Multiple Contexts have a path of /TestProject.

However I can fix this by making path for docbase = / in context string in server.xml as in context docBase="abc" path="/" reloadable="true" source="org.eclipse.jst.jee.server:abc"/> docBase="xyz" path="/TestProject" reloadable="true" source="org.eclipse.jst.jee.server:xyz"/>

So I wanted to know what role does attribute 'path' play in context and how do I fix it permanently. I have seen the path get carried over when I copy a application to another application.

like image 394
pankaj Avatar asked Jan 09 '23 07:01

pankaj


1 Answers

Go to [workspace folder]->Servers->[Tomcat folder] then open server.xml file and search for <Context> tag. There will be multiple <Context> tags, remove the duplicates. Restart your server. Hope this helps.

like image 154
Sarjit Delivala Avatar answered Jan 31 '23 00:01

Sarjit Delivala