gpt4 book ai didi

java - WSO2 应用程序服务器 CarbonAppUploader 不会覆盖现有工件

转载 作者:行者123 更新时间:2023-12-01 13:37:54 26 4
gpt4 key购买 nike

我正在尝试使用 CarbonAppUploader 在 WSO2 应用程序服务器上部署 Carbon 应用程序。该服务根据日志部署应用程序,但如果工件已存在,则会发出提示。见下文:

TID: [0] [AS] [2014-01-14 15:14:52,496] ERROR {org.wso2.carbon.application.deployer.CappAxis2Deployer} -  Error while deploying carbon application /...skip.../wso2as-5.1.0/repository/carbonapps/0/MY_ARTIFACT-1.0.1-SNAPSHOT.car {org.wso2.carbon.application.deployer.CappAxis2Deployer}java.lang.Exception: Carbon Application : MY_ARTIFACT already exists. Two applications can't have the same Id. Deployment aborted.        at org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:219)        at org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)        at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)        at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:810)        at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)        at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)        at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)        at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)        at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)        at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)        at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:67)        at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:112)        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)        at java.lang.Thread.run(Thread.java:722)

最佳答案

请检查您是否部署了另一个同名但版本不同的 CAR 文件。当您有 2 个具有相同工件名称(在本例中为 MY_ARTIFACT)但版本不同的 CAR 文件时,会引发此错误。

请注意,WSO2 Carbon 服务器仍然没有多个 CAR 文件版本控制。

感谢和问候,

哈沙纳

关于java - WSO2 应用程序服务器 CarbonAppUploader 不会覆盖现有工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21124656/

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