复制 Java 动态 Web 项目并将其重命名为新项目会导致 Tomcat 中出现错误
在 Eclipse 中,每当我们通过重命名 Java 动态 Web 项目将其复制到新项目并尝试在 Tomcat 服务器中运行新复制的项目时,都会导致以下错误:
“无法在 localhost 发布 Tomcat v9.0 服务器的服务器配置。 多个上下文的路径为“/CopiedParentDynamicProjectName”。
任何人都知道如何在运行服务器时复制动态网络项目后克服此 tomcat 错误。
In eclipse whenever we copying a java dynamic web project into new one by renaming it and trying to run the new copied project in tomcat server it causes below error:
"Could not publish server configuration for Tomcat v9.0 Server at localhost.
Multiple Contexts have a path of "/CopiedParentDynamicProjectName".
Anyone have idea how to overcome this tomcat error after copying the dynamicwebproject while running it server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

步骤 1) 打开 Servers 文件夹并单击 server.xml 文件。
步骤 2) 一直向下滚动以找到以下代码
步骤 3) 查看重复条目并删除一个。
步骤4)更改路径,以便我们有以下代码。
步骤 5) 保存文件。
步骤6)问题解决。
Step 1) Open Servers folder and click on server.xml file.
Step 2) Scroll all the way down to find following code
Step 3) See the duplicate entry and delete one.
Step 4) Change the path so that we have following code.
Step 5) Save the file.
Step 6) Problem is solved.