Re: [Dev] [C5] Upgrading Kernel Equinox version to Neon Releases

2016-07-05 Thread Sameera Jayasoma
+1 for this.

On Tue, Jul 5, 2016 at 2:48 PM, Chanaka Cooray <chana...@wso2.com> wrote:

> [+architecture]
>
> On Tue, Jul 5, 2016 at 1:53 PM, Chanaka Cooray <chana...@wso2.com> wrote:
>
>> Hi all,
>>
>> We have decided to upgrade the equinox version in kernel to Neon release
>> which is the latest release of the equinox[1]. This has to be done due to
>> several issues in kernel including [2] with the current equinox version.
>> Addition to that, it is also required to upgrade tycho versions in
>> carbon-maven-plugins [3] because of a jarsigner issue with the JDK 7, 8.
>>
>> [1] http://download.eclipse.org/equinox/
>> [2] https://wso2.org/jira/browse/CARBON-15976
>> [3] https://github.com/wso2/carbon-maven-plugins
>>
>> Thanks,
>> Chanaka.
>> --
>> Chanaka Cooray
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: chana...@wso2.com
>> Mobile: +94713149860
>>
>>
>
>
> --
> Chanaka Cooray
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: chana...@wso2.com
> Mobile: +94713149860
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [MB] [C5] Integration tests with PAX Exam.

2016-06-15 Thread Sameera Jayasoma
Hi Hemika,

I think we should not use PAX exam to implement your test case. I think
this falls under the category of integration tests. PAX Exam should be used
only to test in-container tests which you cannot test using unit tests.

Thanks,
Sameera.

On Wed, Jun 15, 2016 at 1:11 PM, Hemika Kodikara <hem...@wso2.com> wrote:

> Hi All,
>
> In C4, We had integration tests running in a way that the server is
> started up by the test framework and the MB test cases were done through a
> JMS client. This JMS client is completely independent from MB(has no
> dependencies from MB other than the andes client jar).
>
> For C5, How can I achieve this ? IMO, running the JMS client in an OSGi
> environment is not required. Is it possible to start and stop the server
> using pax exam per testng suite ?
>
> Is there an example on how to achieve this ? As far I see, the only task
> that needs to be done through pax exam is to start and stop the MB server
> environment.
>
> Any advice on this ?
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Carbon Caching] Caching won't work for objects from different bundles without dynamic imports

2016-05-31 Thread Sameera Jayasoma
More importantly, it will avoid dynamic import package header from the
caching bundle.

On Tue, May 31, 2016 at 12:28 PM, Jayanga Kaushalya <jayan...@wso2.com>
wrote:

> Hi Azeez,
>
> I have tested the option 1 and as we discussed offline, it will be the
> most suitable option for us as it removes the requirement of serializing
> the object before caching.
>
> Thanks!
>
> *Jayanga Kaushalya*
> Software Engineer
> Mobile: +94777860160
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> On Tue, May 31, 2016 at 11:37 AM, Afkham Azeez <az...@wso2.com> wrote:
>
>> There are two options to resolve this without adding dynamic imports:
>>
>> 1. Use store by reference
>> 2. Use the following constructor in CacheManager and pass the classloader
>>  public CarbonCacheManager(CarbonCachingProvider cachingProvider, URI
>> uri,
>>
>>   ClassLoader classLoader, Properties properties)
>>
>>
>> On Thu, May 26, 2016 at 8:28 PM, Jayanga Kaushalya <jayan...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> As per $subject if we want to cache a object from a different bundle
>>> other than carbon-caching, it will fail while giving a
>>> ClassNotFoundException in the deserialize() [1]. This can be overcome by
>>> enabling dynamic imports.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-caching/blob/master/component/src/main/java/org/wso2/carbon/caching/internal/SerializingInternalConverter.java#L141
>>>
>>> *Jayanga Kaushalya*
>>> Software Engineer
>>> Mobile: +94777860160
>>> WSO2 Inc. | http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **az...@wso2.com* <az...@wso2.com>
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Missing required capability in osgi component

2016-05-27 Thread Sameera Jayasoma
Can you attach the Pom.xml ?

On Friday, May 27, 2016, Fathima Dilhasha <dilha...@wso2.com> wrote:

> The service is available and I can actually use it without any problem.
> I'm calling some methods on it and they are working fine.
> On 27 May 2016 12:17, "Sameera Jayasoma" <same...@wso2.com
> <javascript:_e(%7B%7D,'cvml','same...@wso2.com');>> wrote:
>
>> Looks like this service is not available in your OSGi environment.
>>
>> *org.wso2.carbon.analytics.api.AnalyticsDataAPI*
>>
>> Can you double check on this?
>>
>> On Fri, May 27, 2016 at 12:08 PM, Anjana Fernando <anj...@wso2.com
>> <javascript:_e(%7B%7D,'cvml','anj...@wso2.com');>> wrote:
>>
>>> Hi Sameera/Niranjan,
>>>
>>> You guys have any idea on to why this is happening? .. here, even though
>>> the OSGi is available and accessible to that bundle, it is still giving
>>> that message.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Fri, May 27, 2016 at 10:15 AM, Fathima Dilhasha <dilha...@wso2.com
>>> <javascript:_e(%7B%7D,'cvml','dilha...@wso2.com');>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm trying to build an osgi component which uses "
>>>> *org.wso2.carbon.analytics.api.AnalyticsDataAPI*". When I add the
>>>> bundle to carbon server, the bundle is working as expected. But in the osgi
>>>> console when I diagnose the bundle I get the following.
>>>>
>>>>
>>>>
>>>>
>>>> *Direct constraints which are unresolved:Missing required
>>>> capability Require-Capability: osgi.service;
>>>> filter="(objectClass=org.wso2.carbon.analytics.api.AnalyticsDataAPI)"*
>>>> Following are the imported packages in the written osgi component.
>>>>
>>>> 
>>>>
>>>> org.apache.commons.logging.*; version="${commons.logging.version}",
>>>> org.osgi.service.component; 
>>>> version="${imp.pkg.version.osgi.service.component}",
>>>> org.osgi.framework; version="${imp.pkg.version.osgi.framework}",
>>>> org.wso2.carbon.core; version="${wso2das.version}",
>>>> org.wso2.carbon.analytics.api.*; version=${wso2analytics.api.version},
>>>> org.wso2.carbon.analytics.datasource.commons.exception.*; 
>>>> resolution:=optional
>>>> 
>>>>
>>>>
>>>> Following are the scr tags specified in the component.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> */** * @scr.component name="org.wso2.carbon.cloud.das.datapurge.tool" * 
>>>> @scr.reference name="analytics.component" 
>>>> interface="org.wso2.carbon.analytics.api.AnalyticsDataAPI" * 
>>>> cardinality="1..1" policy="dynamic" bind="setAnalyticsDataAPI" 
>>>> unbind="unsetAnalyticsDataAPI" */*
>>>>
>>>> I highly appreciate any help on understandng this issue.
>>>>
>>>> Thanks
>>>> Regards,
>>>> Dilhasha
>>>>
>>>>
>>>> --
>>>> Fathima Dilhasha
>>>> *Software Engineer*
>>>> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
>>>> <%2B94%20%280%29%20773%20451194>
>>>> dilha...@wso2.com <javascript:_e(%7B%7D,'cvml','madha...@wso2.com');>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org <javascript:_e(%7B%7D,'cvml','Dev@wso2.org');>
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> <javascript:_e(%7B%7D,'cvml','same...@wso2.com');>
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>

-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Missing required capability in osgi component

2016-05-27 Thread Sameera Jayasoma
Looks like this service is not available in your OSGi environment.

*org.wso2.carbon.analytics.api.AnalyticsDataAPI*

Can you double check on this?

On Fri, May 27, 2016 at 12:08 PM, Anjana Fernando <anj...@wso2.com> wrote:

> Hi Sameera/Niranjan,
>
> You guys have any idea on to why this is happening? .. here, even though
> the OSGi is available and accessible to that bundle, it is still giving
> that message.
>
> Cheers,
> Anjana.
>
> On Fri, May 27, 2016 at 10:15 AM, Fathima Dilhasha <dilha...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I'm trying to build an osgi component which uses "
>> *org.wso2.carbon.analytics.api.AnalyticsDataAPI*". When I add the bundle
>> to carbon server, the bundle is working as expected. But in the osgi
>> console when I diagnose the bundle I get the following.
>>
>>
>>
>>
>> *Direct constraints which are unresolved:Missing required capability
>> Require-Capability: osgi.service;
>> filter="(objectClass=org.wso2.carbon.analytics.api.AnalyticsDataAPI)"*
>> Following are the imported packages in the written osgi component.
>>
>> 
>>
>> org.apache.commons.logging.*; version="${commons.logging.version}",
>> org.osgi.service.component; 
>> version="${imp.pkg.version.osgi.service.component}",
>> org.osgi.framework; version="${imp.pkg.version.osgi.framework}",
>> org.wso2.carbon.core; version="${wso2das.version}",
>> org.wso2.carbon.analytics.api.*; version=${wso2analytics.api.version},
>> org.wso2.carbon.analytics.datasource.commons.exception.*; 
>> resolution:=optional
>> 
>>
>>
>> Following are the scr tags specified in the component.
>>
>>
>>
>>
>>
>>
>>
>> */** * @scr.component name="org.wso2.carbon.cloud.das.datapurge.tool" * 
>> @scr.reference name="analytics.component" 
>> interface="org.wso2.carbon.analytics.api.AnalyticsDataAPI" * 
>> cardinality="1..1" policy="dynamic" bind="setAnalyticsDataAPI" 
>> unbind="unsetAnalyticsDataAPI" */*
>>
>> I highly appreciate any help on understandng this issue.
>>
>> Thanks
>> Regards,
>> Dilhasha
>>
>>
>> --
>> Fathima Dilhasha
>> *Software Engineer*
>> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
>> <%2B94%20%280%29%20773%20451194>
>> dilha...@wso2.com <madha...@wso2.com>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [C5] [MB] Failed to initialize startup resolver

2016-05-18 Thread Sameera Jayasoma
Hi Hemika,

Thanks ;)

This attribute can be used to declare indirect dependencies to a particular
component. I will put a detailed explanation to the blog soon.

Thanks,
Sameera.

On Wed, May 18, 2016 at 12:28 PM, Hemika Kodikara <hem...@wso2.com> wrote:

> Hi Sameera,
>
> I saw this "dependentComponentName" in the carbon.component tag in [1].
> May I know the purpose of it ? Best if you could add it to the blog :) .
> The blog is very understandable.
>
> [1] -
> https://github.com/wso2/msf4j/pull/169/files#diff-357e4854869b2e21c38b1b437f11095aR334
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Fri, May 13, 2016 at 4:56 PM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> Refer the following article to get information about the new syntax.
>>
>>
>> https://medium.com/@sameera.jayasoma/resolving-startup-order-of-carbon-components-in-wso2-carbon-5-0-0-497fe3287e67
>>
>> On Fri, May 13, 2016 at 4:26 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Hemika,
>>>
>>> The startup resolver changes compatible to kernel 5.1.0-alpha2 is
>>> available in the master branch (PR [1]) of carbon-datasources. The
>>> carbon-datasources 1.0.0-alpha depends on the older format.
>>>
>>> [1] - https://github.com/wso2/carbon-datasources/pull/14
>>>
>>> Regards,
>>> Nira
>>>
>>> On Fri, May 13, 2016 at 4:22 PM, Hemika Kodikara <hem...@wso2.com>
>>> wrote:
>>>
>>>> Thanks for the response. I have changed the kernel version to
>>>> 5.1.0-alpha2 as mentioned. The earlier error is not coming. But I am
>>>> getting the following error. Seems like its coming from carbon-datasources.
>>>> I checked this with m1 version and also alpha version for datasources.
>>>>
>>>> =
>>>> [2016-05-13 15:16:04,974] ERROR {org.wso2.carbon.core} - FrameworkEvent
>>>> ERROR - org.wso2.carbon.core
>>>> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
>>>> componentName value is missing in the services registered with the key
>>>> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
>>>> implementation class name is
>>>> org.wso2.carbon.datasource.core.internal.DataSourceListenerComponent
>>>> at
>>>> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
>>>> at
>>>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
>>>> at
>>>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
>>>> at
>>>> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
>>>> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
>>>> at
>>>> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
>>>> at
>>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
>>>> at
>>>> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
>>>> 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:862)
>>>> at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
>>>> at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
>>>> at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
>>>> at
>>>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
>>>> at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
>>>> at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
>>

Re: [Dev] [C5] [MB] Failed to initialize startup resolver

2016-05-13 Thread Sameera Jayasoma
> Hi All,
>>>>
>>>> I am getting this error when starting up the MB C5 pack. We are working
>>>> on the released 5.0.0 version of carbon-kernel. Any idea how this error
>>>> occurs and how to avoid it ?
>>>>
>>>> 
>>>>
>>>> [2016-05-13 14:43:28,491] ERROR
>>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>>> - Failed to initialize startup resolver. java.lang.RuntimeException:
>>>> capability-name value is missing in Provide-Capability header
>>>> at
>>>> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.getManifestElementAttribute(RequireCapabilityCoordinator.java:381)
>>>> at
>>>> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.lambda$processManifestHeaders$21(RequireCapabilityCoordinator.java:287)
>>>> at
>>>> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator$$Lambda$36/
>>>> 2099832114.accept(Unknown Source)
>>>> at
>>>> java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
>>>> at
>>>> java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
>>>> at
>>>> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.processManifestHeaders(RequireCapabilityCoordinator.java:283)
>>>> at
>>>> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.start(RequireCapabilityCoordinator.java:120)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>> at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
>>>> 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.buildNewlySatisfied(Resolver.java:473)
>>>> at
>>>> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
>>>> at
>>>> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
>>>> at
>>>> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
>>>> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
>>>> at
>>>> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
>>>>
>>>> =
>>>>
>>>> Regards,
>>>> Hemika
>>>>
>>>> Hemika Kodikara
>>>> Software Engineer
>>>> WSO2 Inc.
>>>> lean . enterprise . middleware
>>>> http://wso2.com
>>>>
>>>> Mobile : +9477762
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [C5] [MB] Failed to initialize startup resolver

2016-05-13 Thread Sameera Jayasoma
Hi Hemika,

This is because of the changes in the startup order resolver component in
C5. We've improved the syntax a little bit. I will share the documentation
in few mins.

Thanks,
Sameera.

On Fri, May 13, 2016 at 2:51 PM, Hemika Kodikara <hem...@wso2.com> wrote:

> Hi All,
>
> I am getting this error when starting up the MB C5 pack. We are working on
> the released 5.0.0 version of carbon-kernel. Any idea how this error occurs
> and how to avoid it ?
>
> 
>
> [2016-05-13 14:43:28,491] ERROR
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Failed to initialize startup resolver. java.lang.RuntimeException:
> capability-name value is missing in Provide-Capability header
> at
> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.getManifestElementAttribute(RequireCapabilityCoordinator.java:381)
> at
> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.lambda$processManifestHeaders$21(RequireCapabilityCoordinator.java:287)
> at
> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator$$Lambda$36/
> 2099832114.accept(Unknown Source)
> at
> java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
> at
> java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
> at
> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.processManifestHeaders(RequireCapabilityCoordinator.java:283)
> at
> org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator.start(RequireCapabilityCoordinator.java:120)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
> 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.buildNewlySatisfied(Resolver.java:473)
> at
> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
> at
> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
> at
> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
> at
> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
>
> =====
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [C5] BPS Server startup hangs after a NPE.

2016-05-12 Thread Sameera Jayasoma
We can improve the startup order resolver to give a meaning full error in
such scenarios.

Thanks,
Sameera.

On Thu, May 12, 2016 at 5:51 PM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Hasitha,
>
> We have create a JIRA [1] for this.
>
> [1] - https://wso2.org/jira/browse/CARBON-15895
>
> Regards,
> Nira
>
> On Thu, May 12, 2016 at 5:49 PM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> Hi Hasitha,
>>
>> We reproduced this error with the help from Niranjan. This is not an L1.
>> This happens due to a user error.  We need to debug this further to find
>> out why. Can you send your carbon.log after reproducing this error.
>>
>> Thanks,
>> Sameera.
>>
>> On Tue, May 10, 2016 at 12:02 PM, Hasitha Aravinda <hasi...@wso2.com>
>> wrote:
>>
>>> Hi Kernel team,
>>>
>>> I am getting following NPE when server startup. Please have a look.
>>>
>>> [2016-05-10 11:52:55,080]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
>>> available
>>> [2016-05-10 11:52:55,081]  INFO
>>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>>> - All CarbonNettyServerInitializers are available
>>> [2016-05-10 11:52:55,082]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>>> Netty Http Transport Listener
>>> [2016-05-10 11:52:55,301]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
>>> Listener starting on port 
>>> [2016-05-10 11:52:55,302]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>>> Netty Http Transport Listener
>>> [2016-05-10 11:52:55,352]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
>>> Listener starting on port 
>>> *Exception in thread "Timer-1" java.lang.NullPointerException*
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$2.lambda$run$7(StartupOrderResolver.java:239)
>>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$2.run(StartupOrderResolver.java:236)
>>> at java.util.TimerThread.mainLoop(Timer.java:555)
>>> at java.util.TimerThread.run(Timer.java:505)
>>>
>>>
>>> Thanks,
>>> Hasitha.
>>>
>>> --
>>> --
>>> Hasitha Aravinda,
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> Email: hasi...@wso2.com
>>> Mobile : +94 718 210 200
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [C5] BPS Server startup hangs after a NPE.

2016-05-12 Thread Sameera Jayasoma
Hi Hasitha,

We reproduced this error with the help from Niranjan. This is not an L1.
This happens due to a user error.  We need to debug this further to find
out why. Can you send your carbon.log after reproducing this error.

Thanks,
Sameera.

On Tue, May 10, 2016 at 12:02 PM, Hasitha Aravinda <hasi...@wso2.com> wrote:

> Hi Kernel team,
>
> I am getting following NPE when server startup. Please have a look.
>
> [2016-05-10 11:52:55,080]  INFO
> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
> available
> [2016-05-10 11:52:55,081]  INFO
> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
> - All CarbonNettyServerInitializers are available
> [2016-05-10 11:52:55,082]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
> Netty Http Transport Listener
> [2016-05-10 11:52:55,301]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
> Listener starting on port 
> [2016-05-10 11:52:55,302]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
> Netty Http Transport Listener
> [2016-05-10 11:52:55,352]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
> Listener starting on port 
> *Exception in thread "Timer-1" java.lang.NullPointerException*
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$2.lambda$run$7(StartupOrderResolver.java:239)
> at java.util.ArrayList.forEach(ArrayList.java:1249)
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$2.run(StartupOrderResolver.java:236)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
>
>
> Thanks,
> Hasitha.
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [C5][BPS] Startup errors with new kernel SNAPSHOT

2016-05-08 Thread Sameera Jayasoma
.java:764)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
>> at
>> org.wso2.carbon.launcher.CarbonServer.loadInitialBundles(CarbonServer.java:242)
>> at org.wso2.carbon.launcher.CarbonServer.start(CarbonServer.java:83)
>> at org.wso2.carbon.launcher.Main.main(Main.java:82)
>>
>> [2016-05-07 20:21:12,079] ERROR {org.wso2.carbon.core} - FrameworkEvent
>> ERROR - org.wso2.carbon.core
>> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
>> componentName value is missing in the services registered with the key
>> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
>> implementation class name is
>> org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
>> at
>> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
>> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
>> 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:862)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
>> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
>> at
>> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
>>
>> [2016-05-07 20:21:12,080] ERROR {org.wso2.carbon.core} - FrameworkEvent
>> ERROR - org.wso2.carbon.core
>> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
>> capabilityName value is missing in the services registered with the key
>> org.wso2.carbon.kernel.startupresolver.CapabilityProvider, implementation
>> class name is
>> org.wso2.carbon.transport.http.netty.internal.TransportServiceCapabilityProvider
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:155)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
>> at
>> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
&

Re: [Dev] Retrieving an OSGi service from CarbonContext in C5

2016-04-26 Thread Sameera Jayasoma
rieve an OSGi service in C5?
>>>>>
>>>>> Or do we need to get it through directly from a "ServiceTracker" ?
>>>>>
>>>>> ​[1]
>>>>> https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java#L322
>>>>> [2]
>>>>> https://github.com/wso2/carbon-kernel/blob/master/core/src/main/java/org/wso2/carbon/kernel/context/PrivilegedCarbonContext.java
>>>>> ​
>>>>>
>>>>> --
>>>>> With Regards,
>>>>>
>>>>> *Rasika Perera*
>>>>> Software Engineer
>>>>> M: +94 71 680 9060 E: rasi...@wso2.com
>>>>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>>>>
>>>>> WSO2 Inc. www.wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Aruna Sujith Karunarathna *
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> With Regards,
>>>
>>> *Rasika Perera*
>>> Software Engineer
>>> M: +94 71 680 9060 E: rasi...@wso2.com
>>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>>
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Blog : http://nipunipererablog.blogspot.com/
>> Mobile: +94 (71) 5626680
>> <http://wso2.com>
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] product-mss hangs after deploying a (faulty) service

2016-04-19 Thread Sameera Jayasoma
Oh. All these changes are backward incompatible. We have to consider them
as major changes.

In that case version should be 2.0.0.

On Tue, Apr 19, 2016 at 2:54 PM, Samiyuru Senarathne <samiy...@wso2.com>
wrote:

> There are API changes that are visible to MSF4J developers. Those APIs had
> to be changed to remove the netty dependencies that they had (With
> transport migration we completely decoupled MSF4J from netty).
>
> *API*
>
> *1.0.0*
>
> *master*
>
> Interceptor
> [1]
> <https://github.com/wso2/msf4j/blob/v1.0.0/core/src/main/java/org/wso2/msf4j/Interceptor.java>
> [2]
> <https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/Interceptor.java>
>
> HttpStreamHandler
> [3]
> <https://github.com/wso2/msf4j/blob/v1.0.0/core/src/main/java/org/wso2/msf4j/HttpStreamHandler.java>
> [4]
> <https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/HttpStreamHandler.java>
>
>
> [1]
> https://github.com/wso2/msf4j/blob/v1.0.0/core/src/main/java/org/wso2/msf4j/Interceptor.java
> [1]
> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/Interceptor.java
> [3]
> https://github.com/wso2/msf4j/blob/v1.0.0/core/src/main/java/org/wso2/msf4j/HttpStreamHandler.java
> [4]
> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/HttpStreamHandler.java
>
> On Tue, Apr 19, 2016 at 5:07 PM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> There are no API changes visible to msf4j users right? Therefore 1.1.0
>> make sense.
>>
>> On Tue, Apr 19, 2016 at 2:33 PM, Aruna Karunarathna <ar...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Mon, Apr 18, 2016 at 1:13 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>
>>>> Updates to 1.1.0-SNAPSHOT.
>>>>
>>>>
>>> Since there are API changes, because of the carbon-transport migration
>>> wouldn't it better to make the version as 2.0.0-SNAPSHOT?
>>>
>>> On Mon, Apr 18, 2016 at 10:15 AM, Hasitha Aravinda <hasi...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Kernel team,
>>>>>
>>>>> This is happening due to an issue in msf4j 1.0.0 component and
>>>>> solution is to move latest msf4j version. But still msf4j master branch is
>>>>> set to 1.0.0-SNAPSHOT. Since MSF4J 1.0.0 is released, Jenkins is not
>>>>> publishing snapshot artifacts to nexus. Could you please fix this ?
>>>>>
>>>>> [1] - https://github.com/wso2/msf4j/tree/master
>>>>>
>>>>> Thanks,
>>>>> Hasitha.
>>>>>
>>>>> On Fri, Apr 8, 2016 at 5:35 PM, Hasitha Aravinda <hasi...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> I have updated kernel version to 5.1.0-SNAPSHOT and now I am getting
>>>>>> following error. What could be the issue. ?
>>>>>>
>>>>>> [2016-04-08 17:24:26,865]  WARN
>>>>>> {org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver} -
>>>>>> Startup component netty-transports-mgt from
>>>>>> bundle(org.wso2.carbon.transport.http.netty:1.0.0) will be in the pending
>>>>>> state until Capability
>>>>>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer
>>>>>> from bundle(msf4j-core:1.0.0) is available
>>>>>> [2016-04-08 17:24:26,866]  WARN
>>>>>> {org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver} -
>>>>>> Startup component netty-transports-mgt from
>>>>>> bundle(org.wso2.carbon.transport.http.netty:1.0.0) will be in the pending
>>>>>> state until Capability
>>>>>> org.wso2.carbon.transport.http.netty.listener.CarbonNettyServerInitializer
>>>>>> from bundle(org.wso2.carbon.transport.http.netty:1.0.0) is available
>>>>>> [2016-04-08 17:24:26,866]  WARN
>>>>>> {org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver} -
>>>>>> Startup component carbon-transport-mgt from
>>>>>> bundle(org.wso2.carbon.core:5.1.0.SNAPSHOT) will be in the pending state
>>>>>> until Capability
>>>>>> org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
>>>>>> from bundle(org.wso2.carbon.transport.http.netty:1.0.0) is available
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>&g

Re: [Dev] product-mss hangs after deploying a (faulty) service

2016-04-19 Thread Sameera Jayasoma
tting the same error.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Hasitha.
>>>>>>>
>>>>>>> On Wed, Feb 10, 2016 at 1:42 PM, Manuranga Perera <m...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> MSS product hangs when I deploy my service, but fat-jar mode works.
>>>>>>>>
>>>>>>>> prints
>>>>>>>> Waiting on pending capability registration. Capability:
>>>>>>>> org.wso2.msf4j.Interceptor
>>>>>>>>
>>>>>>>> how to proceed debugging?
>>>>>>>> --
>>>>>>>> With regards,
>>>>>>>> *Manu*ranga Perera.
>>>>>>>>
>>>>>>>> phone : 071 7 70 20 50
>>>>>>>> mail : m...@wso2.com
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Hasitha Aravinda,
>>>>>>> Senior Software Engineer,
>>>>>>> WSO2 Inc.
>>>>>>> Email: hasi...@wso2.com
>>>>>>> Mobile : +94 718 210 200
>>>>>>>
>>>>>>> _______
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Aruna Sujith Karunarathna *
>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> With Regards,
>>>>>
>>>>> *Rasika Perera*
>>>>> Software Engineer
>>>>> M: +94 71 680 9060 E: rasi...@wso2.com
>>>>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>>>>
>>>>> WSO2 Inc. www.wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Hasitha Aravinda,
>>>> Senior Software Engineer,
>>>> WSO2 Inc.
>>>> Email: hasi...@wso2.com
>>>> Mobile : +94 718 210 200
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Hasitha Aravinda,
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> Email: hasi...@wso2.com
>>> Mobile : +94 718 210 200
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **az...@wso2.com* <az...@wso2.com>
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Architecture] [C5] Must Inject CarbonServerInfo when writing OSGi Test Cases

2016-04-07 Thread Sameera Jayasoma
On Fri, Apr 8, 2016 at 12:13 AM, Imesh Gunaratne <im...@wso2.com> wrote:

> Hi Aruna,
>
> On Thu, Apr 7, 2016 at 6:21 PM, Aruna Karunarathna <ar...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> When writing OSGi Test Cases, Please Inject the CarbonServerInfo service
>> [1]. Otherwise the container wont start properly and the test cases will
>> fail.
>>
>> After injecting the service it will guarantee that the server will fully
>> start, before running the test cases. e.g. [2]
>>
>
> Would you mind mentioning what CarbonServerInfo does and why containers
> would not start without it?
>

Aruna is talking about Pax Exam test containers (OSGi runtimes) :)

>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io
> Lean . Enterprise . Middleware
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] C5 - mention the port in use as part of error message

2016-04-04 Thread Sameera Jayasoma
+1 This should be handled at the Carbon-transport layer.

On Mon, Apr 4, 2016 at 12:50 PM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

> Yes, the error message needs to be more descriptive. Looks like this is
> coming all the way from NettyListener (carbon-transports) [1] and we do not
> have a way to catch this error as the bind call is started using a thread
> in netty and it is the one which logs this error too.
>
> @IsuruR and IsuruU, do we have way to fix this from calling netty api
> level?
>
> [1]
> https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/listener/NettyListener.java#L106
>
> On Mon, Apr 4, 2016 at 8:40 AM, Sumedha Rubasinghe <sume...@wso2.com>
> wrote:
>
>> It's port 8080 that is being used here. But no way to find that through
>> the exception through from
>> Netty HTTP Transport listener.
>>
>>
>> >>>>
>> [2016-04-04 08:37:03,872]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>> Netty Http Transport Listener
>> [2016-04-04 08:37:03,876]  INFO
>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>> org.wso2.carbon.uuf.UUFService@5f33122c
>> Exception in thread "Timer-0" java.net.BindException: Address already in
>> use
>> at sun.nio.ch.Net.bind0(Native Method)
>> at sun.nio.ch.Net.bind(Net.java:433)
>> at sun.nio.ch.Net.bind(Net.java:425)
>> at
>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
>> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
>> at
>> io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
>> at
>> io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
>> at
>> io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
>> at
>> io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
>> at
>> io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
>> at
>> io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
>> at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
>> at
>> io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
>> at
>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>> at java.lang.Thread.run(Thread.java:745)
>> >>>
>>
>>
>> --
>> /sumedha
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] C5 Server startup hangs intermittently

2016-04-04 Thread Sameera Jayasoma
Hi Sumedha,

This because of a failure in netty component. It has failed to register
transports.

Thanks,
Sameera.

On Mon, Apr 4, 2016 at 1:01 PM, Sumedha Rubasinghe <sume...@wso2.com> wrote:

> # Normal server bootup
> #
>
> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
> JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
> CARBON_HOME environment variable is set to
> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
> osgi> [2016-04-04 09:46:13,407]  INFO
> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
> available
> [2016-04-04 09:46:13,422]  INFO
> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
> - All CarbonNettyServerInitializers are available
> [2016-04-04 09:46:13,423]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
> Netty Http Transport Listener
> [2016-04-04 09:46:13,428]  INFO
> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
> org.wso2.carbon.uuf.UUFService@7f932479
> [2016-04-04 09:46:13,509]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
> Listener starting on port 8080
> [2016-04-04 09:46:13,511]  INFO
> {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Carbon
> started in 1.303 sec
>
>
>
> # Same Server, hanged during bootup #
> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
> JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
> CARBON_HOME environment variable is set to
> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
> osgi> [2016-04-04 09:45:12,668]  INFO
> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
> - All CarbonNettyServerInitializers are available
> [2016-04-04 09:45:12,672]  INFO
> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
> org.wso2.carbon.uuf.UUFService@51f5356e
> [2016-04-04 09:45:42,625]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.msf4j.Interceptor
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.msf4j.Microservice
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.msf4j.internal.MicroservicesServerSC
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.carbon.kernel.transports.CarbonTransport
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.carbon.kernel.deployment.DeploymentService
> [2016-04-04 09:45:42,626]  WARN
> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
> - Waiting on pending capability registration. Capability:
> org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
>
>
>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Secure vault for C5 ?

2016-03-30 Thread Sameera Jayasoma
I believe we cannot apply the same thing we had in C4. We have to think
about how we can apply this for containers as well. Lets have a quick chat
on this.

Thanks,
Sameera.

On Wed, Mar 30, 2016 at 11:51 AM, Hasitha Aravinda <hasi...@wso2.com> wrote:

> I think we have to target this for Hamming platform ? Because we have some
> configuration files like (*-datasource.xml) with passwords.
>
> Apart from securing passwords in configuration files, I think we will need
> secure vault support for runtime as well. In products like GW, ESB and BPS
> do secure services invocations, (i.e BasicAuth) and we will need a central
> place to store encrypted credentials.
>
> Thanks,
> Hasitha.
>
> On Wed, Mar 30, 2016 at 11:33 AM, Afkham Azeez <az...@wso2.com> wrote:
>
>> Simply porting the existing sec vault to work with C5 should be
>> sufficient.
>>
>> On Wed, Mar 30, 2016 at 11:03 AM, Hasitha Aravinda <hasi...@wso2.com>
>> wrote:
>>
>>> Hi team,
>>>
>>> How are we going to use $Subject in C5. Can we use existing secure vault
>>> implementation for this.
>>>
>>> Thanks,
>>> Hasitha.
>>>
>>> --
>>> --
>>> Hasitha Aravinda,
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> Email: hasi...@wso2.com
>>> Mobile : +94 718 210 200
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **az...@wso2.com* <az...@wso2.com>
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Custom fragment bundle does not get attached to the system bundle

2016-03-21 Thread Sameera Jayasoma
Hi Thanuja

You need to use following syntax for the Fragment-Host header. You cannot
attached to the system bundle with the default Fragment-Host syntax.

A fragment bundle which attach to the system.bundle is called an *Extension
Bundle*.

Fragment-Host: system.bundle; extension:=framework
see
https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.framework.exporter/pom.xml

Thanks,
Sameera.

On Sat, Mar 19, 2016 at 5:36 PM, Thanuja Jayasinghe <than...@wso2.com>
wrote:

> Hi All,
>
> I'm trying to attach "org.wso2.carbon.jaas.boot" [attached to the mail] as
> an extension bundle to the system bundle to make "ProxyLoginModule" class
> available for all modules. I have used following configuration under
> ,
>
> 
> org.eclipse.osgi;bundle-version="3.10.2.v20150203-1939"
> 
>
> But this does not works as expected. I have tried attaching the same
> bundle to the "org.eclipse.osgi.services" bundle as follows and it works
> fine,
>
> 
> org.eclipse.osgi.services;bundle-version="3.4.0.v20140312-2051"
> 
>
>
>
>
> Any idea how to solve this?
>
> Thanks,
> Thanuja
>
> --
> *Thanuja Lakmal*
> Senior Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891 +94758009992
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Resolving OpenSAML Bundle Imports in C5

2016-03-16 Thread Sameera Jayasoma
Better to use the latest version of the Servlet API. Is there any new
openSAML releases which uses the latest Servlet API.



On Wed, Mar 16, 2016 at 11:12 AM, Yasiru Kassapa <yas...@wso2.com> wrote:

> Hi,
> We are developing a SAML2 JAAS Login Module for C5 in carbon-security
> module[1] which will validate incoming SAML2 responses. for this we rely on
> OpenSAML (2.6.4) [2] which depends the following packages,
> javax.servlet;version="[2.6.0,2.7.0)",javax.servlet.http;version="[2.6.0,2.7.0)",
> etc..
>
> Latest javax.servlet version is 3.1.0. Will Carbon 5 be using a servlet
> version that is supports opensaml?
>
> [1] https://github.com/wso2/carbon-security
> [2]  http://mvnrepository.com/artifact/org.opensaml/opensaml/2.6.4
>
> MANIFEST.MF of the opensaml 2.6.4 jar is attached with this email for
> additional details.
>
> Thank you.
>
> Yasiru Kassapa
> *Software Engineering Intern | WSO2*
> Mobile : +94 (0) 77 <+94%20(0)%2077%201166613> 1166613
> <+94+(0)+77+1166613>
> yas...@wso2.com
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Annotations are not processed correctly with maven-bundle-plugin 3.0.1 version

2016-03-14 Thread Sameera Jayasoma
Yes. Following JIRA is related to this issue. We need to find out why they
have done this change.

https://wso2.org/jira/browse/CARBON-15810

On Tue, Mar 15, 2016 at 5:31 AM, Aruna Karunarathna <ar...@wso2.com> wrote:

> Hi all,
>
> With the upgrade of wso2 parent pom version 3, the maven-bundle-plugin
> version is upgraded to 3.0.1.
>
> The property annotation inside the Component are not being added to the
> Manifest headers with this new version. See the below example.
>
> @Component(
> name =
> "org.wso2.carbon.kernel.internal.deployment.DeploymentEngineListenerComponent",
> immediate = true,
>
>
>
> *property = {
> "capability-name=org.wso2.carbon.kernel.deployment.Deployer",
> "component-key=carbon-deployment-service"}*
> )
>
> for the 2.5.4 version's generated MANIFEST.MF I could see the following in
> Provide-Capability section.
>
> Provide-Capability: osgi.service;effective:=active;objectClass="org.wso2
>  .carbon.kernel.startupresolver.RequiredCapabilityListener";
>
> *capability-n
>  ame="org.wso2.carbon.sample.deployer.mgt.Deployer";component-key=carbon
>  -sample-deployment-engine*
>
> And for the 3.0.1 version's generated MANIFEST.MF I could see the
> following in Provide-Capability section. the property tag inside the
> Component annotation is missing.
>
> Provide-Capability: osgi.service;objectClass:List="org.wso2.carb
>  on.kernel.startupresolver.RequiredCapabilityListener"
>
> Also the objectClass is changed to objectClass:List.
>
> Regards,
> Aruna
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] C5- Datasource startup order issue

2016-03-14 Thread Sameera Jayasoma
HI Himasha,

You can refer following documents and samples.

https://github.com/wso2/carbon-jndi
https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java

On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge <himas...@wso2.com> wrote:

> Hi Sameera,
>
> With regards to $subject, so far we have used the workaround of manually
> renaming the bundle's symbolic name which works perfectly. However is it
> possible to know when this fix will be available?
>
> Regards,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-18 Thread Sameera Jayasoma
I don't think we should do that. Datasources is a generic feature.

On Mon, Feb 15, 2016 at 10:38 AM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Sameera,
>
> Are we planning to bundle the h2 with the datasource core feature or have
> it as a separate orbit?
>
> Regards,
> Nira
>
> On Fri, Feb 12, 2016 at 8:22 PM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> You don't necessarily need to do this. You can package only the sql
>> script and create the database during the product build
>>
>> On Friday, February 12, 2016, Hemika Kodikara <hem...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> We already have something similar in our carbon-business-messaging repo
>>> [1].
>>>
>>> [1] -
>>> https://github.com/hemikak/carbon-business-messaging/blob/master/features/andes/org.wso2.carbon.andes.server.feature/pom.xml
>>>
>>> Hemika Kodikara
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middleware
>>> http://wso2.com
>>>
>>> Mobile : +9477762
>>>
>>> On Fri, Feb 12, 2016 at 5:02 PM, Sameera Jayasoma <same...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> You can easily create an H2 database form a given sql Script in your
>>>> project. I've attached a sample pom.xml.
>>>>
>>>> This can be used in products as well as components repos. You can
>>>> easily populate an H2 database from an sql file for your component level
>>>> OSGi testing as well.
>>>>
>>>> Thanks,
>>>> Sameera.
>>>>
>>>> On Fri, Feb 12, 2016 at 4:32 PM, Akalanka Pagoda Arachchi <
>>>> darsha...@wso2.com> wrote:
>>>>
>>>>> What I meant was, I already tried upgrading the H2 version to the
>>>>> latest version. When I did, the previous database URL's we were using
>>>>> failed since the new H2 driver is not taking relative paths for the URL.
>>>>>
>>>>> Thanks,
>>>>> Akalanka.
>>>>>
>>>>> On Fri, Feb 12, 2016 at 3:48 PM, Akalanka Pagoda Arachchi <
>>>>> darsha...@wso2.com> wrote:
>>>>>
>>>>>> We can, but we will have to verify all the database URL's again,
>>>>>> since when I tried, it gave me an exception since it was no longer
>>>>>> accepting relative paths.
>>>>>>
>>>>>> On Fri, Feb 12, 2016 at 3:46 PM, Ramith Jayasinghe <ram...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> and shall we upgrade H2 version to latest?
>>>>>>>
>>>>>>> On Fri, Feb 12, 2016 at 2:24 PM, Ramith Jayasinghe <ram...@wso2.com>
>>>>>>> wrote:
>>>>>>> > So whats the verdict?
>>>>>>> > @sameera: can we have some thing similar to 'carbon-persistence' or
>>>>>>> > something which contains H2?
>>>>>>> >
>>>>>>> > On Fri, Feb 12, 2016 at 11:48 AM, Niranjan Karunanandham
>>>>>>> > <niran...@wso2.com> wrote:
>>>>>>> >> Hi Akalanka,
>>>>>>> >>
>>>>>>> >> On Fri, Feb 12, 2016 at 11:37 AM, Akalanka Pagoda Arachchi
>>>>>>> >> <darsha...@wso2.com> wrote:
>>>>>>> >>>
>>>>>>> >>> Hi Niranjan,
>>>>>>> >>>
>>>>>>> >>> Yes, we could have avoided adding h2-database-engine as a
>>>>>>> dependency in
>>>>>>> >>> 4.4.x Andes.
>>>>>>> >>>
>>>>>>> >>> If we add the h2 driver to the datasource feature, it would mean
>>>>>>> whenever
>>>>>>> >>> datasource feature is used h2 driver will be copied. Will that
>>>>>>> be OK? My
>>>>>>> >>> opinion is if the H2 driver is not a dependency for the feature,
>>>>>>> it should
>>>>>>> >>> not be contained in the feature. When we create a distribution
>>>>>>> from that
>>>>>>> >>> feature, if H2 DB is used as the default DB configuration, we
>>>>>>> should provide
>>>>>>> >>> the H2 driver with 

Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-12 Thread Sameera Jayasoma
t database
>>> configurations is
>>> >>>>> copied to the plugins folder.
>>> >>>>>
>>> >>>>> This will be useful in reducing the Andes Core feature bundle size
>>> as
>>> >>>>> well.
>>> >>>>>
>>> >>>>> If any product is to install Andes Core feature, they will have to
>>> copy
>>> >>>>> the relevant jar file to the dropins folder if they don't already
>>> have it.
>>> >>>>>
>>> >>>>> WDYT?
>>> >>>>>
>>> >>>>> If we're to go ahead with this approach we need a way to install
>>> osgi
>>> >>>>> bundles to the distribution that are not available in the features
>>> or create
>>> >>>>> a new feature containing H2 database driver.
>>> >>>>
>>> >>>> If we require a default DB, then I would suggest to have it with
>>> database
>>> >>>> core feature. WDYT?
>>> >>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> Please provide your thoughts.
>>> >>>>>
>>> >>>>> Thanks,
>>> >>>>> Akalanka.
>>> >>>>>
>>> >>>>> --
>>> >>>>> Darshana Akalanka Pagoda Arachchi,
>>> >>>>> Software Engineer
>>> >>>>> 078-4721791
>>> >>>>
>>> >>>>
>>> >>>> Regards,
>>> >>>> Nira
>>> >>>>
>>> >>>> --
>>> >>>>
>>> >>>> Niranjan Karunanandham
>>> >>>> Senior Software Engineer - WSO2 Inc.
>>> >>>> WSO2 Inc.: http://www.wso2.com
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> Darshana Akalanka Pagoda Arachchi,
>>> >>> Software Engineer
>>> >>> 078-4721791
>>> >>
>>> >>
>>> >> Regards,
>>> >> Nira
>>> >>
>>> >> --
>>> >>
>>> >> Niranjan Karunanandham
>>> >> Senior Software Engineer - WSO2 Inc.
>>> >> WSO2 Inc.: http://www.wso2.com
>>> >
>>> >
>>> >
>>> > --
>>> > Ramith Jayasinghe
>>> > Technical Lead
>>> > WSO2 Inc., http://wso2.com
>>> > lean.enterprise.middleware
>>> >
>>> > E: ram...@wso2.com
>>> > P: +94 777542851
>>>
>>>
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>> P: +94 777542851
>>>
>>
>>
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Software Engineer*
>> *078-4721791*
>>
>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791*
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware


http://www.w3.org/2001/XMLSchema-instance; xmlns="http://maven.apache.org/POM/4.0.0;
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;>


org.wso2
wso2
2


4.0.0
h2-database
1.0.0-SNAPSHOT
pom
H2 Database
Create an H2 database from a given sql file.
http://wso2.org



com.h2database.wso2
h2-database-engine
1.2.140.wso2v3


org.eclipse.osgi
org.eclipse.osgi


commons-logging
commons-logging








org.apache.maven.plugins
maven-antrun-plugin


1-run-ant
test

run






















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


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-12 Thread Sameera Jayasoma
You don't necessarily need to do this. You can package only the sql script
and create the database during the product build

On Friday, February 12, 2016, Hemika Kodikara <hem...@wso2.com> wrote:

> Hi All,
>
> We already have something similar in our carbon-business-messaging repo
> [1].
>
> [1] -
> https://github.com/hemikak/carbon-business-messaging/blob/master/features/andes/org.wso2.carbon.andes.server.feature/pom.xml
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Fri, Feb 12, 2016 at 5:02 PM, Sameera Jayasoma <same...@wso2.com
> <javascript:_e(%7B%7D,'cvml','same...@wso2.com');>> wrote:
>
>> Hi All,
>>
>> You can easily create an H2 database form a given sql Script in your
>> project. I've attached a sample pom.xml.
>>
>> This can be used in products as well as components repos. You can easily
>> populate an H2 database from an sql file for your component level OSGi
>> testing as well.
>>
>> Thanks,
>> Sameera.
>>
>> On Fri, Feb 12, 2016 at 4:32 PM, Akalanka Pagoda Arachchi <
>> darsha...@wso2.com <javascript:_e(%7B%7D,'cvml','darsha...@wso2.com');>>
>> wrote:
>>
>>> What I meant was, I already tried upgrading the H2 version to the latest
>>> version. When I did, the previous database URL's we were using failed since
>>> the new H2 driver is not taking relative paths for the URL.
>>>
>>> Thanks,
>>> Akalanka.
>>>
>>> On Fri, Feb 12, 2016 at 3:48 PM, Akalanka Pagoda Arachchi <
>>> darsha...@wso2.com <javascript:_e(%7B%7D,'cvml','darsha...@wso2.com');>>
>>> wrote:
>>>
>>>> We can, but we will have to verify all the database URL's again, since
>>>> when I tried, it gave me an exception since it was no longer accepting
>>>> relative paths.
>>>>
>>>> On Fri, Feb 12, 2016 at 3:46 PM, Ramith Jayasinghe <ram...@wso2.com
>>>> <javascript:_e(%7B%7D,'cvml','ram...@wso2.com');>> wrote:
>>>>
>>>>> and shall we upgrade H2 version to latest?
>>>>>
>>>>> On Fri, Feb 12, 2016 at 2:24 PM, Ramith Jayasinghe <ram...@wso2.com
>>>>> <javascript:_e(%7B%7D,'cvml','ram...@wso2.com');>> wrote:
>>>>> > So whats the verdict?
>>>>> > @sameera: can we have some thing similar to 'carbon-persistence' or
>>>>> > something which contains H2?
>>>>> >
>>>>> > On Fri, Feb 12, 2016 at 11:48 AM, Niranjan Karunanandham
>>>>> > <niran...@wso2.com
>>>>> <javascript:_e(%7B%7D,'cvml','niran...@wso2.com');>> wrote:
>>>>> >> Hi Akalanka,
>>>>> >>
>>>>> >> On Fri, Feb 12, 2016 at 11:37 AM, Akalanka Pagoda Arachchi
>>>>> >> <darsha...@wso2.com
>>>>> <javascript:_e(%7B%7D,'cvml','darsha...@wso2.com');>> wrote:
>>>>> >>>
>>>>> >>> Hi Niranjan,
>>>>> >>>
>>>>> >>> Yes, we could have avoided adding h2-database-engine as a
>>>>> dependency in
>>>>> >>> 4.4.x Andes.
>>>>> >>>
>>>>> >>> If we add the h2 driver to the datasource feature, it would mean
>>>>> whenever
>>>>> >>> datasource feature is used h2 driver will be copied. Will that be
>>>>> OK? My
>>>>> >>> opinion is if the H2 driver is not a dependency for the feature,
>>>>> it should
>>>>> >>> not be contained in the feature. When we create a distribution
>>>>> from that
>>>>> >>> feature, if H2 DB is used as the default DB configuration, we
>>>>> should provide
>>>>> >>> the H2 driver with the distribution.
>>>>> >>
>>>>> >> Sorry about it. I was under the impression that the datasource core
>>>>> for C5
>>>>> >> supports by default is for H2 DB like in C4. This is why I
>>>>> suggested that we
>>>>> >> define it at the datasource core feature.
>>>>> >>
>>>>> >>>
>>>>> >>> WDYT?
>>>>> >>>
>>>>> >>> Thanks,
>>>>> >>> Akalanka.
>>>>> >>>
>>>>> &

Re: [Dev] [MB] [CARBON-SECURITY] Support from carbon-security module for JMS/MQTT transports

2016-02-10 Thread Sameera Jayasoma
The existing callback is mostly specific to HTTP requests. You can write
your own callback to extract information from your JMS/MQTT messages.

You can write MB specific CallbackHander and/or Callback to do this job.
CallbackHandler and Callback interfaces are designed to extract information
in an application-dependent manner.

Rest of the stuff should work.

Thanks,
Sameera.

On Wed, Feb 10, 2016 at 3:41 PM, Hasitha Amal De Silva <hasit...@wso2.com>
wrote:

> Hi all,
>
> Given our plans to release MB 3.5.0 based on Carbon 5, Akalanka and I have
> been looking into the JAAS based authentication framework ongoing at repo
> [1].
>
> As per our discussion with Thanuja, Omindu and Yasiru, excluding the REST
> services security exposed to the UI console, the current carbon-security
> implementation is lacking the following requirements in terms of MB
> behavior :
>
>
>1.
>
>The current login implementation is based on an HTTP request where the
>request is passed across the login implementation whereas MB has JMS/ MQTT
>protocol messages containing the login information.
>
>
>
>1.
>
>MB has the requirement to grant/ validate permissions to dynamically
>created queues/topic trees that are generated.
>
>
>
>1.
>
>MB needs to validate permissions for these created queues and topic
>across the cluster which require a centralized storage mechanism (e.g.
>RDBMS) for the permissions.
>
>
> More information on MB authorization requirements can be found at mail [2].
>
> Given this situation, should we generalize the authentication mechanism to
> be pluggable with transports other than HTTP ? Or consider JMS / MQTT as an
> exception ?
>
> Thanks
>
>
> [1] :
> https://github.com/wso2/carbon-kernel/tree/hamming-release-poc/modules/carbon-security
>
>
>
> <https://github.com/wso2/carbon-kernel/tree/hamming-release-poc/modules/carbon-security>
> [2] : [Mail] "Message Broker topic level security"
>
> --
> Cheers,
>
> Hasitha Amal De Silva
> Software Engineer
> Mobile : 0772037426
> Blog: http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] MB C5-migration new folder structure

2016-02-09 Thread Sameera Jayasoma
t;>>>> ├── pom.xml
>>>>> ├── README.md
>>>>> ├── README.txt
>>>>> ├── tests
>>>>> │   └── osgi-tests
>>>>> │   ├── carbon-mb-osgi-tests.iml
>>>>> │   ├── pom.xml
>>>>> │   └── target
>>>>> │   ├── carbon-mb-osgi-tests-3.5.0-SNAPSHOT.jar
>>>>> │   ├── classes
>>>>> │   ├── maven-archiver
>>>>> │   ├── maven-shared-archive-resources
>>>>> │   └── test-classes
>>>>> └── tools
>>>>> ├── mb-tools.iml
>>>>> ├── pom.xml
>>>>> └── target
>>>>> ├── classes
>>>>> │   └── META-INF
>>>>> ├── maven-archiver
>>>>> │   └── pom.properties
>>>>> ├── maven-shared-archive-resources
>>>>> │   └── META-INF
>>>>> ├── mb-tools-3.5.0-SNAPSHOT.jar
>>>>> └── test-classes
>>>>> └── META-INF
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> --
>>>>> *Asitha Nanayakkara*
>>>>> Software Engineer
>>>>> WSO2, Inc. http://wso2.com/
>>>>> Mob: + 94 77 85 30 682
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Hasitha Abeykoon*
>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>> *cell:* *+94 719363063*
>>>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Asitha Nanayakkara*
>>> Software Engineer
>>> WSO2, Inc. http://wso2.com/
>>> Mob: + 94 77 85 30 682
>>>
>>>
>>
>>
>> --
>> *Hasitha Abeykoon*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Issue activating osgi component with the service component reference

2016-01-25 Thread Sameera Jayasoma
Can you check whether your service component is activated? You can type the
"ls" command.



On Mon, Jan 25, 2016 at 4:56 PM, Nipuna Prashan <pras...@wso2.com> wrote:

> Hi all,
>
> I am writing an osgi component. This same component wants to be
> deployed in both Appfactory and APIManager servers. Here, I have
> imported some of the appfactory packages such as
> org.wso2.carbon.appfactory.application.mgt.* which will not be
> resolved in APIM 1.9.1.
> Then I used ;resolution:=optional in the pom file for those packages
> and I set service component reference cardinality to "0..1"
>
> @scr.reference name="application.applicationInfoService"
>
> interface="org.wso2.carbon.appfactory.application.mgt.service.ApplicationInfoService"
> cardinality="0..1"
> policy="dynamic" bind="setApplicationInfoService"
> unbind="unsetApplicationInfoService"
>
> When I start the server(APIM 1.9.1) the log that gets printed when the
> component gets activated is not printed implying it has not been
> activated, but osgi console says that the bundle has activated.
>
> What would be the problem? Any suggestions would be appreciated.
>
> --
> Nipuna Prashan
> Software Engineering Intern
> +94711852792
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Issue activating osgi component with the service component reference

2016-01-25 Thread Sameera Jayasoma
Just to be clear, I need service component activation status, not the
bundle status.

On Mon, Jan 25, 2016 at 5:09 PM, Sameera Jayasoma <same...@wso2.com> wrote:

> Can you check whether your service component is activated? You can type
> the "ls" command.
>
>
>
> On Mon, Jan 25, 2016 at 4:56 PM, Nipuna Prashan <pras...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am writing an osgi component. This same component wants to be
>> deployed in both Appfactory and APIManager servers. Here, I have
>> imported some of the appfactory packages such as
>> org.wso2.carbon.appfactory.application.mgt.* which will not be
>> resolved in APIM 1.9.1.
>> Then I used ;resolution:=optional in the pom file for those packages
>> and I set service component reference cardinality to "0..1"
>>
>> @scr.reference name="application.applicationInfoService"
>>
>> interface="org.wso2.carbon.appfactory.application.mgt.service.ApplicationInfoService"
>> cardinality="0..1"
>> policy="dynamic" bind="setApplicationInfoService"
>> unbind="unsetApplicationInfoService"
>>
>> When I start the server(APIM 1.9.1) the log that gets printed when the
>> component gets activated is not printed implying it has not been
>> activated, but osgi console says that the bundle has activated.
>>
>> What would be the problem? Any suggestions would be appreciated.
>>
>> --
>> Nipuna Prashan
>> Software Engineering Intern
>> +94711852792
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [DEV] Install features through UI and load in a specific profiile

2016-01-05 Thread Sameera Jayasoma
Hi Mohan,

In such scenarios you can install feature via pom.xml. This way you can
install features to the worker profile.

Thanks,
Sameera.

On Wed, Jan 6, 2016 at 11:04 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> Appreciate any feedback on this.. Is this a limitation of current feature
> installation model ?
>
> On Tue, Jan 5, 2016 at 2:35 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Hi Sameera & Carbon Team,
>>
>> In CEP, there is a usecase whether users can install ML features and can
>> do some machine learning processing. In this case, users can install
>> relevant ML features through UI (and it works fine). But, In CEP there are
>> few product level profiles to handle distributed processing. Let's say that
>> I am running the CEP server in worker node and need to do ML processing. In
>> this case I can start the server with -DworkerNode=true but  relevant ML
>> features (which installed through UI) not loaded in that profile because ML
>> features are installed in default profile.
>>
>> How we can load the features (which installed through UI) in a specific
>> profile mode  ?  I can only make it work by editing the bundles.info
>> (which is not correct IMO)..
>> What is out standard practice on this ?  I think, similar use cases are
>> there in APIM product as well..
>>
>> Thanks,
>> Mohan
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Senior Software Engineer,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC1

2016-01-04 Thread Sameera Jayasoma
Hi Azeez,

https://github.com/wso2/product-mss/pull/107

Thanks,
Sameera.

On Mon, Jan 4, 2016 at 4:47 PM, Afkham Azeez <az...@wso2.com> wrote:

> We are also missing the sample & documentation for the security stuff that
> Sameera implemented so until that is added, we can't ship, and that is the
> only blocker for this release.
>
> On Mon, Jan 4, 2016 at 2:56 PM, Afkham Azeez <az...@wso2.com> wrote:
>
>> -1.
>>
>> The petstore sample requires copying IS but IS is not used in the sample.
>> Lakmal removed the scripts which were used for copying & starting up IS. We
>> will have to repack.
>>
>> On Wed, Dec 23, 2015 at 12:19 PM, Samiyuru Senarathne <samiy...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 1st Release Candidate of WSO2 Microservices Server 1.0.0.
>>>
>>> Please download, test the product and vote.
>>>
>>> *​Source and binary distribution files:*
>>>
>>> https://github.com/wso2/product-mss/releases/download/v1.0.0-RC1/wso2mss-1.0.0.zip
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-245/
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2-246/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/product-mss/tree/v1.0.0-RC1
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you,
>>> Carbon Team
>>> --
>>> Samiyuru Senarathne
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 134 6087
>>> samiy...@wso2.com
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **az...@wso2.com* <az...@wso2.com>
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 5.0.0 RC2

2015-12-21 Thread Sameera Jayasoma
hank you.
>>>>>>>>>
>>>>>>>>> On Fri, Dec 18, 2015 at 5:15 PM, Kishanthan Thangarajah <
>>>>>>>>> kishant...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Devs,
>>>>>>>>>>
>>>>>>>>>> This is the 2nd Release Candidate of WSO2 Carbon Kernel 5.0.0.
>>>>>>>>>>
>>>>>>>>>> This release fixes the following issues:
>>>>>>>>>> https://wso2.org/jira/issues/?filter=12581
>>>>>>>>>>
>>>>>>>>>> Please download and test your products with kernel 5.0.0 RC2
>>>>>>>>>> and vote.
>>>>>>>>>>
>>>>>>>>>> *​Source and binary distribution files:*
>>>>>>>>>>
>>>>>>>>>> https://github.com/wso2/carbon-kernel/releases/download/v5.0.0-RC2/wso2carbon-kernel-5.0.0-rc2.zip
>>>>>>>>>>
>>>>>>>>>> *Maven staging repository:*
>>>>>>>>>>
>>>>>>>>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-210/
>>>>>>>>>>
>>>>>>>>>> *The tag to be voted upon:*
>>>>>>>>>> https://github.com/wso2/carbon-kernel/releases/tag/v5.0.0-RC2
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> [ ] Broken - do not release (explain why)
>>>>>>>>>> [ ] Stable - go ahead and release
>>>>>>>>>>
>>>>>>>>>> Thank you,
>>>>>>>>>> Carbon Team
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Kishanthan Thangarajah*
>>>>>>>>>> Associate Technical Lead,
>>>>>>>>>> Platform Technologies Team,
>>>>>>>>>> WSO2, Inc.
>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>
>>>>>>>>>> Mobile - +94773426635
>>>>>>>>>> Blog - *http://kishanthan.wordpress.com
>>>>>>>>>> <http://kishanthan.wordpress.com>*
>>>>>>>>>> Twitter - *http://twitter.com/kishanthan
>>>>>>>>>> <http://twitter.com/kishanthan>*
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> *Manuri Amaya Perera*
>>>>>>>>>
>>>>>>>>> *Software Engineer*
>>>>>>>>>
>>>>>>>>> *WSO2 Inc.*
>>>>>>>>>
>>>>>>>>> *Blog: http://manuriamayaperera.blogspot.com
>>>>>>>>> <http://manuriamayaperera.blogspot.com>*
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *Aruna Sujith Karunarathna *| Software Engineer
>>>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>>>>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Senduran *
>>>>>>> Software Engineer,
>>>>>>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>>>>>>> Mobile: +94 77 952 6548
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Chiranga Alwis,
>>>>>> Software Engineering Intern,
>>>>>> +94 77 5930497
>>>>>> +94 77 6368208
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Nipuni Perera
>>>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>>>> Email: nip...@wso2.com
>>>>> Git hub profile: https://github.com/nipuni
>>>>> Blog : http://nipunipererablog.blogspot.com/
>>>>> Mobile: +94 (71) 5626680
>>>>> <http://wso2.com>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Kishanthan Thangarajah*
>>>> Associate Technical Lead,
>>>> Platform Technologies Team,
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - +94773426635
>>>> Blog - *http://kishanthan.wordpress.com
>>>> <http://kishanthan.wordpress.com>*
>>>> Twitter - *http://twitter.com/kishanthan
>>>> <http://twitter.com/kishanthan>*
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>
>>
>>
>> --
>> Samiyuru Senarathne
>> *Software Engineer*
>> Mobile : +94 (0) 71 134 6087
>> samiy...@wso2.com
>>
>
>
>
> --
> *Dinusha Boteju*
> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
> *lean.enterprise.middleware.*
>
> email: dinus...@wso2.com <ruw...@wso2.com>
> phone:(+94) 776640275 <%28%2B94%29%2039736>
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] WSO2 Carbon Kernel 5.0.0 - Beta Released !!!

2015-12-03 Thread Sameera Jayasoma
On Fri, Dec 4, 2015 at 11:15 AM, Sameera Jayasoma <same...@wso2.com> wrote:

>
> WSO2 Carbon Kernel 5.0.0 - *Beta* Released !
>
> We are pleased to announce the beta release of WSO2 Carbon Kernel 5.0.0.
> It is now available to download from here
> <https://github.com/wso2/carbon-kernel/releases/download/v5.0.0-beta/wso2carbon-kernel-5.0.0-beta.zip>.
> The source and tag location for this release are available here
> <https://github.com/wso2/carbon-kernel/releases/tag/v5.0.0-beta>.
>
> WSO2 Carbon Kernel 5.0.0 is the core of the next-generation WSO2 Carbon
> platform. We have completely rearchitected Carbon Kernel from the ground up
> with the latest technologies and patterns. Additionally, the Carbon Kernel
> is now a lightweight, general-purpose OSGi runtime specializing in hosting
> servers, providing key functionality for server developers. The result is a
> streamlined and even more powerful middleware platform than ever before.
>
> The alpha release of the WSO2 Carbon Kernel 5.0.0 includes the following
> key features. For further details please see the documentation
> <https://docs.wso2.com/display/Carbon500/WSO2+Carbon+Documentation>.
>
>
> Key Features
>
>- Transport Management Framework
>- Logging Framework with Log4j 2.0 as the Backend
>- Carbon Startup Order Resolver
>- Dropins Support for OSGi Ready Bundles
>- Jar to Bundle Conversion Tool
>- Pluggable Runtime Support
>
>
>
>
>
> Fixed Issues
>
>- WSO2 Carbon Kernel 5.0.0 - Fixed Issues
><https://wso2.org/jira/issues/?filter=12543>
>
> Known Issues
>
>- WSO2 Carbon Kernel 5.0.0 - Known Issues
><https://wso2.org/jira/issues/?filter=12475>
>
> How To Contribute
>
> You can find more instructions on how to contribute on our documentation
> <https://docs.wso2.com/display/Carbon500/Get+Involved> site.
>
> If you have any suggestions or are interested in Carbon Kernel 5.0.0
> discussions, you can join the dev@wso2.org or architect...@wso2.org
> mailing lists.
> Reporting Issues
>
> We encourage you to report issues, documentation errors regarding WSO2
> Carbon Kernel 5.0.0 through the public issue tracking system
> <https://wso2.org/jira/browse/CARBON>.
>
>
> Thanks,
>
> WSO2 Carbon Team
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-25 Thread Sameera Jayasoma
At the moment carbon.xml contains proxy host, proxy context path of the
worker cluster. But proxy port of the worker cluster is missing. Therefore
we need to add this to carbon.xml.

Suggestion is to put following properties under the "Ports" element.

80
443

WDYT?

Thanks,
Sameera.

On Tue, Nov 24, 2015 at 10:34 AM, Sameera Jayasoma <same...@wso2.com> wrote:

> +1. We should use carbon.xml at all cost otherwise we are adding
> unnecessary overhead in configuring the products. You can see how we
> generate other URLs. We do have few util methods.  Please reuse the util
> methods.
>
> When you calculate the URL, you need to consider following parameters.
>
> hostname
> proxy port or port
> proxy path etc
>
> Thanks,
> Sameera.
>
> On Tue, Nov 24, 2015 at 8:17 AM, Selvaratnam Uthaiyashankar <
> shan...@wso2.com> wrote:
>
>> I agree with Chamara. We have a way to configure public hostname
>> (HostName, MgtHostName in carbon.xml) and port (proxy port in
>> tomcat/catalina-server.xml). This is what used in generating service
>> endpoints, WSDL URLs etc. when a server is fronted with LB. I don't see any
>> necessary for EMM to have a new configuration.
>>
>> On Tue, Nov 24, 2015 at 12:41 AM, Geeth Munasinghe <ge...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Tue, Nov 24, 2015 at 12:12 AM, Chamara Ariyarathne <chama...@wso2.com
>>> > wrote:
>>>
>>>> Hi Milan. Thanks for the information. We will try this tomorrow. But
>>>> our purpose is to replace this whole url with a configured host name.
>>>>
>>>> However Geeth, I think the EMM team having to introduce a new config to
>>>> put the globally exposed server url deviates from the purpose of having
>>>> HostName and MgtHostname properties in the carbon.xml..
>>>>
>>>
>>> Chamara,
>>> I think I disagree with on that point. I dont think carbon hostname or
>>> mgt host name cannot be used for globally exposing the server url.  AFAIK
>>> there is no place to put the port number in carbon.xml. There is no point
>>> of having just a host name without the port number. The carbon.xml host
>>> name will be the server ip address or the host name of the server which the
>>> product is running as clearly mentioned in the document [1].
>>>
>>> As another reference, AFAIK in ESB, we use WSDLPrefix [2] in order to
>>> change the address endpoint of generated wsdls to LB's address when ESB is
>>> fronted by a LB.
>>>
>>> So I think introducing a new config to put the LB host name and port is
>>> valid.
>>>
>>> [1] https://docs.wso2.com/display/Carbon440/Configuring+carbon.xml
>>> [2] https://docs.wso2.com/display/ESB490/Setting+Up+Host+Names+and+Ports
>>>
>>> Thanks
>>> Geeth
>>>
>>>>
>>>> On Mon, Nov 23, 2015 at 9:58 PM, Milan Perera <mi...@wso2.com> wrote:
>>>>
>>>>> Hi
>>>>> ​Chamara​
>>>>> ,
>>>>>
>>>>> Today we found out that even when the Host Names are configured in the
>>>>>> carbonl.xml to be server's identified domain name, the QR code which is
>>>>>> generated while device registration, uses the host ip address which is
>>>>>> picked up from nowhere.
>>>>>>
>>>>> ​
>>>>> Actually this IP is taking from the PAN. In my machine, if I dont set
>>>>> it manually from the carbon.xml to my wlan IP, it pics the pan1
>>>>> (10.7.200.1) and it breaks all the download links that are generated by 
>>>>> the
>>>>> jaggery in most of the time.
>>>>>
>>>>> pan1  Link encap:Ethernet  HWaddr c2:1e:fe:3b:6a:6e
>>>>>   inet addr:10.7.200.1  Bcast:10.7.200.255  Mask:255.255.255.0
>>>>>   inet6 addr: fe80::c01e:feff:fe3b:6a6e/64 Scope:Link
>>>>>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>>>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>   TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
>>>>>   collisions:0 txqueuelen:0
>>>>>   RX bytes:0 (0.0 B)  TX bytes:28795 (28.7 KB)
>>>>>
>>>>> wlan0 Link encap:Ethernet  HWaddr 84:3a:4b:9b:cf:66
>>>>>   inet addr:192.168.1.10  Bcast:192.168.1.255
>>>>> Mask:255.255.255.0
>>>>>   inet6 add

Re: [Dev] Incorporated carbon-feature-plugin-2.0.0-m1 in MSS and GW projects

2015-10-22 Thread Sameera Jayasoma
On Thu, Oct 22, 2015 at 12:47 AM, Sameera Jayasoma <same...@wso2.com> wrote:

> Hi Azeez,
>
> Yeah, this is a major design decision of the new Carbon feature plugin. We
> had few design meetings for this plugin, there we finalized the
> configuration based on some of the following points.
>
> 1) Adopted a Maven dependency-like configuration for features and bundles
> instead of the strings and colon(:) configuration. I believe having a
> proper/valid XML structure is much better than the previous configuration.
> Because,
>
>- It's clean.
>- Configuration can be validated with a schema.
>- You get the same maven experience.
>
> e.g.
>
>
> *javax.ws.rs:javax.ws.rs-api*
>
> vs
>
> **
> *   javax.ws.rs-api*
> *${rs-api.version}*
> **
>
>
> 2) Refactored maven goals we had in the previous plugin and came up with
> easy to understand, self-explanatory set of Maven goal names.
>
>- *generate*
>- maven goal for generate carbon features (formerly known as
>   p2-feature-gen)
>
>
>-
> *generate-repo  *
>   - maven goal for generate repositories (formerly known as
>   p2-repo-gen)
>
>
>- *install*
>- maven goal for install features into a product (formerly known as
>   p2-profile-gen)
>
>
>- *uninstall*
> - maven goal for uninstalling features
>-
> *generate-profile *
>   - maven goal for generate profiles (formerly known as
>   materialize-product)
>
>
>- *publish-product*
>- maven goal for publishing a product
>
> Thanks,
> Sameera.
>
>
> On Thu, Oct 22, 2015 at 12:06 AM, Afkham Azeez <az...@wso2.com> wrote:
>
>> Yes, merge the PR. On second thoughts, I think the new XML syntax is
>> better than the previous one because it specifically highlights that it is
>> using the bundle symbolic name & not the maven group or artifact ID.
>>
>> On Thu, Oct 22, 2015 at 12:34 PM, Kasun Indrasiri <ka...@wso2.com> wrote:
>>
>>> Should we go ahead with this change?
>>>
>>> On Mon, Oct 19, 2015 at 5:01 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>
>>>> I am seeing a lot of introduction of new tags.
>>>>
>>>> e.g. 1. org.wso2.carbon.p2.category.type:server is now written as
>>>>
>>>> org.wso2.carbon.p2.category.type
>>>> server
>>>>
>>>>
>>>> 2.
>>>> javax.ws.rs:javax.ws.rs-api
>>>>
>>>> is now written as. Also we have the additional burden of specifying the
>>>> version again.
>>>>
>>>> 
>>>>javax.ws.rs-api
>>>> ${rs-api.version}
>>>> 
>>>>
>>>> Why have we made the configuration more verbose? More XML tags is not
>>>> necessarily better.
>>>>
>>>>
>>>> On Mon, Oct 19, 2015 at 3:42 PM, Dinusha Boteju <dinus...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I have updated the pom files in WSO2 MSS and WSO2 GW projects to
>>>>> incorporate carbon-feature-plugin 2.0.0-m1 and sent pull requests to
>>>>> relevant repositories.
>>>>>
>>>>> jira link for MSS : https://wso2.org/jira/browse/WMS-2
>>>>> PR link for MSS : https://github.com/wso2/product-mss/pull/14
>>>>>
>>>>> jira link for GW   : https://wso2.org/jira/browse/WGW-1
>>>>> <https://wso2.org/jira/browse/WMS-2>
>>>>> PR link for GW   : https://github.com/wso2/product-gw/pull/6
>>>>>
>>>>> Best regards,
>>>>> --
>>>>> *Dinusha Boteju*
>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>>> *lean.enterprise.middleware.*
>>>>>
>>>>> email: dinus...@wso2.com <ruw...@wso2.com>
>>>>> phone:(+94) 776640275 <%28%2B94%29%2039736>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>*
>>>> *email: **az...@wso2.com* <az...@wso2.com>
>>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>> <http://twit

Re: [Dev] Incorporated carbon-feature-plugin-2.0.0-m1 in MSS and GW projects

2015-10-22 Thread Sameera Jayasoma
Hi Azeez,

Yeah, this is a major design decision of the new Carbon feature plugin. We
had few design meetings for this plugin, there we finalized the
configuration based on some of the following points.

1) Adopted a Maven dependency-like configuration for features and bundles
instead of the strings and colon(:) configuration. I believe having a
proper/valid XML structure is much better than the previous configuration.
Because,

   - It's clean.
   - Configuration can be validated with a schema.
   - You get the same maven experience.

e.g.


*javax.ws.rs:javax.ws.rs-api*

vs

**
*   javax.ws.rs-api*
*${rs-api.version}*
**


2) Refactored maven goals we had in the previous plugin and came up with
easy to understand, self-explanatory set of Maven goal names.

   - *generate*
   - maven goal for generate carbon features (formerly known as
  p2-feature-gen)


   -
*generate-repo  *
  - maven goal for generate repositories (formerly known as p2-repo-gen)


   - *install*
   - maven goal for install features into a product (formerly known as
  p2-profile-gen)


   - *uninstall*
- maven goal for uninstalling features
   -
*generate-profile *
  - maven goal for generate profiles (formerly known as
  materialize-product)


   - *publish-product*
   - maven goal for publishing a product

Thanks,
Sameera.


On Thu, Oct 22, 2015 at 12:06 AM, Afkham Azeez <az...@wso2.com> wrote:

> Yes, merge the PR. On second thoughts, I think the new XML syntax is
> better than the previous one because it specifically highlights that it is
> using the bundle symbolic name & not the maven group or artifact ID.
>
> On Thu, Oct 22, 2015 at 12:34 PM, Kasun Indrasiri <ka...@wso2.com> wrote:
>
>> Should we go ahead with this change?
>>
>> On Mon, Oct 19, 2015 at 5:01 PM, Afkham Azeez <az...@wso2.com> wrote:
>>
>>> I am seeing a lot of introduction of new tags.
>>>
>>> e.g. 1. org.wso2.carbon.p2.category.type:server is now written as
>>>
>>> org.wso2.carbon.p2.category.type
>>> server
>>>
>>>
>>> 2.
>>> javax.ws.rs:javax.ws.rs-api
>>>
>>> is now written as. Also we have the additional burden of specifying the
>>> version again.
>>>
>>> 
>>>javax.ws.rs-api
>>> ${rs-api.version}
>>> 
>>>
>>> Why have we made the configuration more verbose? More XML tags is not
>>> necessarily better.
>>>
>>>
>>> On Mon, Oct 19, 2015 at 3:42 PM, Dinusha Boteju <dinus...@wso2.com>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I have updated the pom files in WSO2 MSS and WSO2 GW projects to
>>>> incorporate carbon-feature-plugin 2.0.0-m1 and sent pull requests to
>>>> relevant repositories.
>>>>
>>>> jira link for MSS : https://wso2.org/jira/browse/WMS-2
>>>> PR link for MSS : https://github.com/wso2/product-mss/pull/14
>>>>
>>>> jira link for GW   : https://wso2.org/jira/browse/WGW-1
>>>> <https://wso2.org/jira/browse/WMS-2>
>>>> PR link for GW   : https://github.com/wso2/product-gw/pull/6
>>>>
>>>> Best regards,
>>>> --
>>>> *Dinusha Boteju*
>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>> *lean.enterprise.middleware.*
>>>>
>>>> email: dinus...@wso2.com <ruw...@wso2.com>
>>>> phone:(+94) 776640275 <%28%2B94%29%2039736>
>>>>
>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>*
>>> *email: **az...@wso2.com* <az...@wso2.com>
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> <http://twitter.com/afkham_azeez>
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] carbon-feature-plugin 2.0.0 Milestone 1 Released

2015-10-19 Thread Sameera Jayasoma
+1. Lets do that with the alpha release of this plugin.

Nilmini, we can add this document to C5 doc space. We will let you know
once this document is finalized.

On Mon, Oct 19, 2015 at 2:18 AM, KasunG Gajasinghe <kas...@wso2.com> wrote:

> Hi Dinusha,
>
> Looks good. Could you please share the documentation that is accessible
> without a Google login? May be we can add this to wso2 carbon documentation?
>
> Thanks.
>
> On Mon, Oct 19, 2015 at 2:43 PM, Dinusha Boteju <dinus...@wso2.com> wrote:
>
>> WSO2 Carbon Feature plugin 2.0.0 - Milestone 01 Released!
>>
>> We are pleased to inform you the 1st milestone release of carbon feature
>> plugin 2.0.0 is now available to use. Source for this release is available
>> here <https://github.com/wso2/carbon-maven-plugins/tree/release-2.0.0-m1>
>> .
>>
>>
>> carbon-feature-plugin (formerly known as carbon-p2-plugin) is a maven
>> plugin developed within the WSO2. With the new 2.0.0 - M1 release we have
>> changed the architecture of the tool, changed few maven goals existed in
>> previous versions, introduced new features and made the configuration of
>> the plugin consistent than before.
>>
>>
>> *Features*
>>
>>
>>- Generate Carbon features
>>- Generate p2 repositories
>>- Publish a product into p2 repository
>>- Generate product Profiles
>>- Install carbon features into a product profile
>>- Uninstall carbon features from a product
>>
>>
>> These goals are achieved through 6 maven goals defined in the plugin;
>>
>>- maven goal for generate carbon features  : generate (formerly known
>>as p2-feature-gen)
>>- maven goal for generate repositories: generate-repo
>>(formerly known as p2-repo-gen)
>>- maven goal for publishing a product  : publish-product
>>- maven goal for generate profiles   : generate-profile
>>(formerly known as materialize-product)
>>- maven goal for install features into a product : install (formerly
>>known as p2-profile-gen)
>>- maven goal for uninstalling features  : uninstall
>>
>> In the new version, the plugin configuration is different from that of
>> the previous versions. Thus please refer the documentation when you use the
>> new carbon feature plugin.
>>
>> Documentation for WSO2 carbon feature plugin 2.0.0 - M1 can be found from
>> here
>> <https://docs.google.com/a/wso2.com/document/d/1Dj-d6C5RT_8ROS7ryn9UqOGnHapBY1SMohKMsnVL5eE/edit?usp=sharing>.
>>  We
>> are in the process of converting this documentation into a document in WSO2
>> wiki.
>>
>> *Reporting Issues*
>>
>> Since carbon-feature-plugin 2.0.0 - M1 is at it's early stage, please
>> report bugs you come across, documentation faults and feature requests
>> through the public issue tracking system
>> <https://wso2.org/jira/browse/CARBON>.
>> ​
>>  Carbon-Feature-Plugin documentation
>> <https://docs.google.com/a/wso2.com/document/d/1Dj-d6C5RT_8ROS7ryn9UqOGnHapBY1SMohKMsnVL5eE/edit?usp=drive_web>
>> ​
>>
>> Thanks,
>> WSO2 Carbon Team
>>
>> --
>> *Dinusha Boteju*
>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>> *lean.enterprise.middleware.*
>>
>> email: dinus...@wso2.com <ruw...@wso2.com>
>> phone:(+94) 776640275 <%28%2B94%29%2039736>
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] WSO2 MSS JAX-RS Runtime Features

2015-10-14 Thread Sameera Jayasoma
+1. Since we are providing a subset of JAX-RC specification, we need to be
clear on what we support. Otherwise we will get into trouble later. This
got to be a public doc.

Initially we forked netty-http to process JAX-RC annotations, but later
decided to completely revamp that implementation. Can you give us a summary
of the changes we have introduced.

Thanks,
Sameera.

On Thu, Oct 15, 2015 at 10:39 AM, Samiyuru Senarathne <samiy...@wso2.com>
wrote:

> Sure, we will.
>
> On Thu, Oct 15, 2015 at 10:33 AM, Sagara Gunathunga <sag...@wso2.com>
> wrote:
>
>>
>> Shall we also create a doc with all JAX-RS annotations, extensions and
>> mentioning what MSS supported and what not supported ?
>>
>> Thanks !
>>
>> On Thu, Oct 15, 2015 at 10:30 AM, Samiyuru Senarathne <samiy...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> We have been developing our own JAX-RS runtime for WSO2 Micro Services
>>> Server (MSS). The purpose of that runtime is not to support the full JAX-RS
>>> specification but to support a subset of the JAX-RS specification plus a
>>> set of additional features focusing on performance and lightweightness to
>>> run microservices.
>>>
>>> With latest development work currently the MSS JAX-RS runtime supports
>>> the following features.
>>>
>>>- The runtime can process annotated POJO JAX-RS resource classes and
>>>their annotated methods to create REST service endpoints for valid 
>>> resource
>>>methods.
>>>- The runtime supports the following class level annotations.
>>>   - @Path - Root path for resource methods
>>>   - @Consumes - Default consume media type(s) for resource methods
>>>   - @Produces - Default produce media type(s) for resource methods
>>>- Supports the following method level annotations.
>>>   - @Path - Endpoint of the method relative to @Path of the class
>>>   - @Consumes - Media type(s) that the method can consume
>>>   - @Produces - Media type(s) that is produced by the method
>>>   - @GET - HTTP GET method
>>>   - @PUT - HTTP PUT method
>>>   - @POST - HTTP POST method
>>>   - @DELETE - HTTP DELETE method
>>>- Supports the following parameter level annotations.
>>>   - @DefaultValue - Specify a default parameter value
>>>   - @Context - Inject additional objects. Currently supports
>>>   injection of io.netty.handler.codec.http.HttpRequest and
>>>   org.wso2.carbon.mss.HttpResponder
>>>   - @PathParam - /StockQuote/{*symbol*} to get value of symbol
>>>   - @QueryParam - /Students?*age=18* to get value of age
>>>   - @HeaderParam - To read HTTP request header values
>>>- Supports returning POJO from resource methods to response by xml
>>>or json and getting injected POJO to resource methods for request bodies
>>>that are json or xml.
>>>- Supports returning *javax.ws.rs.core.Response* objects from
>>>resource methods to send HTTP responses in a more customised way.
>>>
>>> Product-MSS repository url: https://github.com/wso2/product-mss
>>>
>>> Best Regards,
>>> Samiyuru
>>> --
>>> Samiyuru Senarathne
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 134 6087
>>> samiy...@wso2.com
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [ESB] EmptyStackException when resuming a paused message processor

2015-10-09 Thread Sameera Jayasoma
ation);
>> }
>> } finally {
>> PrivilegedCarbonContext.endTenantFlow();
>> }
>>
>>
>> When we are calling the endTenantFlow() method, it will go inside the
>> following method within the CarbonContextDataHolder class.
>>
>> /**
>>  * This will end the tenant flow and restore the previous CarbonContext.
>>  */
>> public void endTenantFlow() {
>> Stack carbonContextDataHolders = 
>> parentContextHolderStack.get();
>> if (carbonContextDataHolders != null) {
>> currentContextHolder.set(carbonContextDataHolders.pop());
>> }
>> }
>>
>>
>> At the time of calling this method carbonContextDataHolders stack has
>> become empty and causing the EmptyStackException. When I debug the code, I
>> found that there is a scheduled task running in a different thread and
>> accessing the same method frequently. This is coming from
>> AbstractQuartzTaskManager class method.
>>
>> public void triggerComplete(Trigger trigger, JobExecutionContext 
>> jobExecutionContext,
>> Trigger.CompletedExecutionInstruction completedExecutionInstruction) 
>> {
>> PrivilegedCarbonContext.startTenantFlow();
>> 
>> PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantId(getTenantId(),
>>  true);
>> if(trigger.getNextFireTime() == null) {
>> try {
>> TaskUtils.setTaskFinished(getTaskRepository(), 
>> trigger.getJobKey().getName(), true);
>> } catch (TaskException e) {
>> log.error("Error in Finishing Task [" + 
>> trigger.getJobKey().getName() +
>> "]: " + e.getMessage(), e);
>> }
>> }
>> PrivilegedCarbonContext.endTenantFlow();
>> }
>>
>>
>> What I could not figure out is the thread which is emptying the stack. Is
>> it possible that a different thread can access this
>> carbonContextDataHolders stack and popping out the element before the
>> PassThroughMessageProcessor thread access the same?
>>
>>
>>
>> On Wed, Jul 8, 2015 at 11:12 AM, Jagath Sisirakumara Ariyarathne <
>> jaga...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> I will check it and update.
>>>
>>> Thanks.
>>>
>>> On Wed, Jul 8, 2015 at 11:10 AM, Sameera Jayasoma <same...@wso2.com>
>>> wrote:
>>>
>>>> Hi Jagath,
>>>>
>>>> Can you debug and see whey the stack becomes empty? Thats a serious
>>>> problem. Stack should be become empty here.
>>>>
>>>> Checking whether the stack is empty will stop the error log, but it
>>>> doesn't fix the actual problem here.
>>>>
>>>> On Wed, Jul 8, 2015 at 10:50 AM, Sameera Jayasoma <same...@wso2.com>
>>>> wrote:
>>>>
>>>>> I understand, but we need to understand why that stack becomes empty.
>>>>> AFAIK, if we follow the proper APIs, stack should not become empty
>>>>>
>>>>> On Tue, Jul 7, 2015 at 5:47 PM, Kasun Indrasiri <ka...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Yeah, we should always check for an empty stack.
>>>>>>
>>>>>> On Tue, Jul 7, 2015 at 5:17 PM, Malaka Silva <mal...@wso2.com> wrote:
>>>>>>
>>>>>>> I think we need to check isEmpty as well.
>>>>>>>
>>>>>>> On Tue, Jul 7, 2015 at 3:41 PM, Jagath Sisirakumara Ariyarathne <
>>>>>>> jaga...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I am working on [1] and found that the cause of the exception
>>>>>>>> mentioned below is in the code segment in org
>>>>>>>> .wso2.carbon.context.internal.CarbonContextDataHolder in
>>>>>>>> carbon.utils.
>>>>>>>>
>>>>>>>> public void endTenantFlow() {
>>>>>>>>
>>>>>>>> Stack carbonContextDataHolders = 
>>>>>>>> parentContextHolderStack.get();
>>>>>>>> if (carbonContextDataHolders != null) {
>>>>>>>> currentContextHolder.set(carbonContextDataHolders.pop());
>>>>>>>> }
>>>>>>>> }
>>>>>>>>
>>>>>>>> *Exception :*
>>>>>>>>
>>>>&

Re: [Dev] Suppression file not found - carbon-transports

2015-09-27 Thread Sameera Jayasoma
Hi All,

This suppressions.xml file was hard coded in the codebase. Fix is available
with the following commit.

https://github.com/wso2/carbon-kernel/commit/cc292e9a941f54c41141a24abe1743daf57ba6b6

We need to find a better solution to this.

Thanks,
Sameera.

On Sun, Sep 27, 2015 at 11:14 PM, Afkham Azeez <az...@wso2.com> wrote:

> This would have got affected after the recent repo merge of Carbon 4 and
> Carbon 5.
>
> On Sun, Sep 27, 2015 at 9:25 PM, Dulitha Wijewantha <duli...@wso2.com>
> wrote:
>
>> Hi guys,
>> I am trying to build the repo carbon-transports but it gives me the below
>> error
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (validate) on
>> project org.wso2.carbon.transport.http.netty: Failed during checkstyle
>> execution: Unable to find suppressions file at location:
>> https://raw.githubusercontent.com/wso2/carbon-kernel/master/suppressions.xml:
>> Could not find resource '
>> https://raw.githubusercontent.com/wso2/carbon-kernel/master/suppressions.xml'.
>> -> [Help 1]
>>
>> After checking - I found out that the suppressions.xml file is not in the
>> master branch but in 5.0.x [1] branch. Any reason for not changing this?
>>
>> Also there seems to be no build for it in jenkins.
>>
>> [1] -
>> https://raw.githubusercontent.com/wso2/carbon-kernel/5.0.x/suppressions.xml
>>
>> Cheers~
>>
>> --
>> Dulitha Wijewantha (Chan)
>> Software Engineer - Mobile Development
>> WSO2 Inc
>> Lean.Enterprise.Middleware
>>  * ~Email   duli...@wso2.com <duli...@wso2mobile.com>*
>> *  ~Mobile +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me <http://dulitha.me>*
>> *  ~Twitter @dulitharw <https://twitter.com/dulitharw>*
>>   *~Github @dulichan <https://github.com/dulichan>*
>>   *~SO @chan <http://stackoverflow.com/users/813471/chan>*
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Getting the profile which WSO2 server has started with

2015-09-11 Thread Sameera Jayasoma
profile=all doesn't makes sense to me :)

Can we have proper name for this profile?

On Fri, Sep 11, 2015 at 11:51 AM, Chamila Wijayarathna <cham...@wso2.com>
wrote:

> Hi Sameera,
>
> In IS 5.1.0 we are supporting workflow for user management operations.
> There we have added BPEL and Human Task components of BPS to IS.
> But in default profile we don't enable those features and they are only
> enabled in "profile=all".
>
> Thanks
>
> On Fri, Sep 11, 2015 at 11:45 AM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> Hi Chamila,
>>
>> What do you mean by profile=all?
>>
>> On Fri, Sep 11, 2015 at 11:00 AM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> We start WSO2 IS using following profiles.
>>>
>>> ./wso2server.sh
>>> ./wso2server.sh -Dprofile=all
>>>
>>> Is it possible to check from java code, for which profile server started
>>> from?
>>>
>>> Thank You
>>>
>>> --
>>> *Chamila Dilshan Wijayarathna,*
>>> Software Engineer
>>> Mobile:(+94)788193620
>>> WSO2 Inc., http://wso2.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Getting the profile which WSO2 server has started with

2015-09-11 Thread Sameera Jayasoma
Hi Chamila,

What do you mean by profile=all?

On Fri, Sep 11, 2015 at 11:00 AM, Chamila Wijayarathna <cham...@wso2.com>
wrote:

> Hi all,
>
> We start WSO2 IS using following profiles.
>
> ./wso2server.sh
> ./wso2server.sh -Dprofile=all
>
> Is it possible to check from java code, for which profile server started
> from?
>
> Thank You
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Getting error while installing features to IS 5.0.0 pack using pom

2015-09-11 Thread Sameera Jayasoma
t;>>>>> Regards,
>>>>>> Malintha
>>>>>>
>>>>>> --
>>>>>> *Malintha Adikari*
>>>>>> Software Engineer
>>>>>> WSO2 Inc.; http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> Mobile: +94 71 2312958
>>>>>> Blog:http://malinthas.blogspot.com
>>>>>> Page:   http://about.me/malintha
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Lasitha Wattaladeniya
>>>>> Software Engineer
>>>>> WSO2, Inc. | http://wso2.com
>>>>> lean. enterprise. middleware
>>>>>
>>>>> Mobile : +94719397528
>>>>> Blog : techreadme.blogspot.com
>>>>>
>>>>
>>>
>>>
>>> --
>>> *Malintha Adikari*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 71 2312958
>>> Blog:http://malinthas.blogspot.com
>>> Page:   http://about.me/malintha
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middleware.
>>
>
>
>
> --
> *Malintha Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Jenkins build became unstable: kernel_patch0013 #9

2015-09-08 Thread Sameera Jayasoma
What is the error here and whose commit caused this issue?

On Wed, Sep 9, 2015 at 12:31 AM, Malithi Edirisinghe <malit...@wso2.com>
wrote:

> Fixed with diff attached. Please review and commit.
>
> Thanks,
> Malithi.
>
> On Tue, Sep 8, 2015 at 11:10 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> Removing folks since the mail bounces from dev@
>>
>> On Tue, Sep 8, 2015 at 11:08 PM, Supun Malinga <sup...@wso2.com> wrote:
>>
>>> Hi Johann/ Malithi,
>>>
>>> Can you have a look ?.
>>>
>>> https://wso2.org/jenkins/job/kernel_patch0013/org.wso2.carbon$org.wso2.carbon.user.core/9/changes
>>>
>>> thanks,
>>>
>>> On Tue, Sep 8, 2015 at 9:49 PM, <cbuil...@wso2.org> wrote:
>>>
>>>> See <https://wso2.org/jenkins/job/kernel_patch0013/9/changes>
>>>>
>>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com <sup...@wso2.com>
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com <sup...@wso2.com>
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Jenkins build became unstable: kernel_patch0013 #9

2015-09-08 Thread Sameera Jayasoma
Did you guys build with test? I am wondering how we didn't encounter this
before the commit?

On Wed, Sep 9, 2015 at 7:46 AM, Malithi Edirisinghe <malit...@wso2.com>
wrote:

> This was caused due to the outdated xercesImpl dependency coming from the
> dependency tree, which is referred by unit tests.
> Thus, updated with proper dependency version.
>
> Thanks,
> Malithi.
>
> On Wed, Sep 9, 2015 at 12:40 AM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> What is the error here and whose commit caused this issue?
>>
>> On Wed, Sep 9, 2015 at 12:31 AM, Malithi Edirisinghe <malit...@wso2.com>
>> wrote:
>>
>>> Fixed with diff attached. Please review and commit.
>>>
>>> Thanks,
>>> Malithi.
>>>
>>> On Tue, Sep 8, 2015 at 11:10 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>
>>>> Removing folks since the mail bounces from dev@
>>>>
>>>> On Tue, Sep 8, 2015 at 11:08 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>>
>>>>> Hi Johann/ Malithi,
>>>>>
>>>>> Can you have a look ?.
>>>>>
>>>>> https://wso2.org/jenkins/job/kernel_patch0013/org.wso2.carbon$org.wso2.carbon.user.core/9/changes
>>>>>
>>>>> thanks,
>>>>>
>>>>> On Tue, Sep 8, 2015 at 9:49 PM, <cbuil...@wso2.org> wrote:
>>>>>
>>>>>> See <https://wso2.org/jenkins/job/kernel_patch0013/9/changes>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Supun Malinga,
>>>>>
>>>>> Senior Software Engineer,
>>>>> WSO2 Inc.
>>>>> http://wso2.com
>>>>> email: sup...@wso2.com <sup...@wso2.com>
>>>>> mobile: +94 (0)71 56 91 321
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Supun Malinga,
>>>>
>>>> Senior Software Engineer,
>>>> WSO2 Inc.
>>>> http://wso2.com
>>>> email: sup...@wso2.com <sup...@wso2.com>
>>>> mobile: +94 (0)71 56 91 321
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Senior Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Jenkins build became unstable: kernel_patch0013 #9

2015-09-08 Thread Sameera Jayasoma
We are still getting the failures in all branches.

Johann/Malithi, please revert your changes and fix it properly.

On Wed, Sep 9, 2015 at 10:08 AM, Sameera Jayasoma <same...@wso2.com> wrote:

> Did you guys build with test? I am wondering how we didn't encounter this
> before the commit?
>
> On Wed, Sep 9, 2015 at 7:46 AM, Malithi Edirisinghe <malit...@wso2.com>
> wrote:
>
>> This was caused due to the outdated xercesImpl dependency coming from the
>> dependency tree, which is referred by unit tests.
>> Thus, updated with proper dependency version.
>>
>> Thanks,
>> Malithi.
>>
>> On Wed, Sep 9, 2015 at 12:40 AM, Sameera Jayasoma <same...@wso2.com>
>> wrote:
>>
>>> What is the error here and whose commit caused this issue?
>>>
>>> On Wed, Sep 9, 2015 at 12:31 AM, Malithi Edirisinghe <malit...@wso2.com>
>>> wrote:
>>>
>>>> Fixed with diff attached. Please review and commit.
>>>>
>>>> Thanks,
>>>> Malithi.
>>>>
>>>> On Tue, Sep 8, 2015 at 11:10 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>>
>>>>> Removing folks since the mail bounces from dev@
>>>>>
>>>>> On Tue, Sep 8, 2015 at 11:08 PM, Supun Malinga <sup...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Johann/ Malithi,
>>>>>>
>>>>>> Can you have a look ?.
>>>>>>
>>>>>> https://wso2.org/jenkins/job/kernel_patch0013/org.wso2.carbon$org.wso2.carbon.user.core/9/changes
>>>>>>
>>>>>> thanks,
>>>>>>
>>>>>> On Tue, Sep 8, 2015 at 9:49 PM, <cbuil...@wso2.org> wrote:
>>>>>>
>>>>>>> See <https://wso2.org/jenkins/job/kernel_patch0013/9/changes>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Supun Malinga,
>>>>>>
>>>>>> Senior Software Engineer,
>>>>>> WSO2 Inc.
>>>>>> http://wso2.com
>>>>>> email: sup...@wso2.com <sup...@wso2.com>
>>>>>> mobile: +94 (0)71 56 91 321
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Supun Malinga,
>>>>>
>>>>> Senior Software Engineer,
>>>>> WSO2 Inc.
>>>>> http://wso2.com
>>>>> email: sup...@wso2.com <sup...@wso2.com>
>>>>> mobile: +94 (0)71 56 91 321
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Malithi Edirisinghe*
>>>> Senior Software Engineer
>>>> WSO2 Inc.
>>>>
>>>> Mobile : +94 (0) 718176807
>>>> malit...@wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://blog.sameera.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] How to define version ranges for orbit bundles

2015-09-06 Thread Sameera Jayasoma
Hi Aruna,

On Fri, Sep 4, 2015 at 11:40 AM, Aruna Karunarathna <ar...@wso2.com> wrote:

> Hi Sameera,
>
> Small question,
>
> What if there is same bundle with multiple versions?.. Maybe packing with
> some features?.
>

Only one bundle should be loaded to the runtime most of the time. But if
they are incompatible(API level) versions and there are dependent bundles,
then we have to load those two bundles to the runtime.

e.g. log4j 1.x and log4j 2.x.

Thanks,
Sameera.

>
> sample.bundle_1.6.1.wso2v14, sample.bundle_1.6.1.wso2v15? Theoretically there
> shouldn't be a problem right?..
> But we can't guarantee which bundle gets wired at the run-time, and we
> need a specific fix from a specific wso2 version?
>
> Regards,
> Aruna
>
> On Fri, Sep 4, 2015 at 11:32 AM, Aruna Karunarathna <ar...@wso2.com>
> wrote:
>
>>
>>
>> On Fri, Sep 4, 2015 at 11:22 AM, Sameera Jayasoma <same...@wso2.com>
>> wrote:
>>
>>> Hi Rajith,
>>>
>>> The correct one should be  [1.6.1, 1.7) AFAIK.
>>>
>> Yep, this should be the correct way.
>>
>>>
>>> Niranjan please update the document.
>>>
>>> Thanks,
>>> Sameera.
>>>
>>> On Fri, Sep 4, 2015 at 11:02 AM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> How should we do the $subject? Asking this since in carbon commons
>>>> axis2 version range is defined as in [1] don't we follow the same concept
>>>> for orbit bundles? shouldn't this be as [2]?
>>>>
>>>> [1] - [1.6.1.wso2v14,
>>>> 1.7.0)
>>>> [2] - [1.6, 1.7)
>>>>
>>>> Thanks,
>>>>
>>>> --
>>>> Rajith Vitharana
>>>>
>>>> Software Engineer,
>>>> WSO2 Inc. : wso2.com
>>>> Mobile : +94715883223
>>>> Blog : http://lankavitharana.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://blog.sameera.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>> _______
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [VOTE] Release WSO2 ESB 4.9.0 RC3

2015-09-04 Thread Sameera Jayasoma
Have we done  any recent changes to the dep Sync code?

On Fri, Sep 4, 2015 at 10:52 AM, Yasassri Ratnayake <yasas...@wso2.com>
wrote:

> Hi ESB Team,
>
> Found out that Deployment synchronizing functionality is broken in the
> latest RC3 pack. It's reported at [1].
>
> [1] - https://wso2.org/jira/browse/ESBJAVA-4156
>
> Regards,
>
> On Fri, Sep 4, 2015 at 2:09 AM, Ravindra Ranwala <ravin...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> WSO2 ESB 4.9.0 RC3 Release Vote
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/ESBJAVA-4138?filter=12385
>>
>> Please download ESB 4.9.0 RC3 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> Source & binary distribution files:
>>
>> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-041/org/wso2/esb/wso2esb/4.9.0-RC3/
>>
>> Maven staging repository:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-041/
>>
>> The tag to be voted upon :
>> https://github.com/wso2/product-esb/tree/esb-parent-4.9.0-RC3
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> Thanks and Regards,
>> ~ WSO2 ESB Team ~
>>
>>
>>
>> --
>> Ravindra Ranwala
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> Mobile: +94714198770
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blogs : http://yasassriratnayake.blogspot.com
> <http://yasassriratnayake.blogspot.com/>*
> *http://wso2logs.blogspot.com <http://wso2logs.blogspot.com>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] How to define version ranges for orbit bundles

2015-09-03 Thread Sameera Jayasoma
Hi Rajith,

The correct one should be  [1.6.1, 1.7) AFAIK.

Niranjan please update the document.

Thanks,
Sameera.

On Fri, Sep 4, 2015 at 11:02 AM, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi,
>
> How should we do the $subject? Asking this since in carbon commons axis2
> version range is defined as in [1] don't we follow the same concept for
> orbit bundles? shouldn't this be as [2]?
>
> [1] - [1.6.1.wso2v14,
> 1.7.0)
> [2] - [1.6, 1.7)
>
> Thanks,
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] C5 tenant code seems to be in an incomplete state

2015-09-01 Thread Sameera Jayasoma
Hi Azeez,

We didn't complete it  last time. We have only the APIs and POC
implementation which uses filesystem to store tenant information.

We are still discussing how to implement multi-tenancy in C5. Currently
several people are working on POCs.

Thanks,
Sameera.

On Tue, Sep 1, 2015 at 11:31 AM, Afkham Azeez <az...@wso2.com> wrote:

> Please see what can be done
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please release the staging repo for carbon-commons

2015-08-05 Thread Sameera Jayasoma
: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*

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




 --
 Hasintha Indrajee
 Software Engineer
 WSO2, Inc.
 Mobile:+94 771892453


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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

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




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com




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




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Orbit] Please review merge the PR for Spark 1.4.1

2015-07-30 Thread Sameera Jayasoma
Merged.

Maheshika, please node.

Thanks,
Sameera.

On Thu, Jul 30, 2015 at 4:05 PM, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 Could you please review and merge this PR [1] for wso2v1 of
 the Spark 1.4.1.

 this is a patch release, so there are no API or dependency changes. the
 orbit poms are identical to 1.4.0. So I believe there is not much of
 overhead in reviewing the poms.

 cheers

 [1] https://github.com/wso2/orbit/pull/112

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44
 https://pythagoreanscript.wordpress.com/




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Sameera Jayasoma
This will be a very useful tool to debug intermittent class loading issues.

On Wed, Jul 29, 2015 at 10:40 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 +1 maven plugin
 Will do when I have some time




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Carbon-deployment 4.4.2 Release date

2015-07-09 Thread Sameera Jayasoma
Hi Kasun,

We will work on this.

Sameera.


On Thu, Jul 9, 2015 at 9:41 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Kernel team,

 We are blocked on ESB beta release because of not having service
 activation/deactivation. There is no point of adding this to AS without
 adding this to ESB (this feature is mostly used with ESB than AS). So, can
 we please get a carbon-deployment release based-on kernel 4.4 with this
 feature.


 On Mon, Jul 6, 2015 at 12:10 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi,

 Any updates on this?

 On Wed, Jun 24, 2015 at 11:59 AM, Kasun Indrasiri ka...@wso2.com wrote:

 We probably need a release of carbon-deployment earlier than that,
 because ESB GA release is planned on mid July. Most of the service
 activation/deactivation features will be mainly used with Proxy service.

 On Wed, Jun 24, 2015 at 11:22 AM, Jayanga Dissanayake jaya...@wso2.com
 wrote:

 Hi Prabath,

 Carbon-deployment 4.4.2 will be released on mid July, in parallel with
 WSO2AS RC releases.
 Changes related to proxy service Activate/Deactivate feature is merged
 into master branch and available in 4.4.2-SNAPSHOT

 Thanks,
 Jayanga.


 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Wed, Jun 24, 2015 at 11:14 AM, Prabath Ariyarathna 
 prabat...@wso2.com wrote:

 Hi Carbon Team.

 We are planning to release proxy service Activate/Deactivate feature
 with the ESB 4.9 release and AFAIK it has already been added to the
 carbon-deployment 4.4.2-SNAPSHOT.
 When you plan to release it?


 Thanks.
 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *









 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [ESB] EmptyStackException when resuming a paused message processor

2015-07-07 Thread Sameera Jayasoma
I understand, but we need to understand why that stack becomes empty.
AFAIK, if we follow the proper APIs, stack should not become empty

On Tue, Jul 7, 2015 at 5:47 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Yeah, we should always check for an empty stack.

 On Tue, Jul 7, 2015 at 5:17 PM, Malaka Silva mal...@wso2.com wrote:

 I think we need to check isEmpty as well.

 On Tue, Jul 7, 2015 at 3:41 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi,

 I am working on [1] and found that the cause of the exception mentioned
 below is in the code segment in 
 org.wso2.carbon.context.internal.CarbonContextDataHolder
 in carbon.utils.

 public void endTenantFlow() {

 StackCarbonContextDataHolder carbonContextDataHolders = 
 parentContextHolderStack.get();
 if (carbonContextDataHolders != null) {
 currentContextHolder.set(carbonContextDataHolders.pop());
 }
 }

 *Exception :*

 java.util.EmptyStackException
 at java.util.Stack.peek(Stack.java:102)
 at java.util.Stack.pop(Stack.java:84)
 at 
 org.wso2.carbon.context.internal.CarbonContextDataHolder.endTenantFlow(CarbonContextDataHolder.java:1291)
 at 
 org.wso2.carbon.context.PrivilegedCarbonContext.endTenantFlow(PrivilegedCarbonContext.java:75)
 at 
 org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:69)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
 at 
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 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)

 Issue occurs when it tries to pop elements from carbonContextDataHolders 
 stack when it is empty.

 Is it a possible scenario that this stack being empty and shouldn't it be 
 handled at CarbonContextDataHolder (check isEmpty in stack)?

 [1] - https://wso2.org/jira/browse/ESBJAVA-3832

 Thanks

 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --

 Best Regards,

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

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

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

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




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

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




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [ESB] EmptyStackException when resuming a paused message processor

2015-07-07 Thread Sameera Jayasoma
Hi Jagath,

Can you debug and see whey the stack becomes empty? Thats a serious
problem. Stack should be become empty here.

Checking whether the stack is empty will stop the error log, but it doesn't
fix the actual problem here.

On Wed, Jul 8, 2015 at 10:50 AM, Sameera Jayasoma same...@wso2.com wrote:

 I understand, but we need to understand why that stack becomes empty.
 AFAIK, if we follow the proper APIs, stack should not become empty

 On Tue, Jul 7, 2015 at 5:47 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Yeah, we should always check for an empty stack.

 On Tue, Jul 7, 2015 at 5:17 PM, Malaka Silva mal...@wso2.com wrote:

 I think we need to check isEmpty as well.

 On Tue, Jul 7, 2015 at 3:41 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi,

 I am working on [1] and found that the cause of the exception mentioned
 below is in the code segment in 
 org.wso2.carbon.context.internal.CarbonContextDataHolder
 in carbon.utils.

 public void endTenantFlow() {

 StackCarbonContextDataHolder carbonContextDataHolders = 
 parentContextHolderStack.get();
 if (carbonContextDataHolders != null) {
 currentContextHolder.set(carbonContextDataHolders.pop());
 }
 }

 *Exception :*

 java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at java.util.Stack.pop(Stack.java:84)
at 
 org.wso2.carbon.context.internal.CarbonContextDataHolder.endTenantFlow(CarbonContextDataHolder.java:1291)
at 
 org.wso2.carbon.context.PrivilegedCarbonContext.endTenantFlow(PrivilegedCarbonContext.java:75)
at 
 org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:69)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at 
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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)

 Issue occurs when it tries to pop elements from carbonContextDataHolders 
 stack when it is empty.

 Is it a possible scenario that this stack being empty and shouldn't it be 
 handled at CarbonContextDataHolder (check isEmpty in stack)?

 [1] - https://wso2.org/jira/browse/ESBJAVA-3832

 Thanks

 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --

 Best Regards,

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

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

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

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




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] NoClassDefFoundError occurs while running carbon patch0011 tests

2015-06-07 Thread Sameera Jayasoma
)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
 testNewerVersionException(org.wso2.carbon.registry.core.test.jdbc.DumpTest)
  Time elapsed: 0.001 sec   ERROR!
 java.lang.NoClassDefFoundError: Could not initialize class
 org.wso2.carbon.context.CarbonContext
 at
 org.wso2.carbon.registry.core.test.utils.BaseTestCase.setupCarbonHome(BaseTestCase.java:64)
 at
 org.wso2.carbon.registry.core.test.utils.BaseTestCase.setUp(BaseTestCase.java:36)
 at
 org.wso2.carbon.registry.core.test.jdbc.DumpTest.setUp(DumpTest.java:39)
 at junit.framework.TestCase.runBare(TestCase.java:128)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:230)
 at junit.framework.TestSuite.run(TestSuite.java:225)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:95)
 at
 org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:121)
 at
 org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:98)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

 Thanks,
 --
 *Bhathiya Jayasekara*
 *Senior Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*

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




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please review and merge PR

2015-05-26 Thread Sameera Jayasoma
Hi Manoj/Jagath,

Please revert this change. We don't allow API Changes in patch releases.



On Wed, May 20, 2015 at 9:10 AM, Manoj Kumara ma...@wso2.com wrote:

 Merged to master branch. Will be available on Carbon 4.4.1 release.


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Wed, Apr 8, 2015 at 10:22 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi Sameera,

 This PR contains a new functionality required for the mentioned redmine
 issue [1]. This feature will be included in ESB 4.9.0 release.

 Is there any possibility to get above changes merged to an upcoming patch
 of carbon kernel or what would be the procedure to get this released?

 Thanks.

 On Tue, Apr 7, 2015 at 1:36 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi Carbon Team,

 Please review and merge [1] related to the redmine issue [2].

 [1] - https://github.com/wso2/carbon4-kernel/pull/198
 [2] - https://redmine.wso2.com/issues/3686

 Thanks.
 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048





-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Java 7 syntax support in JSP

2015-05-21 Thread Sameera Jayasoma
Hi Pulasthi,

As per our offline discussion.

Can you try this in Apache Tomcat? If this is working in tomcat, then we
will have to fix this in the Carbon environment.

Thanks,
Sameera.

On Wed, May 20, 2015 at 6:31 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi,

 Do we have $subject? I'm getting the following error at runtime when ''
 is used in a jsp.

 *'' operator is not allowed for source level below 1.7 *

 Thanks.
 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Web app class loading issue

2015-05-21 Thread Sameera Jayasoma
)

 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:91)

 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.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:1284)

 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)

 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)

 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)

 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)

 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)


 Thanks
 Geeth


 *G. K. S. Munasinghe*
 *Senior Software Engineer,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Java 7 syntax support in JSP

2015-05-21 Thread Sameera Jayasoma
Hi Pulasthi,

Can you share the artifacts you've used to test this scenario?  I can also
give it a try.

Thanks,
Sameera.

On Thu, May 21, 2015 at 5:43 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi Sameera,

 I checked with tomcat, and it also gives the same error.

 Adding compilerSourceVM and compilerTargetVM  parameters with value
 1.7 (see [1] below) to the tomcat's web.xml file fixed those issues in
 tomcat. However the same fix doesn't seem to work with carbon's web.xml.

 [1] Changes to the tomcat's web.xml
 servlet
 servlet-namejsp/servlet-name
 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
 init-param
 param-namefork/param-name
 param-valuefalse/param-value
 /init-param
 init-param
 param-namexpoweredBy/param-name
 param-valuefalse/param-value
 /init-param
*init-param*
 *param-namecompilerSourceVM/param-name*
 *param-value1.7/param-value*
 */init-param*
 *init-param*
 *param-namecompilerTargetVM/param-name*
 *param-value1.7/param-value*
 */init-param*
 load-on-startup3/load-on-startup
 /servlet

 On Thu, May 21, 2015 at 12:20 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Pulasthi,

 As per our offline discussion.

 Can you try this in Apache Tomcat? If this is working in tomcat, then we
 will have to fix this in the Carbon environment.

 Thanks,
 Sameera.

 On Wed, May 20, 2015 at 6:31 PM, Pulasthi Mahawithana pulast...@wso2.com
  wrote:

 Hi,

 Do we have $subject? I'm getting the following error at runtime when
 '' is used in a jsp.

 *'' operator is not allowed for source level below 1.7 *

 Thanks.
 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Web app class loading issue

2015-05-19 Thread Sameera Jayasoma
)

 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:1284)

 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)

 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)

 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)

 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)

 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)


 Thanks
 Geeth


 *G. K. S. Munasinghe*
 *Senior Software Engineer,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226





-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please review and commit

2015-05-11 Thread Sameera Jayasoma
Committed revision 212440.

On Mon, May 11, 2015 at 7:52 PM, Madhawa Gunasekara madha...@wso2.com
wrote:

 Hi Devs,

 Please find the correct svn diff.

 Thanks,
 Madhawa

 On Mon, May 11, 2015 at 4:51 PM, Madhawa Gunasekara madha...@wso2.com
 wrote:

 Hi Devs,

 Please review and commit, Please find the attached svn diff for the JIRA
 issue https://wso2.org/jira/browse/CARBON-15239


 Thanks,
 Madhawa
 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Orbit] Please review the PR for Spark 1.3.0

2015-04-16 Thread Sameera Jayasoma
Hi Niranda,

Does this include fragment-bundle/patch modification also?

Thanks,
Sameera.

On Thu, Apr 16, 2015 at 8:03 AM, Niranda Perera nira...@wso2.com wrote:

 Hi,

 Kind reminder on this.

 Best regards

 Niranda Perera
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44
 On Apr 14, 2015 19:17, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 Could you please review this PR [1] for Spark 1.3.0.

 this upgrades 1.2.1 to 1.3.0. this upgrade is done, because 1.3.0 comes
 with some major API changes and we wanted to include those API changes
 before the DAS (BAM) 3.0.0 alpha

 cheers

 [1] https://github.com/wso2/orbit/pull/83

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Orbit] Please review the PR for Spark 1.3.0

2015-04-16 Thread Sameera Jayasoma
I meant to say, do we need to add the patch.jar line to the spark bundle as
we've done in Tomcat bundle.

Thanks,
Sameera.

On Thu, Apr 16, 2015 at 12:31 PM, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 No its not. The patch is in org.wso2.analytics.spark.patch component. Its
 still not committed to carbon - analytics

 Rgds

 On Thu, Apr 16, 2015, 12:17 Sameera Jayasoma same...@wso2.com wrote:

 Hi Niranda,

 Does this include fragment-bundle/patch modification also?

 Thanks,
 Sameera.

 On Thu, Apr 16, 2015 at 8:03 AM, Niranda Perera nira...@wso2.com wrote:

 Hi,

 Kind reminder on this.

 Best regards

 Niranda Perera
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44
 On Apr 14, 2015 19:17, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 Could you please review this PR [1] for Spark 1.3.0.

 this upgrades 1.2.1 to 1.3.0. this upgrade is done, because 1.3.0 comes
 with some major API changes and we wanted to include those API changes
 before the DAS (BAM) 3.0.0 alpha

 cheers

 [1] https://github.com/wso2/orbit/pull/83

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Adding apacheds/1.5.7.wso2v3 and nimbus/2.26.1.wso2v3

2015-04-09 Thread Sameera Jayasoma
Reviewed. There are few issues. Please fix them and let me know.

Thanks,
Sameera.

On Thu, Apr 9, 2015 at 1:31 PM, Johann Nallathamby joh...@wso2.com wrote:

 Hi Kernel Team,

 Please review and merge this. We need this bundle to be released for us to
 release carbon-identity-4.3.4.

 Thanks.

 On Tue, Apr 7, 2015 at 6:56 PM, Prasad Tissera pras...@wso2.com wrote:

 Fixed the PR [1] with mentioned changes. Thanks.

 [1].  https://github.com/wso2/orbit/pull/80

 Regards,
 Prasad.

 On Fri, Apr 3, 2015 at 3:18 AM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Hi Prasad,

 Please follow the Orbit bundle release guide.
 I have added some comments regarding the PR. Please check.

 Regards,
 Aruna

 On Wed, Apr 1, 2015 at 11:41 PM, Prasad Tissera pras...@wso2.com
 wrote:

 Hi Kernel team,

 Can you please review and merge [1].

 [1]. https://github.com/wso2/orbit/pull/80

 Thanks,

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please review and merge PR

2015-04-08 Thread Sameera Jayasoma
Hi Jagath,

We will not include this fix as patch to Carbon 4.4.0 patch releases. There
is an API change here. I am afraid this is too late.

Thanks,
Sameera.

On Wed, Apr 8, 2015 at 10:22 PM, Jagath Sisirakumara Ariyarathne 
jaga...@wso2.com wrote:

 Hi Sameera,

 This PR contains a new functionality required for the mentioned redmine
 issue [1]. This feature will be included in ESB 4.9.0 release.

 Is there any possibility to get above changes merged to an upcoming patch
 of carbon kernel or what would be the procedure to get this released?

 Thanks.

 On Tue, Apr 7, 2015 at 1:36 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi Carbon Team,

 Please review and merge [1] related to the redmine issue [2].

 [1] - https://github.com/wso2/carbon4-kernel/pull/198
 [2] - https://redmine.wso2.com/issues/3686

 Thanks.
 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Orbit bundles and transitive dependencies in the compile time

2015-04-06 Thread Sameera Jayasoma
You can embed the dependency jar as it is without unpacking the jar file.
One of the jars is singed. Thats why you get this exception.

On Mon, Apr 6, 2015 at 11:14 AM, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 Noted.

 returning back to where this issue occurred initially, when I include the
 dependencies in the spark component, in the server start up, there was a
 java.lang.SecurityException: class javax.servlet.FilterRegistration's
 signer information does not match signer information of other classes in
 the same package exception for the classes that came from the jars
 included as dependencies.

 just wondering if you have any idea why such an exception might occur?

 rgds

 On Mon, Apr 6, 2015 at 10:43 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Niranda,

 On Mon, Apr 6, 2015 at 10:25 AM, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 I agree with you on the compilation scenario. It was mistake on my part.

 But recently I came across with this issue. Pls consider the following
 scenario.

 a non-OSGI jar say, 'foo.jar' depends on the 'a.jar' and 'b.jar' which
 are OSGI bundles.

 foo (non-OSGI)
 |_ a (OSGI)
 |_ b (OSGI)

 I OSGIfy foo.jar designating a  b as import-packages to make the
 foo-orbit.jar.

 when I compile my component using foo-orbit.jar it compiles without an
 issue. but when I run the unit tests of the component, in the run-time I
 encounter classnotfound exceptions in the classes of a.jar and b.jar. so, I
 have to specify a and b as dependencies in the component along with the
 foo-orbit.
 when I compile the component using the original foo, compilation and
 testing (run-time) happens seamlessly without having to specify a  b
 dependencies individually.
 Is this the expected behavior?


 This is exactly the expected behavior. You need to declare all the
 dependencies of a component in the pom.xml for compilation and testing. All
 the dependencies of a carbon component should be OSGi bundles. There are
 few exceptions though.

 Thanks,
 Sameera.


 this issue occurred to me while I was testing the spark components with
 the spark orbits. and the classnotfound exceptions are thrown in the spark
 server start-up.

 Gokul also told me that he encountered a similar problem with the hadoop
 client orbit.

 look forward to know your thoughts in this regard.

 rgds


 On Wed, Mar 25, 2015 at 4:36 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 We are in the process of getting rid of transitive dependencies from
 orbits, carbon components etc.

 If your component requires the original Spark libraries for compilation
 then there are obvious issues in your Spark orbit bundle. A component
 should be able compile using orbits and other component dependencies. If
 this is not possible, then your component dependencies are not properly
 OSGified

 A component shouldn't depend on transitive dependencies. Thats the
 plan. If you see issues with this approach, please explain.

 Thanks,
 Sameera.



 On Tue, Mar 24, 2015 at 11:00 AM, Gokul Balakrishnan go...@wso2.com
 wrote:

 Hi Kernel team,

 Any idea on $subject? Shouldn't the transitive dependencies of the
 orbit bundle be visible to the component referring to the bundle at 
 compile
 time? Should we just refer to the 3rd party jar (the orbit bundle is
 wrapping) in the component and use the orbit in the feature, or should we
 use the orbit bundle for both? Would be great if you could clarify.

 Thanks,

 On 23 March 2015 at 14:59, Niranda Perera nira...@wso2.com wrote:

 Hi,

 As of the current orbit bundle guideline [1], we have to mark the
 dependencies as optional. I believe this results in transitive 
 dependencies
 of that particular bundle not being exposed.

 Because of this, I have experienced compilation failures, when I put
 orbit bundles as component dependencies.
 For an example, in carbon analytics components, when I import
 spark-core orbit, I encsounter dependency errors (But when I import the
 original spark dependency this does not occur)

 so, is it a good practice for us to say that, orbit bundles should be
 used in the runtime, where as in the compile time, use the original jars?
 essentially, is it okay to include original jars in the components
 and only include orbits in the features? (because earlier, I was under 
 the
 impression that, once an orbit bundle is created, it should be used BOTH 
 in
 the components and in the feature)

 would be great if you could clarify this matter.

 rgds

 [1]
 https://docs.google.com/a/wso2.com/document/d/1I3nWPnG6139YobZzQWPFOUxYEmHxqf9ieWykmQupPtc/edit#

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




 --
 *Balakrishnan Gokulakrishnan*
 Software Engineer,
 WSO2, Inc. http://wso2.com
 Mob: +94 77 593 5789 | +1 650 272 9927




 --
 Sameera Jayasoma

Re: [Dev] [Orbit] pls merge the PR for protobuf-java v 2.5.0-spark

2015-04-05 Thread Sameera Jayasoma
Merged.

Maheshika, can you release this orbit bundle?

On Sat, Apr 4, 2015 at 5:44 PM, Niranda Perera nira...@wso2.com wrote:

 Hi,

 Kind reminder to look into this.

 Rgds

 On Mon, Mar 30, 2015 at 1:44 PM, Niranda Perera nira...@wso2.com wrote:

 Hi Kasun,

 I created the orbit bundle for the $subject with the artifact ID
 'spark-protobuf-java'. could you please review it and merge? [1]

 this follows the discussion we had in this thread [2]

 rgds

 [1] https://github.com/wso2/orbit/pull/74
 [2] [Dev] [Carbon] Carbon P2 Plugin issue - jars with different package
 name BUT same artifact IDs

 rgds

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Orbit bundles and transitive dependencies in the compile time

2015-04-05 Thread Sameera Jayasoma
Hi Niranda,

On Mon, Apr 6, 2015 at 10:25 AM, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 I agree with you on the compilation scenario. It was mistake on my part.

 But recently I came across with this issue. Pls consider the following
 scenario.

 a non-OSGI jar say, 'foo.jar' depends on the 'a.jar' and 'b.jar' which are
 OSGI bundles.

 foo (non-OSGI)
 |_ a (OSGI)
 |_ b (OSGI)

 I OSGIfy foo.jar designating a  b as import-packages to make the
 foo-orbit.jar.

 when I compile my component using foo-orbit.jar it compiles without an
 issue. but when I run the unit tests of the component, in the run-time I
 encounter classnotfound exceptions in the classes of a.jar and b.jar. so, I
 have to specify a and b as dependencies in the component along with the
 foo-orbit.
 when I compile the component using the original foo, compilation and
 testing (run-time) happens seamlessly without having to specify a  b
 dependencies individually.
 Is this the expected behavior?


This is exactly the expected behavior. You need to declare all the
dependencies of a component in the pom.xml for compilation and testing. All
the dependencies of a carbon component should be OSGi bundles. There are
few exceptions though.

Thanks,
Sameera.


 this issue occurred to me while I was testing the spark components with
 the spark orbits. and the classnotfound exceptions are thrown in the spark
 server start-up.

 Gokul also told me that he encountered a similar problem with the hadoop
 client orbit.

 look forward to know your thoughts in this regard.

 rgds


 On Wed, Mar 25, 2015 at 4:36 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 We are in the process of getting rid of transitive dependencies from
 orbits, carbon components etc.

 If your component requires the original Spark libraries for compilation
 then there are obvious issues in your Spark orbit bundle. A component
 should be able compile using orbits and other component dependencies. If
 this is not possible, then your component dependencies are not properly
 OSGified

 A component shouldn't depend on transitive dependencies. Thats the plan.
 If you see issues with this approach, please explain.

 Thanks,
 Sameera.



 On Tue, Mar 24, 2015 at 11:00 AM, Gokul Balakrishnan go...@wso2.com
 wrote:

 Hi Kernel team,

 Any idea on $subject? Shouldn't the transitive dependencies of the orbit
 bundle be visible to the component referring to the bundle at compile time?
 Should we just refer to the 3rd party jar (the orbit bundle is wrapping) in
 the component and use the orbit in the feature, or should we use the orbit
 bundle for both? Would be great if you could clarify.

 Thanks,

 On 23 March 2015 at 14:59, Niranda Perera nira...@wso2.com wrote:

 Hi,

 As of the current orbit bundle guideline [1], we have to mark the
 dependencies as optional. I believe this results in transitive dependencies
 of that particular bundle not being exposed.

 Because of this, I have experienced compilation failures, when I put
 orbit bundles as component dependencies.
 For an example, in carbon analytics components, when I import
 spark-core orbit, I encsounter dependency errors (But when I import the
 original spark dependency this does not occur)

 so, is it a good practice for us to say that, orbit bundles should be
 used in the runtime, where as in the compile time, use the original jars?
 essentially, is it okay to include original jars in the components and
 only include orbits in the features? (because earlier, I was under the
 impression that, once an orbit bundle is created, it should be used BOTH in
 the components and in the feature)

 would be great if you could clarify this matter.

 rgds

 [1]
 https://docs.google.com/a/wso2.com/document/d/1I3nWPnG6139YobZzQWPFOUxYEmHxqf9ieWykmQupPtc/edit#

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




 --
 *Balakrishnan Gokulakrishnan*
 Software Engineer,
 WSO2, Inc. http://wso2.com
 Mob: +94 77 593 5789 | +1 650 272 9927




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin

Re: [Dev] PR for membrane-soa-model orbit bundle version upgrade

2015-03-31 Thread Sameera Jayasoma
Done.

Maheshika, Can you release this orbit?

Thanks,
Sameera.


On Tue, Mar 31, 2015 at 11:38 PM, Isuruwan Herath isuru...@wso2.com wrote:

 Hi Kernel Team,

 Could you please review and merge [1] related to $subject? Created a v2 of
 the released version since it needed an upgrade of slf4j dependency version.

 [1] https://github.com/wso2/orbit/pull/78

 Thanks!
 Isuruwan

 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Orbit bundles required for HBase Analytics Datasource

2015-03-27 Thread Sameera Jayasoma
Hi Gokul,

I've added some comments. Please have a look.

Thanks,
Sameera.

On Fri, Mar 27, 2015 at 2:25 PM, Gokul Balakrishnan go...@wso2.com wrote:

 Hi Kernel team,

 Can you please review and merge PR [1] which adds $subject?

 [1] https://github.com/wso2/orbit/pull/72

 Thanks,

 --
 *Balakrishnan Gokulakrishnan*
 Software Engineer,
 WSO2, Inc. http://wso2.com
 Mob: +94 77 593 5789 | +1 650 272 9927




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Orbit bundles and transitive dependencies in the compile time

2015-03-25 Thread Sameera Jayasoma
We are in the process of getting rid of transitive dependencies from
orbits, carbon components etc.

If your component requires the original Spark libraries for compilation
then there are obvious issues in your Spark orbit bundle. A component
should be able compile using orbits and other component dependencies. If
this is not possible, then your component dependencies are not properly
OSGified

A component shouldn't depend on transitive dependencies. Thats the plan. If
you see issues with this approach, please explain.

Thanks,
Sameera.



On Tue, Mar 24, 2015 at 11:00 AM, Gokul Balakrishnan go...@wso2.com wrote:

 Hi Kernel team,

 Any idea on $subject? Shouldn't the transitive dependencies of the orbit
 bundle be visible to the component referring to the bundle at compile time?
 Should we just refer to the 3rd party jar (the orbit bundle is wrapping) in
 the component and use the orbit in the feature, or should we use the orbit
 bundle for both? Would be great if you could clarify.

 Thanks,

 On 23 March 2015 at 14:59, Niranda Perera nira...@wso2.com wrote:

 Hi,

 As of the current orbit bundle guideline [1], we have to mark the
 dependencies as optional. I believe this results in transitive dependencies
 of that particular bundle not being exposed.

 Because of this, I have experienced compilation failures, when I put
 orbit bundles as component dependencies.
 For an example, in carbon analytics components, when I import spark-core
 orbit, I encsounter dependency errors (But when I import the original spark
 dependency this does not occur)

 so, is it a good practice for us to say that, orbit bundles should be
 used in the runtime, where as in the compile time, use the original jars?
 essentially, is it okay to include original jars in the components and
 only include orbits in the features? (because earlier, I was under the
 impression that, once an orbit bundle is created, it should be used BOTH in
 the components and in the feature)

 would be great if you could clarify this matter.

 rgds

 [1]
 https://docs.google.com/a/wso2.com/document/d/1I3nWPnG6139YobZzQWPFOUxYEmHxqf9ieWykmQupPtc/edit#

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




 --
 *Balakrishnan Gokulakrishnan*
 Software Engineer,
 WSO2, Inc. http://wso2.com
 Mob: +94 77 593 5789 | +1 650 272 9927




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Correct way of setting dependencies import-packages in an Orbit Bundle

2015-03-25 Thread Sameera Jayasoma
We are badly in need to of a Orbit bundle catalogue :(

Any bright ideas to generate one?

Thanks,
Sameera.

On Tue, Mar 24, 2015 at 5:47 PM, Nirmal Fernando nir...@wso2.com wrote:

 This is not scalable model IMO. We can't really get all necessary non-OSGi
 bundles as separate Orbits thinking someone will use it in future. I think
 best way would be, if someone wanted to create a new orbit bundle, he needs
 to search existing orbits and see whether the same jar is being used in
 another orbit bundle and fix those bundles accordingly after creating the
 orbit.

 On Wed, Mar 11, 2015 at 2:57 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Kasun,

 Then again the problem is, one of the three non-osgi jars: org.scalanlp
 » breeze_2.10 has dependencies for another set of non-osgi jars, and so
 on. This grows in a tree manner :)

 Please note that the groupId should be in this format -
 org.wso2.orbit.upstream-groupId.

 Noted.

 @Harsha :  Yes, Scala-lang package is available as OSGI. But the spark
 ones (spark-mllib, spark-streaming)  are not available as osgi bundles.

 Thanks,
 Supun.

 On Wed, Mar 11, 2015 at 2:48 PM, Harsha Thirimanna hars...@wso2.com
 wrote:

 Yes better to have orbit bundle and did you check whether those
 dependencies available as OSGi in public ? I think there should be for
 scala libraries.


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770  ,
 +94 *
 *774617784twitter: **http://twitter.com/
 http://twitter.com/afkham_azeez*
 *harshathirimannlinked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

 *Lean . Enterprise . Middleware*


 On Wed, Mar 11, 2015 at 2:15 AM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 It's better to create three separate orbit bundles for the
 dependencies. Please note that the groupId should be in this format -
 org.wso2.orbit.upstream-groupId.

 On Wed, Mar 11, 2015 at 2:31 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Refer to other osgi bundles. AFAIR what we do is add them as
 dependencies and import the packages needed for those libraries. We are 
 not
 recommending to use dynamic imports as well. And we export the packages of
 the libraries.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 11, 2015 at 2:24 PM, Supun Sethunga sup...@wso2.com
 wrote:

 Hi,

 Im in the process of creating an orbit bundle for Apache Spark-mllib
 1.2.1.
 Among the dependencies of mllib, there are three jars that are *not*
 *osgi/orbit* bundles (Refer [1] ).

 Thus, whats the correct way of importing these packages to the
 bundle? is it:
(A) Adding the three libraries as dependencies, and import them as
 private packages under Private-package in pom?
(B) OR, Creating another set of orbit bundles for those three
 dependent non-osgi jars and import them under Import-package in pom?

 OR is there any other way? Appreciate any clarification.

 [1]
 https://docs.google.com/a/wso2.com/spreadsheets/d/1PJKTeNS1zgQ1HbAsg5FQumiaPNKPYxpn2gEVS1v2TC0/edit#gid=0

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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





 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



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



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




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 http://wso2.com/
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Adding missed dependency on carbon-identitiy-java8support branch

2015-03-17 Thread Sameera Jayasoma
Why is this component moved to Carbon-commons? Who has committed this?


On Tue, Mar 17, 2015 at 3:49 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi Shashika,

 org.wso2.carbon.identity.user.store.configuration.ui is now in
 carbon-commons[1] not in carbon-identity.

 [1]
 https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui

 On Tue, Mar 17, 2015 at 3:35 PM, Shashika Karunatilaka shashi...@wso2.com
  wrote:

 Hi Johann,

 Please review and merge the following PR [1]
 Missed dependency : org.wso2.carbon.ndatasource.common
 https://github.com/shashikap/carbon-identity/commit/373a0df6d2daab8a32a62112dda41318ca497370

 [1] https://github.com/wso2/carbon-identity/pull/139

 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Adding missed dependency on carbon-identitiy-java8support branch

2015-03-17 Thread Sameera Jayasoma
please ignore this email

On Tue, Mar 17, 2015 at 7:41 PM, Sameera Jayasoma same...@wso2.com wrote:

 Why is this component moved to Carbon-commons? Who has committed this?


 On Tue, Mar 17, 2015 at 3:49 PM, Pulasthi Mahawithana pulast...@wso2.com
 wrote:

 Hi Shashika,

 org.wso2.carbon.identity.user.store.configuration.ui is now in
 carbon-commons[1] not in carbon-identity.

 [1]
 https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui

 On Tue, Mar 17, 2015 at 3:35 PM, Shashika Karunatilaka 
 shashi...@wso2.com wrote:

 Hi Johann,

 Please review and merge the following PR [1]
 Missed dependency : org.wso2.carbon.ndatasource.common
 https://github.com/shashikap/carbon-identity/commit/373a0df6d2daab8a32a62112dda41318ca497370

 [1] https://github.com/wso2/carbon-identity/pull/139

 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Carbon] Carbon P2 Plugin issue - jars with different package name BUT same artifact IDs

2015-03-16 Thread Sameera Jayasoma
 such packages when
 it is creating the feature.xml file?

 look forward for your assistance in this regard.

 cheers

 [1]
 https://github.com/wso2/carbon-analytics/blob/master/features/analytics/analytics-processors/org.wso2.carbon.analytics.spark.server.feature/pom.xml

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] New Orbit bundle for ANTLR-runtime

2015-03-06 Thread Sameera Jayasoma
Aruna, review and make necessary comments in the PR. Once all the changes
are done, I can merge.

Thanks,
Sameera.

On Fri, Mar 6, 2015 at 8:13 PM, Aruna Karunarathna ar...@wso2.com wrote:



 On Fri, Mar 6, 2015 at 7:43 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi Aruna,

 Can you review this and merge? Please go through the check list of items
 on orbit release process.

 Hi Kishanthan,

 Seems like, I don't have permission to merge to the orbit repository.

 Regards,
 Aruna

 Hi,

 Please review and merge the PR [1]. This is needed for release of WSO2
 CEP 4.0.0 M3.

 [1] https://github.com/wso2/orbit/pull/66

 Thanks,
 Tishan

 --
 Tishan Dahanayakage
 Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328

 Disclaimer: This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, re-transmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please commit the diff for CARBON-15184

2015-03-06 Thread Sameera Jayasoma
Done. Please send a PR to the Git repository.

On Fri, Mar 6, 2015 at 6:20 PM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 Hi

 Please commit the attached diff in the JIRA[1]

 [1] https://wso2.org/jira/browse/CARBON-15184

 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Jars with incompatible licenses in Carbon pack - CARBON-14762

2015-03-06 Thread Sameera Jayasoma
I believe do have some more fixes and its too late for the remaining fixes
now.

Thanks,
Sameera.

On Fri, Mar 6, 2015 at 1:44 PM, Kishanthan Thangarajah kishant...@wso2.com
wrote:

 Hi Gayashan,

 Can we resolve this issue : https://wso2.org/jira/browse/CARBON-14762 ?
 Do we have anymore fixes?

 Thanks,
 Kishanthan.

 --
 *Kishanthan Thangarajah*
 Senior Software Engineer,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Carbon 4.2.0- patch0010 Registry Core test failures due to user code changes

2015-03-02 Thread Sameera Jayasoma
What is the commit? Who has broken the build?

Thanks,
Sameera.

On Mon, Mar 2, 2015 at 5:51 PM, Chandana Napagoda chand...@wso2.com wrote:

 Hi IS Team,

 We have noticed Carbon 4.2.0 kernel patch0010 Registry Core has 3 test
 failures due to recent user core changes (r211611). We (Manoj and I) have
 verified it with/without user core changes and these test failures are only
 noticeable with mentioned user core changes.

 Can you guys please have a look?

 Regards,
 Chandana
 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile : +94718169299
 %2B94718169299*

 *Blog  :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com*




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Java 8] [AS Integration Tests] AS distribution fails to start after instrumenting using EMMA 2.1.5320

2015-02-27 Thread Sameera Jayasoma
We will disable Integration tests for the moment.

Thanks,
Sameera.

On Fri, Feb 27, 2015 at 7:26 AM, Dharshana Warusavitharana 
dharsha...@wso2.com wrote:

 Hi Sameera,

 Thank you for sharing the pack. I tried to execute integration test
 pointing the pack you have shared.

 Its not only the tomcat bundle that gives error it sees some other bundles
 too.

 Seems like EMMA is no longer have support for latest JDKs. Since EMMA is
 off development since 2005 we may need to change our coverage strategy by
 moving to jacoco

 Untill we figure this out you can move forward with the integration tests
 by disabling coverage.

 You can disable coverage by making
 coveragetrue/coverage
 in automation.xml

 Thank You,
 Dharshana.

 On Thu, Feb 26, 2015 at 7:54 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Thanks Darshana,

 I've uploaded the wso2as-6.0.0-SNAPSHOT distribution to an svn
 repository. This pack is built in Java 8. Here are the steps reproduce this
 error.

 1) Download the AS pack from [1], unzip and start. You won't get the
 error coz no jar files are instrumented using EMMA.
 2) Instrument carbon.tomcat bundle using the following command. I've
 attached emma jar file as well.

 java -cp emma-2.1.5320.jar emma instr -m overwrite -cp 
 org.wso2.carbon.tomcat_4.4.0-SNAPSHOT.jar

 3) Now start the pack. You will get the error.

 Thanks,
 Sameera.

 [1] http://svn.wso2.org/repos/wso2/people/sameera/work/emma-as-pack


 On Thu, Feb 26, 2015 at 7:02 PM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Hi Sameera,

 Will have a look.

 Thank you,
 Dharshana.

 On Thu, Feb 26, 2015 at 6:56 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Folks,

 AS integration tests are failing in Java 8 due to $Subject. Following
 is the error.

 *java.lang.ClassFormatError: Illegal local variable table length 5 in
 method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.init()V*

 Looks like Java 8 cannot understand the bytecode produced by
 instrumentations. We are using an older version of EMMA. I guess the
 generated bytecode does not compatible with Java 8.

 Automation Team, can we find a solution to this problem?

 Thanks,
 Sameera.


 [2015-02-26 15:05:04,157] ERROR
 {org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
 Core bundle

 *java.lang.ClassFormatError: Illegal local variable table length 5 in
 method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.init()V*at
 java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:340)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1181)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1177)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1177)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456)
 at
 javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
 at
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
 at
 javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:341)
 at javax.naming.InitialContext.lookup(InitialContext.java:417)
 at javax.naming.InitialContext.doLookup(InitialContext.java:290)


 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com dharsha...@wso2.com
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94770342233
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com dharsha...@wso2.com
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94770342233
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile

Re: [Dev] Test failure in org.wso2.carbon.registry.social.impl module due to a commit to user.core 4.4.0-SNAPSHOT

2015-02-26 Thread Sameera Jayasoma
Thanks Thanuja. It works now.



On Thu, Feb 26, 2015 at 2:54 PM, Thanuja Jayasinghe than...@wso2.com
wrote:

 Hi Sameera,

 Please review and merge.

 https://github.com/wso2/carbon-registry/pull/31
 https://github.com/wso2/carbon4-kernel/pull/150

 Thanks,
 Thanuja

 On Thu, Feb 26, 2015 at 11:41 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 Thanks for the quick response. Let me know once you are done.

 Thanks,
 Sameera.

 On Thu, Feb 26, 2015 at 11:39 AM, Thanuja Jayasinghe than...@wso2.com
 wrote:

 Hi Sameera,

 This test case need to be fixed. will do the needful.

 Thanks,
 Thanuja.

 On Thu, Feb 26, 2015 at 11:32 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 I am building carbon-registry by changing the kernel version to Carbon
 4.4.0-SNAPSHOT. I am getting the following build failure. This failure
 occurs due to the following PR.

 https://github.com/wso2/carbon4-kernel/pull/111

 Thanuja, can you have a look at this please? We need this to be fixed
 for the Carbon 4.4.0-release.


 Running
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).

 log4j:WARN Please initialize the log4j system properly.

 Warning: Could not get charToByteConverterClass!

 Feb 26, 2015 11:13:23 AM org.apache.tomcat.jdbc.pool.ConnectionPool init

 WARNING: maxIdle is larger than maxActive, setting maxIdle to: 50

 Listening for transport dt_socket at address: 11000

 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 129.964
 sec  FAILURE! - in
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

 testGetPerson1(org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest)
 Time elapsed: 129.956 sec   ERROR!

 org.wso2.carbon.registry.social.api.SocialDataException: Error while
 saving person with id admin

 at
 org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:103)

 at
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest.testGetPerson1(PersonManagerImplTest.java:142)

 Caused by: org.wso2.carbon.user.core.UserStoreException:
 org.wso2.carbon.user.core.UserStoreException: Invalid claim URI value

 at
 org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1872)

 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:978)

 at
 org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:100)

 ... 23 more

 Caused by: org.wso2.carbon.user.core.UserStoreException: Invalid claim
 URI value

 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.getClaimAtrribute(AbstractUserStoreManager.java:814)

 at
 org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1857)

 ... 25 more



 Results :


 Tests in error:


 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest#testGetPerson1
 SocialDataException


 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0


 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891 +94758009992




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891 +94758009992




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] [Java 8] [AS Integration Tests] AS distribution fails to start after instrumenting using EMMA 2.1.5320

2015-02-26 Thread Sameera Jayasoma
Hi Folks,

AS integration tests are failing in Java 8 due to $Subject. Following is
the error.

*java.lang.ClassFormatError: Illegal local variable table length 5 in
method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.init()V*

Looks like Java 8 cannot understand the bytecode produced by
instrumentations. We are using an older version of EMMA. I guess the
generated bytecode does not compatible with Java 8.

Automation Team, can we find a solution to this problem?

Thanks,
Sameera.


[2015-02-26 15:05:04,157] ERROR
{org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
Core bundle

*java.lang.ClassFormatError: Illegal local variable table length 5 in
method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.init()V*at
java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:340)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1181)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1177)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1177)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:341)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.doLookup(InitialContext.java:290)


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] - Kernel team review and merge the fix

2015-02-25 Thread Sameera Jayasoma
Hi Manoj,

Can you please have a look at this?

Thanks,
Sameera.

On Wed, Feb 25, 2015 at 5:10 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi all,

 This is to fix sending lot of SELECT USER() queries in between other
 queries. Diff[1] is attached for kernel 4.1.0 and pull request[2] for
 kernel 4.4.0-SNAPSHOT.

 Public Jira : https://wso2.org/jira/browse/REGISTRY-2429

 [1] ​
  diff.patch
 https://docs.google.com/a/wso2.com/file/d/0B3yd4olgBhFVbUhPZUc4YUJaNnc/edit?usp=drive_web
 ​
 ​
 [2]​ https://github.com/wso2/carbon4-kernel/pull/148


 Thanks
 --
 Prasanna Dangalla
 Software Engineer, WSO2, Inc.; http://wso2.com/
 lean.enterprise.middleware

 cell: +94 777 55 80 30 | +94 718 11 27 51
 twitter: @prasa77




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] Test failure in org.wso2.carbon.registry.social.impl module due to a commit to user.core 4.4.0-SNAPSHOT

2015-02-25 Thread Sameera Jayasoma
I am building carbon-registry by changing the kernel version to Carbon
4.4.0-SNAPSHOT. I am getting the following build failure. This failure
occurs due to the following PR.

https://github.com/wso2/carbon4-kernel/pull/111

Thanuja, can you have a look at this please? We need this to be fixed for
the Carbon 4.4.0-release.


Running
org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).

log4j:WARN Please initialize the log4j system properly.

Warning: Could not get charToByteConverterClass!

Feb 26, 2015 11:13:23 AM org.apache.tomcat.jdbc.pool.ConnectionPool init

WARNING: maxIdle is larger than maxActive, setting maxIdle to: 50

Listening for transport dt_socket at address: 11000

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 129.964 sec
 FAILURE! - in
org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

testGetPerson1(org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest)
Time elapsed: 129.956 sec   ERROR!

org.wso2.carbon.registry.social.api.SocialDataException: Error while saving
person with id admin

at
org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:103)

at
org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest.testGetPerson1(PersonManagerImplTest.java:142)

Caused by: org.wso2.carbon.user.core.UserStoreException:
org.wso2.carbon.user.core.UserStoreException: Invalid claim URI value

at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1872)

at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:978)

at
org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:100)

... 23 more

Caused by: org.wso2.carbon.user.core.UserStoreException: Invalid claim URI
value

at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.getClaimAtrribute(AbstractUserStoreManager.java:814)

at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1857)

... 25 more



Results :


Tests in error:


org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest#testGetPerson1
SocialDataException


Tests run: 1, Failures: 0, Errors: 1, Skipped: 0


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Test failure in org.wso2.carbon.registry.social.impl module due to a commit to user.core 4.4.0-SNAPSHOT

2015-02-25 Thread Sameera Jayasoma
Thanks for the quick response. Let me know once you are done.

Thanks,
Sameera.

On Thu, Feb 26, 2015 at 11:39 AM, Thanuja Jayasinghe than...@wso2.com
wrote:

 Hi Sameera,

 This test case need to be fixed. will do the needful.

 Thanks,
 Thanuja.

 On Thu, Feb 26, 2015 at 11:32 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 I am building carbon-registry by changing the kernel version to Carbon
 4.4.0-SNAPSHOT. I am getting the following build failure. This failure
 occurs due to the following PR.

 https://github.com/wso2/carbon4-kernel/pull/111

 Thanuja, can you have a look at this please? We need this to be fixed for
 the Carbon 4.4.0-release.


 Running
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).

 log4j:WARN Please initialize the log4j system properly.

 Warning: Could not get charToByteConverterClass!

 Feb 26, 2015 11:13:23 AM org.apache.tomcat.jdbc.pool.ConnectionPool init

 WARNING: maxIdle is larger than maxActive, setting maxIdle to: 50

 Listening for transport dt_socket at address: 11000

 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 129.964
 sec  FAILURE! - in
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

 testGetPerson1(org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest)
 Time elapsed: 129.956 sec   ERROR!

 org.wso2.carbon.registry.social.api.SocialDataException: Error while
 saving person with id admin

 at
 org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:103)

 at
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest.testGetPerson1(PersonManagerImplTest.java:142)

 Caused by: org.wso2.carbon.user.core.UserStoreException:
 org.wso2.carbon.user.core.UserStoreException: Invalid claim URI value

 at
 org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1872)

 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:978)

 at
 org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:100)

 ... 23 more

 Caused by: org.wso2.carbon.user.core.UserStoreException: Invalid claim
 URI value

 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.getClaimAtrribute(AbstractUserStoreManager.java:814)

 at
 org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1857)

 ... 25 more



 Results :


 Tests in error:


 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest#testGetPerson1
 SocialDataException


 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0


 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891 +94758009992




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Removing ndatasource.rdbms dependencies from user.core

2015-02-24 Thread Sameera Jayasoma
Hi SupunM,

Can you review this and commit?

Thanks,
Sameera.

On Tue, Feb 24, 2015 at 1:47 PM, Chanika Geeganage chan...@wso2.com wrote:

 Done the changes according to comments

 @Kernel Team,

 Can you please merge the PR
 https://github.com/wso2/carbon4-kernel/pull/147

 Thanks

 On Tue, Feb 24, 2015 at 1:04 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Commented on the PR. Once resolved can merge PR.

 On Tue, Feb 24, 2015 at 12:29 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 Hi,

 The user.core depends on ndatasource.rdbms module to get a datasource
 for realm datasource and user store datasource. Recently we had to add
 ndatasource.core dependency to ndatasource.rdbms module in order to fix an
 issue. Then it created a cyclic dependency with the following order.

 org.wso2.carbon.ndatasource.core -- org.wso2.carbon.core --
 org.wso2.carbon.registry.core -- org.wso2.carbon.user.core --
 org.wso2.carbon.ndatasource.rdbms -- org.wso2.carbon.ndatasource.core

 As the user.core module is in top of the dependency tree, it should not
 be depend on a module which is in the lower level in the dependency tree.
 Therefore I have changed the user.core module to directly get datasource
 using tomcat.jdbc.pool.DataSource. The PR [1] has the changes done.

 @Johann Please review the PR

 [1] https://github.com/wso2/carbon4-kernel/pull/147

 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 Mobile : +94773522586
 WSO2, Inc.; http://wso2.com




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*




 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 Mobile : +94773522586
 WSO2, Inc.; http://wso2.com




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] [Java 8] Registry.core Unit Tests Fails Intermittently in Java 8

2015-02-24 Thread Sameera Jayasoma
Hi Folks,

Registry unit tests depends on the order of test methods. This order is the
order of method declarations in a test class. Following is a sample class.
If the tests methods are executed in the following declared order, then
everything works fine. This was the behavior in Java 6. Junit retrieves the
list of test methods using Java reflection and in Java 6 returned list of
method are in the declared order.

CustomQueryTest  extends BaseTestCase {
+ *testAssociationsQuery*();
+ *testAssociationsCollectionQuery*() ;
+ *testQueryAsParameter*();
+ *testCustomQueryResultsOrderForComments*();
+ *testCustomQueryResultsOrderForResources*();
}

But in Java 8, reflections API behavior has been changed it seems. Order of
the list of methods of a class changes time to time. Because of this
behavior in Java 8, there are test failures in Registry.core module. Senaka
and myself arrive at this conclusion at the same time it seems :)

We've got multiple options to solve this problem.

1) Fix the inter-dependency issues of registry.core unit tests. This will
take a bit of time and if we do this, we won't be able to release Carbon
4.4.0 on time.
*2)* Migration to JUnit 4.*. This was released sometime back and we should
have moved to this or TestNG. in JUnit 4.*, they are introduced annotation
based test declaration like TestNG. Therefore we can change the failing
test classes in the following manner.

   - Rename test methods with numbers to that we can sort them in ascending
   order
   - User the class level annotation called @FixMethodOrder to specify the
   test method execution order.

@FixMethodOrder(*MethodSorters.NAME_ASCENDING*)
CustomQueryTest  extends BaseTestCase {
  @Test
+ *test1AssociationsQuery*();
  @Test
+ *test2**AssociationsCollectionQuery*() ;
  @Test
+ *test3**QueryAsParameter*();
  @Test
+ *test4**CustomQueryResultsOrderForComments*();
  @Test
+ *test5**CustomQueryResultsOrderForResources*();
}

Once this change is done is few test classes, registry.core unit tests are
passing. I've attached a sample diff file as well.

If there are no objections from the Registry team, I will go ahead and
follow this method as a workaround. I've already created a Jira to fix this
properly.

https://wso2.org/jira/browse/CARBON-15183

Thanks,
Sameera.


-- Forwarded message --
From: Senaka Fernando sen...@wso2.com
Date: Wed, Feb 25, 2015 at 1:37 AM
Subject: Re: test failues
To: Sameera Jayasoma same...@wso2.com


Hi Sameera,

Going by your findings I did some research.

So, the cause of this can be this, [1]. The reflection APIs have been
improved in JDK 8, which could explain the reason why JUnit sees the order
of the methods in a different way. IINM the registry test ordering was
fixed roughly when we first started running on JDK 6, and so it must have
stayed good until the new JDK. But, this can also mean few other things.
Reflection is also used in components and dependencies like Axis2, which
can be broken in some ways. Best to keep an eye.

WRT JUnit 4, on a separate note, IMHO, we should have been running that for
sometime now, it was released ages back right?

[1]
http://docs.oracle.com/javase/8/docs/technotes/guides/reflection/enhancements.html

Thanks,
Senaka.


On Tue, Feb 24, 2015 at 7:59 PM, Senaka Fernando sen...@wso2.com wrote:

 Ah ok, :). We came into the same conclusion then :). No objections, the
 registry team can look into this.

 Thanks,
 Senaka.

 On Tue, Feb 24, 2015 at 7:56 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Looks like after migrating to Junit 4* and using the following method
 order works fine.

 @FixMethodOrder(MethodSorters.NAME_ASCENDING)


 Any objections for this temporary solution until registry team fix the
 test failures

 On Tue, Feb 24, 2015 at 11:58 PM, Sameera Jayasoma same...@wso2.com
 wrote:



 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --


 *[image: http://wso2.com] http://wso2.comSenaka Fernando*
 Solutions Architect; WSO2 Inc.; http://wso2.com



 *Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware




-- 


*[image: http://wso2.com] http

Re: [Dev] Please merge PR for IDENTITY-3052 and APPM-333

2015-02-23 Thread Sameera Jayasoma
SupunM, Can you look into the if this not already done?


Thanks,
Sameera.

On Thu, Feb 19, 2015 at 12:17 PM, Chanuka Dissanayake chan...@wso2.com
wrote:

 Hi,

 $subject. Contains fixes for [1] and [2]. PR is in [3].

 [1] https://wso2.org/jira/browse/APPM-333
 [2] https://wso2.org/jira/browse/IDENTITY-3052
 [3] https://github.com/wso2/carbon4-kernel/pull/140

 Thanks,
 Chanuka.
 --
 Chanuka Dissanayake
 *Software Engineer | **WSO2 Inc.*; http://wso2.com

 Mobile: +94 71 33 63 596
 Email: chan...@wso2.com




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Orbit] Please merge the PR for Spark core, sql v1.2.1 and other dependencies

2015-02-23 Thread Sameera Jayasoma
KasunG can you have a look at this.


On Tue, Feb 24, 2015 at 10:20 AM, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 Please review and merge this PR [1]

 It adds the spark core and sql v1.2.1 to the orbit together with,
 hadoop-client v2.2.0
 Uncommons Math v1.2.2
 json4s-jackson_2.10 v3.2.10
 twitter chill and java v0.5.0
 stream v2.2.0

 Would be very grateful if you could attend to this ASAP because we have
 scheduled a M1 release by the EOD today 24th Feb.

 I have reviewed the spark core and sql bundles with KIshanthan last week.
 Much appreciate if you could go through the poms nevertheless.

 cheers

 [1] https://github.com/wso2/orbit/pull/65

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [CARBON][SS] Incorrect Behavior - Carbon Login by Changing Default User

2015-02-16 Thread Sameera Jayasoma
Noted. I believe this is related to user.core component. Hence looping
Johann. Please assign this an IS team member. :)

On Mon, Feb 16, 2015 at 6:27 PM, Aparna Karunarathna apa...@wso2.com
wrote:

 [adding carbon team]

 On Mon, Feb 16, 2015 at 6:19 PM, Chaminda Jayawardena chami...@wso2.com
 wrote:

 Hi All,

 Noticed an incorrect behavior in carbon login when it changed the default
 carbon user's username and password by below steps.

 1. Changed the username and password in repository/conf/user-mgt.xml [in
 a Storage Server fresh pack]
 *AdminUser*
 * UserNamessadmin/UserName*
 * PasswordSs@dmin123/Password*
 */AdminUser*

 2. Remove all in repository/database/
 3. Remove all in repository/data/org.wso2.carbon.directory/
 4. Start the server with -Dsetup
 5. Try to log in to new user name and password which we set in above[1] -
 this is ok
 6. and then try to log in with admin/admin - this is also working but
 should not be worked.

 Please correct if I missed anything here.

 Please find the jira : https://wso2.org/jira/browse/SS-528

 --
 Thanks  Regards

 *Chaminda Jayawardena*
 Senior Software Engineer - QA
 WSO2 Inc. - http://wso2.com
 +94-77-7725234




 --
 *Regards,*
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533*




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Can we use ELB 2.1.1 to cluster Carbon 4.3.0 products?

2015-02-12 Thread Sameera Jayasoma
Hi Nirodha,

I don't this is possible, but we could patch few components in ELB and get
it done. Btw, we no longer recommend to use ELB.

Thanks,
Sameera.

On Thu, Feb 12, 2015 at 12:29 PM, Nirodha Pramod niro...@wso2.com wrote:

 Hi,

 Is it possible to use ELB 2.1.1 for cluster Carbon 4.3.0 products.
 Hazelcast versions in those two differ.

 Carbon 4.3.0 - hazelcast_3.2.6.wso2v3.jar
 ESB 2.1.1 - hazelcast_3.0.1.wso2v1.jar


 Thanks,
 Nirodha

 --

 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Clustering] DepSync not working in tenant mode

2015-02-05 Thread Sameera Jayasoma
 maheeka.com in 6137 ms


 Thanks,

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Explanation on carbon-p2-plugin tags...

2015-02-05 Thread Sameera Jayasoma
Hi Niranda,

I don't we have single document which describe all the functions of the
Carbon P2 plugin. Carbon P2 plugin helps you to build Carbon feature, build
products, create P2 repositories, Install features to products etc.  These
functions are documented in various product docs, articles and blogs.

Thanks,
Sameera.

On Thu, Feb 5, 2015 at 12:20 PM, Niranda Perera nira...@wso2.com wrote:

 Hi all,

 Are there any documentation regarding the carbon p2 plugin tags and their
 uses?

 Rgds

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please merge pull request - Cassandra 1.2.13.wso2v6

2015-01-27 Thread Sameera Jayasoma
Hi Bhathiya,

There is a problem with the license header. With that new model, we only
put the year e.g. 2015

On Tue, Jan 27, 2015 at 3:13 PM, Bhathiya Jayasekara bhath...@wso2.com
wrote:

 Hi Sameera,

 1) License year is fixed.
 2) Cassandra authentication and authorization module allows us to plug
 external handlers. Those handlers are defined in config files. To import
 them at runtime, Cassandra needs to have Dynamic import package property.
 Anyway I added required import packages with correct correct versions.


+1 for putting Dynamic imports for this reason.


 Thanks,
 Bhathiya

 On Tue, Jan 27, 2015 at 11:12 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Bhathiya

 1) License year is wrong in the PR.
 2) Can you explain the reason for putting Dynamic import package?

 Thanks,
 Sameera.

 On Tue, Jan 27, 2015 at 11:10 AM, Manoj Kumara ma...@wso2.com wrote:

 Hi Kasun,

 I have reviewe the pull request. Can you merge.

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Mon, Jan 26, 2015 at 11:16 PM, Bhathiya Jayasekara bhath...@wso2.com
  wrote:

 Hi Sameera,

 I created a new Cassandra orbit bundle with updated dependencies.
 Please review and merge the pull request[1].

 [1] https://github.com/wso2/orbit/pull/59

 Thanks,
 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*

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





 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please merge pull request - Cassandra 1.2.13.wso2v6

2015-01-27 Thread Sameera Jayasoma
Merged the PR. I hope you've tested this orbit bundle well. Once released
we can't modify its contents.

Maheshika, can you release this orbit bundle?

On Tue, Jan 27, 2015 at 10:41 PM, Bhathiya Jayasekara bhath...@wso2.com
wrote:

 Hi Sameera,

 On Tue, Jan 27, 2015 at 7:42 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Bhathiya,

 There is a problem with the license header. With that new model, we only
 put the year e.g. 2015


 Fixed this too.

 Thanks,
 Bhathiya



 On Tue, Jan 27, 2015 at 3:13 PM, Bhathiya Jayasekara bhath...@wso2.com
 wrote:

 Hi Sameera,

 1) License year is fixed.
 2) Cassandra authentication and authorization module allows us to plug
 external handlers. Those handlers are defined in config files. To import
 them at runtime, Cassandra needs to have Dynamic import package property.
 Anyway I added required import packages with correct correct versions.


 +1 for putting Dynamic imports for this reason.


 Thanks,
 Bhathiya

 On Tue, Jan 27, 2015 at 11:12 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Bhathiya

 1) License year is wrong in the PR.
 2) Can you explain the reason for putting Dynamic import package?

 Thanks,
 Sameera.

 On Tue, Jan 27, 2015 at 11:10 AM, Manoj Kumara ma...@wso2.com wrote:

 Hi Kasun,

 I have reviewe the pull request. Can you merge.

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Mon, Jan 26, 2015 at 11:16 PM, Bhathiya Jayasekara 
 bhath...@wso2.com wrote:

 Hi Sameera,

 I created a new Cassandra orbit bundle with updated dependencies.
 Please review and merge the pull request[1].

 [1] https://github.com/wso2/orbit/pull/59

 Thanks,
 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax
 https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*

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





 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Please merge pull request - Cassandra 1.2.13.wso2v6

2015-01-26 Thread Sameera Jayasoma
Hi Bhathiya

1) License year is wrong in the PR.
2) Can you explain the reason for putting Dynamic import package?

Thanks,
Sameera.

On Tue, Jan 27, 2015 at 11:10 AM, Manoj Kumara ma...@wso2.com wrote:

 Hi Kasun,

 I have reviewe the pull request. Can you merge.

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Mon, Jan 26, 2015 at 11:16 PM, Bhathiya Jayasekara bhath...@wso2.com
 wrote:

 Hi Sameera,

 I created a new Cassandra orbit bundle with updated dependencies. Please
 review and merge the pull request[1].

 [1] https://github.com/wso2/orbit/pull/59

 Thanks,
 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*

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





-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Missing features in Release Nexus Repo

2015-01-26 Thread Sameera Jayasoma
Hi Harshan.

I've got few questions

1) What is the carbon version that guys depends on?
2) Only following features from the above list has been release in chunk
-14 as per this link

http://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk14/product-releases/chunk-14/features/pom.xml

org.wso2.carbon.databridge.datapublisher.feature
org.wso2.carbon.registry.extensions.feature
org.wso2.carbon.registry.contentsearch.feature
org.wso2.carbon.governance.metadata.feature
org.wso2.carbon.governance.lifecycle.management.feature

Thanks,
Sameera.

On Tue, Jan 27, 2015 at 11:51 AM, Harshan Liyanage hars...@wso2.com wrote:

 Hi all,

 Following carbon features have released under chunk-14 [1]  available in
 snapshots repo [2]. But those features are not available in the release
 nexus repo [3]. We are expecting to do a CDM M1 release today. We have a
 blocker due to the unavailability of those features in nexus release repo.
 Could the respective product-teams do the needful please?

 org.wso2.carbon.webapp.mgt.feature
 org.wso2.carbon.transport.mgt.feature
 org.wso2.carbon.service.mgt.feature
 org.wso2.carbon.security.mgt.server.feature
 org.wso2.carbon.security.mgt.feature
 org.wso2.carbon.module.mgt.feature
 org.wso2.carbon.as.runtimes.cxf.feature
 org.wso2.carbon.logging.mgt.feature
 org.wso2.carbon.databridge.datapublisher.feature
 org.wso2.carbon.event.server.feature
 org.wso2.carbon.registry.core.server.feature
 org.wso2.carbon.registry.ui.menu.feature
 org.wso2.carbon.registry.resource.properties.feature
 org.wso2.carbon.registry.associations.dependencies.feature
 org.wso2.carbon.registry.community.features.feature
 org.wso2.carbon.registry.community.features.server.feature
 org.wso2.carbon.registry.extensions.feature
 org.wso2.carbon.registry.ws.feature
 org.wso2.carbon.registry.ui.menu.governance.feature
 org.wso2.carbon.registry.contentsearch.feature
 org.wso2.carbon.governance.metadata.feature
 org.wso2.carbon.governance.lifecycle.management.feature

 [1].
 http://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk14/features/
 [2].
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/
 [3].
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/

 Thanks,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Merge the pull request

2015-01-13 Thread Sameera Jayasoma
Done

On Wed, Jan 14, 2015 at 6:14 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Sameera,

 We will go ahead with 3.0.0.wso2v5.

 Please check and merge

 On Mon, Jan 12, 2015 at 12:29 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 I just noticed we are packaging bsf 3.0-beta3 are 3.0.0.wso2v5. Is this
 correct?  Shouldn't it be 3.0.0.beta3-wso2v5

 On Mon, Jan 12, 2015 at 12:14 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Sameera,

 It's done. Please check now.

 On Mon, Jan 12, 2015 at 11:57 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Malaka,

 I can't merge this automatically for some reason. Can you remove the
 entry from the parent pom and see?

 Thanks,
 Sameera.

 On Mon, Jan 12, 2015 at 11:30 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Sameera,

 I have removed the parent pom and created a new version.

 Please check and merge.

 [1] https://github.com/wso2/orbit/pull/50

 On Mon, Jan 12, 2015 at 10:23 AM, Malaka Silva mal...@wso2.com
 wrote:

 Hi,

 Last build was Success since I have reverted the fix.

 I will remove the parent and send a new version of BSF.

 On Sun, Jan 11, 2015 at 2:39 PM, Maheshika Goonetilleke 
 mahesh...@wso2.com wrote:

 Hi Malaka

 The latest build is successful[1].

 As explained by Manoj you will require removing the 'parent' from
 the pom since we don't use it anymore.

 [1] https://wso2.org/jenkins-pr-builder/job/carbon-mediation/180/

 On Sun, Jan 11, 2015 at 1:49 PM, Manoj Kumara ma...@wso2.com
 wrote:

 Hi Malaka,

 You need to remove the parent entry from your orbit bundle.

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Sun, Jan 11, 2015 at 2:07 AM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Sameera,

 This works fine locally. Issue is with the Jenkins builder. [1]

 What is the way forward?

 1) Can we get orbit pom released to nexus?
 2) Remove the parent from [2]?

 [1]
 https://wso2.org/jenkins-pr-builder/job/carbon-mediation/179/consoleText
 [2]
 https://github.com/wso2/orbit/blob/master/bsf/3.0.0.wso2v4/pom.xml

 On Sun, Jan 11, 2015 at 8:42 AM, Sameera Jayasoma 
 same...@wso2.com wrote:

 You've specified orbit pom as the parent pom of the orbit bundle.
 But we've not released this orbit pom to nexus.

 Can you remove all modules in the orbit pom and build it locally?
 Then try to build bsf bundle.

 Thanks,
 Sameera.

 On Sat, Jan 10, 2015 at 3:43 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Sameera,

 I am getting the following after upgrading the feature to
 bsf-all:jar:3.0.0.wso2v4 any idea?

 [ERROR] Failed to execute goal on project
 org.wso2.carbon.mediators.server.feature: Could not resolve 
 dependencies
 for project
 org.wso2.carbon:org.wso2.carbon.mediators.server.feature:pom:4.3.0-SNAPSHOT:
 Failed to collect dependencies for
 [org.wso2.carbon:org.wso2.carbon.mediator.clazz.services:jar:4.3.0-SNAPSHOT
 (compile),
 org.wso2.carbon:org.wso2.carbon.mediator.command.services:jar:4.3.0-SNAPSHOT
 (compile),
 org.wso2.carbon:org.wso2.carbon.mediator.router.impl:jar:4.3.0-SNAPSHOT
 (compile),
 org.wso2.carbon:org.wso2.carbon.mediator.fastXSLT:jar:4.3.0-SNAPSHOT
 (compile), org.wso2.carbon:org.wso2.carbon.ec2-client:jar:4.2.0 
 (compile),
 org.apache.bsf.wso2:bsf-all:jar:3.0.0.wso2v4 (compile),
 rhino.wso2:js:jar:1.7.0.R4.wso2v1 (compile),
 org.wso2.carbon:org.wso2.carbon.mediator.event:jar:4.3.0-SNAPSHOT
 (compile)]: Failed to read artifact descriptor for
 org.apache.bsf.wso2:bsf-all:jar:3.0.0.wso2v4: Failure to find
 org.wso2.carbon:orbit-parent:pom:4.3.0-SNAPSHOT in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was
 cached in the local repository, resolution will not be reattempted 
 until
 the update interval of wso2-nexus has elapsed or updates are forced 
 -
 [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven
 with the -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug
 logging.


 On Wed, Jan 7, 2015 at 6:13 AM, Malaka Silva mal...@wso2.com
 wrote:

 Great Thx. Will Check

 On Tue, Jan 6, 2015 at 11:37 PM, Maheshika Goonetilleke 
 mahesh...@wso2.com wrote:

 Hi Sameera and Malaka

 Deployed successfully.

 On Tue, Jan 6, 2015 at 7:18 PM, Sameera Jayasoma 
 same...@wso2.com wrote:

 Hi Maheshika,

 Can you please release this orbit bundle?

 Thanks,
 Sameera.

 On Tue, Jan 6, 2015 at 3:26 PM, Malaka Silva mal...@wso2.com
  wrote:

 Hi Sameera,

 Changed the pull request accordingly. Please merge.

 On Tue, Jan 6, 2015 at 3:22 PM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Maheshika,

 Changed the pull request accordingly. Please merge.

 On Tue, Jan 6, 2015 at 10:55 AM, Malaka Silva 
 mal...@wso2.com wrote:

 sure will do

 On Tue, Jan 6, 2015 at 10:53 AM, Manoj Kumara 
 ma...@wso2.com wrote:

 Hi Malaka,

 Please create a public jira as well to track this.

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile

  1   2   3   4   5   6   7   8   9   10   >