glassfish3部署错误:应用程序...已在此域中部署

问题描述 投票:1回答:2

我正在尝试将我的war文件部署到glassfish 3中,但它没有这样做:

./asadmin deploy --force=true myapp.war
remote failure: Error occurred during deployment: Application myapp is already 
deployed in this domain. Please use create-application-ref command to create 
application reference on target server. Please see server.log for more 
details.
Command deploy failed.

server.log表示基本相同的消息,没有别的。我已经将日志级别设置为FINEST,它仍然是相同的,有很多关于解析web.xml然后繁荣的消息:

[#|2018-03-27T14:09:43.912+0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=122;_ThreadName=Thread-2;|Application myapp is already deployed in this domain. Please use create-application-ref command to create application reference on target server|#]

但如果我没有找到取消部署myapp,则asadmin list-applications也不会显示。有什么办法可以理解错误并修复它吗?

更新:到目前为止,我最终阅读了玻璃鱼来源,这非常耗时。但到目前为止还没有找到答案。人性,这是我真正需要你的帮助时罕见的情况之一:)

java deployment glassfish glassfish-3
2个回答
1
投票

好吧,这是非常愚蠢的,完全是因为我想跳过关于玻璃鱼的细节。

我的问题是我手动将<application>添加到domain.xml,完全确定它是手动完成的。我已经大量支持glassfish托管应用程序,重新部署,重新配置,但从未添加新应用程序。

asadminserver.log没有给出任何线索来快速了解它,所以在我提示之前我花了4个小时阅读玻璃鱼来源。最后我删除了自己添加的<application>标签,一切正常。


0
投票

由glassfish控制台部署

错误>应用程序...已在此域中部署

应用程序>应用程序目标>管理目标

选择目标>保存

© www.soinside.com 2019 - 2024. All rights reserved.