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?

有帮助吗?

解决方案

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.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top