Hi Marco,

Can you please share the axis2.xml file? I doubt whether your clustering
configuration is correct, you can see this in the README file in the above
link:

<clustering
class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
                enable="true">

    <parameter name="membershipScheme">private-paas</parameter>
    <parameter
name="membershipSchemeClassName">org.wso2.carbon.ppaas.PrivatePaaSBasedMembershipScheme</parameter>
    <parameter name="clusterIds">cluster-1,cluster-2</parameter>
</clustering>

Technically we cannot use WKA in a cloud environment because instances are
created and stopped dynamically. That's why we introduced Private PaaS
scheme to discover the Hazelcast cluster via the topology.

Thanks

On Tue, Sep 29, 2015 at 1:30 PM, Monaco Marco <ma.mon...@almaviva.it> wrote:

> Hi Imesh,
>
> no success. I changed the ppaas-membership-scheme-4.1.0-SNAPSHOT.jar with
> a new one generated from mvn clean install in 4.2.0 branch but still have
> the same error.
>
> I'm forced to use wka to let it work.
>
> I also used a different version of DAS application
> (wso2das-3.0.0-BETA2.zip, before I was using wso2das-3.0.0-SNAPSHOT.zip)
> but nothing changed.
>
> Do you know if some of your colleagues have got the same problem with
> Stratos?
>
> Can you let me know?
>
> Thank you,
>
> Marco
>
> ------------------------------
> *Da:* Imesh Gunaratne [im...@wso2.com]
> *Inviato:* martedì 29 settembre 2015 6.39
> *A:* Monaco Marco
> *Cc:* WSO2 Developers' List
>
> *Oggetto:* Re: WSO2 DAS + BRS
>
> [+ WSO2 Dev]
>
> Hi Marco,
>
> May be you have not copied the Private PaaS membership scheme bundle to
> the lib folder. Please refer below:
>
> https://github.com/wso2/product-private-paas/tree/master/extensions/carbon/ppaas-membership-scheme
>
> Thanks
>
> On Tue, Sep 29, 2015 at 1:23 AM, Monaco Marco <ma.mon...@almaviva.it>
> wrote:
>
>> Hi Imesh,
>>
>> i'm still having problems with DAS. If I use the cartridge as in the
>> sample (default profile with 2 instances) I receive this error:
>>
>> TID: [-1234] [] [2015-09-28 19:50:57,674]  WARN
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
>> localMemberHost is configured to use the loopback address. Hazelcast
>> Clustering needs ip addresses for localMemberHost and well-known members.
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
>> TID: [-1234] [] [2015-09-28 19:50:57,674] ERROR
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
>> Invalid membership scheme 'private-paas'. Supported schemes are multicast,
>> wka & aws
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
>> TID: [-1234] [] [2015-09-28 19:50:57,675] ERROR
>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Cannot
>> initialize cluster
>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent}
>> org.apache.axis2.clustering.ClusteringFault: Invalid membership scheme
>> 'private-paas'. Supported schemes are multicast, wka & aws
>>         at
>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.getMembershipScheme(HazelcastClusteringAgent.java:423)
>>         at
>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.configureMembershipScheme(HazelcastClusteringAgent.java:376)
>>         at
>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.init(HazelcastClusteringAgent.java:150)
>>         at
>> org.wso2.carbon.core.util.ClusteringUtil.enableClustering(ClusteringUtil.java:38)
>>         at
>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:177)
>>         at
>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:288)
>>         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.server.admin.internal.ServerAdminServiceComponent.activate(ServerAdminServiceComponent.java:106)
>>         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:345)
>>         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.removePendingItem(CarbonServerManager.java:290)
>>         at
>> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
>>         at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
>>         at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>         at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>> TID: [-1] [] [2015-09-28 19:50:57,946]  INFO
>> {org.apache.stratos.common.internal.CommonServiceComponent} -  Waiting for
>> Hazelcast instance to be initialized...
>> {org.apache.stratos.common.internal.CommonServiceComponent}
>> TID: [-1234] [] [2015-09-28 19:50:58,684]  INFO
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
>> : https://analytics.das.iotsp.it:9443/carbon/
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent}
>>
>> I need to change to wka membership scheme, but I don't know how to set
>> localmember to private ip in the template module as I don't know which will
>> be the ip address assigned to instance.
>>
>> Please note that I added the correct
>> ppaas-membership-scheme-4.1.0-SNAPSHOTjar to repository/components/dropins
>> and 755 permissions.
>>
>> Is it normal?
>>
>> Thank you,
>>
>> Marco
>> ------------------------------
>> *Da:* Monaco Marco
>> *Inviato:* martedì 22 settembre 2015 7.56
>> *A:* Imesh Gunaratne
>> *Oggetto:* RE: WSO2 DAS + BRS
>>
>> Hi Imesh,
>>
>> so probably this commit comment: "Adding BRS 2.1.0 cartridge and DAS
>> 3.0.0 samples, refactoring DAS plugin" on this page
>> https://github.com/wso2/product-private-paas/tree/ppaas-4.2.0/cartridges/vm/puppet/modules/wso2brs/files/packs
>> is a bit misleading...
>>
>> I belived that BRS was an extension of DAS :) thanks to point it out...
>>
>> Can you please tell me also where is the svn repo for BRS?
>>
>> Thank you,
>>
>> Marco
>>
>> ------------------------------
>> *Da:* Imesh Gunaratne [im...@wso2.com]
>> *Inviato:* martedì 22 settembre 2015 7.25
>> *A:* Monaco Marco
>> *Oggetto:* Re: WSO2 DAS + BRS
>>
>> Hi Marco,
>>
>> DAS is still not released, that's why you don't see a public download
>> link. However you can find the latest releases in the Architecture mailing
>> list. Use [1] to find the latest builds.
>>
>> DAS and BRS are two different products. DAS is for Data Analytics with
>> batch processing features and BRS is for exposing rules as services [2].
>> You might not need DAS for creating BRS cartridge.
>>
>> [1] https://svn.wso2.org/repos/wso2/people/gokul/das/
>> [2] https://docs.wso2.com/display/BRS210/Features
>>
>> On Tue, Sep 22, 2015 at 3:05 AM, Monaco Marco <ma.mon...@almaviva.it>
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> I tryied to find the DAS download link but didn't succedeed.. Can you
>>> please tell me where to download in order to implement DAS cartridge? Do
>>> you know also the differences between DAS and BRS?
>>>
>>> WIll I lose any analitics functionalities of DAS if I use only BRS? Do I
>>> need to download both BRS and DAS to implement BRS cartridge?
>>>
>>> It's not really evident from docs.
>>>
>>> Thank you,
>>>
>>> Marco
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to