[Dev] Fixing msf4j feature to work in an OSGi environment

2016-04-27 Thread Hasitha Aravinda
Hi Sameera and Azeez,

Shall we merge PR [1], since it is blocker for C5 based BPS development. I
have locally verified the fix.

[1] - https://github.com/wso2/msf4j/pull/167

​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


Re: [Dev] [AppM] Response field filter for REST API

2016-04-27 Thread Jenananthan Yogendran
Why don't you use *field_filter=MANDATORY * instead of using
*field_filter=TOUCH
, * Where *MANDATORY * should return the attributes which are mandatory
while creating an app ?

On Thu, Apr 28, 2016 at 11:18 AM, Lahiru Cooray  wrote:

> Hi Rushmin,
> It's just a term which gives a similar meaning for our requirement. Please
> share if there are any better/standard terms.
>
> On Thu, Apr 28, 2016 at 11:06 AM, Rushmin Fernando 
> wrote:
>
>> @Dilshan : Lahiru is talking about the amount of the information in one
>> object (e.g. whether we return all the fields of a mobile app or few fields)
>>
>> @Lahiru : From where does the term "TOUCH" come from ?
>>
>> On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya <
>> ed.dils...@gmail.com> wrote:
>>
>>> As in other products[1] why don't you follow the limit offset approach?
>>> It has to be consistent among the platform?
>>>
>>> [1] -
>>> https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java
>>>
>>> Regards,
>>>
>>> Dilshan
>>>
>>> On 28 April 2016 at 10:53, Lahiru Cooray  wrote:
>>>
 Hi,
 We are currently implementing REST API for AppM and we need to
 introduce a response field filter to limit the response(fields).
 So I propose to use the a query param, *?field_filter=TOUCH* (returns
 basic data which is default) and *?field_filter=ALL* (returns complete
 dataset).
 Please share your thoughts.

 *eg:*
 /apps?field_filter=TOUCH (which is default)
 {
   "previous": "",
   "next": "",
   "list": [
 {
   "name": "app1",
   "context": "/app1",
   "id": "65c8485d-11d9-4f05-a418-17dfb737e165"
 },
 {
   "name": "app2",
   "context": "/app2",
   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050"
 }
   ],
   "count": 2
 }

 /apps?field_filter=All
 {
   "previous": "",
   "next": "",
   "list": [
 {
   "name": "app1",
   "context": "/app1",
   "id": "65c8485d-11d9-4f05-a418-17dfb737e165",
   "provider": "admin",
   "description": " ",
   "version": "1.0",
   "lifecycleState": "CREATED"
 },
 {
   "name": "app2",
   "context": "/app2",
   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050",
   "provider": "admin",
   "description": " ",
   "version": "1.0",
   "lifecycleState": "CREATED"
 }
   ],
   "count": 2
 }

 --
 *Lahiru Cooray*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware

 Mobile: +94 715 654154

 ___
 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
>>>
>>>
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> mobile : +94772310855
>>
>>
>>
>
>
> --
> *Lahiru Cooray*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
>
> Mobile: +94 715 654154
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Jenananthan Yogendran
*Software Engineer,*
*WSO2 inc., http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] Response field filter for REST API

2016-04-27 Thread Lahiru Cooray
Hi Rushmin,
It's just a term which gives a similar meaning for our requirement. Please
share if there are any better/standard terms.

On Thu, Apr 28, 2016 at 11:06 AM, Rushmin Fernando  wrote:

> @Dilshan : Lahiru is talking about the amount of the information in one
> object (e.g. whether we return all the fields of a mobile app or few fields)
>
> @Lahiru : From where does the term "TOUCH" come from ?
>
> On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya <
> ed.dils...@gmail.com> wrote:
>
>> As in other products[1] why don't you follow the limit offset approach?
>> It has to be consistent among the platform?
>>
>> [1] -
>> https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java
>>
>> Regards,
>>
>> Dilshan
>>
>> On 28 April 2016 at 10:53, Lahiru Cooray  wrote:
>>
>>> Hi,
>>> We are currently implementing REST API for AppM and we need to introduce
>>> a response field filter to limit the response(fields).
>>> So I propose to use the a query param, *?field_filter=TOUCH* (returns
>>> basic data which is default) and *?field_filter=ALL* (returns complete
>>> dataset).
>>> Please share your thoughts.
>>>
>>> *eg:*
>>> /apps?field_filter=TOUCH (which is default)
>>> {
>>>   "previous": "",
>>>   "next": "",
>>>   "list": [
>>> {
>>>   "name": "app1",
>>>   "context": "/app1",
>>>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165"
>>> },
>>> {
>>>   "name": "app2",
>>>   "context": "/app2",
>>>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050"
>>> }
>>>   ],
>>>   "count": 2
>>> }
>>>
>>> /apps?field_filter=All
>>> {
>>>   "previous": "",
>>>   "next": "",
>>>   "list": [
>>> {
>>>   "name": "app1",
>>>   "context": "/app1",
>>>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165",
>>>   "provider": "admin",
>>>   "description": " ",
>>>   "version": "1.0",
>>>   "lifecycleState": "CREATED"
>>> },
>>> {
>>>   "name": "app2",
>>>   "context": "/app2",
>>>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050",
>>>   "provider": "admin",
>>>   "description": " ",
>>>   "version": "1.0",
>>>   "lifecycleState": "CREATED"
>>> }
>>>   ],
>>>   "count": 2
>>> }
>>>
>>> --
>>> *Lahiru Cooray*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 715 654154
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>


-- 
*Lahiru Cooray*
Software Engineer
WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware

Mobile: +94 715 654154
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Nipuna Chandradasa

2016-04-27 Thread Sinthuja Ragendran
Hi all,

It's my pleasure to welcome Nipuna Chandradasa as WSO2 committer. Nipuna is
a key member of dashboard server team, and has contributed a lot to the DS
2.0.0 release including doing the performance test. Hence in recognition of
his contributions, ownership shown towards the tasks and responsibilities
assigned to him and commitment, he has been voted as WSO2 committer.

Nipuna, welcome aboard and keep up the good work!

Thanks,
Sinthuja.
-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] Response field filter for REST API

2016-04-27 Thread Lahiru Cooray
Hi Dilshan,
Yes we have followed the offset/limit approach to limit the response length
(eg: no of apps returned)
But here our requirement is to limit the data/field in response (eg:
attributes of an app)


On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya 
wrote:

> As in other products[1] why don't you follow the limit offset approach? It
> has to be consistent among the platform?
>
> [1] -
> https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java
>
> Regards,
>
> Dilshan
>
> On 28 April 2016 at 10:53, Lahiru Cooray  wrote:
>
>> Hi,
>> We are currently implementing REST API for AppM and we need to introduce
>> a response field filter to limit the response(fields).
>> So I propose to use the a query param, *?field_filter=TOUCH* (returns
>> basic data which is default) and *?field_filter=ALL* (returns complete
>> dataset).
>> Please share your thoughts.
>>
>> *eg:*
>> /apps?field_filter=TOUCH (which is default)
>> {
>>   "previous": "",
>>   "next": "",
>>   "list": [
>> {
>>   "name": "app1",
>>   "context": "/app1",
>>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165"
>> },
>> {
>>   "name": "app2",
>>   "context": "/app2",
>>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050"
>> }
>>   ],
>>   "count": 2
>> }
>>
>> /apps?field_filter=All
>> {
>>   "previous": "",
>>   "next": "",
>>   "list": [
>> {
>>   "name": "app1",
>>   "context": "/app1",
>>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165",
>>   "provider": "admin",
>>   "description": " ",
>>   "version": "1.0",
>>   "lifecycleState": "CREATED"
>> },
>> {
>>   "name": "app2",
>>   "context": "/app2",
>>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050",
>>   "provider": "admin",
>>   "description": " ",
>>   "version": "1.0",
>>   "lifecycleState": "CREATED"
>> }
>>   ],
>>   "count": 2
>> }
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Lahiru Cooray*
Software Engineer
WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware

Mobile: +94 715 654154
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] Response field filter for REST API

2016-04-27 Thread Rushmin Fernando
@Dilshan : Lahiru is talking about the amount of the information in one
object (e.g. whether we return all the fields of a mobile app or few fields)

@Lahiru : From where does the term "TOUCH" come from ?

On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya 
wrote:

> As in other products[1] why don't you follow the limit offset approach? It
> has to be consistent among the platform?
>
> [1] -
> https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java
>
> Regards,
>
> Dilshan
>
> On 28 April 2016 at 10:53, Lahiru Cooray  wrote:
>
>> Hi,
>> We are currently implementing REST API for AppM and we need to introduce
>> a response field filter to limit the response(fields).
>> So I propose to use the a query param, *?field_filter=TOUCH* (returns
>> basic data which is default) and *?field_filter=ALL* (returns complete
>> dataset).
>> Please share your thoughts.
>>
>> *eg:*
>> /apps?field_filter=TOUCH (which is default)
>> {
>>   "previous": "",
>>   "next": "",
>>   "list": [
>> {
>>   "name": "app1",
>>   "context": "/app1",
>>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165"
>> },
>> {
>>   "name": "app2",
>>   "context": "/app2",
>>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050"
>> }
>>   ],
>>   "count": 2
>> }
>>
>> /apps?field_filter=All
>> {
>>   "previous": "",
>>   "next": "",
>>   "list": [
>> {
>>   "name": "app1",
>>   "context": "/app1",
>>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165",
>>   "provider": "admin",
>>   "description": " ",
>>   "version": "1.0",
>>   "lifecycleState": "CREATED"
>> },
>> {
>>   "name": "app2",
>>   "context": "/app2",
>>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050",
>>   "provider": "admin",
>>   "description": " ",
>>   "version": "1.0",
>>   "lifecycleState": "CREATED"
>> }
>>   ],
>>   "count": 2
>> }
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>> ___
>> 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
>
>


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] Response field filter for REST API

2016-04-27 Thread Dilshan Edirisuriya
As in other products[1] why don't you follow the limit offset approach? It
has to be consistent among the platform?

[1] -
https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java

Regards,

Dilshan

On 28 April 2016 at 10:53, Lahiru Cooray  wrote:

> Hi,
> We are currently implementing REST API for AppM and we need to introduce a
> response field filter to limit the response(fields).
> So I propose to use the a query param, *?field_filter=TOUCH* (returns
> basic data which is default) and *?field_filter=ALL* (returns complete
> dataset).
> Please share your thoughts.
>
> *eg:*
> /apps?field_filter=TOUCH (which is default)
> {
>   "previous": "",
>   "next": "",
>   "list": [
> {
>   "name": "app1",
>   "context": "/app1",
>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165"
> },
> {
>   "name": "app2",
>   "context": "/app2",
>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050"
> }
>   ],
>   "count": 2
> }
>
> /apps?field_filter=All
> {
>   "previous": "",
>   "next": "",
>   "list": [
> {
>   "name": "app1",
>   "context": "/app1",
>   "id": "65c8485d-11d9-4f05-a418-17dfb737e165",
>   "provider": "admin",
>   "description": " ",
>   "version": "1.0",
>   "lifecycleState": "CREATED"
> },
> {
>   "name": "app2",
>   "context": "/app2",
>   "id": "c9ddf00d-c42f-4299-931c-bcda69c68050",
>   "provider": "admin",
>   "description": " ",
>   "version": "1.0",
>   "lifecycleState": "CREATED"
> }
>   ],
>   "count": 2
> }
>
> --
> *Lahiru Cooray*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
>
> Mobile: +94 715 654154
>
> ___
> 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


[Dev] [AppM] Response field filter for REST API

2016-04-27 Thread Lahiru Cooray
Hi,
We are currently implementing REST API for AppM and we need to introduce a
response field filter to limit the response(fields).
So I propose to use the a query param, *?field_filter=TOUCH* (returns basic
data which is default) and *?field_filter=ALL* (returns complete dataset).
Please share your thoughts.

*eg:*
/apps?field_filter=TOUCH (which is default)
{
  "previous": "",
  "next": "",
  "list": [
{
  "name": "app1",
  "context": "/app1",
  "id": "65c8485d-11d9-4f05-a418-17dfb737e165"
},
{
  "name": "app2",
  "context": "/app2",
  "id": "c9ddf00d-c42f-4299-931c-bcda69c68050"
}
  ],
  "count": 2
}

/apps?field_filter=All
{
  "previous": "",
  "next": "",
  "list": [
{
  "name": "app1",
  "context": "/app1",
  "id": "65c8485d-11d9-4f05-a418-17dfb737e165",
  "provider": "admin",
  "description": " ",
  "version": "1.0",
  "lifecycleState": "CREATED"
},
{
  "name": "app2",
  "context": "/app2",
  "id": "c9ddf00d-c42f-4299-931c-bcda69c68050",
  "provider": "admin",
  "description": " ",
  "version": "1.0",
  "lifecycleState": "CREATED"
}
  ],
  "count": 2
}

-- 
*Lahiru Cooray*
Software Engineer
WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware

Mobile: +94 715 654154
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling non-OSGi JARs within dropins capability

2016-04-27 Thread Chiranga Alwis
Hi Manuranga,

in addition to the above checks in relation with filtering out non-OSGi
bundles, in order to access the JAR file Manifest to retrieve the required
Manifest headers, I am using java.util.jar.JarFile

class. The code fragment within the getNewBundleInfo method, for retrieving
the Manifest information is as follows:

try (JarFile jarFile = new JarFile(bundlePath.toString())) {
Manifest manifest = jarFile.getManifest();
if ((manifest == null) || (manifest.getMainAttributes() == null)) {
throw new IOException("Invalid OSGi bundle found in the " +
Constants.DROPINS +
" directory: " + jarFile.toString());
} else {
String bundleSymbolicName =
manifest.getMainAttributes().getValue("Bundle-SymbolicName");
String bundleVersion =
manifest.getMainAttributes().getValue("Bundle-Version");

if (bundleSymbolicName == null || bundleVersion == null) {
throw new IOException(
"Required bundle manifest headers do not exist in
" + jarFile.toString());
} else {
if (bundleSymbolicName.contains(";")) {
bundleSymbolicName = bundleSymbolicName.split(";")[0];
}
}

//  checks whether this bundle is a fragment or not
boolean isFragment =
(manifest.getMainAttributes().getValue("Fragment-Host") != null);
int defaultBundleStartLevel = 4;
BundleInfo generated = new BundleInfo(bundleSymbolicName, bundleVersion,
"../../" + Constants.DROPINS + "/" + fileName,
defaultBundleStartLevel, isFragment);
return Optional.of(generated);
}
}

The above code fragment will be executed for every file path within the
dropins directory, which has a .jar extension. Since we are using the above
mentioned class, I believe that during the creation of the JarFile

instance (for each file with a .jar extension) will be checked for a
corrupted JAR.

The complete implementation of the above functionality can be accessed from
here

.


On Wed, Apr 27, 2016 at 7:45 PM, Manuranga Perera  wrote:

> no *other *file(s) will be written to the bundles.info file of the
>> particular profile, thus will not be picked up by the Carbon server.
>>
>
> Any reason why not only faulty bundle is ignored ?
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
Chiranga Alwis,
Software Engineering Intern,
+94 77 5930497
+94 77 6368208
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handle Exceptions during OSGI service registration

2016-04-27 Thread Fathima Dilhasha
Hi Thusitha,

So, our purpose is to catch any exception, error raising from active method
of the bundle and thus ensuring the normal flow of the OSGI framework and
the server.

That makes sense. Thanks.

Dilhasha

On Wed, Apr 27, 2016 at 11:17 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Fathima,
>
> AFAIK that is because, when an exception get thrown inside the active
> method of a particular component( and if we don;t catch it), it will raise
> to the system level and cause the OSGi framework stops the startup process.
>
> Thanks
> Thusitha
>
> On Wed, Apr 27, 2016 at 4:53 AM, Fathima Dilhasha 
> wrote:
>
>> Hi,
>>
>> I am developing a tool which requires an OSGI service to be registered. I
>> am trying to handle any exceptions occurring at the registration of
>> service.
>> (Refer the following code snippet)
>>
>> ..
>> try {
>>...
>>bundleContext.registerService(RoleMgtConfiguration.class.getName(), 
>> configuration, null);
>>...
>> } catch (Throwable e) {
>>log.error("Error while activating Role Management Common bundle", e);
>> }
>>
>>
>> AFAIU, the 'registerService' is throwing only exceptions. Is there a
>> particular reason to use 'Throwable' ?
>>
>> AFAIK, Throwable might catch JVM related errors as well.
>>
>> WDYT?
>>
>> 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 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>


-- 
Fathima Dilhasha
*Software Engineer*
Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
<%2B94%20%280%29%20773%20451194>
dilha...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [IS] Missing requirement in building product-is from source

2016-04-27 Thread Manujith Pallewatte
Hi Chamila,

I tried with maven 3.3 also with maven 3.0.5 as mentioned in the
requirements
I build product-is only before in a windows environment, with no issues,
but it didn't work in the current (ubuntu 16.04) environment
>From the link above[1] i have all prerequisites other than svn, since I
clone from git i believe svn is of no use


[1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites


On Wed, Apr 27, 2016 at 9:06 PM, Chamila Wijayarathna 
wrote:

> [adding dev]
>
> identity-framework should build without any issues, what is the maven
> version you are using? Can you check if you have all the requirement
> mentioned at [1] for building the identity server from source code. Was
> this building successfully previously?
>
> [1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites
>
> -- Forwarded message --
> From: Manujith Pallewatte 
> Date: Wed, Apr 27, 2016 at 7:49 PM
> Subject: Re: [IS] Missing requirement in building product-is from source
> To: Chamila Wijayarathna 
>
>
> Hi Chamila,
>
> Apparently identity framework didnt have the latest commits, I forked it
> today and pulled but It must have missed some commits
> Anyway I updated the local repo to all changes, but now identity framework
> gives an error in building
>
> "[ERROR] Failed to execute goal
> org.apache.felix:maven-scr-plugin:1.7.2:scr (generate-scr-scrdescriptor) on
> project org.wso2.carbon.identity.application.authentication.framework:
> Execution generate-scr-scrdescriptor of goal
> org.apache.felix:maven-scr-plugin:1.7.2:scr failed: Comparison method
> violates its general contract! -> [Help 1]"
>
> I google and found that this is a known bug of apache felix, but it didn't
> provide and solid way to solve other than to change jdk version
> I tried changing version with no luck, any ideas?
>
> Also found similar error in dev list
> http://mail.wso2.org/mailarchive/dev/2015-June/049912.html
>
> Thank You
>
> On Wed, Apr 27, 2016 at 4:46 PM, Chamila Wijayarathna 
> wrote:
>
>> Hi Manujith,
>>
>> It seems like your identity-framework or product-is is not upto date.
>>
>> Can you check what are the latest commits in both repos using git log and
>> check if commits merged within last few days are there in your local repo?
>>
>> Thank You!
>>
>> On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to setup the development environment to start working for
>>> GSOC on the identity server, and I already downloaded and build the
>>> carbon-identity-framework repo along with the extensions as mentioned in [1]
>>>
>>> Now I'm trying to build product-is from source as well, to make sure I
>>> have all the dependencies before doing in changes to the source, but
>>> running maven install in product is gives the following error
>>>
>>> "Missing requirement: Application Authentication Framework Server
>>> Feature 5.0.9.SNAPSHOT
>>> (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
>>> 5.0.9.SNAPSHOT) requires
>>> 'org.wso2.carbon.tenant.mgt.common.server.feature.group [4.4.8,4.5.0)' but
>>> it could not be found"
>>>
>>> I check the local maven repo and this package isnt available in it, so
>>> why is maven not downloading this from the remote repository?
>>>
>>> Thank You
>>>
>>>
>>> [1] https://gist.github.com/pulasthi7/3d365a3345371fd63f74
>>>
>>> --
>>>
>>>
>>>
>>> [image: Manujith Pallewatte on about.me]
>>>
>>> Manujith Pallewatte
>>> about.me/manzzup
>>>   
>>>
>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
>
>
>
> [image: Manujith Pallewatte on about.me]
>
> Manujith Pallewatte
> about.me/manzzup
>   
>
>
>
> --
> *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
>
>


-- 



[image: Manujith Pallewatte on about.me]

Manujith Pallewatte
about.me/manzzup
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 API Manager 2.0.0-ALPHA Released!

2016-04-27 Thread Bhathiya Jayasekara
*WSO2 API Manager 2.0.0-ALPHA Released!*


WSO2 API Manager team is pleased to announce WSO2 API Manager 2.0.0-ALPHA
release. Download distribution here
.
This release comes with following new features, bug fixes and improvements.

Bug Fixes

   - [APIMANAGER-4562 ] -
   Grammatical error in 'not authorized' response
   - [APIMANAGER-4624 ] -
   Exception when creating an application and generating access token with the
   same name which was previously deleted
   - [APIMANAGER-4634 ] -
   Grammer mistake on error response when provided access token is invalid
   - [APIMANAGER-4636 ] -
   Admin Dashboard URL is not listed at startup
   - [APIMANAGER-4648 ] -
   Upgrade swagger editor version to 2.9.9
   - [APIMANAGER-4649 ] -
   Both transport protocols has the same name 'HTTPS' in Publisher
   - [APIMANAGER-4653 ] -
   Cannot start the APIM M2 pack on windows
   - [APIMANAGER-4675 ] -
   Tier Availability is shown as null in API overview page

Improvements

   - [APIMANAGER-4659 ] -
   Adding new Statistics graphs for the APIM publisher

New Features

   - [APIMANAGER-4598 ] -
   Client side SDK generation feature
   - [APIMANAGER-4605 ] -
   Notify subscribers of new API Versions
   - [APIMANAGER-4606 ] - API
   Manager latency Breakdown Graph On API
   - [APIMANAGER-4628 ] - SDK
   Support for Applications on the API Store
   - [APIMANAGER-4629 ] - Use
   the WSO2 Bootstrap theme for the Publisher and Store
   - [APIMANAGER-4660 ] -
   Advanced Throttling Implementation based on CEP

Tasks

   - [APIMANAGER-4564 ] -
   Upgrade Jaggery Version




Known Issues

For the list of known issues, click here
.


Reporting Problems
Issues can be reported through public JIRA
 project assigned to WSO2 APIM.


Thanks,
API Manager team
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [ESB] [LDAP Connector] SSL connection (port 636)

2016-04-27 Thread Malaka Silva
Hi Willian,

Please report the issue in [1]. Our team will follow it.

[1] https://wso2.org/jira/browse/ESBCONNECT

On Thu, Apr 28, 2016 at 12:44 AM, Willian Antunes <
willian.lima.antu...@gmail.com> wrote:

> Hello community,
>
> I can connect smoothly using port 389 through LDAP Connector. There is no
> restrictions in a scenario where my route engine uses a non-secure port,
> but as far as I can see the component does not support SSL connection (as
> informed in the links below). Is it true?
>
>- Component GitHub project
>
>- LDAP in WSO2 Store
>
> 
>
> If so do I need to open an issue in GitHub?
>
> Thank you!
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Deployment fails when deploying s3 connector from store

2016-04-27 Thread Malaka Silva
Hi Keerthika,

Did you experience this while testing the s3 connector?

Can we upload a stable version to the store after verification is done.

-- Forwarded message --
From: Rajjaz Mohammed 
Date: Wed, Apr 27, 2016 at 11:06 PM
Subject: Deployment fails when deploying s3 connector from store
To: Malaka Silva 
Cc: Elilmatha Sivanesan 


Hi,

Please check the question[1] in stackoverflow regarding Amazon S3
connector. I also experienced the same error[2] but i build connector from
source and it's deploying without error[3] .

[1]
http://stackoverflow.com/questions/36869587/deployment-fails-when-uploading-s3-connector-to-wso2esb

[2]
[2016-04-27 22:47:02,619] ERROR - LibraryArtifactDeployer Deployment of
synapse artifact failed for synapse libray at :
/home/rajjaz/Documents/wso2esb-4.9.0/repository/deployment/server/synapse-libs/amazons3-connector-1.0.0.zip
: Error when resolving Dependencies for lib :
{org.wso2.carbon.connector}amazons3
org.apache.synapse.deployers.SynapseArtifactDeploymentException: Error when
resolving Dependencies for lib : {org.wso2.carbon.connector}amazons3
at
org.apache.synapse.libraries.util.LibDeployerUtils.searchAndResolveDependencies(LibDeployerUtils.java:244)
at
org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:80)
at
org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
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)

[3]
[2016-04-27 22:43:17,557]  INFO - LibraryArtifactDeployer Synapse Library
named '{org.wso2.carbon.connector}amazons3' has been deployed from file :
/home/rajjaz/Documents/wso2esb-4.9.0/repository/deployment/server/synapse-libs/amazons3-connector-1.0.1-SNAPSHOT.zip
[2016-04-27 22:43:20,621]  INFO - SynapseImportFactory Successfully created
Synapse Import: amazons3


-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
Platform Extension Team
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | raj...@wso2.com
LinkedIn  | Blogger
 | WSO2 Profile




-- 

Best Regards,

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

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

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [ESB] [LDAP Connector] SSL connection (port 636)

2016-04-27 Thread Willian Antunes
Hello community,

I can connect smoothly using port 389 through LDAP Connector. There is no
restrictions in a scenario where my route engine uses a non-secure port,
but as far as I can see the component does not support SSL connection (as
informed in the links below). Is it true?

   - Component GitHub project
   
   - LDAP in WSO2 Store
   


If so do I need to open an issue in GitHub?

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


Re: [Dev] Handle Exceptions during OSGI service registration

2016-04-27 Thread Thusitha Thilina Dayaratne
Hi Fathima,

AFAIK that is because, when an exception get thrown inside the active
method of a particular component( and if we don;t catch it), it will raise
to the system level and cause the OSGi framework stops the startup process.

Thanks
Thusitha

On Wed, Apr 27, 2016 at 4:53 AM, Fathima Dilhasha  wrote:

> Hi,
>
> I am developing a tool which requires an OSGI service to be registered. I
> am trying to handle any exceptions occurring at the registration of
> service.
> (Refer the following code snippet)
>
> ..
> try {
>...
>bundleContext.registerService(RoleMgtConfiguration.class.getName(), 
> configuration, null);
>...
> } catch (Throwable e) {
>log.error("Error while activating Role Management Common bundle", e);
> }
>
>
> AFAIU, the 'registerService' is throwing only exceptions. Is there a
> particular reason to use 'Throwable' ?
>
> AFAIK, Throwable might catch JVM related errors as well.
>
> WDYT?
>
> 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 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Strange error that I encounter

2016-04-27 Thread Manuranga Perera
That will work ,but since it's a "busy loop", better to use a sleep instead.
eg:
java.lang.Thread.sleep(1000);
This works because you can write java inside Jaggery.

On Wed, Apr 27, 2016 at 12:19 PM, Nalin Sugathapala  wrote:

> Hi Manu,
>
> I actually want it to run synchronously. The return will be used to
> dynamically generate html. I am executing a WSRequest and I get the feeling
> that I am getting throttled resulting in the WSRequest throwing an error.
>
> Found the following code snippet at [1] to give a time gap between the
> WSRequest calls and stop them getting throttled.
>
> function pause(milliseconds) {
>   var dt = new Date();
>   while ((new Date()) - dt <= milliseconds) { /* Do nothing */ }
> }
>
>
> I can use the pause method instead of setTimeout. WDYT?
>
> [1] The 2nd answer in
> http://stackoverflow.com/questions/4122268/using-settimeout-synchronously-in-javascript
>
> Cheers,
> Nalin
>
>
> On Wed, Apr 27, 2016 at 7:29 PM, Manuranga Perera  wrote:
>
>> Since setTimeout is running in a different thread, above code might not
>> work. (didn't have time to test).
>> But you can do something like
>>
>> function fetchContact(token,retryCount){ retryCount = (typeof retryCount
>> === 'undefined') ? 5 : retryCount; try{ //actual logic
>> //note that using return form here is not a good idea
>> //because we might be in a different thread }catch (e){ if(retryCount >
>> 0){ setTimeout(function() {a(token,retryCount-1)},1000); } } }
>>
>> fetchContact(3243); // will try it for at max 5 times
>>
>> BTW, better to move the thread to dev list.
>>
>> On Wed, Apr 27, 2016 at 4:30 AM, Nalin Sugathapala 
>> wrote:
>>
>>> So did an ugly hack by yours truly and an elegant fix as proposed by
>>> Tanya. I can think of two possible reasons for the error:
>>>   a) There is a time out issue, which is fixed by using the
>>> CONNECTION_TIMEOUT property that is sent into the open method
>>>
>>> options.CONNECTION_TIMEOUT = 12;
>>> salesforce.open(options, salesforce_url, false);
>>>
>>>   b) a possible throttling issue at Salesforce, which is the ugly hack
>>> ;). I retry 5 times and give up.
>>>
>>> // variable introduced to allow 5 retries for the before giving up
>>> var retry = 0;
>>>
>>> function fetchContact(token) {
>>>
>>>try {
>>>   
>>>
>>>   retry = 0;
>>>   return certs;
>>>
>>>} catch (e) {
>>>if (retry <5)
>>>{
>>>retry += 1;
>>>return setTimeout(fetchContact(token), 1000);
>>>} else {
>>>retry = 0;
>>>   return {error: e};
>>>   }
>>>}
>>>
>>> }
>>>
>>> Can you think of a better way of doing this.
>>>
>>> Found [1] that talks about a possible time out.
>>>
>>> [1]
>>> http://salesforce.stackexchange.com/questions/13187/connection-refused-error-message-coming-from-a-java-client-connecting-to-salesfo
>>>
>>> Cheers,
>>> Nalin
>>>
>>> On Wed, Apr 27, 2016 at 1:30 AM, Jonathan Marsh 
>>> wrote:
>>>
 I got a similar error quite often when running the sales dashboard
 tools – a refresh would successfully log in.  I never got that on a local
 machine and when I migrated to WSO2 App Cloud it never occurs.  Perhaps
 it’s a network timeout or something?



 *From:* Nalin Sugathapala [mailto:nal...@wso2.com]
 *Sent:* Tuesday, April 26, 2016 2:20 AM
 *To:* Jonathan Marsh; Manuranga Perera; Dulitha Wijewantha
 *Subject:* Strange error that I encounter



 Hi all,

 I keep encountering an error :[2016-04-26 14:32:27,487]  INFO
 {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
 url[https://login.salesforce.com/services/Soap/c/23.0/X;]

 The X is my id.

 This is something that comes on and off. Hard to replicate. But don't
 want it poping up in production.

 Do you have any idea why this is?

 Cheers,

 Nalin


 --

 Nalin Sugathapala

 *Training Program ManagerWSO2, Inc.*

 Mobile : +94 (0) 777 560 525
 <%2B94%20%280%29%20773%20451194>

 Tel  : +94 112 145 345

 nal...@wso2.com 

>>>
>>>
>>>
>>> --
>>> Nalin Sugathapala
>>>
>>> *Training Program ManagerWSO2, Inc.*
>>> Mobile : +94 (0) 777 560 525
>>> <%2B94%20%280%29%20773%20451194>
>>> Tel  : +94 112 145 345
>>> nal...@wso2.com 
>>>
>>
>>
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>
>
>
> --
> Nalin Sugathapala
>
> *Training Program ManagerWSO2, Inc.*
> Mobile : +94 (0) 777 560 525
> <%2B94%20%280%29%20773%20451194>
> Tel  : +94 112 145 345
> nal...@wso2.com 
>



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org

Re: [Dev] [appcloud] Unable to connect to Docker Client from local set up

2016-04-27 Thread Kasun De Silva
Hi Sabra,

No all the appcloud kubernetes nodes are not exposed through vpn. We had
this concern before as well. Anyway we should get it exposed.

On Wed, Apr 27, 2016 at 10:40 AM, Sabra Ossen  wrote:

> Hi Kasun,
>
> I got the necessary values from the team for the app cloud internal docker
> registry and docker client. But I think the issue occurred because I was
> trying to access the docker registry and kubernetes cluster outside of the
> wso2 network. I connected through the vpn but still there was no success. I
> believe they have not been exposed even through the vpn.
>
> Thanks and Regards.
>
> On Fri, Apr 22, 2016 at 12:52 AM, Kasun De Silva  wrote:
>
>> Hi Sabra,
>>
>> Seems like you haven't added the certificates and hosts to connect to the
>> appcloud internal docker registry. You need to run [1].
>>
>> 1. First open /etc/hosts in your local
>>
>> 2. Add following host entry
>>
>> 192.168.16.2 registry.docker.appfactory.private.wso2.com
>>
>> 3. Then run the script in [1].
>>
>> It will ask for docker registry host and port. Give following values.
>>
>> Host : registry.docker.appfactory.private.wso2.com
>> Port : 5000
>>
>> (Check these values are correct with the team)
>>
>> This should work.
>>
>> [1]
>> https://github.com/wso2/app-cloud/blob/master/modules/setup-scripts/tools/docker_setup.sh
>>
>> Thanks,
>> Kasun
>>
>> On Thu, Apr 21, 2016 at 7:01 AM, Punnadi Gunarathna 
>> wrote:
>>
>>> Hi Sabra,
>>>
>>> Did you run dockerImages.sh file?
>>>
>>> On Thu, Apr 21, 2016 at 5:26 PM, Sabra Ossen  wrote:
>>>
 Hi All,

 I have created a local setup and I am trying to create an app in app
 cloud. I get the following stack trace.

 INFO {module/application/application.jag} -  Application Launch URL:
 carbon-super-bwsam-1-0-0.apps.cloud.wso2.com
 {module/application/application.jag}
 TID: [0] [AS] [2016-04-21 17:04:10,331] ERROR
 {org.wso2.appcloud.core.docker.DockerOpClient} -  Build Failure:Failed to
 connect to /192.168.18.2:2375
 {org.wso2.appcloud.core.docker.DockerOpClient}
 TID: [0] [AS] [2016-04-21 17:04:10,332] ERROR
 {org.wso2.appcloud.core.docker.DockerOpClient} -  Docker image building
 failed: msf4j repo:
 registry.182.docker.appfactory.private.wso2.com:5000 docker file:
 /home/sabra/WSO2/AppCloud/Local//setup/wso2as-5.2.1//repository/deployment/server/jaggeryapps/appmgt//tmpUploadedApps/carbon.super/3219047332775631666/
 tag: 1.0-3219047332775631666 {org.wso2.appcloud.core.docker.DockerOpClient}
 TID: [0] [AS] [2016-04-21 17:04:10,338]  INFO
 {module/application/application.jag} -  Retrying docker build retry counter
 value : 0 {module/application/application.jag}
 TID: [0] [AS] [2016-04-21 17:06:19,226] ERROR
 {org.wso2.appcloud.core.docker.DockerOpClient} -  Build Failure:Failed to
 connect to /192.168.18.2:2375
 {org.wso2.appcloud.core.docker.DockerOpClient}
 TID: [0] [AS] [2016-04-21 17:06:19,355] ERROR
 {org.wso2.appcloud.core.docker.DockerOpClient} -  Push Failure:Failed to
 connect to /192.168.18.2:2375
 {org.wso2.appcloud.core.docker.DockerOpClient}
 TID: [0] [AS] [2016-04-21 17:06:19,355] ERROR
 {org.wso2.appcloud.core.docker.DockerOpClient} -  Docker image push failed:
 msf4j repo: registry.182.docker.appfactory.private.wso2.com:5000 tag:
 1.0-3219047332775631666 {org.wso2.appcloud.core.docker.DockerOpClient}
 TID: [0] [AS] [2016-04-21 17:06:19,381] ERROR
 {module/application/application.jag} -  Error uploading docker image to
 remote registry {module/application/application.jag}
 TID: [0] [AS] [2016-04-21 17:06:19,381] ERROR
 {module/application/application.jag} -
  org.mozilla.javascript.WrappedException: Wrapped
 org.wso2.appcloud.common.AppCloudException: Docker image push failed: msf4j
 repo: registry.182.docker.appfactory.private.wso2.com:5000 tag:
 1.0-3219047332775631666 (/appmgt/modules/application/application.jag#100)
 at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
 at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.appmgt.modules.application.c1._c_anonymous_3(/appmgt/modules/application/application.jag:100)
 at
 org.jaggeryjs.rhino.appmgt.modules.application.c1.call(/appmgt/modules/application/application.jag)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
 at
 org.jaggeryjs.rhino.appmgt.modules.application.c1._c_anonymous_1(/appmgt/modules/application/application.jag:78)
 at
 org.jaggeryjs.rhino.appmgt.modules.application.c1.call(/appmgt/modules/application/application.jag)
 at
 

Re: [Dev] [appcloud] Unable to connect to Docker Client from local set up

2016-04-27 Thread Kasun De Silva
I meat internal appcloud kubernetes nodes.

On Wed, Apr 27, 2016 at 10:48 AM, Kasun De Silva  wrote:

> Hi Sabra,
>
> No all the appcloud kubernetes nodes are not exposed through vpn. We had
> this concern before as well. Anyway we should get it exposed.
>
> On Wed, Apr 27, 2016 at 10:40 AM, Sabra Ossen  wrote:
>
>> Hi Kasun,
>>
>> I got the necessary values from the team for the app cloud internal
>> docker registry and docker client. But I think the issue occurred because I
>> was trying to access the docker registry and kubernetes cluster outside of
>> the wso2 network. I connected through the vpn but still there was no
>> success. I believe they have not been exposed even through the vpn.
>>
>> Thanks and Regards.
>>
>> On Fri, Apr 22, 2016 at 12:52 AM, Kasun De Silva  wrote:
>>
>>> Hi Sabra,
>>>
>>> Seems like you haven't added the certificates and hosts to connect to
>>> the appcloud internal docker registry. You need to run [1].
>>>
>>> 1. First open /etc/hosts in your local
>>>
>>> 2. Add following host entry
>>>
>>> 192.168.16.2 registry.docker.appfactory.private.wso2.com
>>>
>>> 3. Then run the script in [1].
>>>
>>> It will ask for docker registry host and port. Give following values.
>>>
>>> Host : registry.docker.appfactory.private.wso2.com
>>> Port : 5000
>>>
>>> (Check these values are correct with the team)
>>>
>>> This should work.
>>>
>>> [1]
>>> https://github.com/wso2/app-cloud/blob/master/modules/setup-scripts/tools/docker_setup.sh
>>>
>>> Thanks,
>>> Kasun
>>>
>>> On Thu, Apr 21, 2016 at 7:01 AM, Punnadi Gunarathna 
>>> wrote:
>>>
 Hi Sabra,

 Did you run dockerImages.sh file?

 On Thu, Apr 21, 2016 at 5:26 PM, Sabra Ossen  wrote:

> Hi All,
>
> I have created a local setup and I am trying to create an app in app
> cloud. I get the following stack trace.
>
> INFO {module/application/application.jag} -  Application Launch URL:
> carbon-super-bwsam-1-0-0.apps.cloud.wso2.com
> {module/application/application.jag}
> TID: [0] [AS] [2016-04-21 17:04:10,331] ERROR
> {org.wso2.appcloud.core.docker.DockerOpClient} -  Build Failure:Failed to
> connect to /192.168.18.2:2375
> {org.wso2.appcloud.core.docker.DockerOpClient}
> TID: [0] [AS] [2016-04-21 17:04:10,332] ERROR
> {org.wso2.appcloud.core.docker.DockerOpClient} -  Docker image building
> failed: msf4j repo:
> registry.182.docker.appfactory.private.wso2.com:5000 docker file:
> /home/sabra/WSO2/AppCloud/Local//setup/wso2as-5.2.1//repository/deployment/server/jaggeryapps/appmgt//tmpUploadedApps/carbon.super/3219047332775631666/
> tag: 1.0-3219047332775631666 
> {org.wso2.appcloud.core.docker.DockerOpClient}
> TID: [0] [AS] [2016-04-21 17:04:10,338]  INFO
> {module/application/application.jag} -  Retrying docker build retry 
> counter
> value : 0 {module/application/application.jag}
> TID: [0] [AS] [2016-04-21 17:06:19,226] ERROR
> {org.wso2.appcloud.core.docker.DockerOpClient} -  Build Failure:Failed to
> connect to /192.168.18.2:2375
> {org.wso2.appcloud.core.docker.DockerOpClient}
> TID: [0] [AS] [2016-04-21 17:06:19,355] ERROR
> {org.wso2.appcloud.core.docker.DockerOpClient} -  Push Failure:Failed to
> connect to /192.168.18.2:2375
> {org.wso2.appcloud.core.docker.DockerOpClient}
> TID: [0] [AS] [2016-04-21 17:06:19,355] ERROR
> {org.wso2.appcloud.core.docker.DockerOpClient} -  Docker image push 
> failed:
> msf4j repo: registry.182.docker.appfactory.private.wso2.com:5000 tag:
> 1.0-3219047332775631666 {org.wso2.appcloud.core.docker.DockerOpClient}
> TID: [0] [AS] [2016-04-21 17:06:19,381] ERROR
> {module/application/application.jag} -  Error uploading docker image to
> remote registry {module/application/application.jag}
> TID: [0] [AS] [2016-04-21 17:06:19,381] ERROR
> {module/application/application.jag} -
>  org.mozilla.javascript.WrappedException: Wrapped
> org.wso2.appcloud.common.AppCloudException: Docker image push failed: 
> msf4j
> repo: registry.182.docker.appfactory.private.wso2.com:5000 tag:
> 1.0-3219047332775631666 (/appmgt/modules/application/application.jag#100)
> at
> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
> at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino.appmgt.modules.application.c1._c_anonymous_3(/appmgt/modules/application/application.jag:100)
> at
> org.jaggeryjs.rhino.appmgt.modules.application.c1.call(/appmgt/modules/application/application.jag)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
> at
> 

Re: [Dev] [appcloud] Unable to connect to Docker Client from local set up

2016-04-27 Thread Sabra Ossen
Hi Kasun,

I got the necessary values from the team for the app cloud internal docker
registry and docker client. But I think the issue occurred because I was
trying to access the docker registry and kubernetes cluster outside of the
wso2 network. I connected through the vpn but still there was no success. I
believe they have not been exposed even through the vpn.

Thanks and Regards.

On Fri, Apr 22, 2016 at 12:52 AM, Kasun De Silva  wrote:

> Hi Sabra,
>
> Seems like you haven't added the certificates and hosts to connect to the
> appcloud internal docker registry. You need to run [1].
>
> 1. First open /etc/hosts in your local
>
> 2. Add following host entry
>
> 192.168.16.2 registry.docker.appfactory.private.wso2.com
>
> 3. Then run the script in [1].
>
> It will ask for docker registry host and port. Give following values.
>
> Host : registry.docker.appfactory.private.wso2.com
> Port : 5000
>
> (Check these values are correct with the team)
>
> This should work.
>
> [1]
> https://github.com/wso2/app-cloud/blob/master/modules/setup-scripts/tools/docker_setup.sh
>
> Thanks,
> Kasun
>
> On Thu, Apr 21, 2016 at 7:01 AM, Punnadi Gunarathna 
> wrote:
>
>> Hi Sabra,
>>
>> Did you run dockerImages.sh file?
>>
>> On Thu, Apr 21, 2016 at 5:26 PM, Sabra Ossen  wrote:
>>
>>> Hi All,
>>>
>>> I have created a local setup and I am trying to create an app in app
>>> cloud. I get the following stack trace.
>>>
>>> INFO {module/application/application.jag} -  Application Launch URL:
>>> carbon-super-bwsam-1-0-0.apps.cloud.wso2.com
>>> {module/application/application.jag}
>>> TID: [0] [AS] [2016-04-21 17:04:10,331] ERROR
>>> {org.wso2.appcloud.core.docker.DockerOpClient} -  Build Failure:Failed to
>>> connect to /192.168.18.2:2375
>>> {org.wso2.appcloud.core.docker.DockerOpClient}
>>> TID: [0] [AS] [2016-04-21 17:04:10,332] ERROR
>>> {org.wso2.appcloud.core.docker.DockerOpClient} -  Docker image building
>>> failed: msf4j repo: registry.182.docker.appfactory.private.wso2.com:5000
>>> docker file:
>>> /home/sabra/WSO2/AppCloud/Local//setup/wso2as-5.2.1//repository/deployment/server/jaggeryapps/appmgt//tmpUploadedApps/carbon.super/3219047332775631666/
>>> tag: 1.0-3219047332775631666 {org.wso2.appcloud.core.docker.DockerOpClient}
>>> TID: [0] [AS] [2016-04-21 17:04:10,338]  INFO
>>> {module/application/application.jag} -  Retrying docker build retry counter
>>> value : 0 {module/application/application.jag}
>>> TID: [0] [AS] [2016-04-21 17:06:19,226] ERROR
>>> {org.wso2.appcloud.core.docker.DockerOpClient} -  Build Failure:Failed to
>>> connect to /192.168.18.2:2375
>>> {org.wso2.appcloud.core.docker.DockerOpClient}
>>> TID: [0] [AS] [2016-04-21 17:06:19,355] ERROR
>>> {org.wso2.appcloud.core.docker.DockerOpClient} -  Push Failure:Failed to
>>> connect to /192.168.18.2:2375
>>> {org.wso2.appcloud.core.docker.DockerOpClient}
>>> TID: [0] [AS] [2016-04-21 17:06:19,355] ERROR
>>> {org.wso2.appcloud.core.docker.DockerOpClient} -  Docker image push failed:
>>> msf4j repo: registry.182.docker.appfactory.private.wso2.com:5000 tag:
>>> 1.0-3219047332775631666 {org.wso2.appcloud.core.docker.DockerOpClient}
>>> TID: [0] [AS] [2016-04-21 17:06:19,381] ERROR
>>> {module/application/application.jag} -  Error uploading docker image to
>>> remote registry {module/application/application.jag}
>>> TID: [0] [AS] [2016-04-21 17:06:19,381] ERROR
>>> {module/application/application.jag} -
>>>  org.mozilla.javascript.WrappedException: Wrapped
>>> org.wso2.appcloud.common.AppCloudException: Docker image push failed: msf4j
>>> repo: registry.182.docker.appfactory.private.wso2.com:5000 tag:
>>> 1.0-3219047332775631666 (/appmgt/modules/application/application.jag#100)
>>> at
>>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>> at
>>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at
>>> org.jaggeryjs.rhino.appmgt.modules.application.c1._c_anonymous_3(/appmgt/modules/application/application.jag:100)
>>> at
>>> org.jaggeryjs.rhino.appmgt.modules.application.c1.call(/appmgt/modules/application/application.jag)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>> at
>>> org.jaggeryjs.rhino.appmgt.modules.application.c1._c_anonymous_1(/appmgt/modules/application/application.jag:78)
>>> at
>>> org.jaggeryjs.rhino.appmgt.modules.application.c1.call(/appmgt/modules/application/application.jag)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>>> at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>>> at
>>> 

[Dev] Fwd: [IS] Missing requirement in building product-is from source

2016-04-27 Thread Chamila Wijayarathna
[adding dev]

identity-framework should build without any issues, what is the maven
version you are using? Can you check if you have all the requirement
mentioned at [1] for building the identity server from source code. Was
this building successfully previously?

[1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites

-- Forwarded message --
From: Manujith Pallewatte 
Date: Wed, Apr 27, 2016 at 7:49 PM
Subject: Re: [IS] Missing requirement in building product-is from source
To: Chamila Wijayarathna 


Hi Chamila,

Apparently identity framework didnt have the latest commits, I forked it
today and pulled but It must have missed some commits
Anyway I updated the local repo to all changes, but now identity framework
gives an error in building

"[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.2:scr
(generate-scr-scrdescriptor) on project
org.wso2.carbon.identity.application.authentication.framework: Execution
generate-scr-scrdescriptor of goal
org.apache.felix:maven-scr-plugin:1.7.2:scr failed: Comparison method
violates its general contract! -> [Help 1]"

I google and found that this is a known bug of apache felix, but it didn't
provide and solid way to solve other than to change jdk version
I tried changing version with no luck, any ideas?

Also found similar error in dev list
http://mail.wso2.org/mailarchive/dev/2015-June/049912.html

Thank You

On Wed, Apr 27, 2016 at 4:46 PM, Chamila Wijayarathna 
wrote:

> Hi Manujith,
>
> It seems like your identity-framework or product-is is not upto date.
>
> Can you check what are the latest commits in both repos using git log and
> check if commits merged within last few days are there in your local repo?
>
> Thank You!
>
> On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi all,
>>
>> I'm trying to setup the development environment to start working for GSOC
>> on the identity server, and I already downloaded and build the
>> carbon-identity-framework repo along with the extensions as mentioned in [1]
>>
>> Now I'm trying to build product-is from source as well, to make sure I
>> have all the dependencies before doing in changes to the source, but
>> running maven install in product is gives the following error
>>
>> "Missing requirement: Application Authentication Framework Server Feature
>> 5.0.9.SNAPSHOT
>> (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
>> 5.0.9.SNAPSHOT) requires
>> 'org.wso2.carbon.tenant.mgt.common.server.feature.group [4.4.8,4.5.0)' but
>> it could not be found"
>>
>> I check the local maven repo and this package isnt available in it, so
>> why is maven not downloading this from the remote repository?
>>
>> Thank You
>>
>>
>> [1] https://gist.github.com/pulasthi7/3d365a3345371fd63f74
>>
>> --
>>
>>
>>
>> [image: Manujith Pallewatte on about.me]
>>
>> Manujith Pallewatte
>> about.me/manzzup
>>   
>>
>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 



[image: Manujith Pallewatte on about.me]

Manujith Pallewatte
about.me/manzzup
  



-- 
*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


Re: [Dev] Handling non-OSGi JARs within dropins capability

2016-04-27 Thread Manuranga Perera
>
> no *other *file(s) will be written to the bundles.info file of the
> particular profile, thus will not be picked up by the Carbon server.
>

Any reason why not only faulty bundle is ignored ?

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


Re: [Dev] carbon-registry 4.5.5-alpha released to staging

2016-04-27 Thread Maheshika Goonetilleke
Hi Thushara

Staged
https://maven.wso2.org/nexus/content/repositories/orgwso2carbonregistry-1003/

On Wed, Apr 27, 2016 at 6:29 PM, Thushara Ranawaka 
wrote:

> Hi Build team,
>
> Please close this and provide the repo URL
>
> --
> Thanks,
> Thushara Kasun Ranawaka
> Software Engineer
> WSO2 Inc.; 
> lean.enterprise.middleware
> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
> *thusha...@wso2.com *
>



-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] carbon-registry 4.5.5-alpha released to staging

2016-04-27 Thread Thushara Ranawaka
Hi Build team,

Please close this and provide the repo URL

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-dashboard 1.0.16 released to staging

2016-04-27 Thread Lasantha Samarakoon
Hi Jayanga,

Verified the repo. Please go ahead and release.


Regards,

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

lean . enterprise . middleware

On Wed, Apr 27, 2016 at 12:57 PM, Jayanga Dissanayake 
wrote:

> Hi Udara,
>
> Previous repo is dropped as requested, and you can access the new repo via
> [1].
> Please verify.
>
> [1]
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbondashboards-1003/
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
> On Wed, Apr 27, 2016 at 12:47 AM, Udara Rathnayake 
> wrote:
>
>> Hi Jayanga,
>>
>> Please drop above, as we have encounted some problems.
>> At the same time please close the new repo and provide us the repo URL.
>>
>> Thanks!
>>
>> On Tue, Apr 26, 2016 at 9:09 PM, Jayanga Dissanayake 
>> wrote:
>>
>>> Hi Udara,
>>>
>>> The repo is closed. You can access the repo via [1].
>>> Please verify.
>>>
>>> [1]
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbondashboards-1002/
>>>
>>> Thanks,
>>> Jayanga.
>>>
>>> *Jayanga Dissanayake*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com/
>>> lean . enterprise . middleware
>>> email: jaya...@wso2.com
>>> mobile: +94772207259
>>>
>>> On Tue, Apr 26, 2016 at 8:37 PM, Udara Rathnayake 
>>> wrote:
>>>
 Hi Build team,

 Please close this and provide the repo.

 Thanks!

 --
 Regards,
 UdaraR

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


[Dev] Handle Exceptions during OSGI service registration

2016-04-27 Thread Fathima Dilhasha
Hi,

I am developing a tool which requires an OSGI service to be registered. I
am trying to handle any exceptions occurring at the registration of
service.
(Refer the following code snippet)

..
try {
   ...
   bundleContext.registerService(RoleMgtConfiguration.class.getName(),
configuration, null);
   ...
} catch (Throwable e) {
   log.error("Error while activating Role Management Common bundle", e);
}


AFAIU, the 'registerService' is throwing only exceptions. Is there a
particular reason to use 'Throwable' ?

AFAIK, Throwable might catch JVM related errors as well.

WDYT?

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 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon JNDI 1.0.0-Alpha Released

2016-04-27 Thread Nipuni Perera
WSO2 Carbon JNDI 1.0.0-Alpha Released

​

The Carbon team is pleased to announce the release of Carbon JNDI
1.0.0-Alpha. Listed below are the features introduced with this release.


New Features


   -
   - OSGi URL scheme support that allows JNDI based applications to access
   services in the OSGi service registry.

Features

   - In-memory JNDI service provider implementation.
   - OSGi JNDI Service specification implementation.
   - Mechanism to plug in custom InitialContextFactory and ObjectFactories
   in an OSGi environment.


Installing as a Feature

You may install carbon-jndi feature to your product with:

org.wso2.carbon.jndi
org.wso2.carbon.jndi.feature
1.0.0-alpha

Known Issues

https://wso2.org/jira/browse/CJNDI-4?filter=13041

How to Contribute

   -

   WSO2 Carbon JNDI code is hosted in github.
   -

   The Git repository is https://github.com/wso2/carbon-jndi
   -

   Carbon JNDI 1.0.0-alpha release tag is
   https://github.com/wso2/carbon-jndi/tree/v1.0.0-alpha
   -

   Please report issues at Carbon JNDI Jira,
   https://wso2.org/jira/browse/CJNDI


Contact Us

​WSO2 Carbon developers​ can be contacted via following mailing lists:

   -

   WSO2 Developers List: dev@wso2.org
   -

   WSO2 Architecture List: architect...@wso2.org


​Thank you for your interest in WSO2 Carbon JNDI​.

Best Regards

Carbon Team​

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

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


Re: [Dev] [IS] Missing requirement in building product-is from source

2016-04-27 Thread Chamila Wijayarathna
Hi Manujith,

It seems like your identity-framework or product-is is not upto date.

Can you check what are the latest commits in both repos using git log and
check if commits merged within last few days are there in your local repo?

Thank You!

On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte 
wrote:

> Hi all,
>
> I'm trying to setup the development environment to start working for GSOC
> on the identity server, and I already downloaded and build the
> carbon-identity-framework repo along with the extensions as mentioned in [1]
>
> Now I'm trying to build product-is from source as well, to make sure I
> have all the dependencies before doing in changes to the source, but
> running maven install in product is gives the following error
>
> "Missing requirement: Application Authentication Framework Server Feature
> 5.0.9.SNAPSHOT
> (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
> 5.0.9.SNAPSHOT) requires
> 'org.wso2.carbon.tenant.mgt.common.server.feature.group [4.4.8,4.5.0)' but
> it could not be found"
>
> I check the local maven repo and this package isnt available in it, so why
> is maven not downloading this from the remote repository?
>
> Thank You
>
>
> [1] https://gist.github.com/pulasthi7/3d365a3345371fd63f74
>
> --
>
>
>
> [image: Manujith Pallewatte on about.me]
>
> Manujith Pallewatte
> about.me/manzzup
>   
>



-- 
*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


Re: [Dev] [DEV] [ESB] Change payload response (LDAP Connector)

2016-04-27 Thread Willian Antunes
I got it.

As I was used to work with Apache Camel, I could you use something like
below to change the data format:

*from("file:wso2").marshal().xmljson().to("file:edglobo");*

Thank you again!

On Wed, Apr 27, 2016 at 7:54 AM, Malaka Silva  wrote:

> Hi Willian,
>
> ​
> No in this case​ since response from service (connector) is soap. Only
> when the m
> ​e​
> ssage format is application/json throughout the flow json will be
> used internally.
>
> On Tue, Apr 26, 2016 at 7:57 PM, Willian Antunes <
> willian.lima.antu...@gmail.com> wrote:
>
>> Guys,
>>
>> Internally the message travel as SOAP, but when the client receives the
>> message it gets as a JSON (please attached file).
>>
>> [image: Inline image 2]
>>
>> Is there a way to change the $body to JSON automatically internally too?
>>
>>
>> On Tue, Apr 26, 2016 at 12:56 PM, Willian Antunes <
>> willian.lima.antu...@gmail.com> wrote:
>>
>>> @Nuwan and @Malaka,
>>>
>>> I'm using LDAP Connector
>>>  not a
>>> endpoint mediator itself. I tried with messageType but it didn't work. Thus
>>> I tried with the following as well without success:
>>>
>>> >> type="STRING"/>
>>> >> type="STRING"/>
>>> >> type="STRING"/>
>>>
>>> Does it apply to Connectors? In my case wouldn't be better using Script
>>> Mediator  to
>>> change the LDAP answer?
>>>
>>> On Tue, Apr 26, 2016 at 5:11 AM, Nuwan Pallewela 
>>> wrote:
>>>
 Hi Willian,

 Do you want to change the message structure?

 If you don't need to change the message structure, you can change the
 axis2 messageType property to "json/application" and esb formatters will
 convert it to JSON.
 Eg:

 

 If you want to change the message structure you can use FastXSLT mediator 
 [1] and then formatter to convert it to JSON as mention above.
 Performance of FastXSLT mediator in transforming messages is also better 
 as you can see in the [2].

 You can find more information abount JSON support in [3].

 [1] https://docs.wso2.com/display/ESB481/FastXSLT+Mediator
 [2] 
 http://soatutorials.blogspot.com/2016/01/wso2-esb-performance-tuning-for-xslt.html
 [3] 
 https://docs.wso2.com/display/ESB481/JSON+Support#JSONSupport-ConvertingapayloadbetweenXMLandJSON

 Thanks,
 Nuwan

 On Tue, Apr 26, 2016 at 2:47 AM, Willian Antunes <
 willian.lima.antu...@gmail.com> wrote:

> Hello everyone,
>
> One I consult my internal LDAP using LDAP Connector to retrieve the
> details regarding some user I receive a huge response. For example (I'm
> omitting anothers groups contained in memberOf):
>
> http://www.w3.org/2003/05/soap-envelope;>
> http://org.wso2.esbconnectors.ldap;>
> 
> CN=Willian Lima Antunes,OU=Users,OU=Online,OU=DU
> Editorial,DC=aqlbras,DC=com,DC=br
> Willian Lima Antunes - Tecnologia Digital - Editora
> Globo
> Willian
> wantu...@willianantunes.com.br
> Lima Antunes
>
> CN=grupoedgfuncionarios,CN=Users,DC=aqlbras,DC=com,DC=br
>
> CN=EgspPRINT_6A1-new,CN=Users,DC=aqlbras,DC=com,DC=br
>
> CN=EgspPRINT_9A3,CN=Users,DC=aqlbras,DC=com,DC=br
>
> CN=EgspPRINT_8A1,CN=Users,DC=aqlbras,DC=com,DC=br
> CN=aws,OU=Groups,OU=Online,OU=DU
> Editorial,DC=aqlbras,DC=com,DC=br
> CN=Ecommerce,OU=Groups,OU=Online,OU=DU
> Editorial,DC=aqlbras,DC=com,DC=br
> CN=Grupo E-commerce -
> TI,CN=Users,DC=aqlbras,DC=com,DC=br
>
> CN=EgspUTLFILE_TRN02CP,CN=Users,DC=aqlbras,DC=com,DC=br
> 
> 
> 
>
> What is the fastest way to change it to JSON? I know a way to do it
> through Payload Factory mediator, but the work to map each value in a
> variable is hard-working and the response may vary.
>
> Can I configure to receive a JSON instead of SOAP at the LDAP
> Connector side?
>
> Any suggestions would be appreciated.
>
> Thanks.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 --

 *Nuwan Chamara Pallewela*


 *Software Engineer*

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

 Email   *nuw...@wso2.com *
 Mobile  *+94719079739 <%2B94719079739>@*



>>>
>>>
>>> --
>>> Yours sincerely,
>>>
>>> Willian Antunes
>>>
>>
>>
>>
>> --
>> Atenciosamente,
>>
>> Willian Antunes
>>
>
>
>
> --
>
> 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, 

Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Dilshan Edirisuriya
You deal with generic app types like iOS, Android, Windows etc. I am not
sure how its categories related to tenant unless that particular tenant
comeup with their own app type.

Regards,

Dilshan

On 27 April 2016 at 15:38, Ruwan Abeykoon  wrote:

> Hi Thilini,
> >>But different app types have different categories.
>
> I do not see a reason to have different categories on different types in
> the store user perspective.
>
> Cheers,
> Ruwan
>
> On Wed, Apr 27, 2016 at 3:35 PM, Ruwan Abeykoon  wrote:
>
>> Hi Dilshan,
>> >>Each mobile platform has different kind of application categories and
>> application developers are familiar with those categories usually.
>>
>> I do not think tying up with platform categories is a good move. I feel
>> that the categorisation is upto the customer(tenant)
>>
>> +1 for having sub-categories if that can be defined in the registry
>> properly and shown in UI and do search.
>>
>> Cheers,
>> Ruwan
>>
>>
>> On Wed, Apr 27, 2016 at 3:28 PM, Ruwan Abeykoon  wrote:
>>
>>> Hi All,
>>>
>>> +1 having in registry, if it allows runtime updates.
>>>
>>> Can we add this categorisation across all app types ?
>>> e.g. If someone searches for apps of "Finance" category all Web and
>>> Mobile apps related will show up.
>>>
>>> @Dinusha, I think Categories and Tags are orthogonal. i.e. Categories
>>> are a formal thing whereas Tags are something user thinks good to have
>>> (unbounded)
>>>
>>> Cheers,
>>> Ruwan
>>>
>>>
>>> On Wed, Apr 27, 2016 at 3:19 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Do we need this further since we having tags for mobile apps now ?

 On Wed, Apr 27, 2016 at 3:16 PM, Jenananthan Yogendran <
 jenanant...@wso2.com> wrote:

>
>
> On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika 
> wrote:
>
>> Hi all,
>>
>> In App Manager, we have mobile application categorization based on
>> below four criteria.
>>
>>- Business
>>- Communication
>>- Finance
>>- Productivity
>>
>> But these categories are not available as a configurable option and
>> currently we are having them as fixed values. But there is a requirement 
>> of
>> making these categories configurable.
>>
>> I would suggest below options to achieve this.
>>
>>1. Maintaining these categories as a configuration under
>>*MobileAppsConfiguration* in app-manager.xml
>>2. Maintaining categories in a registry resource so that we can
>>maintain different categories for different tenants
>>
>>+1 To have the configuration in registry.
>
>> Any suggestions or comments?
>>
>> Thanks,
>> Thilini
>> --
>> Thilini Shanika
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>> 20, Palmgrove Avenue, Colombo 3
>>
>> E-mail: tgtshan...@gmail.com
>>
>>
>
>
> --
> Jenananthan Yogendran
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
>


 --
 Dinusha Dilrukshi
 Associate Technical Lead
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/

>>>
>>>
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Architect,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ruw...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>
> ___
> 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


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Maheshakya Wijewardena
The error you see usually doesn't relate to a Java heap limit issue, but
the OS actually running out of memory.
Can you try closing every other process while building these products and
make sure the memory usage is low or add more swap space[1].

Are you using open-jdk? If so, can you switch to oracle jdk if the above
doesn't work and try again.

Best regards.
[1] http://askubuntu.com/questions/178712/how-to-increase-swap-space

On Wed, Apr 27, 2016 at 2:32 PM, Mahesh Dananjaya  wrote:

> Hi suho,
> Thanl you for the information. In the initial build i used mvn "mvn clean
> install -Dmaven.test.skip=true", thats why i did not get errors.But this
> time i built with mvn clean build and i got some errors in test stage.i
> have already set up MAVEN_OPTS as MAVEN_OPTS="-Xms768m -Xms3072m
> -XX:MaxPermSize=1200m". But it seems to be some memory constriant.i got
> followings.
>
>
> ERROR
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
> MaxPermSize=256m; support was removed in 8.0
> ERROR
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> Java HotSpot(TM) 64-Bit Server VM warning: INFO:
> os::commit_memory(0xf400, 157286400, 0) failed; error='Cannot
> allocate memory' (errno=12)
>
> I have been using Ubuntu 14.04 LTS with 4GB ram.So how can i fix this
> issue.  And i got similar kind of error when i was trying to build the wso2
> product-ml. i have attached the detailes of the error i got in this mail.
> Do i need to set up some additional environemtn variables to fix this.
> BR,
> Mahesh.
>
>
>
>
> On Wed, Apr 27, 2016 at 1:51 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>> As Suho mentioned, if you have successfully built with tests, then there
>> shouldn't be an issue.
>>
>> However, in the error you've stated, it seems there's problem with carbon
>> home:
>>
>>> CARBON_HOME environment variable is set to
>>> /home/mahesh/GSOC/WSO2/product-cep/modules/distribution
>>>
>> Can you make sure that you extract
>> product-cep/modules/distribution/target/wso2cep-4.1.1-SNAPSHOT.zip and run
>> the server in wso2cep-4.1.1-SNAPSHOT/bin/ with ./wso2server.sh
>>
>> Best regards.
>>
>> On Wed, Apr 27, 2016 at 12:43 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> If your build has passed, then it should not be an issue. When building
>>> the the tests should have ran.
>>> Is that so? please verify.
>>> During that server should have started and stopped.
>>>
>>> I think there is some issue in the way you have started the CEP.
>>>
>>> You should be able to build the products as you will be working with
>>> components having snapshots versions.
>>>
>>> Regards
>>> Suho
>>>
>>> On Wed, Apr 27, 2016 at 12:33 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshakya,
 I am trying to build the CEP by sourceas [1].it was built without
 errors.But when i run the ./wso2server.sh  i got his error

 JAVA_HOME environment variable is set to /usr/local/java/jdk1.8.0_51
 CARBON_HOME environment variable is set to
 /home/mahesh/GSOC/WSO2/product-cep/modules/distribution
 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
 MaxPermSize=256m; support was removed in 8.0
 Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
 java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 at java.util.logging.LogManager$1.run(LogManager.java:195)
 at java.util.logging.LogManager$1.run(LogManager.java:181)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.(LogManager.java:181)
 at java.util.logging.Logger.demandLogger(Logger.java:448)
 at java.util.logging.Logger.getLogger(Logger.java:502)
 at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
 at
 sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
 at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
 at sun.management.Agent.startAgent(Agent.java:260)
 at sun.management.Agent.startAgent(Agent.java:447)
 Error: Could not find or load main class
 org.wso2.carbon.bootstrap.Bootstrap

 do i need some additional libraries there?Is it allright to go wit the
 [2] as we will be doing changes to source.
 BR,
 Mahesh.


 On Wed, Apr 27, 2016 at 12:17 PM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> You don't need to build the kernel. You can build either current
> master of product-cep[1] or you 

[Dev] Cannot build mediators created from the archetype on java 8

2016-04-27 Thread Omindu Rathnaweera
Hi,

I'm getting errors when building the mediators created from the archetype
[1] when there are java 8 specific syntaxes involved. Had to configure the
maven-compiler-plugin manually in the pom to get the build working with
java 8. I believe this should be fixed ?

[1] -
https://github.com/wso2/carbon-gateway-framework/tree/master/archetypes/maven-archetype-mediator

Thanks,
Omindu.

-- 
Omindu Rathnaweera
Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Missing requirement in building product-is from source

2016-04-27 Thread Manujith Pallewatte
Hi all,

I'm trying to setup the development environment to start working for GSOC
on the identity server, and I already downloaded and build the
carbon-identity-framework repo along with the extensions as mentioned in [1]

Now I'm trying to build product-is from source as well, to make sure I have
all the dependencies before doing in changes to the source, but running
maven install in product is gives the following error

"Missing requirement: Application Authentication Framework Server Feature
5.0.9.SNAPSHOT
(org.wso2.carbon.identity.application.authentication.framework.server.feature.group
5.0.9.SNAPSHOT) requires
'org.wso2.carbon.tenant.mgt.common.server.feature.group [4.4.8,4.5.0)' but
it could not be found"

I check the local maven repo and this package isnt available in it, so why
is maven not downloading this from the remote repository?

Thank You


[1] https://gist.github.com/pulasthi7/3d365a3345371fd63f74

-- 



[image: Manujith Pallewatte on about.me]

Manujith Pallewatte
about.me/manzzup
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] NoClassDefFoundError: org/apache/rahas/TrustException when deploying PassiveSTSSampleApp

2016-04-27 Thread Malithi Edirisinghe
Hi Dilini,

This is already being fixed [1]. Can you get the sample built from the
master branch.

[1] https://github.com/wso2/product-is/pull/473

Thanks,
Malithi.

On Wed, Apr 27, 2016 at 3:34 PM, Chamath Gunawardana 
wrote:

> Hi Dilini,
>
> Can you please share the location you go the sample war? This issue was
> seen and was fixed.
>
>
> Thanks,
> Chamath
>
> On Wed, Apr 27, 2016 at 3:16 PM, Dilini Gunatilake 
> wrote:
>
>> Hi IS team,
>>
>> I tried to deploy the PassiveSTSSampleApp which was built from
>> product-is-5.2.0-beta repo and got the following exception. Seems like a
>> dependency issue.
>>
>> SEVERE: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
>> 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)
>> Caused by: java.lang.NoClassDefFoundError: org/apache/rahas/TrustException
>> at java.lang.Class.getDeclaredFields0(Native Method)
>> at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
>> at java.lang.Class.getDeclaredFields(Class.java:1811)
>> at
>> org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:109)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64)
>> at
>> org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
>> at
>> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
>> at
>> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>> at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>> ... 10 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.rahas.TrustException
>> at
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
>> at
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
>> ... 24 more
>>
>> Apr 27, 2016 1:53:08 PM org.apache.catalina.startup.HostConfig deployWAR
>> SEVERE: Error deploying web application archive
>> /home/dilinig/software/apache-tomcat-7.0.68/webapps/PassiveSTSSampleApp.war
>> java.lang.IllegalStateException: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
>> 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)
>>
>>
>> Reported a JIRA [1]. Any workaround to resolve this asap as we are unable
>> to test this feature?
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4549
>>
>> Thank you.
>>
>> Regards,
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
> Thanks,
> Best Regards,
> Chamath Gunawardana
> Technical Lead; WSO2 Inc.
> Mobile : +94776322240
>
> ___
> Dev 

Re: [Dev] [IS] NoClassDefFoundError: org/apache/rahas/TrustException when deploying PassiveSTSSampleApp

2016-04-27 Thread Dilini Gunatilake
Downloaded the source code from [1]

[1] https://github.com/wso2/product-is/releases/tag/v5.2.0-beta

Regards,
Dilini

On Wed, Apr 27, 2016 at 3:34 PM, Chamath Gunawardana 
wrote:

> Hi Dilini,
>
> Can you please share the location you go the sample war? This issue was
> seen and was fixed.
>
>
> Thanks,
> Chamath
>
> On Wed, Apr 27, 2016 at 3:16 PM, Dilini Gunatilake 
> wrote:
>
>> Hi IS team,
>>
>> I tried to deploy the PassiveSTSSampleApp which was built from
>> product-is-5.2.0-beta repo and got the following exception. Seems like a
>> dependency issue.
>>
>> SEVERE: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
>> 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)
>> Caused by: java.lang.NoClassDefFoundError: org/apache/rahas/TrustException
>> at java.lang.Class.getDeclaredFields0(Native Method)
>> at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
>> at java.lang.Class.getDeclaredFields(Class.java:1811)
>> at
>> org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:109)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64)
>> at
>> org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
>> at
>> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
>> at
>> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>> at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>> ... 10 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.rahas.TrustException
>> at
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
>> at
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
>> ... 24 more
>>
>> Apr 27, 2016 1:53:08 PM org.apache.catalina.startup.HostConfig deployWAR
>> SEVERE: Error deploying web application archive
>> /home/dilinig/software/apache-tomcat-7.0.68/webapps/PassiveSTSSampleApp.war
>> java.lang.IllegalStateException: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
>> 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)
>>
>>
>> Reported a JIRA [1]. Any workaround to resolve this asap as we are unable
>> to test this feature?
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4549
>>
>> Thank you.
>>
>> Regards,
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
> Thanks,
> Best Regards,
> Chamath Gunawardana
> Technical Lead; WSO2 Inc.
> Mobile : +94776322240
>



-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com

Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Ruwan Abeykoon
Hi Thilini,
>>But different app types have different categories.

I do not see a reason to have different categories on different types in
the store user perspective.

Cheers,
Ruwan

On Wed, Apr 27, 2016 at 3:35 PM, Ruwan Abeykoon  wrote:

> Hi Dilshan,
> >>Each mobile platform has different kind of application categories and
> application developers are familiar with those categories usually.
>
> I do not think tying up with platform categories is a good move. I feel
> that the categorisation is upto the customer(tenant)
>
> +1 for having sub-categories if that can be defined in the registry
> properly and shown in UI and do search.
>
> Cheers,
> Ruwan
>
>
> On Wed, Apr 27, 2016 at 3:28 PM, Ruwan Abeykoon  wrote:
>
>> Hi All,
>>
>> +1 having in registry, if it allows runtime updates.
>>
>> Can we add this categorisation across all app types ?
>> e.g. If someone searches for apps of "Finance" category all Web and
>> Mobile apps related will show up.
>>
>> @Dinusha, I think Categories and Tags are orthogonal. i.e. Categories are
>> a formal thing whereas Tags are something user thinks good to have
>> (unbounded)
>>
>> Cheers,
>> Ruwan
>>
>>
>> On Wed, Apr 27, 2016 at 3:19 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Do we need this further since we having tags for mobile apps now ?
>>>
>>> On Wed, Apr 27, 2016 at 3:16 PM, Jenananthan Yogendran <
>>> jenanant...@wso2.com> wrote:
>>>


 On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika 
 wrote:

> Hi all,
>
> In App Manager, we have mobile application categorization based on
> below four criteria.
>
>- Business
>- Communication
>- Finance
>- Productivity
>
> But these categories are not available as a configurable option and
> currently we are having them as fixed values. But there is a requirement 
> of
> making these categories configurable.
>
> I would suggest below options to achieve this.
>
>1. Maintaining these categories as a configuration under
>*MobileAppsConfiguration* in app-manager.xml
>2. Maintaining categories in a registry resource so that we can
>maintain different categories for different tenants
>
>+1 To have the configuration in registry.

> Any suggestions or comments?
>
> Thanks,
> Thilini
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


 --
 Jenananthan Yogendran
 *Software Engineer,*
 *WSO2 inc., http://wso2.com *


>>>
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


Re: [Dev] Handling non-OSGi JARs within dropins capability

2016-04-27 Thread Chiranga Alwis
Hi,
based on an off-line discussion, we decided to simply throw warnings within
the getNewBundlesInfo method loop if any of the above mentioned issue(s)
associated with a non-OSGi JAR is/are encountered.

This effectively means unless a particular file added to the dropins folder
is an OSGi JAR, no other file(s) will be written to the bundles.info file
of the particular profile, thus will not be picked up by the Carbon server.
And adding a non-OSGi JAR to the dropins folder will not halt the server
from starting.

On Tue, Apr 26, 2016 at 11:26 AM, Chiranga Alwis  wrote:

> Hi,
>
> I have been working on improving the existing dropins capability within
> the Carbon-kernel.
>
> In the utility methods I am using for dropins, I have a method which reads
> in the files of a given source directory and construct OSGi Bundle
> Information (BundleInfo.java
> )
> instances.
>
> public static List getNewBundlesInfo(Path sourceDirectory) throws 
> IOException {
> List newBundleInfoLines = new ArrayList<>();
> if ((sourceDirectory != null) && (Files.exists(sourceDirectory))) {
> Stream children = Files.list(sourceDirectory);
> children.parallel().forEach(child -> {
> try {
> logger.log(Level.FINE, "Loading OSGi bundle information from 
> " + child);
> getNewBundleInfo(child).ifPresent(newBundleInfoLines::add);
> logger.log(Level.FINE, "Successfully loaded OSGi bundle 
> information from " + child);
> } catch (IOException e) {
> throw new RuntimeException("Error when loading the OSGi 
> bundle information from " + child, e);
> }
> });
> } else {
> throw new IOException("Invalid OSGi bundle source directory: " + 
> sourceDirectory);
> }
>
> return newBundleInfoLines;
> }
>
> Method getNewBundleInfo takes in a Path object and constructs the new
> BundleInfo instance if the appropriate conditions are satisfied.
>
> private static Optional getNewBundleInfo(Path bundlePath) throws 
> IOException
>
> This method will throw an IOException in cases such as the following:
> - if the JAR manifest is not found.
> - if the OSGi Bundle-SymbolicName or the BundleVersion are not found
>
> The method returns Optional.empty() if the file does not have a .jar
> extension.
>
> In the above getNewBundlesInfo method, should I throw an exception when
> the loop encounters a non-OSGi JAR and stop the flow (currently, a
> RuntimeException is thrown to halt the processing) or should I continue
> processing the other directory files by simply issuing a warning when an
> invalid file is encountered?
> --
> Chiranga Alwis,
> Software Engineering Intern,
> +94 77 5930497
> +94 77 6368208
>



-- 
Chiranga Alwis,
Software Engineering Intern,
+94 77 5930497
+94 77 6368208
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Ruwan Abeykoon
Hi Dilshan,
>>Each mobile platform has different kind of application categories and
application developers are familiar with those categories usually.

I do not think tying up with platform categories is a good move. I feel
that the categorisation is upto the customer(tenant)

+1 for having sub-categories if that can be defined in the registry
properly and shown in UI and do search.

Cheers,
Ruwan


On Wed, Apr 27, 2016 at 3:28 PM, Ruwan Abeykoon  wrote:

> Hi All,
>
> +1 having in registry, if it allows runtime updates.
>
> Can we add this categorisation across all app types ?
> e.g. If someone searches for apps of "Finance" category all Web and Mobile
> apps related will show up.
>
> @Dinusha, I think Categories and Tags are orthogonal. i.e. Categories are
> a formal thing whereas Tags are something user thinks good to have
> (unbounded)
>
> Cheers,
> Ruwan
>
>
> On Wed, Apr 27, 2016 at 3:19 PM, Dinusha Senanayaka 
> wrote:
>
>> Do we need this further since we having tags for mobile apps now ?
>>
>> On Wed, Apr 27, 2016 at 3:16 PM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>>
>>>
>>> On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika 
>>> wrote:
>>>
 Hi all,

 In App Manager, we have mobile application categorization based on
 below four criteria.

- Business
- Communication
- Finance
- Productivity

 But these categories are not available as a configurable option and
 currently we are having them as fixed values. But there is a requirement of
 making these categories configurable.

 I would suggest below options to achieve this.

1. Maintaining these categories as a configuration under
*MobileAppsConfiguration* in app-manager.xml
2. Maintaining categories in a registry resource so that we can
maintain different categories for different tenants

+1 To have the configuration in registry.
>>>
 Any suggestions or comments?

 Thanks,
 Thilini
 --
 Thilini Shanika
 Software Engineer
 WSO2, Inc.; http://wso2.com
 20, Palmgrove Avenue, Colombo 3

 E-mail: tgtshan...@gmail.com


>>>
>>>
>>> --
>>> Jenananthan Yogendran
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


Re: [Dev] [IS] NoClassDefFoundError: org/apache/rahas/TrustException when deploying PassiveSTSSampleApp

2016-04-27 Thread Chamath Gunawardana
Hi Dilini,

Can you please share the location you go the sample war? This issue was
seen and was fixed.


Thanks,
Chamath

On Wed, Apr 27, 2016 at 3:16 PM, Dilini Gunatilake  wrote:

> Hi IS team,
>
> I tried to deploy the PassiveSTSSampleApp which was built from
> product-is-5.2.0-beta repo and got the following exception. Seems like a
> dependency issue.
>
> SEVERE: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
> 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)
> Caused by: java.lang.NoClassDefFoundError: org/apache/rahas/TrustException
> at java.lang.Class.getDeclaredFields0(Native Method)
> at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
> at java.lang.Class.getDeclaredFields(Class.java:1811)
> at
> org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
> at
> org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
> at
> org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:109)
> at
> org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64)
> at
> org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
> at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
> at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> ... 10 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.rahas.TrustException
> at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
> at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
> ... 24 more
>
> Apr 27, 2016 1:53:08 PM org.apache.catalina.startup.HostConfig deployWAR
> SEVERE: Error deploying web application archive
> /home/dilinig/software/apache-tomcat-7.0.68/webapps/PassiveSTSSampleApp.war
> java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
> 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)
>
>
> Reported a JIRA [1]. Any workaround to resolve this asap as we are unable
> to test this feature?
>
> [1] https://wso2.org/jira/browse/IDENTITY-4549
>
> Thank you.
>
> Regards,
> --
>
> *Dilini GunatilakeSoftware Engineer - QA Team*
> Mobile : +94 (0) 771 162518
> dili...@wso2.com
>



-- 
Thanks,
Best Regards,
Chamath Gunawardana
Technical Lead; WSO2 Inc.
Mobile : +94776322240
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Thilini Shanika
Hi Ruwan,

Can we add this categorisation across all app types ?
e.g. If someone searches for apps of "Finance" category all Web and Mobile
apps related will show up.

But different app types have different categories. So how can we maintain
them as a common category set? If we are going to add categorization for
all apptypes, we might have to maintain a set of categories dedicated for
each app type.

On Wed, Apr 27, 2016 at 3:28 PM, Ruwan Abeykoon  wrote:

> Hi All,
>
> +1 having in registry, if it allows runtime updates.
>
> Can we add this categorisation across all app types ?
> e.g. If someone searches for apps of "Finance" category all Web and Mobile
> apps related will show up.
>
> @Dinusha, I think Categories and Tags are orthogonal. i.e. Categories are
> a formal thing whereas Tags are something user thinks good to have
> (unbounded)
>
> Cheers,
> Ruwan
>
>
> On Wed, Apr 27, 2016 at 3:19 PM, Dinusha Senanayaka 
> wrote:
>
>> Do we need this further since we having tags for mobile apps now ?
>>
>> On Wed, Apr 27, 2016 at 3:16 PM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>>
>>>
>>> On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika 
>>> wrote:
>>>
 Hi all,

 In App Manager, we have mobile application categorization based on
 below four criteria.

- Business
- Communication
- Finance
- Productivity

 But these categories are not available as a configurable option and
 currently we are having them as fixed values. But there is a requirement of
 making these categories configurable.

 I would suggest below options to achieve this.

1. Maintaining these categories as a configuration under
*MobileAppsConfiguration* in app-manager.xml
2. Maintaining categories in a registry resource so that we can
maintain different categories for different tenants

+1 To have the configuration in registry.
>>>
 Any suggestions or comments?

 Thanks,
 Thilini
 --
 Thilini Shanika
 Software Engineer
 WSO2, Inc.; http://wso2.com
 20, Palmgrove Avenue, Colombo 3

 E-mail: tgtshan...@gmail.com


>>>
>>>
>>> --
>>> Jenananthan Yogendran
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



-- 
Thilini Shanika
Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Ruwan Abeykoon
Hi All,

+1 having in registry, if it allows runtime updates.

Can we add this categorisation across all app types ?
e.g. If someone searches for apps of "Finance" category all Web and Mobile
apps related will show up.

@Dinusha, I think Categories and Tags are orthogonal. i.e. Categories are a
formal thing whereas Tags are something user thinks good to have (unbounded)

Cheers,
Ruwan


On Wed, Apr 27, 2016 at 3:19 PM, Dinusha Senanayaka 
wrote:

> Do we need this further since we having tags for mobile apps now ?
>
> On Wed, Apr 27, 2016 at 3:16 PM, Jenananthan Yogendran <
> jenanant...@wso2.com> wrote:
>
>>
>>
>> On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika 
>> wrote:
>>
>>> Hi all,
>>>
>>> In App Manager, we have mobile application categorization based on below
>>> four criteria.
>>>
>>>- Business
>>>- Communication
>>>- Finance
>>>- Productivity
>>>
>>> But these categories are not available as a configurable option and
>>> currently we are having them as fixed values. But there is a requirement of
>>> making these categories configurable.
>>>
>>> I would suggest below options to achieve this.
>>>
>>>1. Maintaining these categories as a configuration under
>>>*MobileAppsConfiguration* in app-manager.xml
>>>2. Maintaining categories in a registry resource so that we can
>>>maintain different categories for different tenants
>>>
>>>+1 To have the configuration in registry.
>>
>>> Any suggestions or comments?
>>>
>>> Thanks,
>>> Thilini
>>> --
>>> Thilini Shanika
>>> Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>> 20, Palmgrove Avenue, Colombo 3
>>>
>>> E-mail: tgtshan...@gmail.com
>>>
>>>
>>
>>
>> --
>> Jenananthan Yogendran
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Dilshan Edirisuriya
Hi Thilini,

Each mobile platform has different kind of application categories and
application developers are familiar with those categories usually. You
could look at that from Android and iOS point of view from [1] and [2].
Even in iOS you can a secondary category as well. So if you are to
implement that I assume you may need to focus on that and make it platform
dependent. Obviously it needs to reside in registry.

I am not sure how correct to replace categories with tags. What I feel tags
are similar to keywords in AppStore (Apple, Android) submission which acts
most of the time that way by the behavior of your store.

[1] - http://www.idev101.com/code/Distribution/categories.html
[2] -
https://support.google.com/googleplay/android-developer/answer/113475?hl=en

Regards,

Dilshan

On 27 April 2016 at 15:06, Thilini Shanika  wrote:

> Hi all,
>
> In App Manager, we have mobile application categorization based on below
> four criteria.
>
>- Business
>- Communication
>- Finance
>- Productivity
>
> But these categories are not available as a configurable option and
> currently we are having them as fixed values. But there is a requirement of
> making these categories configurable.
>
> I would suggest below options to achieve this.
>
>1. Maintaining these categories as a configuration under
>*MobileAppsConfiguration* in app-manager.xml
>2. Maintaining categories in a registry resource so that we can
>maintain different categories for different tenants
>
> Any suggestions or comments?
>
> Thanks,
> Thilini
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>
> ___
> 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


Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Rushmin Fernando
+1 for the registry approach since it supports multi tenancy.

On Wed, Apr 27, 2016 at 3:16 PM, Jenananthan Yogendran  wrote:

>
>
> On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika 
> wrote:
>
>> Hi all,
>>
>> In App Manager, we have mobile application categorization based on below
>> four criteria.
>>
>>- Business
>>- Communication
>>- Finance
>>- Productivity
>>
>> But these categories are not available as a configurable option and
>> currently we are having them as fixed values. But there is a requirement of
>> making these categories configurable.
>>
>> I would suggest below options to achieve this.
>>
>>1. Maintaining these categories as a configuration under
>>*MobileAppsConfiguration* in app-manager.xml
>>2. Maintaining categories in a registry resource so that we can
>>maintain different categories for different tenants
>>
>>+1 To have the configuration in registry.
>
>> Any suggestions or comments?
>>
>> Thanks,
>> Thilini
>> --
>> Thilini Shanika
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>> 20, Palmgrove Avenue, Colombo 3
>>
>> E-mail: tgtshan...@gmail.com
>>
>>
>
>
> --
> Jenananthan Yogendran
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
>


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Dinusha Senanayaka
Do we need this further since we having tags for mobile apps now ?

On Wed, Apr 27, 2016 at 3:16 PM, Jenananthan Yogendran  wrote:

>
>
> On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika 
> wrote:
>
>> Hi all,
>>
>> In App Manager, we have mobile application categorization based on below
>> four criteria.
>>
>>- Business
>>- Communication
>>- Finance
>>- Productivity
>>
>> But these categories are not available as a configurable option and
>> currently we are having them as fixed values. But there is a requirement of
>> making these categories configurable.
>>
>> I would suggest below options to achieve this.
>>
>>1. Maintaining these categories as a configuration under
>>*MobileAppsConfiguration* in app-manager.xml
>>2. Maintaining categories in a registry resource so that we can
>>maintain different categories for different tenants
>>
>>+1 To have the configuration in registry.
>
>> Any suggestions or comments?
>>
>> Thanks,
>> Thilini
>> --
>> Thilini Shanika
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>> 20, Palmgrove Avenue, Colombo 3
>>
>> E-mail: tgtshan...@gmail.com
>>
>>
>
>
> --
> Jenananthan Yogendran
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
>


-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] NoClassDefFoundError: org/apache/rahas/TrustException when deploying PassiveSTSSampleApp

2016-04-27 Thread Dilini Gunatilake
Hi IS team,

I tried to deploy the PassiveSTSSampleApp which was built from
product-is-5.2.0-beta repo and got the following exception. Seems like a
dependency issue.

SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
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)
Caused by: java.lang.NoClassDefFoundError: org/apache/rahas/TrustException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at
org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at
org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:109)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64)
at
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.apache.rahas.TrustException
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
... 24 more

Apr 27, 2016 1:53:08 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
/home/dilinig/software/apache-tomcat-7.0.68/webapps/PassiveSTSSampleApp.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
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)


Reported a JIRA [1]. Any workaround to resolve this asap as we are unable
to test this feature?

[1] https://wso2.org/jira/browse/IDENTITY-4549

Thank you.

Regards,
-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Jenananthan Yogendran
On Wed, Apr 27, 2016 at 3:06 PM, Thilini Shanika  wrote:

> Hi all,
>
> In App Manager, we have mobile application categorization based on below
> four criteria.
>
>- Business
>- Communication
>- Finance
>- Productivity
>
> But these categories are not available as a configurable option and
> currently we are having them as fixed values. But there is a requirement of
> making these categories configurable.
>
> I would suggest below options to achieve this.
>
>1. Maintaining these categories as a configuration under
>*MobileAppsConfiguration* in app-manager.xml
>2. Maintaining categories in a registry resource so that we can
>maintain different categories for different tenants
>
>+1 To have the configuration in registry.

> Any suggestions or comments?
>
> Thanks,
> Thilini
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


-- 
Jenananthan Yogendran
*Software Engineer,*
*WSO2 inc., http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APPM] Having configurable Mobile Application Categories

2016-04-27 Thread Thilini Shanika
Hi all,

In App Manager, we have mobile application categorization based on below
four criteria.

   - Business
   - Communication
   - Finance
   - Productivity

But these categories are not available as a configurable option and
currently we are having them as fixed values. But there is a requirement of
making these categories configurable.

I would suggest below options to achieve this.

   1. Maintaining these categories as a configuration under
   *MobileAppsConfiguration* in app-manager.xml
   2. Maintaining categories in a registry resource so that we can maintain
   different categories for different tenants

Any suggestions or comments?

Thanks,
Thilini
-- 
Thilini Shanika
Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-04-27 Thread Rasika Perera
Hi All,

It worked like a charm. We used the Non-OSGi approach to access the JNDI
context. This is the way I did, added "org.wso2.carbon.jndi.feature" and
you can get service instance with;

Context context = new InitialContext();
Object serviceInstance =
context.lookup("osgi:service/org.wso2.carbon.uuf.core.create.RenderableCreator");

Regards,
Rasika


On Tue, Apr 26, 2016 at 5:17 PM, Sameera Jayasoma  wrote:

> It should work. We've implemented JNDI OSGi spec just for this
>
> On Tue, Apr 26, 2016 at 5:12 PM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Tue, Apr 26, 2016 at 4:57 PM, Nipuni Perera  wrote:
>>
>>> Hi Rasika,
>>>
>>> With Carbon-JNDI approach we provide a way to access osgi services from
>>> the service registry. The OSGi url scheme syntax is different from java URL
>>> scheme.
>>>
>>> The syntax is :  "osgi:service//"
>>>
>>> Eg : If you have a service registered in the service registry with a
>>> class name "org.wso2.carbon.jndi.osgi.services.FooService", you should be
>>> able to get the object with JNDI lookup :
>>>
>>> Object service = context.lookup("
>>> osgi:service/org.wso2.carbon.jndi.osgi.services.FooService");
>>>
>>> Please find the samples and documentation from [1].
>>>
>>
>> Hi Nipuni,
>>
>> Shall we test this carbon-jndi feature installing to the UUF server?.. We
>> need to check whether the carbon-jndi works in the traditional way also,
>> apart from accessing the service using,
>>
>> Object service =
>> context.lookup("osgi:service/org.wso2.carbon.jndi.osgi.services.FooService");
>>
>> Regards,
>> Aruna
>>
>>>
>>> [1] https://github.com/wso2/carbon-jndi/
>>>
>>> Thanks,
>>> Nipuni
>>>
>>>
>>> On Tue, Apr 26, 2016 at 4:46 PM, Rasika Perera  wrote:
>>>
 Hi Aruna & All,

 The requirement is that we need to provide a simple API to invoke a
 method in an OSGi Service from the JavaScript(Nashorn). As per the offline
 discussion with Aruna, JNDI is the recommended way to invoke OSGi services
 in C5.

 @Nipuni
 On the JNDI approach; are all OSGi services getting registered through
 a unique URI(eg. "java:comp/env/osgi-service-a") at the service startup?

 Thanks,
 Rasika

 On Tue, Apr 26, 2016 at 1:31 PM, Aruna Karunarathna 
 wrote:

>
>
> On Tue, Apr 26, 2016 at 12:33 PM, Rasika Perera 
> wrote:
>
>> ​Hi All,
>>
>> Before C5, we had a method "getOSGiService(Class clazz,
>> Hashtable props)​ to retrieve an OSGi service[1]. In 
>> latest
>> C5, I couldn't find any similar feature in [2].
>>
>
> Can you elaborate more on your requirement here?. AFAIK there is no
> such way in C5 to retrieve OSGi services as in [1]
>
>>
>> ​What is the correct way to retrieve 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
>
>
> On Tue, Apr 26, 2016 at 12:33 PM, Rasika Perera 
> wrote:
>
>> ​Hi All,
>>
>> Before C5, we had a method "getOSGiService(Class clazz,
>> Hashtable props)​ to retrieve an OSGi service[1]. In 
>> latest
>> C5, I couldn't find any similar feature in [2].
>>
>> ​What is the correct way to retrieve 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 

Re: [Dev] [AppManager] Fully qualified name issue in SAML response

2016-04-27 Thread Dinusha Senanayaka
Hi Darshana,

On Wed, Apr 27, 2016 at 12:28 PM, Darshana Gunawardana 
wrote:

>
>
> On Tue, Apr 26, 2016 at 5:16 PM, Dinusha Senanayaka 
> wrote:
>
>> IS Team,
>>
>> Can you look into this issue please. This has broke the store/publisher
>> tenant login (We are using identity-5.0.9-SNAPSHOT versions).
>>
>> - How to set fully qualified name when registering SP from config file.
>> - Skip sending carbon.super when fully qualified name is enabled.
>>
>
> Why do you want to skip sending super tenant's domain? As I understood,
> app manager is a SaaS app and its ok to send super tenant's domain. It
> won't be an issue if you use correct utils to extract the tenant domain.
>

Issues comes with the store/publisher. In previous versions we did not have
carbon.super prefix in super tenant logged in users. We add subscriber name
to a table based on the logged in user name. Also there are some places
where we construct storage path of .apk files etc (mobile apps) using the
logged in user name. There is data migration effort if we go with the
carbon.super in user name in mentioned places. We could process the user
name and drop carbon.super part from the user name before we add user to
session. But not sure how much effort this required because we have to
check ES modules references too. Therefore, it would be great if we can
have the username without carbo.super prefix with super tenant users.

Regards,
Dinusha.

>
> Thanks,
>
>>
>> Regards,
>> Dinusha.
>>
>> On Mon, Apr 25, 2016 at 4:58 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> +Pushpalanka.
>>>
>>> On Mon, Apr 25, 2016 at 4:51 PM, Jenananthan Yogendran <
>>> jenanant...@wso2.com> wrote:
>>>
 Hi All,

 After migrating the AppManager from kernel 4.2.0 to kernel 4.4.5  ,
 fully qualified name is not working as expected.

 We use file based SP configuration for Store app and Publisher
 app(attached sso-idp-config files used in both kernel versions). In kernel
 4.2.0 , when login to store/publisher app, SAML response has user name with
 tenant domain  as subject for tenants except carbon super tenant.

 After migration , SAML response has only user name as subject.Tenant
 domain is missing for tenants.

 Also when checked the option "Use tenant domain in local subject
 identifier" under "Local & Outbound Authentication Configuration" for
 SPs created through UI, it appends the "carbon.super" domain for super
 tenant users.

 Thanks
 --
 Jenananthan Yogendran
 *Software Engineer,*
 *WSO2 inc., http://wso2.com *


>>>
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Mahesh Dananjaya
Hi suho,
Thanl you for the information. In the initial build i used mvn "mvn clean
install -Dmaven.test.skip=true", thats why i did not get errors.But this
time i built with mvn clean build and i got some errors in test stage.i
have already set up MAVEN_OPTS as MAVEN_OPTS="-Xms768m -Xms3072m
-XX:MaxPermSize=1200m". But it seems to be some memory constriant.i got
followings.


ERROR [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256m; support was removed in 8.0
ERROR [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Java HotSpot(TM) 64-Bit Server VM warning: INFO:
os::commit_memory(0xf400, 157286400, 0) failed; error='Cannot
allocate memory' (errno=12)

I have been using Ubuntu 14.04 LTS with 4GB ram.So how can i fix this
issue.  And i got similar kind of error when i was trying to build the wso2
product-ml. i have attached the detailes of the error i got in this mail.
Do i need to set up some additional environemtn variables to fix this.
BR,
Mahesh.




On Wed, Apr 27, 2016 at 1:51 PM, Maheshakya Wijewardena  wrote:

> Hi Mahesh,
>
> As Suho mentioned, if you have successfully built with tests, then there
> shouldn't be an issue.
>
> However, in the error you've stated, it seems there's problem with carbon
> home:
>
>> CARBON_HOME environment variable is set to
>> /home/mahesh/GSOC/WSO2/product-cep/modules/distribution
>>
> Can you make sure that you extract
> product-cep/modules/distribution/target/wso2cep-4.1.1-SNAPSHOT.zip and run
> the server in wso2cep-4.1.1-SNAPSHOT/bin/ with ./wso2server.sh
>
> Best regards.
>
> On Wed, Apr 27, 2016 at 12:43 PM, Sriskandarajah Suhothayan  > wrote:
>
>> If your build has passed, then it should not be an issue. When building
>> the the tests should have ran.
>> Is that so? please verify.
>> During that server should have started and stopped.
>>
>> I think there is some issue in the way you have started the CEP.
>>
>> You should be able to build the products as you will be working with
>> components having snapshots versions.
>>
>> Regards
>> Suho
>>
>> On Wed, Apr 27, 2016 at 12:33 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> I am trying to build the CEP by sourceas [1].it was built without
>>> errors.But when i run the ./wso2server.sh  i got his error
>>>
>>> JAVA_HOME environment variable is set to /usr/local/java/jdk1.8.0_51
>>> CARBON_HOME environment variable is set to
>>> /home/mahesh/GSOC/WSO2/product-cep/modules/distribution
>>> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
>>> MaxPermSize=256m; support was removed in 8.0
>>> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
>>> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> at java.util.logging.LogManager$1.run(LogManager.java:195)
>>> at java.util.logging.LogManager$1.run(LogManager.java:181)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.util.logging.LogManager.(LogManager.java:181)
>>> at java.util.logging.Logger.demandLogger(Logger.java:448)
>>> at java.util.logging.Logger.getLogger(Logger.java:502)
>>> at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
>>> at
>>> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
>>> at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
>>> at sun.management.Agent.startAgent(Agent.java:260)
>>> at sun.management.Agent.startAgent(Agent.java:447)
>>> Error: Could not find or load main class
>>> org.wso2.carbon.bootstrap.Bootstrap
>>>
>>> do i need some additional libraries there?Is it allright to go wit the
>>> [2] as we will be doing changes to source.
>>> BR,
>>> Mahesh.
>>>
>>>
>>> On Wed, Apr 27, 2016 at 12:17 PM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 You don't need to build the kernel. You can build either current master
 of product-cep[1] or you can download the latest release from [2].

 Best regards.

 [1] https://github.com/wso2/product-cep
 [2] http://wso2.com/products/complex-event-processor/

 On Wed, Apr 27, 2016 at 12:09 PM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi maheshakya,
> Do we need to build carbon kernal by source before we build  CEP by
> source (https://github.com/wso2/carbon-kernel )  .Or is it inside
> those sources.i am trying to build all three sources after forked
> them.thank you.
> regards,
> Mahesh
>
> On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
> 

Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Maheshakya Wijewardena
Hi Mahesh,

As Suho mentioned, if you have successfully built with tests, then there
shouldn't be an issue.

However, in the error you've stated, it seems there's problem with carbon
home:

> CARBON_HOME environment variable is set to
> /home/mahesh/GSOC/WSO2/product-cep/modules/distribution
>
Can you make sure that you extract
product-cep/modules/distribution/target/wso2cep-4.1.1-SNAPSHOT.zip and run
the server in wso2cep-4.1.1-SNAPSHOT/bin/ with ./wso2server.sh

Best regards.

On Wed, Apr 27, 2016 at 12:43 PM, Sriskandarajah Suhothayan 
wrote:

> If your build has passed, then it should not be an issue. When building
> the the tests should have ran.
> Is that so? please verify.
> During that server should have started and stopped.
>
> I think there is some issue in the way you have started the CEP.
>
> You should be able to build the products as you will be working with
> components having snapshots versions.
>
> Regards
> Suho
>
> On Wed, Apr 27, 2016 at 12:33 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> I am trying to build the CEP by sourceas [1].it was built without
>> errors.But when i run the ./wso2server.sh  i got his error
>>
>> JAVA_HOME environment variable is set to /usr/local/java/jdk1.8.0_51
>> CARBON_HOME environment variable is set to
>> /home/mahesh/GSOC/WSO2/product-cep/modules/distribution
>> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
>> MaxPermSize=256m; support was removed in 8.0
>> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
>> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at java.util.logging.LogManager$1.run(LogManager.java:195)
>> at java.util.logging.LogManager$1.run(LogManager.java:181)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.util.logging.LogManager.(LogManager.java:181)
>> at java.util.logging.Logger.demandLogger(Logger.java:448)
>> at java.util.logging.Logger.getLogger(Logger.java:502)
>> at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
>> at
>> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
>> at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
>> at sun.management.Agent.startAgent(Agent.java:260)
>> at sun.management.Agent.startAgent(Agent.java:447)
>> Error: Could not find or load main class
>> org.wso2.carbon.bootstrap.Bootstrap
>>
>> do i need some additional libraries there?Is it allright to go wit the
>> [2] as we will be doing changes to source.
>> BR,
>> Mahesh.
>>
>>
>> On Wed, Apr 27, 2016 at 12:17 PM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> You don't need to build the kernel. You can build either current master
>>> of product-cep[1] or you can download the latest release from [2].
>>>
>>> Best regards.
>>>
>>> [1] https://github.com/wso2/product-cep
>>> [2] http://wso2.com/products/complex-event-processor/
>>>
>>> On Wed, Apr 27, 2016 at 12:09 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi maheshakya,
 Do we need to build carbon kernal by source before we build  CEP by
 source (https://github.com/wso2/carbon-kernel )  .Or is it inside
 those sources.i am trying to build all three sources after forked
 them.thank you.
 regards,
 Mahesh

 On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> Hi Mahesh,
>
> Congratulations and welcome to GSoC 2016. You did a great job in
> preparing the proposal. Now it's time to dig deep and get started with the
> project.
>
> First of all you need to familiarize with the code base. We have
> agreed to implement this with CEP event streams. We already have a CEP
> extension for predictions [1][2]. Go through this implementation and
> familiarize your self with that. You need to understand how:
>
>1. Even streams are consumed
>2. predictions are made from individual event
>3. Results are sent back
>
> Get WSO2 ML and CEP sources (You may use latest released version of
> CEP) and build the products. Get both carbon-ml[3] and product-ml[4]
> masters and create new branches for your work from masters.
>
> After you build the products, you may need to do remote debugging[5]
> to understand the flow. So please follow an example of real time 
> prediction
> with ML with debugging and get some idea. The component you need to debug
> is org.wso2.carbon.ml.siddhi.extension.
>
> Next tasks would be implementing online learning algorithms in plain
> java with spark ml lib and integrating those 

Re: [Dev] [DEV] [ESB] Change payload response (LDAP Connector)

2016-04-27 Thread Malaka Silva
Hi Willian,

​
No in this case​ since response from service (connector) is soap. Only when
the m
​e​
ssage format is application/json throughout the flow json will be
used internally.

On Tue, Apr 26, 2016 at 7:57 PM, Willian Antunes <
willian.lima.antu...@gmail.com> wrote:

> Guys,
>
> Internally the message travel as SOAP, but when the client receives the
> message it gets as a JSON (please attached file).
>
> [image: Inline image 2]
>
> Is there a way to change the $body to JSON automatically internally too?
>
>
> On Tue, Apr 26, 2016 at 12:56 PM, Willian Antunes <
> willian.lima.antu...@gmail.com> wrote:
>
>> @Nuwan and @Malaka,
>>
>> I'm using LDAP Connector
>>  not a
>> endpoint mediator itself. I tried with messageType but it didn't work. Thus
>> I tried with the following as well without success:
>>
>> > type="STRING"/>
>> > type="STRING"/>
>> > type="STRING"/>
>>
>> Does it apply to Connectors? In my case wouldn't be better using Script
>> Mediator  to
>> change the LDAP answer?
>>
>> On Tue, Apr 26, 2016 at 5:11 AM, Nuwan Pallewela  wrote:
>>
>>> Hi Willian,
>>>
>>> Do you want to change the message structure?
>>>
>>> If you don't need to change the message structure, you can change the
>>> axis2 messageType property to "json/application" and esb formatters will
>>> convert it to JSON.
>>> Eg:
>>>
>>> 
>>>
>>> If you want to change the message structure you can use FastXSLT mediator 
>>> [1] and then formatter to convert it to JSON as mention above.
>>> Performance of FastXSLT mediator in transforming messages is also better as 
>>> you can see in the [2].
>>>
>>> You can find more information abount JSON support in [3].
>>>
>>> [1] https://docs.wso2.com/display/ESB481/FastXSLT+Mediator
>>> [2] 
>>> http://soatutorials.blogspot.com/2016/01/wso2-esb-performance-tuning-for-xslt.html
>>> [3] 
>>> https://docs.wso2.com/display/ESB481/JSON+Support#JSONSupport-ConvertingapayloadbetweenXMLandJSON
>>>
>>> Thanks,
>>> Nuwan
>>>
>>> On Tue, Apr 26, 2016 at 2:47 AM, Willian Antunes <
>>> willian.lima.antu...@gmail.com> wrote:
>>>
 Hello everyone,

 One I consult my internal LDAP using LDAP Connector to retrieve the
 details regarding some user I receive a huge response. For example (I'm
 omitting anothers groups contained in memberOf):

 http://www.w3.org/2003/05/soap-envelope;>
 http://org.wso2.esbconnectors.ldap;>
 
 CN=Willian Lima Antunes,OU=Users,OU=Online,OU=DU
 Editorial,DC=aqlbras,DC=com,DC=br
 Willian Lima Antunes - Tecnologia Digital - Editora
 Globo
 Willian
 wantu...@willianantunes.com.br
 Lima Antunes

 CN=grupoedgfuncionarios,CN=Users,DC=aqlbras,DC=com,DC=br

 CN=EgspPRINT_6A1-new,CN=Users,DC=aqlbras,DC=com,DC=br

 CN=EgspPRINT_9A3,CN=Users,DC=aqlbras,DC=com,DC=br

 CN=EgspPRINT_8A1,CN=Users,DC=aqlbras,DC=com,DC=br
 CN=aws,OU=Groups,OU=Online,OU=DU
 Editorial,DC=aqlbras,DC=com,DC=br
 CN=Ecommerce,OU=Groups,OU=Online,OU=DU
 Editorial,DC=aqlbras,DC=com,DC=br
 CN=Grupo E-commerce -
 TI,CN=Users,DC=aqlbras,DC=com,DC=br

 CN=EgspUTLFILE_TRN02CP,CN=Users,DC=aqlbras,DC=com,DC=br
 
 
 

 What is the fastest way to change it to JSON? I know a way to do it
 through Payload Factory mediator, but the work to map each value in a
 variable is hard-working and the response may vary.

 Can I configure to receive a JSON instead of SOAP at the LDAP Connector
 side?

 Any suggestions would be appreciated.

 Thanks.

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


>>>
>>>
>>> --
>>> --
>>>
>>> *Nuwan Chamara Pallewela*
>>>
>>>
>>> *Software Engineer*
>>>
>>> *WSO2, Inc. *http://wso2.com
>>> *lean . enterprise . middleware*
>>>
>>> Email   *nuw...@wso2.com *
>>> Mobile  *+94719079739 <%2B94719079739>@*
>>>
>>>
>>>
>>
>>
>> --
>> Yours sincerely,
>>
>> Willian Antunes
>>
>
>
>
> --
> Atenciosamente,
>
> Willian Antunes
>



-- 

Best Regards,

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

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

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting java.lang.NoClassDefFoundError: org/wso2/carbon/governance/lcm/util/CommonUtil

2016-04-27 Thread Harsha Kumara
Hi All,

We have installed MB features within APIM and getting this exception when
APIM import/export tool has used. The reason for this issue was conflicting
exports of commons-scxml_0.9.0.wso2v1 and commons-digester_1.8.1.wso2v1.
The commons-scxml dependency is coming from the govenrance lifecycle
management feature while commons-digester dependency is coming from the
andes feature.

The cause for the issue is commons-scxml_0.9.0.wso2v1 orbit bundle exports
the same package exports of commons-digester_1.8.1.wso2v1. So it's cause
class wiring issues. So we will need to release new orbit for
commons-scxml_0.9.0.wso2v1 with correct package exports. Currently we can
continue the APIM release by excluding commons-digester as it's already
export and include in commons-scxml_0.9.0.wso2v1. Created JIRA at [1].

[1] - https://wso2.org/jira/browse/REGISTRY-3590

Thanks,
Harsha

-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-dashboard 1.0.16 released to staging

2016-04-27 Thread Jayanga Dissanayake
Hi Udara,

Previous repo is dropped as requested, and you can access the new repo via
[1].
Please verify.

[1]
http://maven.wso2.org/nexus/content/repositories/orgwso2carbondashboards-1003/

Thanks,
Jayanga.

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

On Wed, Apr 27, 2016 at 12:47 AM, Udara Rathnayake  wrote:

> Hi Jayanga,
>
> Please drop above, as we have encounted some problems.
> At the same time please close the new repo and provide us the repo URL.
>
> Thanks!
>
> On Tue, Apr 26, 2016 at 9:09 PM, Jayanga Dissanayake 
> wrote:
>
>> Hi Udara,
>>
>> The repo is closed. You can access the repo via [1].
>> Please verify.
>>
>> [1]
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbondashboards-1002/
>>
>> Thanks,
>> Jayanga.
>>
>> *Jayanga Dissanayake*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>>
>> On Tue, Apr 26, 2016 at 8:37 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi Build team,
>>>
>>> Please close this and provide the repo.
>>>
>>> Thanks!
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>
>
> --
> Regards,
> UdaraR
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Sriskandarajah Suhothayan
If your build has passed, then it should not be an issue. When building the
the tests should have ran.
Is that so? please verify.
During that server should have started and stopped.

I think there is some issue in the way you have started the CEP.

You should be able to build the products as you will be working with
components having snapshots versions.

Regards
Suho

On Wed, Apr 27, 2016 at 12:33 PM, Mahesh Dananjaya <
dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> I am trying to build the CEP by sourceas [1].it was built without
> errors.But when i run the ./wso2server.sh  i got his error
>
> JAVA_HOME environment variable is set to /usr/local/java/jdk1.8.0_51
> CARBON_HOME environment variable is set to
> /home/mahesh/GSOC/WSO2/product-cep/modules/distribution
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
> MaxPermSize=256m; support was removed in 8.0
> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.util.logging.LogManager$1.run(LogManager.java:195)
> at java.util.logging.LogManager$1.run(LogManager.java:181)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.util.logging.LogManager.(LogManager.java:181)
> at java.util.logging.Logger.demandLogger(Logger.java:448)
> at java.util.logging.Logger.getLogger(Logger.java:502)
> at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
> at
> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
> at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
> at sun.management.Agent.startAgent(Agent.java:260)
> at sun.management.Agent.startAgent(Agent.java:447)
> Error: Could not find or load main class
> org.wso2.carbon.bootstrap.Bootstrap
>
> do i need some additional libraries there?Is it allright to go wit the [2]
> as we will be doing changes to source.
> BR,
> Mahesh.
>
>
> On Wed, Apr 27, 2016 at 12:17 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> You don't need to build the kernel. You can build either current master
>> of product-cep[1] or you can download the latest release from [2].
>>
>> Best regards.
>>
>> [1] https://github.com/wso2/product-cep
>> [2] http://wso2.com/products/complex-event-processor/
>>
>> On Wed, Apr 27, 2016 at 12:09 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi maheshakya,
>>> Do we need to build carbon kernal by source before we build  CEP by
>>> source (https://github.com/wso2/carbon-kernel )  .Or is it inside those
>>> sources.i am trying to build all three sources after forked them.thank you.
>>> regards,
>>> Mahesh
>>>
>>> On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi Mahesh,

 Congratulations and welcome to GSoC 2016. You did a great job in
 preparing the proposal. Now it's time to dig deep and get started with the
 project.

 First of all you need to familiarize with the code base. We have agreed
 to implement this with CEP event streams. We already have a CEP extension
 for predictions [1][2]. Go through this implementation and familiarize your
 self with that. You need to understand how:

1. Even streams are consumed
2. predictions are made from individual event
3. Results are sent back

 Get WSO2 ML and CEP sources (You may use latest released version of
 CEP) and build the products. Get both carbon-ml[3] and product-ml[4]
 masters and create new branches for your work from masters.

 After you build the products, you may need to do remote debugging[5] to
 understand the flow. So please follow an example of real time prediction
 with ML with debugging and get some idea. The component you need to debug
 is org.wso2.carbon.ml.siddhi.extension.

 Next tasks would be implementing online learning algorithms in plain
 java with spark ml lib and integrating those to ML. We also need to come up
 with a proper and detailed architecture to employ those algorithms in ML.
 Getting familiar with the aforementioned sections would give you some
 insight on how this should be implemented.

 So please try to get a quick grasp then you can start the
 implementation. Let us know if you have any questions or you get stuck
 somewhere.

 Also, please always add WSO2 developer's list as well when you
 communicate with us regarding the project so that you can get opinions and
 feedback from others as well.

 Best regards.

 [1]
 

Re: [Dev] [AppManager] Fully qualified name issue in SAML response

2016-04-27 Thread Omindu Rathnaweera
On Tue, Apr 26, 2016 at 5:16 PM, Dinusha Senanayaka 
wrote:

> IS Team,
>
> Can you look into this issue please. This has broke the store/publisher
> tenant login (We are using identity-5.0.9-SNAPSHOT versions).
>
> - How to set fully qualified name when registering SP from config file.
>


This setting was moved under 'Local & Outbound Authentication
Configuration'. To enable this from a config file, add the following under
'' tag in the SP specific xml file/s.

true
true

ex:



...

true

true



Regards,
Omindu.

> - Skip sending carbon.super when fully qualified name is enabled.
>
> Regards,
> Dinusha.
>
> On Mon, Apr 25, 2016 at 4:58 PM, Dinusha Senanayaka 
> wrote:
>
>> +Pushpalanka.
>>
>> On Mon, Apr 25, 2016 at 4:51 PM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> After migrating the AppManager from kernel 4.2.0 to kernel 4.4.5  ,
>>> fully qualified name is not working as expected.
>>>
>>> We use file based SP configuration for Store app and Publisher
>>> app(attached sso-idp-config files used in both kernel versions). In kernel
>>> 4.2.0 , when login to store/publisher app, SAML response has user name with
>>> tenant domain  as subject for tenants except carbon super tenant.
>>>
>>> After migration , SAML response has only user name as subject.Tenant
>>> domain is missing for tenants.
>>>
>>> Also when checked the option "Use tenant domain in local subject
>>> identifier" under "Local & Outbound Authentication Configuration" for
>>> SPs created through UI, it appends the "carbon.super" domain for super
>>> tenant users.
>>>
>>> Thanks
>>> --
>>> Jenananthan Yogendran
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
Omindu Rathnaweera
Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Kubernetes] Using MySQL as the Default DB for WSO2 K8s Artifacts

2016-04-27 Thread Vishanth Balasubramaniam
+1

To brief out the changes that is required.

Changes on Puppet-Modules

   - modify the hieradata (datasources to use mysql driver and correct url)
   - enabling -dSetup in wso2server.sh.erb

Changes on Kubernetes-Artifacts

   - adding replication controller and service for product related mysql
   database
   - modifying the deploy and undeploy scripts for adding these product
   related mysql database controller and service

I have now completed these changes in Puppet-modules and
Kubernetes-Artifacts for WSO2AS and WSO2BPS products. Will continue working
these changes on other products.

Regards,
Vishanth

On Tue, Apr 26, 2016 at 1:20 PM, Isuru Haththotuwa  wrote:

> Hi Devs,
>
> We can do $subject in the Kubernetes Artifacts. Its possible to define the
> DB url with the relevant Kubernetes service name, hence there is no need to
> know the exact IP of the database pod.
>
> Currently in mysql docker image [1], its only possible to create one DB
> per container. Therefore to support the usual deployment clustered wso2
> products, we would need at least 3 pods:
>
>1. gov_db - shared across all products as necessary
>2. user_db - shared across all products as necessary
>3. product_db - used for config db (shared with all members of the
>same cluster) and any other product specific db tables
>
> This will allow the users to deploy the wso2 products using defined real
> distributed deployment patterns in a kubernetes environment with minimal
> effort, without doing any configuration changes.
>
> Note that the purpose of this effort is to make it easier to try out WSO2
> products in a K8s environment, and to try out K8s features like
> autoscaling, etc. without the hassle of configuring databases, etc. WDYT?
>
> [1]. https://hub.docker.com/_/mysql/
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Mahesh Dananjaya
Hi Maheshakya,
I am trying to build the CEP by sourceas [1].it was built without
errors.But when i run the ./wso2server.sh  i got his error

JAVA_HOME environment variable is set to /usr/local/java/jdk1.8.0_51
CARBON_HOME environment variable is set to
/home/mahesh/GSOC/WSO2/product-cep/modules/distribution
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256m; support was removed in 8.0
Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.util.logging.LogManager$1.run(LogManager.java:195)
at java.util.logging.LogManager$1.run(LogManager.java:181)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.(LogManager.java:181)
at java.util.logging.Logger.demandLogger(Logger.java:448)
at java.util.logging.Logger.getLogger(Logger.java:502)
at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
at
sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814)
at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
at sun.management.Agent.startAgent(Agent.java:260)
at sun.management.Agent.startAgent(Agent.java:447)
Error: Could not find or load main class org.wso2.carbon.bootstrap.Bootstrap

do i need some additional libraries there?Is it allright to go wit the [2]
as we will be doing changes to source.
BR,
Mahesh.


On Wed, Apr 27, 2016 at 12:17 PM, Maheshakya Wijewardena <
mahesha...@wso2.com> wrote:

> You don't need to build the kernel. You can build either current master of
> product-cep[1] or you can download the latest release from [2].
>
> Best regards.
>
> [1] https://github.com/wso2/product-cep
> [2] http://wso2.com/products/complex-event-processor/
>
> On Wed, Apr 27, 2016 at 12:09 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi maheshakya,
>> Do we need to build carbon kernal by source before we build  CEP by
>> source (https://github.com/wso2/carbon-kernel )  .Or is it inside those
>> sources.i am trying to build all three sources after forked them.thank you.
>> regards,
>> Mahesh
>>
>> On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Congratulations and welcome to GSoC 2016. You did a great job in
>>> preparing the proposal. Now it's time to dig deep and get started with the
>>> project.
>>>
>>> First of all you need to familiarize with the code base. We have agreed
>>> to implement this with CEP event streams. We already have a CEP extension
>>> for predictions [1][2]. Go through this implementation and familiarize your
>>> self with that. You need to understand how:
>>>
>>>1. Even streams are consumed
>>>2. predictions are made from individual event
>>>3. Results are sent back
>>>
>>> Get WSO2 ML and CEP sources (You may use latest released version of CEP)
>>> and build the products. Get both carbon-ml[3] and product-ml[4] masters and
>>> create new branches for your work from masters.
>>>
>>> After you build the products, you may need to do remote debugging[5] to
>>> understand the flow. So please follow an example of real time prediction
>>> with ML with debugging and get some idea. The component you need to debug
>>> is org.wso2.carbon.ml.siddhi.extension.
>>>
>>> Next tasks would be implementing online learning algorithms in plain
>>> java with spark ml lib and integrating those to ML. We also need to come up
>>> with a proper and detailed architecture to employ those algorithms in ML.
>>> Getting familiar with the aforementioned sections would give you some
>>> insight on how this should be implemented.
>>>
>>> So please try to get a quick grasp then you can start the
>>> implementation. Let us know if you have any questions or you get stuck
>>> somewhere.
>>>
>>> Also, please always add WSO2 developer's list as well when you
>>> communicate with us regarding the project so that you can get opinions and
>>> feedback from others as well.
>>>
>>> Best regards.
>>>
>>> [1]
>>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>>
>>> [2]
>>> https://github.com/wso2/carbon-ml/tree/master/components/extensions/org.wso2.carbon.ml.siddhi.extension
>>>
>>> [3] https://github.com/wso2/carbon-ml
>>>
>>> [4] https://github.com/wso2/product-ml
>>>
>>> [5] https://dzone.com/articles/how-debug-wso2-carbon-kernel
>>>
>>>
>>> On Mon, Apr 25, 2016 at 3:33 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi,
 thank you for accepting my GSOC 2016 proposal and i am looking forward
 for the further instruction and project 

Re: [Dev] [AppManager] Fully qualified name issue in SAML response

2016-04-27 Thread Darshana Gunawardana
On Tue, Apr 26, 2016 at 5:16 PM, Dinusha Senanayaka 
wrote:

> IS Team,
>
> Can you look into this issue please. This has broke the store/publisher
> tenant login (We are using identity-5.0.9-SNAPSHOT versions).
>
> - How to set fully qualified name when registering SP from config file.
> - Skip sending carbon.super when fully qualified name is enabled.
>

Why do you want to skip sending super tenant's domain? As I understood, app
manager is a SaaS app and its ok to send super tenant's domain. It won't be
an issue if you use correct utils to extract the tenant domain.

Thanks,

>
> Regards,
> Dinusha.
>
> On Mon, Apr 25, 2016 at 4:58 PM, Dinusha Senanayaka 
> wrote:
>
>> +Pushpalanka.
>>
>> On Mon, Apr 25, 2016 at 4:51 PM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> After migrating the AppManager from kernel 4.2.0 to kernel 4.4.5  ,
>>> fully qualified name is not working as expected.
>>>
>>> We use file based SP configuration for Store app and Publisher
>>> app(attached sso-idp-config files used in both kernel versions). In kernel
>>> 4.2.0 , when login to store/publisher app, SAML response has user name with
>>> tenant domain  as subject for tenants except carbon super tenant.
>>>
>>> After migration , SAML response has only user name as subject.Tenant
>>> domain is missing for tenants.
>>>
>>> Also when checked the option "Use tenant domain in local subject
>>> identifier" under "Local & Outbound Authentication Configuration" for
>>> SPs created through UI, it appends the "carbon.super" domain for super
>>> tenant users.
>>>
>>> Thanks
>>> --
>>> Jenananthan Yogendran
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
Regards,


*Darshana Gunawardana*Senior Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Sriskandarajah Suhothayan
I believe we will also end up writing some Siddhi extensions, hence please
get the source of Siddhi[1] and build that as well. Siddhi is the
Processing Engine used within CEP.

Regards
Suho

[1]https://github.com/wso2/siddhi

On Wed, Apr 27, 2016 at 12:17 PM, Maheshakya Wijewardena <
mahesha...@wso2.com> wrote:

> You don't need to build the kernel. You can build either current master of
> product-cep[1] or you can download the latest release from [2].
>
> Best regards.
>
> [1] https://github.com/wso2/product-cep
> [2] http://wso2.com/products/complex-event-processor/
>
> On Wed, Apr 27, 2016 at 12:09 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi maheshakya,
>> Do we need to build carbon kernal by source before we build  CEP by
>> source (https://github.com/wso2/carbon-kernel )  .Or is it inside those
>> sources.i am trying to build all three sources after forked them.thank you.
>> regards,
>> Mahesh
>>
>> On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Congratulations and welcome to GSoC 2016. You did a great job in
>>> preparing the proposal. Now it's time to dig deep and get started with the
>>> project.
>>>
>>> First of all you need to familiarize with the code base. We have agreed
>>> to implement this with CEP event streams. We already have a CEP extension
>>> for predictions [1][2]. Go through this implementation and familiarize your
>>> self with that. You need to understand how:
>>>
>>>1. Even streams are consumed
>>>2. predictions are made from individual event
>>>3. Results are sent back
>>>
>>> Get WSO2 ML and CEP sources (You may use latest released version of CEP)
>>> and build the products. Get both carbon-ml[3] and product-ml[4] masters and
>>> create new branches for your work from masters.
>>>
>>> After you build the products, you may need to do remote debugging[5] to
>>> understand the flow. So please follow an example of real time prediction
>>> with ML with debugging and get some idea. The component you need to debug
>>> is org.wso2.carbon.ml.siddhi.extension.
>>>
>>> Next tasks would be implementing online learning algorithms in plain
>>> java with spark ml lib and integrating those to ML. We also need to come up
>>> with a proper and detailed architecture to employ those algorithms in ML.
>>> Getting familiar with the aforementioned sections would give you some
>>> insight on how this should be implemented.
>>>
>>> So please try to get a quick grasp then you can start the
>>> implementation. Let us know if you have any questions or you get stuck
>>> somewhere.
>>>
>>> Also, please always add WSO2 developer's list as well when you
>>> communicate with us regarding the project so that you can get opinions and
>>> feedback from others as well.
>>>
>>> Best regards.
>>>
>>> [1]
>>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>>
>>> [2]
>>> https://github.com/wso2/carbon-ml/tree/master/components/extensions/org.wso2.carbon.ml.siddhi.extension
>>>
>>> [3] https://github.com/wso2/carbon-ml
>>>
>>> [4] https://github.com/wso2/product-ml
>>>
>>> [5] https://dzone.com/articles/how-debug-wso2-carbon-kernel
>>>
>>>
>>> On Mon, Apr 25, 2016 at 3:33 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi,
 thank you for accepting my GSOC 2016 proposal and i am looking forward
 for the further instruction and project continuation. thank you very much.
 regards,
 Mahesh.

 --
>>> Pruthuvi Maheshakya Wijewardena
>>> mahesha...@wso2.com
>>> +94711228855
>>>
>>>
>>>
>>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> mahesha...@wso2.com
> +94711228855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Maheshakya Wijewardena
You don't need to build the kernel. You can build either current master of
product-cep[1] or you can download the latest release from [2].

Best regards.

[1] https://github.com/wso2/product-cep
[2] http://wso2.com/products/complex-event-processor/

On Wed, Apr 27, 2016 at 12:09 PM, Mahesh Dananjaya <
dananjayamah...@gmail.com> wrote:

> Hi maheshakya,
> Do we need to build carbon kernal by source before we build  CEP by source
> (https://github.com/wso2/carbon-kernel )  .Or is it inside those
> sources.i am trying to build all three sources after forked them.thank you.
> regards,
> Mahesh
>
> On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>> Congratulations and welcome to GSoC 2016. You did a great job in
>> preparing the proposal. Now it's time to dig deep and get started with the
>> project.
>>
>> First of all you need to familiarize with the code base. We have agreed
>> to implement this with CEP event streams. We already have a CEP extension
>> for predictions [1][2]. Go through this implementation and familiarize your
>> self with that. You need to understand how:
>>
>>1. Even streams are consumed
>>2. predictions are made from individual event
>>3. Results are sent back
>>
>> Get WSO2 ML and CEP sources (You may use latest released version of CEP)
>> and build the products. Get both carbon-ml[3] and product-ml[4] masters and
>> create new branches for your work from masters.
>>
>> After you build the products, you may need to do remote debugging[5] to
>> understand the flow. So please follow an example of real time prediction
>> with ML with debugging and get some idea. The component you need to debug
>> is org.wso2.carbon.ml.siddhi.extension.
>>
>> Next tasks would be implementing online learning algorithms in plain java
>> with spark ml lib and integrating those to ML. We also need to come up with
>> a proper and detailed architecture to employ those algorithms in ML.
>> Getting familiar with the aforementioned sections would give you some
>> insight on how this should be implemented.
>>
>> So please try to get a quick grasp then you can start the implementation.
>> Let us know if you have any questions or you get stuck somewhere.
>>
>> Also, please always add WSO2 developer's list as well when you
>> communicate with us regarding the project so that you can get opinions and
>> feedback from others as well.
>>
>> Best regards.
>>
>> [1]
>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>
>> [2]
>> https://github.com/wso2/carbon-ml/tree/master/components/extensions/org.wso2.carbon.ml.siddhi.extension
>>
>> [3] https://github.com/wso2/carbon-ml
>>
>> [4] https://github.com/wso2/product-ml
>>
>> [5] https://dzone.com/articles/how-debug-wso2-carbon-kernel
>>
>>
>> On Mon, Apr 25, 2016 at 3:33 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi,
>>> thank you for accepting my GSOC 2016 proposal and i am looking forward
>>> for the further instruction and project continuation. thank you very much.
>>> regards,
>>> Mahesh.
>>>
>>> --
>> Pruthuvi Maheshakya Wijewardena
>> mahesha...@wso2.com
>> +94711228855
>>
>>
>>
>


-- 
Pruthuvi Maheshakya Wijewardena
mahesha...@wso2.com
+94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-04-27 Thread Mahesh Dananjaya
Hi maheshakya,
Do we need to build carbon kernal by source before we build  CEP by source (
https://github.com/wso2/carbon-kernel )  .Or is it inside those sources.i
am trying to build all three sources after forked them.thank you.
regards,
Mahesh

On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena  wrote:

> Hi Mahesh,
>
> Congratulations and welcome to GSoC 2016. You did a great job in preparing
> the proposal. Now it's time to dig deep and get started with the project.
>
> First of all you need to familiarize with the code base. We have agreed to
> implement this with CEP event streams. We already have a CEP extension for
> predictions [1][2]. Go through this implementation and familiarize your
> self with that. You need to understand how:
>
>1. Even streams are consumed
>2. predictions are made from individual event
>3. Results are sent back
>
> Get WSO2 ML and CEP sources (You may use latest released version of CEP)
> and build the products. Get both carbon-ml[3] and product-ml[4] masters and
> create new branches for your work from masters.
>
> After you build the products, you may need to do remote debugging[5] to
> understand the flow. So please follow an example of real time prediction
> with ML with debugging and get some idea. The component you need to debug
> is org.wso2.carbon.ml.siddhi.extension.
>
> Next tasks would be implementing online learning algorithms in plain java
> with spark ml lib and integrating those to ML. We also need to come up with
> a proper and detailed architecture to employ those algorithms in ML.
> Getting familiar with the aforementioned sections would give you some
> insight on how this should be implemented.
>
> So please try to get a quick grasp then you can start the implementation.
> Let us know if you have any questions or you get stuck somewhere.
>
> Also, please always add WSO2 developer's list as well when you communicate
> with us regarding the project so that you can get opinions and feedback
> from others as well.
>
> Best regards.
>
> [1]
> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>
> [2]
> https://github.com/wso2/carbon-ml/tree/master/components/extensions/org.wso2.carbon.ml.siddhi.extension
>
> [3] https://github.com/wso2/carbon-ml
>
> [4] https://github.com/wso2/product-ml
>
> [5] https://dzone.com/articles/how-debug-wso2-carbon-kernel
>
>
> On Mon, Apr 25, 2016 at 3:33 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi,
>> thank you for accepting my GSOC 2016 proposal and i am looking forward
>> for the further instruction and project continuation. thank you very much.
>> regards,
>> Mahesh.
>>
>> --
> Pruthuvi Maheshakya Wijewardena
> mahesha...@wso2.com
> +94711228855
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev