Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-04 Thread Kalyani Yogeswaranathan
Yes Malaka, I am doing that.

On Thu, Feb 4, 2016 at 12:54 PM, Malaka Silva  wrote:

> I guess Kalyani is currently doing it?
>
> On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah 
> wrote:
>
>> +1, we need to improve this connector.
>>
>> On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva  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
 

 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 
> 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 
 wrote:

> Shakila can you check this please?
>
> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva 
> 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 >> > 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 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-04 Thread Kalyani Yogeswaranathan
Hi,

SOAP api for google contact connector is deprecated and now we are
rewriting the connector using REST api.

On Thu, Feb 4, 2016 at 6:39 PM, Kalyani Yogeswaranathan 
wrote:

> Also I'll consider about this issue.
>
> On Thu, Feb 4, 2016 at 6:33 PM, Kalyani Yogeswaranathan 
> wrote:
>
>> Yes Malaka, I am doing that.
>>
>> On Thu, Feb 4, 2016 at 12:54 PM, Malaka Silva  wrote:
>>
>>> 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  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
>> 
>>
>> 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 
>>> 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 
>> wrote:
>>
>>> Shakila can you check this please?
>>>
>>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva 
>>> 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 
>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-04 Thread Kalyani Yogeswaranathan
Also I'll consider about this issue.

On Thu, Feb 4, 2016 at 6:33 PM, Kalyani Yogeswaranathan 
wrote:

> Yes Malaka, I am doing that.
>
> On Thu, Feb 4, 2016 at 12:54 PM, Malaka Silva  wrote:
>
>> I guess Kalyani is currently doing it?
>>
>> On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah > > wrote:
>>
>>> +1, we need to improve this connector.
>>>
>>> On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva  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
> 
>
> 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 
>> 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 
> wrote:
>
>> Shakila can you check this please?
>>
>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva 
>> 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
> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Maheeka Jayasuriya
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  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 
> 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. 
> lean | enterprise | middleware
> Mobile | +94752833834
> Email   | raj...@wso2.com
> LinkedIn | Blogger | WSO2 Profile
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya  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  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 
>> 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. 
>> lean | enterprise | middleware
>> Mobile | +94752833834
>> Email   | raj...@wso2.com
>> LinkedIn | Blogger | WSO2 Profile
>> 
>>
>
>
> ___
> 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/

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.

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:

> No I don't think this is expected behavior but a bug.
>
> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
> 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  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 
>>> 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. 
>>> lean | enterprise | middleware
>>> Mobile | +94752833834
>>> Email   | raj...@wso2.com
>>> LinkedIn | Blogger | WSO2 Profile
>>> 
>>>
>>
>>
>> ___
>> 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
> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Rajjaz Mohammed
Hi malaka/shakila,
in our Doc[1] we didn't mentioned to add the dependencies into lib folder
to deploy the connector. is it the mistake? or we no need to add.


[1]https://docs.wso2.com/display/ESBCONNECTORS/Google+Contacts+Connector

On Thu, Feb 4, 2016 at 10:59 AM, Shakila Sivagnanarajah 
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 
> wrote:
>
>> Hi Malaka,
>>
>> I will check and update.
>>
>> Thank you
>>
>> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:
>>
>>> Shakila can you check this please?
>>>
>>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>>>
 No I don't think this is expected behavior but a bug.

 On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
 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 
> 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 
>> 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
>>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Keerthika Mahendralingam
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].
 
https://store.wso2.com/store/assets/esbconnector/a3c146b3-59fe-480d-a2e3-75c881d9129c


Thanks,

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah 
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  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 > > 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  wrote:

> Shakila can you check this please?
>
> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>
>> No I don't think this is expected behavior but a bug.
>>
>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
>> 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 
>>> 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
> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
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
> 
>
> Thanks,
>
> On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah 
> 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  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  wrote:
>
>> Shakila can you check this please?
>>
>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>>
>>> No I don't think this is expected behavior but a bug.
>>>
>>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya >> > 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 
 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
>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Shakila Sivagnanarajah
+1, we need to improve this connector.

On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva  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
>> 
>>
>> Thanks,
>>
>> On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah > > 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  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 
>> wrote:
>>
>>> Shakila can you check this please?
>>>
>>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva 
>>> 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 
> 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
>>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
I guess Kalyani is currently doing it?

On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah 
wrote:

> +1, we need to improve this connector.
>
> On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva  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
>>> 
>>>
>>> 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  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 
>>> wrote:
>>>
 Shakila can you check this please?

 On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva 
 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 
>> 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 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Shakila Sivagnanarajah
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 
wrote:

> Hi Malaka,
>
> I will check and update.
>
> Thank you
>
> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:
>
>> Shakila can you check this please?
>>
>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>>
>>> No I don't think this is expected behavior but a bug.
>>>
>>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
>>> 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 
 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 
> 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
>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Rajjaz Mohammed
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  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. 
lean | enterprise | middleware
Mobile | +94752833834
Email   | raj...@wso2.com
LinkedIn | Blogger | WSO2 Profile

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Shakila Sivagnanarajah
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:

> Shakila can you check this please?
>
> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>
>> No I don't think this is expected behavior but a bug.
>>
>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
>> 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  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 
 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. 
 lean | enterprise | middleware
 Mobile | +94752833834
 Email   | raj...@wso2.com
 LinkedIn | Blogger | WSO2 Profile
 

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech