gpt4 book ai didi

Tomcat/"Application cannot be deployed as it contains deployment-ids"错误

转载 作者:行者123 更新时间:2023-11-28 21:47:34 26 4
gpt4 key购买 nike

我在 Tomcat 5 服务器上部署两个应用程序时遇到了问题。在部署和运行服务器时,我收到一条错误消息,这也阻止了第二个应用程序的正常运行。

Unable to deploy collapsed ear in war /my-app: Exception: Application cannot be deployed as it contains deployment-ids which are in use: 

然后是所有重复 ID 的列表。第二个应用程序是一个较小的应用程序,它被添加到一个已经存在的管理所有实体的应用程序中。该项目由 Eclipse nad Maven 构建。有没有办法添加应该包含在第二个应用程序中的依赖项(我现在打算做的)以便第二个应用程序能够知道/使用已经存在的包?

在此先感谢您的支持,

问候

最佳答案

引用 from the FAQ

DuplicateDeploymentIdException:

If you try to deploy the same ejb in two different web applications, then you will get the following exception (in conf/openejb.log):

org.apache.openejb.DuplicateDeploymentIdException: Application cannot be deployed as it contains deployment-ids which are in use:

To fix the issue, do the following:

  1. Create a file named system.properties under the conf directory
  2. Add the following to the system.properties file and save

    openejb.deploymentId.format={moduleId}/{ejbName}

来自 the JIRA ,此修复应适用于 OpenEJB 3.1

关于Tomcat/"Application cannot be deployed as it contains deployment-ids"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4265762/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com