【问题标题】:Websphere ear deploment is failedWebsphere 耳朵部署失败
【发布时间】:2018-01-22 11:18:02
【问题描述】:

我正在尝试部署 ear 文件,但出现错误提示

"已存在名为 ace-ear 的合成单元。请选择一个 不同的应用程序名称”

这是不存在的。还有什么问题?

【问题讨论】:

    标签: deployment websphere ear


    【解决方案1】:
    1.Check the following locations to see if the application directories exist. If they do exist delete the application folder 'your_app'
    <profile root>/config/cells/cellname/applications/your_app
    <profile root>/config/cells/cellname/blas/your_app
    <profile root>/config/cells/cellname/cus/your_app
    
    2.Clear the contents of the profile/wstemp directory 
    3.Clear the contents of the profile/temp director
    4.Restart the Application Server.
    

    【讨论】:

    【解决方案2】:

    虽然不推荐,但可以手动从服务器配置文件中删除ear的引用。

    要检查配置文件中是否存在耳朵,请从 Dmgr/config 文件夹运行以下命令。手动删除 ear 文件(如果存在)。

    find . -name '*ace-ear*'
    

    要检查配置 xml 中是否有 ear 引用,请从 Dmgr/config 文件夹运行以下命令,然后手动从 xml 文件中删除这些条目(如果存在)。

    find . -name '*.xml' | xargs grep -i ace-ear
    

    发布此内容,重新启动部署管理器,同步节点并重新启动 JVM 并尝试部署应用程序。

    注意:手动更新服务器配置文件时要非常小心,因为任何错误都可能损坏服务器配置。建议在对服务器配置文件应用任何更改之前备份配置文件。

    【讨论】:

    • 非常感谢@M I P
    【解决方案3】:

    我的问题出在远程环境中,使用 ftp filezilla 客户端在 appserver 文件夹(服务器 --> 查找远程文件)中搜索所有出现的我的应用程序名称,然后删除所有具有应用程序名称的文件夹和文件,重新启动服务器,再次部署应用,成功

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多