[ESB Connector] Error when enabling Google Contacts Connector

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[ESB Connector] Error when enabling Google Contacts Connector

Maheeka Jayasuriya
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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

hmrajas1990
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 <[hidden email]> 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
[hidden email]
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   | [hidden email]

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

malakasilva
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

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

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

malakasilva
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

Shakila Sivagnanarajah
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

hmrajas1990
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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | +94752833834
Email   | [hidden email]

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

Viraj Rajaguru
In reply to this post by Shakila Sivagnanarajah
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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: +94 77 3683068




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

Shakila Sivagnanarajah
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

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.


Thanks,

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
[hidden email]
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
WSO2, Inc. 
lean . enterprise . middleware 

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

hmrajas1990
In reply to this post by Shakila Sivagnanarajah
Hi Shakila,
Another way is bundling all dependency jars with connector but the size of the connector will be 4-5 MB.(Gmail connector already bundled with dependency jars).

@Malaka
Since we are improving Google connectors we need to consider this because normally all google java connectors need dependency jars and one connector containing its dependency itself(Gmail) another don't(Google contacts)


On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | +94752833834
Email   | [hidden email]

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

malakasilva
In reply to this post by Keerthika Mahendralingam
Hi,

Connector should self contain all required dependencies.

On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <[hidden email]> 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​
 

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
[hidden email]
Keerthika Mahendralingam
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20776%20121144" value="+94776121144" target="_blank">+94 (0) 776 121144
WSO2, Inc. 
lean . enterprise . middleware 

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

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

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

Shakila Sivagnanarajah
+1, we need to improve this connector.

On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva <[hidden email]> wrote:
Hi,

Connector should self contain all required dependencies.

On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <[hidden email]> 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​
 

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
[hidden email]
Keerthika Mahendralingam
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20776%20121144" value="+94776121144" target="_blank">+94 (0) 776 121144
WSO2, Inc. 
lean . enterprise . middleware 

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

malakasilva
I guess Kalyani is currently doing it?

On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah <[hidden email]> wrote:
+1, we need to improve this connector.

On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva <[hidden email]> wrote:
Hi,

Connector should self contain all required dependencies.

On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <[hidden email]> 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​
 

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
[hidden email]
Keerthika Mahendralingam
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20776%20121144" value="+94776121144" target="_blank">+94 (0) 776 121144
WSO2, Inc. 
lean . enterprise . middleware 

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--

Best Regards,

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

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

kalyani
Yes Malaka, I am doing that.

On Thu, Feb 4, 2016 at 12:54 PM, Malaka Silva <[hidden email]> wrote:
I guess Kalyani is currently doing it?

On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah <[hidden email]> wrote:
+1, we need to improve this connector.

On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva <[hidden email]> wrote:
Hi,

Connector should self contain all required dependencies.

On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <[hidden email]> 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​
 

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
[hidden email]
Keerthika Mahendralingam
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20776%20121144" value="+94776121144" target="_blank">+94 (0) 776 121144
WSO2, Inc. 
lean . enterprise . middleware 

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.



--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: 0776390284

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

kalyani
Also I'll consider about this issue.

On Thu, Feb 4, 2016 at 6:33 PM, Kalyani Yogeswaranathan <[hidden email]> wrote:
Yes Malaka, I am doing that.

On Thu, Feb 4, 2016 at 12:54 PM, Malaka Silva <[hidden email]> wrote:
I guess Kalyani is currently doing it?

On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah <[hidden email]> wrote:
+1, we need to improve this connector.

On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva <[hidden email]> wrote:
Hi,

Connector should self contain all required dependencies.

On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <[hidden email]> 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​
 

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
[hidden email]
Keerthika Mahendralingam
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20776%20121144" value="+94776121144" target="_blank">+94 (0) 776 121144
WSO2, Inc. 
lean . enterprise . middleware 

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.



--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: 0776390284



--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: 0776390284

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

kalyani
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 <[hidden email]> wrote:
Also I'll consider about this issue.

On Thu, Feb 4, 2016 at 6:33 PM, Kalyani Yogeswaranathan <[hidden email]> wrote:
Yes Malaka, I am doing that.

On Thu, Feb 4, 2016 at 12:54 PM, Malaka Silva <[hidden email]> wrote:
I guess Kalyani is currently doing it?

On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah <[hidden email]> wrote:
+1, we need to improve this connector.

On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva <[hidden email]> wrote:
Hi,

Connector should self contain all required dependencies.

On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <[hidden email]> 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​
 

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva <[hidden email]> wrote:
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva <[hidden email]> wrote:
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Thank you
Best Regards

Rajjaz HM

Associate Software Engineer
WSO2 Inc.
lean | enterprise | middleware
Mobile | <a href="tel:%2B94752833834" value="+94752833834" target="_blank">+94752833834
Email   | [hidden email]


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com 

Mobile: <a href="tel:%2B94%2077%203683068" value="+94773683068" target="_blank">+94 77 3683068






--
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
[hidden email]
Keerthika Mahendralingam
Associate Software Engineer
Mobile :<a href="tel:%2B94%20%280%29%20776%20121144" value="+94776121144" target="_blank">+94 (0) 776 121144
WSO2, Inc. 
lean . enterprise . middleware 

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

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 :<a href="tel:%2B94%20%280%29%20768%20856837" value="+94768856837" target="_blank">+94 (0) 768 856837



--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.



--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: 0776390284



--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: 0776390284



--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: 0776390284

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev