简体   繁体   English

Tomcat v7.0服务器

[英]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 " 它运行得很好,我不知道为什么会有这个问题:“无法在本地主机上发布Tomcat v7.0服务器的服务器配置。多个上下文的路径为“ / 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. 当您面对此类问题时,请立即转到“ server.xml”文件。 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. 只是看到有一个标签:标签是多次,请使用Ctrl + Shift + F格式化该特定行,并**删除上下文标签的第二个标签。 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. Server.xml文件是tomcat容器的心脏文件。 it is dependent file of the server. 它是服务器的依赖文件。 there is a single server.xml file is available for many web application project. 只有一个server.xml文件可用于许多Web应用程序项目。 this file starts with tag which indicates the the tomcat container. 该文件以指示tomcat容器的标签开头。 in other words, The server.xml file is a server dependent deployment descriptor which is used to specify server specific configurations . 换句话说,server.xml文件是服务器相关的部署描述符,用于指定服务器特定的配置。 There is only one server.xml for each server instance. 每个服务器实例只有一个server.xml。
The Element 元素

The element is the most commonly used element in the server.xml file. 该元素是server.xml文件中最常用的元素。 It represents an individual Web application that is running within a defined . 它代表在定义的中运行的单个Web应用程序。 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. 每个定义都必须具有唯一的上下文路径,该路径由path属性定义。 The possible attributes for the element are described below. 元素的可能属性如下所述。

Server ContextManager 服务器ContextManager
... ( tomcat configuration ) /ContextManager /Server ...(tomcat配置)/ ContextManager /服务器

Thanks, Rakesh Kumar Gupta 谢谢,Rakesh Kumar Gupta

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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