Question

I'm working on Java project for a portal. I checked out a sample portal from an svn, and pasted a renamed copy of it in the eclipse package explorer.

When I tried to run this new project on a Tomcat 7 server, I got the error message:

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

What do I need to do to get this new project to run?

Was it helpful?

Solution

All the suggestions in this thread are valid. If you extract the war file into a folder inside of Tomcat's webapps folder, it should work.

If you are trying to do it from Eclipse, make sure the file server.xml is not corrupted, or that Eclipse is not misreading it. Restart Eclipse if that is the case.

OTHER TIPS

You need to change the name of your project directory or .war file so it doesn't conflict with the existing SamplePortal project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top