Hi Asitha, Yeah, this should totally be added into the Hector-based data reader feature for that to be self-contained. Please get this fixed.
Cheers, Prabath On Tue, Feb 10, 2015 at 10:10 PM, Harsha Kumara <[email protected]> wrote: > Definitely required dependencies need to be contain in the data reader > feature so that product can used the data reader feature standalone manner. > > @Asitha can you add thrift client and check whether it works. > > Thanks, > Harsha > > On Tue, Feb 10, 2015 at 5:55 PM, Asitha Nanayakkara <[email protected]> > wrote: > >> Hi all, >> >> Currently the Hector data reader feature doesn't pack some Hector >> dependencies to its Data reader feature. Due to that users of Hector data >> reader feature need to pack Hector dependency in addition to Hector data >> reader feature. >> >> Would it be nice if we can have the Hector dependency packed in Hector >> data reader? >> >> Regards, >> Asitha >> >> On Tue, Feb 10, 2015 at 5:00 PM, Pamod Sylvester <[email protected]> wrote: >> >>> It seems like the complain came from Andes feature. We've not imported >>> the package. AFAIK the dependency was removed from carbon business >>> messaging since we relied on data readers, but for hector we require it ? >>> >>> >>> org.wso2.carbon.andes_2.5.0 [114] >>> >>> Id=114, Status=RESOLVED Data >>> Root=/Users/pamod/Desktop/dev/wso2mb-3.0.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/114/data >>> >>> >>> "No registered services." >>> >>> No services in use. >>> >>> Exported packages >>> >>> org.wso2.carbon.andes.service.exception; version="2.5.0"[exported] >>> >>> org.wso2.carbon.andes.service.ws; version="2.5.0"[exported] >>> >>> org.wso2.carbon.andes.service; version="2.5.0"[exported] >>> >>> Imported packages >>> >>> org.apache.axis2.clustering; >>> version="1.6.1.wso2v11"<axis2_1.6.1.wso2v11 [13]> >>> >>> org.apache.axis2.context; >>> version="1.6.1.wso2v11"<axis2_1.6.1.wso2v11 [13]> >>> >>> org.apache.axis2.engine; version="1.6.1.wso2v11"<axis2_1.6.1.wso2v11 >>> [13]> >>> >>> org.apache.commons.logging; >>> version="1.2.0"<org.wso2.carbon.logging_4.3.0 [166]> >>> >>> org.wso2.andes.configuration; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.configuration.enums; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.configuration.qpid; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.configuration.util; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.carbon.andes.authentication.service; >>> version="2.5.0"<org.wso2.carbon.andes.authentication_2.5.0 [116]> >>> >>> org.wso2.carbon.andes.commons; >>> version="2.5.0"<org.wso2.carbon.andes.commons_2.5.0 [120]> >>> >>> org.wso2.carbon.andes.commons.registry; >>> version="2.5.0"<org.wso2.carbon.andes.commons_2.5.0 [120]> >>> >>> org.wso2.carbon.utils; version="4.3.0"<org.wso2.carbon.utils_4.3.0 >>> [251]> >>> >>> org.wso2.carbon.event.core.qpid; >>> version="4.3.4"<org.wso2.carbon.event.core_4.3.4 [145]> >>> >>> org.wso2.carbon.event.core; >>> version="4.3.4"<org.wso2.carbon.event.core_4.3.4 [145]> >>> >>> org.wso2.carbon.core.clustering.api; >>> version="4.3.0"<org.wso2.carbon.core_4.3.0 [133]> >>> >>> org.wso2.carbon.base.api; version="1.0.0"<org.wso2.carbon.base_4.3.0 >>> [129]> >>> >>> org.wso2.carbon.base; version="1.0.0"<org.wso2.carbon.base_4.3.0 >>> [129]> >>> >>> org.wso2.andes.wso2.service; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.server.registry; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.server.cluster.coordination.hazelcast; >>> version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.server.cluster; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.server; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.wso2.andes.kernel; version="2.5.0"<andes_2.5.0 [6]> >>> >>> org.osgi.service.component; >>> version="1.2.0"<org.eclipse.osgi.services_3.3.100.v20120522-1822 [109]> >>> >>> org.osgi.framework; >>> version="1.7.0"<org.eclipse.osgi_3.8.1.v20120830-144521 [0]> >>> >>> javax.management; >>> version="0.0.0"<org.eclipse.osgi_3.8.1.v20120830-144521 [0]> >>> >>> com.hazelcast.core; version="3.2.6"<hazelcast_3.2.6.wso2v3 [39]> >>> >>> org.apache.axis2.rpc.receivers; >>> version="1.6.1.wso2v11"<axis2_1.6.1.wso2v11 [13]> >>> >>> >>> >>> On Tue, Feb 10, 2015 at 3:51 PM, Pamod Sylvester <[email protected]> wrote: >>> > >>> > >>> > Exception during startup: java.lang.Exception: >>> java.lang.NoClassDefFoundError: me/prettyprint/hector/api/Cluster >>> > >>> > java.lang.Exception: java.lang.NoClassDefFoundError: >>> me/prettyprint/hector/api/Cluster >>> > >>> > at >>> org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:266) >>> > >>> > at >>> org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:147) >>> > >>> > at org.wso2.andes.server.Broker.startupImpl(Broker.java:153) >>> > >>> > at org.wso2.andes.server.Broker.startup(Broker.java:114) >>> > >>> > at org.wso2.andes.server.Main.startBroker(Main.java:218) >>> > >>> > at org.wso2.andes.server.Main.execute(Main.java:207) >>> > >>> > at org.wso2.andes.server.Main.<init>(Main.java:48) >>> > >>> > at org.wso2.andes.server.Main.main(Main.java:41) >>> > >>> > at >>> org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:316) >>> > >>> > at >>> org.wso2.carbon.andes.internal.QpidServiceComponent.activate(QpidServiceComponent.java:144) >>> > >>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> > >>> > at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> > >>> > at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> > >>> > at java.lang.reflect.Method.invoke(Method.java:606) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >>> > >>> > at >>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>> > >>> > at >>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >>> > >>> > at >>> org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS.activate(EventBrokerBuilderDS.java:69) >>> > >>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> > >>> > at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> > >>> > at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> > >>> > at java.lang.reflect.Method.invoke(Method.java:606) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >>> > >>> > at >>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>> > >>> > at >>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >>> > >>> > at >>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517) >>> > >>> > at >>> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) >>> > >>> > at >>> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:88) >>> > >>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> > >>> > at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> > >>> > at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> > >>> > at java.lang.reflect.Method.invoke(Method.java:606) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >>> > >>> > at >>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >>> > >>> > at >>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>> > >>> > at >>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >>> > >>> > at >>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >>> > >>> > at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >>> > >>> > at >>> org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) >>> > >>> > at >>> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) >>> > >>> > at >>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) >>> > >>> > at >>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) >>> > >>> > at >>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279) >>> > >>> > at >>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192) >>> > >>> > at >>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) >>> > >>> > at >>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) >>> > >>> > at >>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) >>> > >>> > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >>> > >>> > at >>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) >>> > >>> > at >>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) >>> > >>> > at java.util.concurrent.FutureTask.run(FutureTask.java:262) >>> > >>> > at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> > >>> > at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> > >>> > at java.lang.Thread.run(Thread.java:745) >>> > >>> > Caused by: java.lang.NoClassDefFoundError: >>> me/prettyprint/hector/api/Cluster >>> > >>> > at >>> org.wso2.andes.store.cassandra.HectorConnection.initialize(HectorConnection.java:109) >>> > >>> > at >>> org.wso2.andes.store.cassandra.HectorBasedAndesContextStoreImpl.init(HectorBasedAndesContextStoreImpl.java:70) >>> > >>> > at >>> org.wso2.andes.kernel.AndesKernelBoot.startAndesStores(AndesKernelBoot.java:201) >>> > >>> > at >>> org.wso2.andes.server.virtualhost.VirtualHostImpl.initialiseAndesStores(VirtualHostImpl.java:345) >>> > >>> > at >>> org.wso2.andes.server.virtualhost.VirtualHostImpl.<init>(VirtualHostImpl.java:207) >>> > >>> > at >>> org.wso2.andes.server.virtualhost.VirtualHostImpl.<init>(VirtualHostImpl.java:155) >>> > >>> > at >>> org.wso2.andes.server.registry.ApplicationRegistry.createVirtualHost(ApplicationRegistry.java:568) >>> > >>> > at >>> org.wso2.andes.server.registry.ApplicationRegistry.initialiseVirtualHosts(ApplicationRegistry.java:327) >>> > >>> > at >>> org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:261) >>> > >>> > ... 91 more >>> > >>> > Caused by: java.lang.ClassNotFoundException: >>> me.prettyprint.hector.api.Cluster >>> > >>> > at >>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) >>> > >>> > at >>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) >>> > >>> > at >>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) >>> > >>> > at >>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) >>> > >>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >>> > >>> > ... 100 more >>> > >>> > -- >>> > Pamod Sylvester >>> > Senior Software Engineer >>> > Integration Technologies Team, WSO2 Inc.; http://wso2.com >>> > email: [email protected] cell: +94 77 7779495 >>> >>> >>> >>> >>> -- >>> Pamod Sylvester >>> Senior Software Engineer >>> Integration Technologies Team, WSO2 Inc.; http://wso2.com >>> email: [email protected] cell: +94 77 7779495 >>> >> >> >> >> -- >> *Asitha Nanayakkara* >> Software Engineer >> WSO2, Inc. http://wso2.com/ >> Mob: + 94 77 85 30 682 >> >> > > > -- > Harsha Kumara > Software Engineer, WSO2 Inc. > Mobile: +94775505618 > Blog:harshcreationz.blogspot.com > -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: [email protected] Mobile: +94774171471
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
