[英]Tomcat v7.0 Server
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.