Hi All, I am trying to put a zip file inside a jaggery app, so that it extracts it automatically and deploys it. I observed following behavior. Initially when I put "publisher.zip", it extracts it correctly and creates a folder with the name "publisher". After that I deleted "publisher" folder and put the "publisher.zip" in the same location. It creates the publisher folder correctly but in the console, I get following error.
*[2016-06-12 17:57:34,995] ERROR {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Error while deploying webapp: StandardContext[publisher].File[/home/megala/repositories/product-ds/modules/distribution/target/wso2ds-2.1.0-SNAPSHOT/repository/deployment/server/jaggeryapps/portal/store/test.com/fs/gadget/publisher <http://test.com/fs/gadget/publisher>]* *org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy* * at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:302)* * at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:212)* * at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:213)* * at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:243)* * at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleZipWebappDeployment(TomcatJaggeryWebappsDeployer.java:158)* * at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:177)* * at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:116)* * at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:224)* * at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:114)* * at org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)* * at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)* * at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)* * 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:93)* * at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)* * at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)* * at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)* * 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:745)* *Caused by: java.lang.IllegalArgumentException: addChild: Child name '/publisher' is not unique* * at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)* * at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)* * at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)* * at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:290)* * ... 26 more* *[2016-06-12 17:57:34,995] ERROR {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Error while Tomact jaggery web apps Deployment * *org.wso2.carbon.CarbonException: Error while deploying webapp: StandardContext[publisher].File[/home/megala/repositories/product-ds/modules/distribution/target/wso2ds-2.1.0-SNAPSHOT/repository/deployment/server/jaggeryapps/portal/store/test.com/fs/gadget/publisher <http://test.com/fs/gadget/publisher>]* * at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:287)* * at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:243)* * at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleZipWebappDeployment(TomcatJaggeryWebappsDeployer.java:158)* * at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:177)* * at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:116)* * at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:224)* * at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:114)* * at org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)* * at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)* * at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)* * 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:93)* * at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)* * at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)* * at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)* * 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:745)* *Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy* * at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:302)* * at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:212)* * at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:213)* * ... 24 more* *Caused by: java.lang.IllegalArgumentException: addChild: Child name '/publisher' is not unique* * at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)* * at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)* * at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)* * at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:290)* * ... 26 more* This behavior is not observed if I put the "publisher.zip" after leaving some time between deletion and new upload of "publisher.zip". Is there any possible way that I can avoid this error? Thanks. Regards, Megala -- Megala Uthayakumar Software Engineer Mobile : 0779967122
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev