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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With