WSO2 DeveloperStudio CAR Maven deployment exception -


using wso2 developer studio guide , following istructions @ following page: https://docs.wso2.com/display/dvs370/deploying+a+car+file+with+the+maven+plug-in#deployingacarfilewiththemavenplug-in-deploycarfiletothewso2esbserver

i'm not able deploy car archive in runnging wso2 esb 4.8.1 instance got exception during maven build:

[info] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ provaplugin --- [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 5.524s [info] finished at: mon may 11 18:17:18 cest 2015 [info] final memory: 22m/338m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project provaplugin: deployment failed: repository element not specified in pom inside distributionmanagement element or in -daltdeploymentrepository=id::layout::url parameter -> [help 1] [error]  [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception mojoexecutionexception - apache maven - apache software foundation cwiki.apache.org 

and exception in wso2's console:

error - applicationmanager error occurred while deploying carbon application org.wso2.carbon.carbonexception: error while extracting carbon application : provaplugin_1.0.0.car     @ org.wso2.carbon.application.deployer.appdeployerutils.extractcarbonapp(appdeployerutils.java:440)     @ org.wso2.carbon.application.deployer.internal.applicationmanager.deploycarbonapp(applicationmanager.java:198)     @ org.wso2.carbon.application.deployer.cappaxis2deployer.deploy(cappaxis2deployer.java:114)     @ org.apache.axis2.deployment.repository.util.deploymentfiledata.deploy(deploymentfiledata.java:136)     @ org.apache.axis2.deployment.deploymentengine.dodeploy(deploymentengine.java:807)     @ org.apache.axis2.deployment.repository.util.wsinfolist.update(wsinfolist.java:144)     @ org.apache.axis2.deployment.repositorylistener.update(repositorylistener.java:377)     @ org.apache.axis2.deployment.repositorylistener.checkservices(repositorylistener.java:254)     @ org.apache.axis2.deployment.repositorylistener.startlistener(repositorylistener.java:371)     @ org.apache.axis2.deployment.scheduler.schedulertask.checkrepository(schedulertask.java:59)     @ org.apache.axis2.deployment.scheduler.schedulertask.run(schedulertask.java:67)     @ org.wso2.carbon.core.deployment.carbondeploymentschedulertask.runaxisdeployment(carbondeploymentschedulertask.java:79)     @ org.wso2.carbon.core.deployment.carbondeploymentschedulertask.run(carbondeploymentschedulertask.java:124)     @ java.util.concurrent.executors$runnableadapter.call(executors.java:471)     @ java.util.concurrent.futuretask$sync.innerrunandreset(futuretask.java:351)     @ java.util.concurrent.futuretask.runandreset(futuretask.java:178)     @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$301(scheduledthreadpoolexecutor.java:178)     @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:293)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:722) caused by: java.io.filenotfoundexception: /media/ubuntu/codehome/test%20greg/wso2esb-4.8.1/repository/deployment/server/carbonapps/provaplugin_1.0.0.car (no such file or directory)     @ java.util.zip.zipfile.open(native method)     @ java.util.zip.zipfile.<init>(zipfile.java:214)     @ java.util.zip.zipfile.<init>(zipfile.java:144)     @ java.util.zip.zipfile.<init>(zipfile.java:115)     @ org.wso2.carbon.application.deployer.appdeployerutils.extract(appdeployerutils.java:653)     @ org.wso2.carbon.application.deployer.appdeployerutils.extractcarbonapp(appdeployerutils.java:438)     ... 20 more [2015-05-11 18:17:22,729] error - cappaxis2deployer error while deploying carbon application /media/ubuntu/codehome/test greg/wso2esb-4.8.1/repository/deployment/server/carbonapps/provaplugin_1.0.0.car java.lang.nullpointerexception     @ org.wso2.carbon.application.deployer.internal.applicationmanager.revertdeployedartifacts(applicationmanager.java:301)     @ org.wso2.carbon.application.deployer.internal.applicationmanager.deploycarbonapp(applicationmanager.java:275)     @ org.wso2.carbon.application.deployer.cappaxis2deployer.deploy(cappaxis2deployer.java:114)     @ org.apache.axis2.deployment.repository.util.deploymentfiledata.deploy(deploymentfiledata.java:136)     @ org.apache.axis2.deployment.deploymentengine.dodeploy(deploymentengine.java:807)     @ org.apache.axis2.deployment.repository.util.wsinfolist.update(wsinfolist.java:144)     @ org.apache.axis2.deployment.repositorylistener.update(repositorylistener.java:377)     @ org.apache.axis2.deployment.repositorylistener.checkservices(repositorylistener.java:254)     @ org.apache.axis2.deployment.repositorylistener.startlistener(repositorylistener.java:371)     @ org.apache.axis2.deployment.scheduler.schedulertask.checkrepository(schedulertask.java:59)     @ org.apache.axis2.deployment.scheduler.schedulertask.run(schedulertask.java:67)     @ org.wso2.carbon.core.deployment.carbondeploymentschedulertask.runaxisdeployment(carbondeploymentschedulertask.java:79)     @ org.wso2.carbon.core.deployment.carbondeploymentschedulertask.run(carbondeploymentschedulertask.java:124)     @ java.util.concurrent.executors$runnableadapter.call(executors.java:471)     @ java.util.concurrent.futuretask$sync.innerrunandreset(futuretask.java:351)     @ java.util.concurrent.futuretask.runandreset(futuretask.java:178)     @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$301(scheduledthreadpoolexecutor.java:178)     @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:293)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:722) 

but it's weird me archive provaplugin_1.0.0.car present in /repository/deployment/server/carbonapps/

this car pom.xml file

<?xml version="1.0" encoding="utf-8"?> <project xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">   <modelversion>4.0.0</modelversion>   <groupid>com.example.provaplugin</groupid>   <artifactid>provaplugin</artifactid>   <version>1.0.0</version>   <packaging>carbon/application</packaging>   <name>provaplugin</name>   <description>provaplugin</description>   <properties>     <com.example.provadeploy.proxy-service_._adminendpoint>capp/enterpriseservicebus</com.example.provadeploy.proxy-service_._adminendpoint>     <artifact.types>jaggery/app=zip,service/rule=aar,lib/library/bundle=jar,synapse/message-processors=xml,synapse/endpointtemplate=xml,synapse/proxy-service=xml,synapse/message-store=xml,carbon/application=car,registry/resource=zip,lib/dataservice/validator=jar,synapse/endpoint=xml,web/application=war,synapse/sequence=xml,synapse/configuration=xml,lib/registry/handlers=jar,synapse/task=xml,service/meta=xml,webapp/jaxws=war,synapse/api=xml,cep/bucket=xml,bpel/workflow=zip,lib/registry/filter=jar,service/dataservice=dbs,synapse/local-entry=xml,synapse/priority-executor=xml,synapse/event-source=xml,synapse/template=xml,lib/carbon/ui=jar,service/axis2=aar,synapse/sequencetemplate=xml,wso2/gadget=dar,lib/synapse/mediator=jar</artifact.types>   </properties>   <dependencies>     <dependency>       <groupid>com.example.provadeploy.proxy-service</groupid>       <artifactid>adminendpoint</artifactid>       <version>1.0.0</version>       <type>xml</type>     </dependency>   </dependencies>   <repositories>     <repository>       <releases>         <enabled>true</enabled>         <updatepolicy>daily</updatepolicy>         <checksumpolicy>ignore</checksumpolicy>       </releases>       <id>wso2-nexus</id>       <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>     </repository>     <repository>       <id>wso2-maven2-repository-1</id>       <url>http://dist.wso2.org/maven2</url>     </repository>     <repository>       <id>wso2-nexus-repository-1</id>       <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>     </repository>   </repositories>   <pluginrepositories>     <pluginrepository>       <releases>         <enabled>true</enabled>         <updatepolicy>daily</updatepolicy>         <checksumpolicy>ignore</checksumpolicy>       </releases>       <id>wso2-nexus</id>       <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>     </pluginrepository>     <pluginrepository>       <id>wso2-maven2-repository-1</id>       <url>http://dist.wso2.org/maven2</url>     </pluginrepository>     <pluginrepository>       <id>wso2-nexus-repository-1</id>       <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>     </pluginrepository>   </pluginrepositories>   <build>     <plugins>       <plugin>         <artifactid>maven-eclipse-plugin</artifactid>         <version>2.9</version>         <configuration>           <buildcommands />           <projectnatures>             <projectnature>org.wso2.developerstudio.eclipse.distribution.project.nature</projectnature>           </projectnatures>         </configuration>       </plugin>       <plugin>         <groupid>org.wso2.maven</groupid>         <artifactid>maven-car-plugin</artifactid>         <version>2.0.9</version>         <extensions>true</extensions>         <executions>           <execution>             <id>car</id>             <phase>package</phase>             <goals>               <goal>car</goal>             </goals>           </execution>         </executions>         <configuration />       </plugin>       <plugin>         <groupid>org.wso2.maven</groupid>         <artifactid>maven-car-deploy-plugin</artifactid>         <version>1.0.9</version>         <extensions>true</extensions>         <configuration>           <carbonservers>             <carbonserver>               <truststorepath>/media/ubuntu/codehome/test greg/wso2esb-4.8.1/repository/resources/security/wso2carbon.jks</truststorepath>               <truststorepassword>wso2carbon</truststorepassword>               <truststoretype>jks</truststoretype>               <serverurl>https://localhost:9445</serverurl>               <username>admin</username>               <password>admin</password>               <operation>deploy</operation>             </carbonserver>           </carbonservers>         </configuration>       </plugin>     </plugins>   </build> </project> http://maven.apache.org/pom/4.0.0 maven.apache.org 

i same exception when try deploy car directly eclipse ide on developer studio wso2carbon server.

what's wrong?

you should specify repositories in distribution management. maven distribution management

inside project add following distributionmanagement repository.

<project xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> ......... <distributionmanagement>     <repository>       <id>internal.repo</id>       <name>internal repo</name>       <url>file:///home/thara/testesb/in</url>     </repository>   </distributionmanagement> ............ </project> 

for above example gave file system (linux).


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -