I guess Kalyani is currently doing it?

On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah <shak...@wso2.com>
wrote:

> +1, we need to improve this connector.
>
> On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva <mal...@wso2.com> wrote:
>
>> Hi,
>>
>> Connector should self contain all required dependencies.
>>
>> On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Shakila,
>>> I think what Viraj mentioned is we can include the required jar file
>>> into connector itself like it is done for GmailRest connector(jar files are
>>> added into lib folder). Then we don't have to add Java Library project
>>> separately.
>>>
>> ​+1​
>>
>>
>>>
>>> [1].
>>>  
>>> https://store.wso2.com/store/assets/esbconnector/a3c146b3-59fe-480d-a2e3-75c881d9129c
>>> <https://store.wso2.com/store/assets/esbconnector/a3c146b3-59fe-480d-a2e3-75c881d9129c>
>>>
>>> Thanks,
>>>
>>> On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
>>>> Yes Viraj,
>>>>
>>>> As you said, we need to do an additional step to add libraries (like
>>>> adding 'Connector Exporter Project' to add synapse library). If we have
>>>> 'Connector Exporter Project' only, we can deploy the connectors in to the
>>>> ESB via car files. Likewise, we need to have 'Java Library Project' to add
>>>> third party libraries.
>>>>
>>>> Please correct, if I am wrong.
>>>>
>>>> Thanks
>>>>
>>>> On Thu, Feb 4, 2016 at 12:18 PM, Viraj Rajaguru <vi...@wso2.com> wrote:
>>>>
>>>>> Hi Shakila,
>>>>>
>>>>> We can use those steps to deploy required third party jars in the same
>>>>> car file with connector. But isn't it breaking our connector story ? When
>>>>> we need to use a connector in our sequences/proxy service/APIs, we just
>>>>> import/download the connector into Developer Studio and use them in ESB
>>>>> artifacts and deploy artifacts and connectors in the same car file. But in
>>>>> this case we need additional steps to add third party libraries.
>>>>>
>>>>> Shouldn't connector be a self containing one with all the dependencies
>>>>> with it?
>>>>>
>>>>> Thanks,
>>>>> Viraj.
>>>>>
>>>>> On Thu, Feb 4, 2016 at 10:59 AM, Shakila Sivagnanarajah <
>>>>> shak...@wso2.com> wrote:
>>>>>
>>>>>> Maheeka,
>>>>>>
>>>>>> Create a 'Java Library Project' to add the required java
>>>>>> dependencies. Then create the 'Composite Application Project', by 
>>>>>> selecting
>>>>>> this JLP with other projects.  Do the required steps to export this
>>>>>> 'Composite Application Project'. Before exporting the car file, please 
>>>>>> make
>>>>>> sure that the JLP project’s server role is set as ‘Enterprise Service 
>>>>>> Bus'.
>>>>>>
>>>>>> Thanks Viraj for your help.
>>>>>>
>>>>>> On Wed, Feb 3, 2016 at 10:20 PM, Shakila Sivagnanarajah <
>>>>>> shak...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Malaka,
>>>>>>>
>>>>>>> I will check and update.
>>>>>>>
>>>>>>> Thank you
>>>>>>>
>>>>>>> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <mal...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Shakila can you check this please?
>>>>>>>>
>>>>>>>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <mal...@wso2.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> No I don't think this is expected behavior but a bug.
>>>>>>>>>
>>>>>>>>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <
>>>>>>>>> mahe...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Rajjaz,
>>>>>>>>>>
>>>>>>>>>> Yes it is an issue with dependencies. The issue is when deploying
>>>>>>>>>> a connector with a car file. Is this the expected behavior to deploy 
>>>>>>>>>> libs
>>>>>>>>>> manually when the connectors are packaged with a car file?
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Maheeka
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed <raj...@wso2.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi maheeka,
>>>>>>>>>>>  its seems to be like class not found exceptions, so add
>>>>>>>>>>> dependency jars[1] inside the lib folder. or if you can get through 
>>>>>>>>>>> build
>>>>>>>>>>> the Google Contacts connector and get jars from inside 
>>>>>>>>>>> *target/connector/dependencies
>>>>>>>>>>> .*
>>>>>>>>>>>
>>>>>>>>>>> [1]
>>>>>>>>>>> jsr305-1.3.7.jar
>>>>>>>>>>> jackson-core-2.1.3.jar
>>>>>>>>>>> guava-13.0.1.jar
>>>>>>>>>>> google-oauth-client-1.17.0-rc.jar
>>>>>>>>>>> google-http-client-jackson2-1.17.0-rc.jar
>>>>>>>>>>> google-http-client-1.17.0-rc.jar
>>>>>>>>>>> google-api-client-1.17.0-rc.jar
>>>>>>>>>>> core-1.47.1.jar
>>>>>>>>>>> commons-email-1.2.jar
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya <
>>>>>>>>>>> mahe...@wso2.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi ,
>>>>>>>>>>>>
>>>>>>>>>>>> I am getting an error when enabling Google Contacts connector
>>>>>>>>>>>> with ESB 4.9.0. Following is the stack trace.
>>>>>>>>>>>>
>>>>>>>>>>>> Caused by: java.lang.NoClassDefFoundError:
>>>>>>>>>>>> com/google/api/client/http/HttpTransport
>>>>>>>>>>>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>>>>>>>>>>     at
>>>>>>>>>>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>>>>>>>>>>>>     at java.lang.Class.getConstructor0(Class.java:2842)
>>>>>>>>>>>>     at java.lang.Class.newInstance(Class.java:345)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
>>>>>>>>>>>>     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.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
>>>>>>>>>>>>     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.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
>>>>>>>>>>>>     ... 126 more
>>>>>>>>>>>> Caused by: java.lang.ClassNotFoundException: Class Not found :
>>>>>>>>>>>> com.google.api.client.http.HttpTransport
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
>>>>>>>>>>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>>>>>>>>>>>     at
>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
>>>>>>>>>>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>>>>>>>>>>>     ... 145 more
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Maheeka
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Thank you
>>>>>>>>>>> Best Regards
>>>>>>>>>>>
>>>>>>>>>>> *Rajjaz HM*
>>>>>>>>>>> Associate Software Engineer
>>>>>>>>>>> WSO2 Inc. <http://wso2.com/>
>>>>>>>>>>> lean | enterprise | middleware
>>>>>>>>>>> Mobile | +94752833834
>>>>>>>>>>> Email   | raj...@wso2.com
>>>>>>>>>>> LinkedIn | Blogger | WSO2 Profile
>>>>>>>>>>> <http://wso2.com/about/team/mohammer_rajjaz/>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Dev mailing list
>>>>>>>>>> Dev@wso2.org
>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Best Regards,
>>>>>>>>>
>>>>>>>>> Malaka Silva
>>>>>>>>> Senior Tech Lead
>>>>>>>>> M: +94 777 219 791
>>>>>>>>> Tel : 94 11 214 5345
>>>>>>>>> Fax :94 11 2145300
>>>>>>>>> Skype : malaka.sampath.silva
>>>>>>>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>>>>>>>> Blog : http://mrmalakasilva.blogspot.com/
>>>>>>>>>
>>>>>>>>> WSO2, Inc.
>>>>>>>>> lean . enterprise . middleware
>>>>>>>>> http://www.wso2.com/
>>>>>>>>> http://www.wso2.com/about/team/malaka-silva/
>>>>>>>>> <http://wso2.com/about/team/malaka-silva/>
>>>>>>>>> https://store.wso2.com/store/
>>>>>>>>>
>>>>>>>>> Save a tree -Conserve nature & Save the world for your future.
>>>>>>>>> Print this email only if it is absolutely necessary.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Best Regards,
>>>>>>>>
>>>>>>>> Malaka Silva
>>>>>>>> Senior Tech Lead
>>>>>>>> M: +94 777 219 791
>>>>>>>> Tel : 94 11 214 5345
>>>>>>>> Fax :94 11 2145300
>>>>>>>> Skype : malaka.sampath.silva
>>>>>>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>>>>>>> Blog : http://mrmalakasilva.blogspot.com/
>>>>>>>>
>>>>>>>> WSO2, Inc.
>>>>>>>> lean . enterprise . middleware
>>>>>>>> http://www.wso2.com/
>>>>>>>> http://www.wso2.com/about/team/malaka-silva/
>>>>>>>> <http://wso2.com/about/team/malaka-silva/>
>>>>>>>> https://store.wso2.com/store/
>>>>>>>>
>>>>>>>> Save a tree -Conserve nature & Save the world for your future.
>>>>>>>> Print this email only if it is absolutely necessary.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Shakila Sivagnanarajah
>>>>>>> Associate Software Engineer
>>>>>>> Mobile :+94 (0) 768 856837
>>>>>>> shak...@wso2.com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Shakila Sivagnanarajah
>>>>>> Associate Software Engineer
>>>>>> Mobile :+94 (0) 768 856837
>>>>>> shak...@wso2.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Viraj Rajaguru
>>>>> Senior Software Engineer
>>>>> WSO2 Inc. : http://wso2.com
>>>>>
>>>>> Mobile: +94 77 3683068
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Shakila Sivagnanarajah
>>>> Associate Software Engineer
>>>> Mobile :+94 (0) 768 856837
>>>> shak...@wso2.com
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> <dev-requ...@wso2.org>
>>> Keerthika Mahendralingam
>>> Associate Software Engineer
>>> Mobile :+94 (0) 776 121144
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> <http://wso2.com/about/team/malaka-silva/>
>> https://store.wso2.com/store/
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 768 856837
> shak...@wso2.com
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to