Hi Hasitha,

You need to create Connector Exporter Project to include the connector in
CAR file. Please refer [1].

[1] -
https://docs.wso2.com/display/DVS380/Creating+ESB+Artifacts#CreatingESBArtifacts-Workingwithconnectors

Thanks

Kesavan Yogarajah
Associate Software Engineer
Mobile :+94 (0) 779 758021
kesav...@wso2.com
WSO2, Inc.
lean . enterprise . middleware

On Sat, Mar 26, 2016 at 6:24 PM, Rajjaz Mohammed <raj...@wso2.com> wrote:

> Hi Hasitha,
>
> As Susantha mentioned the reason for the above error is unavailability of
> connector or connector is not enabled, So add the connector to ESB
> instance[1] and enable the connector[1] then try your sequence.
>
>
> [1]
> https://docs.wso2.com/display/ESB490/Managing+Connectors+in+Your+ESB+Instance
>
> On Sat, Mar 26, 2016 at 4:36 PM, Susankha Nirmala <susan...@wso2.com>
> wrote:
>
>> Hi Hasitha,
>>
>> Did you installed connector to the ESB?
>> You can install that connector from the connector store. You can follow
>> the steps mentioned in doc (1).
>>
>> (1)
>> https://docs.wso2.com/display/ESB490/Managing+Connectors+in+Your+ESB+Instance
>>
>> Thanks.
>> /Susankha.
>> On Mar 26, 2016 4:10 PM, "Harsha Thirimanna" <hars...@wso2.com> wrote:
>>
>>> You can see the more error detail in dev studio error.log while you are
>>> deploying .
>>> On Mar 26, 2016 5:08 AM, "Hasitha Hiranya" <hasit...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> And I do not see connector is bundled into the CAR file.
>>>>
>>>> [image: Inline image 1]
>>>>
>>>> Thanks
>>>>
>>>> On Sat, Mar 26, 2016 at 2:31 PM, Hasitha Hiranya <hasit...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have following sequence. When it is deployed via a CAR file (I added
>>>>> salesforce connector to the CAR by right click >> add remove connector in
>>>>> Dev Studio) it gives error [1]. Any idea what I am doing wrong here? I am
>>>>> using ESB 4.9.0.
>>>>>
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <sequence name="salesForceInvokeSequence" trace="disable" xmlns="
>>>>> http://ws.apache.org/ns/synapse";>
>>>>>   <log>
>>>>>     <property expression="get-property('query.param.name')"
>>>>> name="Name" xmlns:ns="http://org.apache.synapse/xsd"/>
>>>>>   </log>
>>>>>   <payloadFactory media-type="xml">
>>>>>     <format>
>>>>>       <sfdc:sObjects type="Account" xmlns:sfdc="sfdc">
>>>>>         <sfdc:sObject>
>>>>>           <sfdc:Name>$1</sfdc:Name>
>>>>>         </sfdc:sObject>
>>>>>       </sfdc:sObjects>
>>>>>     </format>
>>>>>     <args>
>>>>>       <arg evaluator="xml" expression="get-property('query.param.name')"
>>>>> xmlns:ns="http://org.apache.synapse/xsd"/>
>>>>>     </args>
>>>>>   </payloadFactory>
>>>>>   <salesforce.create configKey="MySFConfig">
>>>>>     <allOrNone>0</allOrNone>
>>>>>     <allowFieldTruncate>0</allowFieldTruncate>
>>>>>     <sobjects xmlns:sfdc="sfdc">{//sfdc:sObjects}</sobjects>
>>>>>   </salesforce.create>
>>>>>   <respond/>
>>>>> </sequence>
>>>>>
>>>>> [1].
>>>>>
>>>>>
>>>>> [2016-03-26 14:20:34,061] ERROR - MediatorFactoryFinder Unknown
>>>>> mediator referenced by configuration element : {
>>>>> http://ws.apache.org/ns/synapse}salesforce
>>>>> [2016-03-26 14:20:34,062] ERROR - SequenceDeploymentInterceptor
>>>>> Sequence Deployment from the file :
>>>>> /learn/demo/new_esb/wso2esb-4.9.0/tmp/carbonapps/-1234/1458982232842ESBProject_1.0.0.car/salesForceInvokeSequence_1.0.0/salesForceInvokeSequence-1.0.0.xml
>>>>> : Failed.
>>>>> *org.apache.synapse.SynapseException: Unknown mediator referenced by
>>>>> configuration element : {http://ws.apache.org/ns/synapse}salesforce
>>>>> <http://ws.apache.org/ns/synapse%7Dsalesforce>*
>>>>> at
>>>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:219)
>>>>> at
>>>>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>>>>> at
>>>>> org.apache.synapse.config.xml.SequenceMediatorFactory.createSpecificMediator(SequenceMediatorFactory.java:87)
>>>>> at
>>>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>>>> at
>>>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>>>> at
>>>>> org.apache.synapse.deployers.SequenceDeployer.deploySynapseArtifact(SequenceDeployer.java:58)
>>>>> at
>>>>> org.wso2.carbon.sequences.SequenceDeploymentInterceptor.deploySynapseArtifact(SequenceDeploymentInterceptor.java:42)
>>>>> at
>>>>> org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
>>>>> at
>>>>> org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:130)
>>>>> at
>>>>> org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
>>>>> 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: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)
>>>>> [2016-03-26 14:20:34,065] ERROR - AbstractSynapseArtifactDeployer
>>>>> Deployment of the Synapse Artifact from file :
>>>>> /learn/demo/new_esb/wso2esb-4.9.0/tmp/carbonapps/-1234/1458982232842ESBProject_1.0.0.car/salesForceInvokeSequence_1.0.0/salesForceInvokeSequence-1.0.0.xml
>>>>> : Failed!
>>>>> org.apache.synapse.deployers.SynapseArtifactDeploymentException:
>>>>> Sequence Deployment from the file :
>>>>> /learn/demo/new_esb/wso2esb-4.9.0/tmp/carbonapps/-1234/1458982232842ESBProject_1.0.0.car/salesForceInvokeSequence_1.0.0/salesForceInvokeSequence-1.0.0.xml
>>>>> : Failed.
>>>>> at
>>>>> org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:475)
>>>>> at
>>>>> org.apache.synapse.deployers.SequenceDeployer.deploySynapseArtifact(SequenceDeployer.java:84)
>>>>> at
>>>>> org.wso2.carbon.sequences.SequenceDeploymentInterceptor.deploySynapseArtifact(SequenceDeploymentInterceptor.java:42)
>>>>> at
>>>>> org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(AbstractSynapseArtifactDeployer.java:194)
>>>>> at
>>>>> org.wso2.carbon.application.deployer.synapse.SynapseAppDeployer.deployArtifacts(SynapseAppDeployer.java:130)
>>>>> at
>>>>> org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
>>>>> 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: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.apache.synapse.SynapseException: Unknown mediator
>>>>> referenced by configuration element : {
>>>>> http://ws.apache.org/ns/synapse}salesforce
>>>>> at
>>>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:219)
>>>>> at
>>>>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>>>>> at
>>>>> org.apache.synapse.config.xml.SequenceMediatorFactory.createSpecificMediator(SequenceMediatorFactory.java:87)
>>>>> at
>>>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>>>> at
>>>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>>>> at
>>>>> org.apache.synapse.deployers.SequenceDeployer.deploySynapseArtifact(SequenceDeployer.java:58)
>>>>> ... 22 more
>>>>> [2016-03-26 14:20:34,066]  INFO - AbstractSynapseArtifactDeployer The
>>>>> file has been backed up into : NO_BACKUP_ON_WORKER.INFO
>>>>> [2016-03-26 14:20:34,067] ERROR - AbstractSynapseArtifactDeployer
>>>>> Deployment of synapse artifact failed. Error reading
>>>>> /learn/demo/new_esb/wso2esb-4.9.0/tmp/carbonapps/-1234/1458982232842ESBProject_1.0.0.car/salesForceInvokeSequence_1.0.0/salesForceInvokeSequence-1.0.0.xml
>>>>> : Sequence Deployment from the file :
>>>>> /learn/demo/new_esb/wso2esb-4.9.0/tmp/carbonapps/-1234/1458982232842ESBProject_1.0.0.car/salesForceInvokeSequence_1.0.0/salesForceInvokeSequence-1.0.0.xml
>>>>> : Failed.
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> --
>>>>> *Hasitha Abeykoon*
>>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>>> *cell:* *+94 719363063*
>>>>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Hasitha Abeykoon*
>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>> *cell:* *+94 719363063*
>>>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Associate Software Engineer
> Platform Extension Team
> WSO2 Inc. <http://wso2.com/>
> lean | enterprise | middleware
> Mobile | +94752833834|+94777226874
> Email   | raj...@wso2.com
> LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger
> <http://wso2experience.blogspot.com/> | WSO2 Profile
> <http://wso2.com/about/team/mohammer-rajjaz/>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to