简体   繁体   English

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

[英]WSO2 Application server CarbonAppUploader will not overwrite existing artifact

I am trying to use CarbonAppUploader to deploy a carbon application on WSO2 Application Server. 我正在尝试使用CarbonAppUploader在WSO2 Application Server上部署Carbon应用程序。 The service deploys the app as per log, but then complains if an artifact already exists. 该服务根据日志部署应用程序,但是会抱怨是否已存在工件。 See below: 见下文:

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)

Please check whether you have deployed another CAR file with the same name but a different version. 请检查您是否已经部署了另一个具有相同名称但版本不同的CAR文件。 This error is thrown when you have 2 CAR files with same artifact name which is MY_ARTIFACT in this case but with different versions. 当您有2个具有相同工件名称(在这种情况下为MY_ARTIFACT)但版本不同的CAR文件时,将引发此错误。

Please note that WSO2 Carbon Servers still do not have the multiple CAR file versioning. 请注意,WSO2 Carbon服务器仍然没有多个CAR文件版本。

Thanks and Regards, 谢谢并恭祝安康,

Harshana Harshana

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM