简体   繁体   中英

Tomcat v7.0 Server

It was working just fine, I don't know why I have that problem: "Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/MajjaneApp "

在此处输入图片说明

在此处输入图片说明

I found the solution on a previous article, I just deleted some tags and it worked!!

This type of problem, when You face, straight away go to "server.xml" file. just see there is a tag : tag is multiple times, format that particular line with Ctrl + Shift + F and **delete the the second tag of context tag. Why we are doing and what are the effects, please read the below descriptions for details :

Server.xml file is the heart file of tomcat Container. it is dependent file of the server. there is a single server.xml file is available for many web application project. this file starts with tag which indicates the the tomcat container. in other words, The server.xml file is a server dependent deployment descriptor which is used to specify server specific configurations . There is only one server.xml for each server instance.
The Element

The element is the most commonly used element in the server.xml file. It represents an individual Web application that is running within a defined . There is no limit to the number of contexts that can be defined within a element. Each definition must have a unique context path, which is defined by the path attribute. The possible attributes for the element are described below.

Server ContextManager
... ( tomcat configuration ) /ContextManager /Server

Thanks, Rakesh Kumar Gupta

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM