-1

I am using the Eclipse and Apache Tomcat 7 for running a Dynamic web project MyOnlineShopping(Java, jsp and servlet). When I run the project, It is showing the error as Could not publish server configuration for Tomcat v7.0 Server at localhost.

Multiple Contexts have a path of "/myonlineShopping". Anyone help me to figure out what is the error and solution is highly appreciated.

enter image description here

1 Answers1

0

In Eclipse Eclipse

  1. Open Project Explorer
  2. Go inside Servers -> Tomcat v7.0 Server at localhost
  3. Open server.xml
  4. Search for tag
  5. There should be multiple definitions for the path of your project. Remove the multiple one
Sasikumar Murugesan
  • 4,412
  • 10
  • 51
  • 74
  • Now it is showing the another error.as Could not publish server configuration for Tomcat v7.0 Server at localhost.Error copying file shopscript.js: Access is denied – Saurabh kr. Gupta Apr 05 '18 at 07:31