Re: [Dev] XSLT 2.0 tokenize function

2018-11-21 Thread Sashika Wijesinghe
Hi Gayan,

The issue is because of the xalan library used in EI 6.1.1, but this is
fixed in the latest EI versions. Since this is not mentioned in the
document, we can add the workaround to EI 6.1.1 documentation. Created [1]
to track this issue.

[1] https://github.com/wso2/product-ei/issues/2879

Thanks
Sashika


On Wed, Nov 21, 2018 at 10:09 PM gayan gunawardana 
wrote:

> Hi Sashika,
>
> What I mentioned is enabling that property is not enough. I had to follow
> additional steps in [1] to get it work. Where can I find those additional
> steps in the documentation ?
>
> [1] http://nipun101.blogspot.com/
>
> Thanks,
> Gayan
>
> On Wed, Nov 21, 2018 at 9:21 PM Sashika Wijesinghe 
> wrote:
>
>> Hi Gayan,
>>
>> This is documented in [1] and it is required to enable this property to
>> work with xpath 2.0 functions.
>>
>> [1] https://docs.wso2.com/display/EI611/Configuring+synapse.properties
>>
>> Regards,
>> Sashika
>>
>> On Mon, Nov 19, 2018 at 2:53 PM gayan gunawardana <
>> gmgunaward...@gmail.com> wrote:
>>
>>> Hi Devs,
>>>
>>> [2] is not enough and I had to follow all the steps in [1] to get XSLT
>>> 2.0 tokenize function working in EI 6.1.1. I couldn't find these steps in
>>> official documentation (EI 6.1.1).
>>>
>>> Is there a place to get these information from official documentation ?
>>>
>>> [1] http://nipun101.blogspot.com/
>>> [2]
>>> http://wso2-oxygen-tank.10903.n7.nabble.com/Enable-XSLT-2-0-on-WSO2-EI-6-1-1-td156111.html
>>> <https://www.google.com/url?q=http://wso2-oxygen-tank.10903.n7.nabble.com/Enable-XSLT-2-0-on-WSO2-EI-6-1-1-td156111.html=D=hangouts=1542684783128000=AFQjCNFM2us6QBkp3Pt7TLTMkszvff89tg>
>>>
>>> Thanks,
>>> Gayan
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
> --
> Gayan
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] XSLT 2.0 tokenize function

2018-11-21 Thread Sashika Wijesinghe
Hi Gayan,

This is documented in [1] and it is required to enable this property to
work with xpath 2.0 functions.

[1] https://docs.wso2.com/display/EI611/Configuring+synapse.properties

Regards,
Sashika

On Mon, Nov 19, 2018 at 2:53 PM gayan gunawardana 
wrote:

> Hi Devs,
>
> [2] is not enough and I had to follow all the steps in [1] to get XSLT 2.0
> tokenize function working in EI 6.1.1. I couldn't find these steps in
> official documentation (EI 6.1.1).
>
> Is there a place to get these information from official documentation ?
>
> [1] http://nipun101.blogspot.com/
> [2]
> http://wso2-oxygen-tank.10903.n7.nabble.com/Enable-XSLT-2-0-on-WSO2-EI-6-1-1-td156111.html
> 
>
> Thanks,
> Gayan
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ERROR HANDLING FOR EI

2018-03-25 Thread Sashika Wijesinghe
Hi Pendekal,

The document [1] explains how to work with sequences using EI tooling, you
can apply the same concept to set up the fault sequence according to your
scenario. The EI error handling is explained in [2]

[1] https://docs.wso2.com/display/EI6xx/Working+with+Sequences+via+Tooling
[2] https://docs.wso2.com/display/EI611/Error+Handling

Regards,
Sashika

On Fri, Mar 23, 2018 at 5:12 PM, Pendekal Sanketh <
pendekal.sank...@bridgesgi.com> wrote:

> Hey,
>
>   Is there any tutorials to work with error handling in WSO2 EI tooling?
>
>   The reason being I created a REST API in which I added a fault sequence
> for invalid input. But when I send invalid input it isn't reaching the
> fault sequence at all. How do i setup my fault sequence so that it reaches
> the specified Endpoint?
>
>
> Thank You,
>
> Sanketh
> --
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> It may also be privileged or otherwise protected by work product immunity
> or other legal rules. If you have received it by mistake, please let us
> know by e-mail reply and delete it from your system; you may not copy this
> message or disclose its contents to anyone.
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add User on WSO2 EI 6.1.1 update 24

2018-03-18 Thread Sashika Wijesinghe
Hi Norbert,

We have fixed this issue [1].  The fix is available in the WSO2 EI 6.2.0 RC
pack.

[1] https://github.com/wso2/product-ei/issues/1976

Regards,
Sashika

On Sat, Mar 17, 2018 at 6:08 PM, Norberto Fernandes 
wrote:

> Hi Devs,
>
> I am using update 24 that was releases last week. I am having an internal
> issue while trying to add an user on Configure > users > add User.
> The page appears blank and the server log indicates that it cannot compile
> the add-step1.jsp file. (Sending the trace log below)
> It looks to me that this JSP is dependent on classes that are not loaded
> on this update 24.
>
> Do you have any fix for this issue?
>
> Thanks in advance.
>
> TID: [-1234] [] [2018-03-17 11:51:53,687] ERROR 
> {org.apache.catalina.core.ApplicationDispatcher}
> -  Servlet.service() for servlet bridgeservlet threw exception
> {org.apache.catalina.core.ApplicationDispatcher}
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: [1] in the generated java file:
> [/opt/jlr/apps/versions/wso2ei-6.1.1-update24/wso2/
> lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_
> 204812593/org/apache/jsp/user/add_002dstep1_jsp.java]
> The type org.wso2.carbon.identity.claim.metadata.mgt.stub.dto.LocalClaimDTO
> cannot be resolved. It is indirectly referenced from required .class files
>
> An error occurred at line: [1] in the generated java file:
> [/opt/jlr/apps/versions/wso2ei-6.1.1-update24/wso2/
> lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_
> 204812593/org/apache/jsp/user/add_002dstep1_jsp.java]
> The type org.wso2.carbon.identity.claim.metadata.mgt.stub.
> ClaimMetadataManagementServiceClaimMetadataException cannot be resolved.
> It is indirectly referenced from required .class files
>
> An error occurred at line: [30] in the generated java file:
> [/opt/jlr/apps/versions/wso2ei-6.1.1-update24/wso2/
> lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_
> 204812593/org/apache/jsp/user/add_002dstep1_jsp.java]
> Only a type can be imported. org.wso2.carbon.identity.
> claim.metadata.mgt.stub.dto.LocalClaimDTO resolves to a package
>
> An error occurred at line: [31] in the generated java file:
> [/opt/jlr/apps/versions/wso2ei-6.1.1-update24/wso2/
> lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_
> 204812593/org/apache/jsp/user/add_002dstep1_jsp.java]
> Only a type can be imported. org.wso2.carbon.identity.
> claim.metadata.mgt.stub.dto.ClaimPropertyDTO resolves to a package
>
> An error occurred at line: [32] in the generated java file:
> [/opt/jlr/apps/versions/wso2ei-6.1.1-update24/wso2/
> lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_
> 204812593/org/apache/jsp/user/add_002dstep1_jsp.java]
> Only a type can be imported. org.wso2.carbon.identity.
> claim.metadata.mgt.stub.ClaimMetadataManagementServiceClaimMetadataException
> resolves to a package
>
> An error occurred at line: [33] in the generated java file:
> [/opt/jlr/apps/versions/wso2ei-6.1.1-update24/wso2/
> lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_
> 204812593/org/apache/jsp/user/add_002dstep1_jsp.java]
> Only a type can be imported. org.wso2.carbon.identity.
> claim.metadata.mgt.util.ClaimConstants resolves to a package
>
> An error occurred at line: 253 in the jsp file: /user/add-step1.jsp
> LocalClaimDTO cannot be resolved to a type
> 250: CarbonUIUtil.getServerURL(config.getServletContext(),
> session),
> 251: (ConfigurationContext) config.getServletContext().
> getAttribute(CarbonConstants.CONFIGURATION_CONTEXT));
> 252: try {
> 253: loop: for(LocalClaimDTO localClaim :
> claimDataAdminClient.getLocalClaims()){
> 254: if (EMAIL_CLAIM.equals(
> localClaim.getLocalClaimURI())) {
> 255: ClaimPropertyDTO[] claimPropertyDTOs =
> localClaim.getClaimProperties();
> 256: if (claimPropertyDTOs != null) {
>
>
> An error occurred at line: 253 in the jsp file: /user/add-step1.jsp
> The method getLocalClaims() from the type ClaimDataAdminClient refers to
> the missing type LocalClaimDTO
> 250: CarbonUIUtil.getServerURL(config.getServletContext(),
> session),
> 251: (ConfigurationContext) config.getServletContext().
> getAttribute(CarbonConstants.CONFIGURATION_CONTEXT));
> 252: try {
> 253: loop: for(LocalClaimDTO localClaim :
> claimDataAdminClient.getLocalClaims()){
> 254: if (EMAIL_CLAIM.equals(
> localClaim.getLocalClaimURI())) {
> 255: ClaimPropertyDTO[] claimPropertyDTOs =
> localClaim.getClaimProperties();
> 256: if (claimPropertyDTOs != null) {
>
>
> An error occurred at line: 255 in the jsp file: /user/add-step1.jsp
> ClaimPropertyDTO cannot be resolved to a type
> 252: try {
> 253: loop: for(LocalClaimDTO localClaim :
> 

Re: [Dev] ERROR: Axis2Server

2018-03-07 Thread Sashika Wijesinghe
Hi Pendekal,

This issue [1] is fixed in the latest EI 6.1.1 update. Could you try out
the scenario in latest EI 6.1.1 update (6.1.1-update23) pack?

[1] https://github.com/wso2/product-ei/issues/570

Regards,
Sashika

On Wed, Mar 7, 2018 at 1:38 PM, Yohanna Fernando  wrote:

> Forwarded mail to dev@wso2.org.
>
> On Wed, Mar 7, 2018 at 12:36 PM, Pendekal Sanketh <
> pendekal.sank...@bridgesgi.com> wrote:
>
>> Hey,
>>While starting axis2server.bat, I got the following error:
>>  Server could not start due to class loading issue
>> java.lang.NoSuchMethodException: samples.util.SampleAxis2Server
>> .startServer([Ljava.lang.String;)
>>
>> What has to be done for the above error?
>> --
>> This email and any files transmitted with it are confidential and
>> intended solely for the use of the individual or entity to whom they are
>> addressed. It may also be privileged or otherwise protected by work product
>> immunity or other legal rules. If you have received it by mistake, please
>> let us know by e-mail reply and delete it from your system; you may not
>> copy this message or disclose its contents to anyone.
>>
>
>
>
> --
> Yohanna Fernando
> Training & Certification
> WSO2 Inc.
> http://wso2.com
>
> E-mail: yoha...@wso2.com
> Cell: +94779021159 <+94%2077%20902%201159>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] XPATH 2 function "tokenize" unresolvable ?

2018-03-01 Thread Sashika Wijesinghe
Hi Bernard,

By default XPath 2.0 function support is disabled in EI. Functions such as
"concat" are supported in XPath 1.0 version as well hence those will work
with the default configurations in the synapse.properties.

Could you please verify whether you have enabled the
"synapse.xpath.dom.failover.enabled"? (By default this property is
commented, you should uncomment this to support Xpath 2.0)

Further, when you define the property to tokenize you need to add the
namespace for the "fn" as below.
http://www.w3.org/2005/xpath-functions;
expression="fn:tokenize(syn:get-property('To'),'-')" name="codeFourniA"
scope="default" type="STRING"/>

Regards,
Sashika



On Thu, Mar 1, 2018 at 4:34 PM, Rajith Siriwardena  wrote:

> Hi Bernard,
>
> That debug log inform you that exception occurred in the AXIOM xpath
> evaluation and it's performing a DOM base reevaluation since you have
> enabled the synapse property to fallback to DOM (to enable XPATH 2.0). I
> believe you are getting the correct results? Is it not?
>
>
>
> On Thu, Mar 1, 2018 at 2:49 PM, Bernard Paris 
> wrote:
>
>> Hi,
>>
>> can anybody explain me how to get out of this problem ?
>>
>> In file [EI-HOME]/conf/synapse.properties
>> synapse.xpath.dom.failover.enabled=true
>>
>> This is my filter mediator :
>>  
>> 
>>> expression="fn:tokenize(syn:get-property('To'),'-')"
>> scope="default" type="STRING" description="codeFourniA"/>
>>> expression="$ctx:codeFourniA[last()]"
>> scope="default" type="STRING" description="codeFourniB"/>
>> 
>> 
>>  
>>
>> [2018-03-01 10:15:38,013] [EI-Core] DEBUG - SynapseXPath AXIOM xpath
>> evaluation failed with UnresolvableException, trying to perform DOM based
>> XPATH
>> org.jaxen.UnresolvableException: No Such Function tokenize
>> at org.jaxen.SimpleFunctionContext.getFunction(SimpleFunctionCo
>> ntext.java:127)
>> at org.apache.synapse.util.xpath.SynapseXPathFunctionContext.ge
>> tFunction(SynapseXPathFunctionContext.java:101)
>>
>>
>> (no problem with another function call like "concat")
>>
>> Thanks,
>> Bernard
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> *Rajith Siriwardana*
> WSO2 Inc. | http://wso2.com
> *lean. enterprise. middleware*
>
> ---
> *https://home.apache.org/~siriwardana
> *
>
>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Simple example for Rates-based throttling policy

2018-01-12 Thread Sashika Wijesinghe
Hi Lahiru,

I experienced the same behaviour with rate-based policy. Even though the
above example shows the policy without throttle: type attribute, the policy
will not get apply without that attribute. It seems its mandatory to define
this.

If the "throttle: type" attribute is mandatory for the rate based policy,
we may need to correct the documentation accordingly.

Regards,
Sashika

On Fri, Jan 12, 2018 at 2:48 AM, Lahiru Sandaruwan  wrote:

> Hi,
>
> I'm trying to get a sample throttling policy for rate limiting similar to
> "Example for a rates-based policy" explained at [1], and I'm having the
> policy file as a Registry artifact, separately.
>
> I could get it working with below policy.
>
> http://schemas.xmlsoap.org/ws/2004/09/policy;
> 
> xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle;>
> 
> 
> other
> 
> 
> 
> 3
> 1000
> 
> 
> 
> 
> 
> 
>
> But it has unwanted information such as ​" throttle:type="IP">other". I cannot get rid of that part as
> it stops rate limiting. According to the sample at [1], policy should be
> simpler.
> Any idea how we can simplify this?
>
> ​[1] https://docs.wso2.com/display/EI611/Throttle+Mediator#
> ThrottleMediator-Example​
>
> ​Thanks.​
>
> --
> --
>
> Lahiru Sandaruwan
> Associate Technical Lead,
> WSO2 Inc., http://wso2.com
>
> lean.enterprise.middleware
>
> m: +1 901 530 2379 <(901)%20530-2379>
> e: lahi...@wso2.com b: https://medium.com/@lahirugmg
> in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS] Issue on email pattern validation.

2018-01-05 Thread Sashika Wijesinghe
Hi Senuwan,

I have tried with the regex pattern you provided and I'm getting the same
validation error as above. However, if I execute the given regex pattern in
Mysql it gives the correct result as below. The reason for this behaviour
is due to the differences in the metacharacters used in MySQL regex and
Javascript regex.

mysql> SELECT * FROM `Employee` WHERE `email`REGEXP
'^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$';
+---+--+---+-+--+--+
| EmpID | LastName | FirstName | Address | City | email|
+---+--+---+-+--+--+
|   199 | DEDDEDE  | abcname   | testadd  | citytest | sash...@wso2.com |
+---+--+---+-+--+--+
1 row in set (0.00 sec)


To validate the email address in DSS you can use
*^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$*
regex pattern.

Example:

  
  INSERT INTO Employee (EMpID,LastName,FirstName,Address,City,
email) VALUES (:id,:Lname,:Fname,:Address,:city, :email);
  
  
  
  
  
  
 
  
   

Could you please try using the given regex pattern to validate the email
address in your data service?

Regards,
Sashika

On Fri, Jan 5, 2018 at 10:50 PM, Senuwan Withana  wrote:

> Hi Team,
>
> I found an issue when validating the email id using the WSO2 DSS.  I have
> used below mentioned pattern.
>
>
> When I executed my API I got error like following:
>
> Nested Exception:-
> Pattern {^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$} is expected
> Field Name: CUSTOMER_EMAIL
> Field Value: senu...@wso2.com
>
>
> Kindly give the suggestion to over come the mentioned issue.
>
> *Full log  attached below.*
>
> ​
>
> [2018-01-05 22:42:58,397] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "POST /carproduction HTTP/1.1[\r][\n]"
> [2018-01-05 22:42:58,397] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "cache-control: no-cache[\r][\n]"
> [2018-01-05 22:42:58,397] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Postman-Token: ee0d92e3-e410-4bb3-b0c2-
> 434041ff1029[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "User-Agent: PostmanRuntime/6.4.1[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Accept: */*[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Host: localhost:8280[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "content-length: 810[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Connection: keep-alive[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\r][\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "  [\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Samantha123
> Perera[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "senu...@wso2.com
> [\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Alto[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "blue[
> \n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "800 CAPACITY>[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "leather INTERIOR_MATERIAL>[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Pink INTERIOR_COLOR>[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "5T[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Yes[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Yes HEATED_LEATHER_SEATS>[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "No[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "No AUTOMATIC_TAILGATE>[\n]"
> [2018-01-05 22:42:58,398] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> ""
> [2018-01-05 22:42:58,403] [EI-Core] DEBUG - wire HTTP-Sender I/O
> dispatcher-3 << 

Re: [Dev] IS Dashboard widgets are not loading due to 'webSocket' issue

2017-12-11 Thread Sashika Wijesinghe
Hi Ishara,

Thanks a lot for the help.

I could solve the issue after adding the WebSocket configurations inside
the "location / " context in Nginx.

Regards,
Sashika

On Mon, Dec 11, 2017 at 11:24 AM, Sashika Wijesinghe <sash...@wso2.com>
wrote:

> Hi Ishara,
>
> Following is the Nginx configuration of the IS cluster.
>
> map $http_upgrade $connection_upgrade {
> default upgrade;
> '' close;
> }
>
> server {
> listen 80;
> server_name is540.qa.com;
> rewrite ^/(.*) https://is540.qa.com/$1 permanent;
>
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection "upgrade";
> proxy_http_version 1.1;
>
> error_log/var/log/nginx/is540error.log;
> }
>
> server {
> listen 443;
> server_name is540.qa.com;
> ssl on;
> ssl_certificate /etc/nginx/ssl/is540/IS540.crt;
> ssl_certificate_key /etc/nginx/ssl/is540/IS540.key;
>
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection "upgrade";
> proxy_http_version 1.1;
>
> error_log/var/log/nginx/is540error.log;
>
> location / {
>proxy_set_header X-Forwarded-Host $host;
>proxy_set_header X-Forwarded-Server $host;
>proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>proxy_set_header Host $http_host;
>proxy_read_timeout 5m;
>proxy_send_timeout 5m;
>proxy_pass https://isserver/;
>proxy_redirect https://isserver/ https://is540.qa.com/;
>
> }
> }
>
>
> I have tried removing the "map $http_upgrade $connection_upgrade"
> configuration from the Nginx server. but still, I'm getting the above
> exception when loading the widgets.
>
> Thanks,
> Sashika
>
>
> On Fri, Dec 8, 2017 at 1:45 PM, Ishara Karunarathna <isha...@wso2.com>
> wrote:
>
>> HI,
>>
>> Did you enable webSocket in Nginx?
>>
>> -Ishara
>>
>> On Fri, Dec 8, 2017 at 1:41 PM, Sashika Wijesinghe <sash...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I have 2 nodes IS cluster fronted by Nginx. When I browse each widget in
>>> the IS dashboard I'm ending up with the below exception and widgets are not
>>> loading.
>>>
>>> Any suggestion to solve the issue is highly appreciated.
>>>
>>> TID: [-1234] [] [2017-12-08 06:41:32,517] ERROR {
>>> org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>>  org.mozilla.javascript.EcmaError: ReferenceError: "webSocket" is not
>>> defined. (/dashboard//session_manager.jag#7)
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>> org.mozilla.javascript.EcmaError: ReferenceError: "webSocket" is not
>>> defined. (/dashboard//session_manager.jag#7)
>>> at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(Rhi
>>> noEngine.java:571)
>>> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngi
>>> ne.java:273)
>>> at org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebApp
>>> Manager.java:588)
>>> at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(Web
>>> AppManager.java:508)
>>> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServl
>>> et.java:24)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:303)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic
>>> ationDispatcher.java:743)
>>> at org.apache.catalina.core.ApplicationDispatcher.processReques
>>> t(ApplicationDispatcher.java:485)
>>> at org.apache.catalina.core.ApplicationDispatcher.doForward(App
>>> licationDispatcher.java:377)
>>> at org.apache.catalina.core.ApplicationDispatcher.forward(Appli
>>> cationDispatcher.java:337)
>>> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFil
>>> ter.java:21)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
>>> r(H

Re: [Dev] IS Dashboard widgets are not loading due to 'webSocket' issue

2017-12-11 Thread Sashika Wijesinghe
Hi Ishara,

Following is the Nginx configuration of the IS cluster.

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;
server_name is540.qa.com;
rewrite ^/(.*) https://is540.qa.com/$1 permanent;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;

error_log/var/log/nginx/is540error.log;
}

server {
listen 443;
server_name is540.qa.com;
ssl on;
ssl_certificate /etc/nginx/ssl/is540/IS540.crt;
ssl_certificate_key /etc/nginx/ssl/is540/IS540.key;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;

error_log/var/log/nginx/is540error.log;

location / {
   proxy_set_header X-Forwarded-Host $host;
   proxy_set_header X-Forwarded-Server $host;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   proxy_set_header Host $http_host;
   proxy_read_timeout 5m;
   proxy_send_timeout 5m;
   proxy_pass https://isserver/;
   proxy_redirect https://isserver/ https://is540.qa.com/;

}
}


I have tried removing the "map $http_upgrade $connection_upgrade"
configuration from the Nginx server. but still, I'm getting the above
exception when loading the widgets.

Thanks,
Sashika


On Fri, Dec 8, 2017 at 1:45 PM, Ishara Karunarathna <isha...@wso2.com>
wrote:

> HI,
>
> Did you enable webSocket in Nginx?
>
> -Ishara
>
> On Fri, Dec 8, 2017 at 1:41 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I have 2 nodes IS cluster fronted by Nginx. When I browse each widget in
>> the IS dashboard I'm ending up with the below exception and widgets are not
>> loading.
>>
>> Any suggestion to solve the issue is highly appreciated.
>>
>> TID: [-1234] [] [2017-12-08 06:41:32,517] ERROR {
>> org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>  org.mozilla.javascript.EcmaError: ReferenceError: "webSocket" is not
>> defined. (/dashboard//session_manager.jag#7)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.EcmaError: ReferenceError: "webSocket" is not
>> defined. (/dashboard//session_manager.jag#7)
>> at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(Rhi
>> noEngine.java:571)
>> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngi
>> ne.java:273)
>> at org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebApp
>> Manager.java:588)
>> at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(Web
>> AppManager.java:508)
>> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServl
>> et.java:24)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:303)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic
>> ationDispatcher.java:743)
>> at org.apache.catalina.core.ApplicationDispatcher.processReques
>> t(ApplicationDispatcher.java:485)
>> at org.apache.catalina.core.ApplicationDispatcher.doForward(App
>> licationDispatcher.java:377)
>> at org.apache.catalina.core.ApplicationDispatcher.forward(Appli
>> cationDispatcher.java:337)
>> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFil
>> ter.java:21)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
>> r(HttpHeaderSecurityFilter.java:124)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
>> dWrapperValve.java:219)
>> at org.apache.catalina.core.StandardContextValve.invoke(Standar
>> dContextValve.java:110)
>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A
>> uthenticatorBase.java:506)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
>> stValve.java:169)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo

[Dev] IS Dashboard widgets are not loading due to 'webSocket' issue

2017-12-08 Thread Sashika Wijesinghe
Hi All,

I have 2 nodes IS cluster fronted by Nginx. When I browse each widget in
the IS dashboard I'm ending up with the below exception and widgets are not
loading.

Any suggestion to solve the issue is highly appreciated.

TID: [-1234] [] [2017-12-08 06:41:32,517] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.EcmaError: ReferenceError: "webSocket" is not
defined. (/dashboard//session_manager.jag#7)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: ReferenceError: "webSocket" is not
defined. (/dashboard//session_manager.jag#7)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:508)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:377)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
at
org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)
at
org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:60)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "webSocket" is
not defined. (/dashboard//session_manager.jag#7)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at
org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3750)
at 

Re: [Dev] SSLPeerUnverifiedException when creating a workflow definition using external workflow engine

2017-12-07 Thread Sashika Wijesinghe
Hi Dharshana,

Thanks a lot for the Response.

I could resolve the issue after changing the keystore with the CN matching
to BPS server hostname and importing the cert to the client-trust store of
IS.

Regards,
Sashika

On Thu, Dec 7, 2017 at 2:57 PM, Darshana Gunawardana <darsh...@wso2.com>
wrote:

> The issue is,
> "SSL peer failed hostname validation for name: 192.168.48.116"
>
> The BPS server URL should be align with its certificate. In a standalone
> pack the default keystore has the certificate CN as 'localhost'. Unless you
> change the keystore, you should have the BPS server URL as
> https://localhost:9445/services...
>
> If you cannot use localhost as the BPS hostname, and wanted to use IP or
> any other hostname, you should change the keystore with the CN match to the
> BPS server URL.
>
> Thanks,
>
> On Thu, Dec 7, 2017 at 2:30 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I want to configure an external BPS server as a workflow engine (BPS
>> component in EI server) and create a workflow definition in two nodes IS
>> cluster fronted by Nginx.
>>
>> I have configured the external BPM component as a workflow engine and it
>> was successful. When I used the above-created workflow engine to create a
>> workflow definition I am getting the following SSL exception.
>>
>> Please note;
>>
>> 1. I have used the BPS component of the latest wum updated EI 6.1.1
>> server (wso2ei-6.1.1.1511272842384.zip) and IS 5.4.0 beta pack.
>>
>> 2. Tried the same scenario with IS 5.4.0 beta standalone pack connecting
>> to BPS component in EI server. But still getting the same "SSL peer failed
>> hostname validation" exception in IS logs
>>
>> Any help to solve this issue is highly appreciated.
>>
>>
>> TID: [-1234] [] [2017-12-07 08:28:21,337]  INFO {
>> org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
>> url[https://192.168.48.116:9445/services/BPELUploader]
>> javax.net.ssl.SSLPeerUnverifiedException: SSL peer failed hostname
>> validation for name: 192.168.48.116
>> at org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.ve
>> rifyHostname(TLSProtocolSocketFactory.java:233)
>> at org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.cr
>> eateSocket(TLSProtocolSocketFactory.java:194)
>> at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
>> tion.java:707)
>> at org.apache.commons.httpclient.MultiThreadedHttpConnectionMan
>> ager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionM
>> anager.java:1361)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeWith
>> Retry(HttpMethodDirector.java:387)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeMeth
>> od(HttpMethodDirector.java:171)
>> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpC
>> lient.java:397)
>> at org.apache.axis2.transport.http.AbstractHTTPSender.executeMe
>> thod(AbstractHTTPSender.java:673)
>> at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPS
>> ender.java:195)
>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
>> riteMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
>> nvoke(CommonsHTTPTransportSender.java:278)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>> utInAxisOperation.java:430)
>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>> eImpl(OutInAxisOperation.java:225)
>> at org.apache.axis2.client.OperationClient.execute(OperationCli
>> ent.java:149)
>> at org.wso2.carbon.bpel.stub.upload.BPELUploaderStub.uploadServ
>> ice(BPELUploaderStub.java:196)
>> at org.wso2.carbon.identity.workflow.impl.util.WorkflowDeployer
>> Client.uploadBPEL(WorkflowDeployerClient.java:74)
>> at org.wso2.carbon.identity.workflow.impl.BPELDeployer.deployAr
>> tifacts(BPELDeployer.java:153)
>> at org.wso2.carbon.identity.workflow.impl.BPELDeployer.generate
>> AndDeployArtifacts(BPELDeployer.java:133)
>> at org.wso2.carbon.identity.workflow.impl.BPELDeployer.initiali
>> ze(BPELDeployer.java:110)
>> at org.wso2.carbon.identity.workflow.mgt.workflow.AbstractWorkf
>> low.deploy(AbstractWorkflow.java:87)
>> at org.wso2.carbon.identity.workflow.impl.ApprovalWorkflow.
>> deploy(ApprovalWorkflow.java:84)
>> at org.wso2.carbon.identity.workflow.mgt.WorkflowManagementServ
&

[Dev] SSLPeerUnverifiedException when creating a workflow definition using external workflow engine

2017-12-07 Thread Sashika Wijesinghe
Hi All,

I want to configure an external BPS server as a workflow engine (BPS
component in EI server) and create a workflow definition in two nodes IS
cluster fronted by Nginx.

I have configured the external BPM component as a workflow engine and it
was successful. When I used the above-created workflow engine to create a
workflow definition I am getting the following SSL exception.

Please note;

1. I have used the BPS component of the latest wum updated EI 6.1.1 server
(wso2ei-6.1.1.1511272842384.zip) and IS 5.4.0 beta pack.

2. Tried the same scenario with IS 5.4.0 beta standalone pack connecting to
BPS component in EI server. But still getting the same "SSL peer failed
hostname validation" exception in IS logs

Any help to solve this issue is highly appreciated.


TID: [-1234] [] [2017-12-07 08:28:21,337]  INFO
{org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
url[https://192.168.48.116:9445/services/BPELUploader]
javax.net.ssl.SSLPeerUnverifiedException: SSL peer failed hostname
validation for name: 192.168.48.116
at
org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.verifyHostname(TLSProtocolSocketFactory.java:233)
at
org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.createSocket(TLSProtocolSocketFactory.java:194)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:673)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.bpel.stub.upload.BPELUploaderStub.uploadService(BPELUploaderStub.java:196)
at
org.wso2.carbon.identity.workflow.impl.util.WorkflowDeployerClient.uploadBPEL(WorkflowDeployerClient.java:74)
at
org.wso2.carbon.identity.workflow.impl.BPELDeployer.deployArtifacts(BPELDeployer.java:153)
at
org.wso2.carbon.identity.workflow.impl.BPELDeployer.generateAndDeployArtifacts(BPELDeployer.java:133)
at
org.wso2.carbon.identity.workflow.impl.BPELDeployer.initialize(BPELDeployer.java:110)
at
org.wso2.carbon.identity.workflow.mgt.workflow.AbstractWorkflow.deploy(AbstractWorkflow.java:87)
at
org.wso2.carbon.identity.workflow.impl.ApprovalWorkflow.deploy(ApprovalWorkflow.java:84)
at
org.wso2.carbon.identity.workflow.mgt.WorkflowManagementServiceImpl.addWorkflow(WorkflowManagementServiceImpl.java:360)
at
org.wso2.carbon.identity.workflow.mgt.WorkflowManagementAdminService.addWorkflow(WorkflowManagementAdminService.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at 

Re: [Dev] Cluster setup with load balancer

2017-12-05 Thread Sashika Wijesinghe
Hi Dilusha,

Make sure to import the SSL certificate into the client-truststore.jks of
gateway nodes.

For example: keytool -import -trustcacerts -alias server -file server.crt
-keystore client-truststore.jks

Regards,
Sashika



On Tue, Dec 5, 2017 at 11:31 PM, Pubudu Gunatilaka  wrote:

> Hi Dilusha,
>
> Configure the cluster between gateway nodes according to the guide. If you
> start both gateway nodes, you should see 'Member joined' message in one of
> the gateway nodes.
>
> Actually, you need to configure pass-through transports in the gateway for
> nginx. The ports are 8280 and 8243. We will update the docs.
>
> As you have one manager node, it is not mandatory to configure servlet
> ports for gateway nodes.
>
> Thank you!
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] How to generate an invoice based on the usage of commercial APIs

2017-12-02 Thread Sashika Wijesinghe
Hi Rukshan,

Thanks a lot for the response.

I could solve this issue after trying in a private browser. However,
noticed that each time I had to create a new user to get subscribed to the
application, if we logged in using an existing user it will redirect to the
"Account Home" (to define plan, invoice etc) and the application will
remain in On Hold state.

Regards,
Sashika



On Fri, Dec 1, 2017 at 11:42 AM, Rukshan Premathunga <ruks...@wso2.com>
wrote:

> Hi Sashika,
>
> Can you please check on private browser? And also please check das rest
> api configurations in the billing engine.
>
> Thanks and Regards
>
> On 1 Dec 2017 11:10 am, "Sashika Wijesinghe" <sash...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have tried this sample several times by following the steps in the
>> documentation. (Deployed the war as a web application in APIM server itself
>> as well) but invoice generation failed with the same error 
>> (*java.lang.**IllegalArgumentException:
>> attempt to create create event with null entity*).
>>
>> Any suggestion to solve this issue is highly appreciated.
>>
>> Regards,
>> Sashika
>>
>> On Wed, Nov 29, 2017 at 10:44 PM, Irham Iqbal <iq...@wso2.com> wrote:
>>
>>> Hi Sashika,
>>>
>>> I recently tried the billing engine war by deploying it on APIM 2.1.0 it
>>> self, it worked for me without any issue.
>>>
>>> Thanks,
>>> Iqbal
>>>
>>> On Wed, Nov 29, 2017 at 5:08 PM, Sashika Wijesinghe <sash...@wso2.com>
>>> wrote:
>>>
>>>> Hi Rukshan,
>>>>
>>>> Thanks for the quick response. I have used the billing engine version
>>>> linked in the APIM documentation (1.2.0).
>>>>
>>>> Further, I have tried with the artefacts you shared in [1] but still
>>>> getting the same issue even after manually executing all the available
>>>> analytics scripts.
>>>>
>>>> Attached the tomcat logs and application logs.
>>>>
>>>> Thanks
>>>> Sashika
>>>>
>>>>
>>>> [1] https://github.com/ruks/wso2-am-billing-engine/releases/
>>>> tag/am-2.1.0
>>>>
>>>> On Wed, Nov 29, 2017 at 2:39 PM, Rukshan Premathunga <ruks...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Sashika,
>>>>>
>>>>> Which billing engine version did you check? Can you check on the
>>>>> following[1] if not already. *invoice* table is empty because invoice
>>>>> generation is failed. Also in the billing capp, it take time to generate
>>>>> summary tables and please wait bit longer or execute the script manually 
>>>>> to
>>>>> generate data. If you observed this again, can you please attached the 
>>>>> full
>>>>> log as well?
>>>>>
>>>>> [1] https://github.com/ruks/wso2-am-billing-engine/releases/
>>>>> tag/am-2.1.0
>>>>>
>>>>> Thanks and Regards
>>>>>
>>>>> On Wed, Nov 29, 2017 at 2:14 PM, Sashika Wijesinghe <sash...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I have tried to generate an invoice for the monetized APIs as
>>>>>> documented in [1].
>>>>>>
>>>>>> When I select the 'invoice' tab in the sample billing engine to
>>>>>> generate the invoices observed the following error from the billing 
>>>>>> engine
>>>>>> deployed in tomcat server.
>>>>>>
>>>>>> *HTTP Status 500 - Request processing failed; nested exception is
>>>>>> org.springframework.webflow.execution.ActionExecutionException: Exception
>>>>>> thrown executing [AnnotatedAction@3fa06082 targetAction =
>>>>>> [EvaluateAction@274d6a91 expression = invoiceService.createInvoice(user),
>>>>>> resultExpression = viewScope.invoice], attributes = map[[empty]]] in 
>>>>>> state
>>>>>> 'invoiceHome' of flow 'account' -- action execution attributes were
>>>>>> 'map[[empty]]'*
>>>>>>
>>>>>> After verifying the 'billing' database observed that there are
>>>>>> no records in the "*invoice*" table.  However, as per the API
>>>>>> statistics, there are 20 API calls for that particular API.
>>>>>>
>>>>>> May I know how to solve this issue?
>>>>>>
>>>>>>
>>>>>> [1] https://docs.wso2.com/display/AM210/Enabling+Monetization+of+APIs
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>>>> Mobile : +94 (0) 774537487
>>>>>> sash...@wso2.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Rukshan Chathuranga.
>>>>> Software Engineer.
>>>>> WSO2, Inc.
>>>>> +94711822074 <+94%2071%20182%202074>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>> Mobile : +94 (0) 774537487
>>>> sash...@wso2.com
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Irham Iqbal
>>> Software Engineer
>>> WSO2
>>> phone: +94 777888452
>>> <http://wso2.com/signature>
>>>
>>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] How to generate an invoice based on the usage of commercial APIs

2017-11-30 Thread Sashika Wijesinghe
Hi All,

I have tried this sample several times by following the steps in the
documentation. (Deployed the war as a web application in APIM server itself
as well) but invoice generation failed with the same error
(*java.lang.**IllegalArgumentException:
attempt to create create event with null entity*).

Any suggestion to solve this issue is highly appreciated.

Regards,
Sashika

On Wed, Nov 29, 2017 at 10:44 PM, Irham Iqbal <iq...@wso2.com> wrote:

> Hi Sashika,
>
> I recently tried the billing engine war by deploying it on APIM 2.1.0 it
> self, it worked for me without any issue.
>
> Thanks,
> Iqbal
>
> On Wed, Nov 29, 2017 at 5:08 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi Rukshan,
>>
>> Thanks for the quick response. I have used the billing engine version
>> linked in the APIM documentation (1.2.0).
>>
>> Further, I have tried with the artefacts you shared in [1] but still
>> getting the same issue even after manually executing all the available
>> analytics scripts.
>>
>> Attached the tomcat logs and application logs.
>>
>> Thanks
>> Sashika
>>
>>
>> [1] https://github.com/ruks/wso2-am-billing-engine/releases/tag/am-2.1.0
>>
>> On Wed, Nov 29, 2017 at 2:39 PM, Rukshan Premathunga <ruks...@wso2.com>
>> wrote:
>>
>>> Hi Sashika,
>>>
>>> Which billing engine version did you check? Can you check on the
>>> following[1] if not already. *invoice* table is empty because invoice
>>> generation is failed. Also in the billing capp, it take time to generate
>>> summary tables and please wait bit longer or execute the script manually to
>>> generate data. If you observed this again, can you please attached the full
>>> log as well?
>>>
>>> [1] https://github.com/ruks/wso2-am-billing-engine/releases/tag/am-2.1.0
>>>
>>> Thanks and Regards
>>>
>>> On Wed, Nov 29, 2017 at 2:14 PM, Sashika Wijesinghe <sash...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have tried to generate an invoice for the monetized APIs as
>>>> documented in [1].
>>>>
>>>> When I select the 'invoice' tab in the sample billing engine to
>>>> generate the invoices observed the following error from the billing engine
>>>> deployed in tomcat server.
>>>>
>>>> *HTTP Status 500 - Request processing failed; nested exception is
>>>> org.springframework.webflow.execution.ActionExecutionException: Exception
>>>> thrown executing [AnnotatedAction@3fa06082 targetAction =
>>>> [EvaluateAction@274d6a91 expression = invoiceService.createInvoice(user),
>>>> resultExpression = viewScope.invoice], attributes = map[[empty]]] in state
>>>> 'invoiceHome' of flow 'account' -- action execution attributes were
>>>> 'map[[empty]]'*
>>>>
>>>> After verifying the 'billing' database observed that there are
>>>> no records in the "*invoice*" table.  However, as per the API
>>>> statistics, there are 20 API calls for that particular API.
>>>>
>>>> May I know how to solve this issue?
>>>>
>>>>
>>>> [1] https://docs.wso2.com/display/AM210/Enabling+Monetization+of+APIs
>>>>
>>>>
>>>> --
>>>>
>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>> Mobile : +94 (0) 774537487
>>>> sash...@wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>> +94711822074 <+94%2071%20182%202074>
>>>
>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer
> WSO2
> phone: +94 777888452
> <http://wso2.com/signature>
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to set the property name="backendServerURL" and property name="mgtConsoleURL" in carbon.xml for the gateway cluster

2017-11-29 Thread Sashika Wijesinghe
Hi Dushantha,

AFAIK you don't need to manually specify the 'backendServerURL' and
'mgtConsoleURL'
in axis2.xml as it is parameterized.

Regards,
Sashika

On Thu, Nov 30, 2017 at 10:38 AM, Dushantha Batuwita 
wrote:

> Hi  Dev
>
> I'm involved in developing a Gateway cluster and the particulars  are as
> follows
>
>
>- Cluster is developed in the local machine
>- consists of two Gateway Nodes
>- One is a* Gateway worker offset by 3*
>- Other is a *Gateway worker and Manager* *offset by 2*
>- Those nodes are fronted by LB (am.wso2.com)
>
>
>
> I'm configuring the carbon.Xml by setting the well-known address members
> (wka).
>
> My question is while configuring the bellow entry in Gateway worker node
> 
> 
> 
> 
> 
> 
>
>
> what should be the value for *backendServerURL and **mgtConsoleURL*
>
>
>- Should the backendServerURL be the LB address?
>- While mgtConsoleURL being the URL of Manager Gateway node?
>
>
> please advice
>  Regards
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] How to generate an invoice based on the usage of commercial APIs

2017-11-29 Thread Sashika Wijesinghe
Hi Rukshan,

Thanks for the quick response. I have used the billing engine version
linked in the APIM documentation (1.2.0).

Further, I have tried with the artefacts you shared in [1] but still
getting the same issue even after manually executing all the available
analytics scripts.

Attached the tomcat logs and application logs.

Thanks
Sashika


[1] https://github.com/ruks/wso2-am-billing-engine/releases/tag/am-2.1.0

On Wed, Nov 29, 2017 at 2:39 PM, Rukshan Premathunga <ruks...@wso2.com>
wrote:

> Hi Sashika,
>
> Which billing engine version did you check? Can you check on the
> following[1] if not already. *invoice* table is empty because invoice
> generation is failed. Also in the billing capp, it take time to generate
> summary tables and please wait bit longer or execute the script manually to
> generate data. If you observed this again, can you please attached the full
> log as well?
>
> [1] https://github.com/ruks/wso2-am-billing-engine/releases/tag/am-2.1.0
>
> Thanks and Regards
>
> On Wed, Nov 29, 2017 at 2:14 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I have tried to generate an invoice for the monetized APIs as documented
>> in [1].
>>
>> When I select the 'invoice' tab in the sample billing engine to generate
>> the invoices observed the following error from the billing engine deployed
>> in tomcat server.
>>
>> *HTTP Status 500 - Request processing failed; nested exception is
>> org.springframework.webflow.execution.ActionExecutionException: Exception
>> thrown executing [AnnotatedAction@3fa06082 targetAction =
>> [EvaluateAction@274d6a91 expression = invoiceService.createInvoice(user),
>> resultExpression = viewScope.invoice], attributes = map[[empty]]] in state
>> 'invoiceHome' of flow 'account' -- action execution attributes were
>> 'map[[empty]]'*
>>
>> After verifying the 'billing' database observed that there are no records
>> in the "*invoice*" table.  However, as per the API statistics, there are
>> 20 API calls for that particular API.
>>
>> May I know how to solve this issue?
>>
>>
>> [1] https://docs.wso2.com/display/AM210/Enabling+Monetization+of+APIs
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <+94%2071%20182%202074>
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com


catalina.out
Description: Binary data
HTTP Status 500 - Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@69db59a4 targetAction = [EvaluateAction@408aee5d expression = invoiceService.createInvoice(user), resultExpression = viewScope.invoice], attributes = map[[empty]]] in state 'invoiceHome' of flow 'account' -- action execution attributes were 'map[[empty]]'

type Exception report

message Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@69db59a4 targetAction = [EvaluateAction@408aee5d expression = invoiceService.createInvoice(user), resultExpression = viewScope.invoice], attributes = map[[empty]]] in state 'invoiceHome' of flow 'account' -- action execution attributes were 'map[[empty]]'

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@69db59a4 targetAction = [EvaluateAction@408aee5d expression = invoiceService.createInvoice(user), resultExpression = viewScope.invoice], attributes = map[[empty]]] in state 'invoiceHome' of flow 'account' -- action execution attributes were 'map[[empty]]'
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:8

[Dev] [DEV] How to generate an invoice based on the usage of commercial APIs

2017-11-29 Thread Sashika Wijesinghe
Hi All,

I have tried to generate an invoice for the monetized APIs as documented in
[1].

When I select the 'invoice' tab in the sample billing engine to generate
the invoices observed the following error from the billing engine deployed
in tomcat server.

*HTTP Status 500 - Request processing failed; nested exception is
org.springframework.webflow.execution.ActionExecutionException: Exception
thrown executing [AnnotatedAction@3fa06082 targetAction =
[EvaluateAction@274d6a91 expression = invoiceService.createInvoice(user),
resultExpression = viewScope.invoice], attributes = map[[empty]]] in state
'invoiceHome' of flow 'account' -- action execution attributes were
'map[[empty]]'*

After verifying the 'billing' database observed that there are no records
in the "*invoice*" table.  However, as per the API statistics, there are 20
API calls for that particular API.

May I know how to solve this issue?


[1] https://docs.wso2.com/display/AM210/Enabling+Monetization+of+APIs


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Sashika Wijesinghe
Hi Himasha,

When exporting the carbon application project we can select the required
server role. I have tried that option for 'EnterpriseServiceBus' server
role and it works for me.

Regards,
Sashika

On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge <himas...@wso2.com> wrote:

> Hi Sashika,
>
> To solve the issue, you can add the 'GovernanceRegistry' server role to
> the EI server under "" in the carbon.xml or set the server
> role of the registry resource to 'EnterpriseIntegrator' when creating the
> CAR file.
> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for registry
> projects.
>
> Thanks,
> Himasha
>
> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda <vi...@wso2.com> wrote:
>
>> Hi All,
>> IMO, this should work OOB. If above changes works, we can ship the
>> carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?
>>
>> Regards,
>> Vinod
>>
>> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe <sash...@wso2.com>
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> To solve the issue, you can add the 'GovernanceRegistry' server role to
>>> the EI server under "" in the carbon.xml or set the server
>>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>>> CAR file.
>>>
>>> Regards,
>>> Sashika
>>>
>>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga <ruks...@wso2.com>
>>> wrote:
>>>
>>>> Hi Godwin,
>>>>
>>>> I think it because of your car file don't compatible with EI server
>>>> role. Can you please find the EI server role and update in the 
>>>> artifact.xml.
>>>>
>>>> Thanks and Regards
>>>>
>>>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal <god...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Devs,
>>>>>
>>>>> Can't we have a CAR application with only registry project and deploy?
>>>>> It's complaining there are no artifacts to deploy and goes to faulty.
>>>>>
>>>>> Thanks
>>>>> Godwin
>>>>>
>>>>> --
>>>>> *Godwin Amila Shrimal*
>>>>> Associate Technical Lead
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> mobile: *+94772264165*
>>>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>>>> twitter: https://twitter.com/godwinamila
>>>>> <http://wso2.com/signature>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Rukshan Chathuranga.
>>>> Software Engineer.
>>>> WSO2, Inc.
>>>> +94711822074 <+94%2071%20182%202074>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> <http://wso2.com/signature>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> Senior Software Engineer
> WS*O2* *Inc.*
> Mobile: +94 777459299 <+94%2077%20745%209299>
> himas...@wso2.com
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Sashika Wijesinghe
Hi Godwin,

To solve the issue, you can add the 'GovernanceRegistry' server role to the
EI server under "" in the carbon.xml or set the server role of
the registry resource to 'EnterpriseIntegrator' when creating the CAR file.

Regards,
Sashika

On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga 
wrote:

> Hi Godwin,
>
> I think it because of your car file don't compatible with EI server role.
> Can you please find the EI server role and update in the artifact.xml.
>
> Thanks and Regards
>
> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> Can't we have a CAR application with only registry project and deploy?
>> It's complaining there are no artifacts to deploy and goes to faulty.
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <+94%2071%20182%202074>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] could not find admin service in ESB

2017-11-23 Thread Sashika Wijesinghe
Hi Dilusha,

As Vinod mentioned above, 'RemoteUserStoreManagerService' service is not
available in ESB500.

I assume you raised this issue because we have provided
"*https://localhost:9443/services/RemoteUserStoreManagerService?wsdl
*" as
the example in the ESB500 documentation.

@Doc Team - This should be fixed in the documentation with a valid admin
service which is relevant to ESB500.


Regards,
Sashika



On Thu, Nov 23, 2017 at 8:25 PM, Vinod Kavinda  wrote:

> Hi Dilusha,
> What made you assume that ESB contains this  RemoteUserStoreManagerService? 
> According
> to [1], you should install this feature, it is not shipped by default with
> ESB.
>
> [1] - http://xacmlinfo.org/2013/12/15/remote-user-management-
> feature-in-wso2-carbon-products/
>
> Regards,
> Vinod
>
> On Thu, Nov 23, 2017 at 7:22 PM, Dilusha Alphonso 
> wrote:
>
>> Hi All,
>>
>> I tried to call the admin service referring the link [1]  and followed
>> those step. But I was unable to find this particular admin service
>> "https://:9443/services/RemoteUserStoreManagerService/" in the
>> console in ESB 5.0.0.  I have attached screenshot below.
>>
>> Could you please tell me what is the issue behind this or let me know
>> whether there is something wrong with my step?
>>
>>
>>
>> [1]https://docs.wso2.com/display/ESB500/Calling+Admin+Services+from+Apps
>>
>> Thanks
>> Dilusha
>> --
>>
>>
>> *Best Regards,Dilusha Alphonso*
>>
>> *Software Engineer - Support Team*
>>
>>
>> *WSO2*
>> *Mobile : *
>>
>> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI Analytics] Change port offset

2017-11-20 Thread Sashika Wijesinghe
Hi Godwin,

AFAIK if you change the analytics port offset, you need to configure the
"receiverURL" in "MessageFlowConfigurationPublisher.xml" and
"MessageFlowStatisticsPublisher.xml" to "7611" at
/repository/deployment/server/eventpublishers location.

Regards,
Sashika

On Tue, Nov 21, 2017 at 9:39 AM, Godwin Shrimal  wrote:

> Hi All,
>
> Can't we change the port offset of the EI analytics? By default, it's 1
> and I set it to 0 and run and got below error in EI nodes. IS there any
> place to configure 7712 port complaining below? I couldn't find any
> configs.
>
> TID: [-1] [] [2017-11-21 11:05:32,476] ERROR {org.wso2.carbon.databridge.
> agent.endpoint.DataEndpointConnectionWorker} -  Error while trying to
> connect to the endpoint. Cannot borrow client for ssl://10.50.139.12:7712
> {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker}
> org.wso2.carbon.databridge.agent.exception.DataEndpointAuthenticationException:
> Cannot borrow client for ssl://10.50.139.12:7712
> at org.wso2.carbon.databridge.agent.endpoint.
> DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:99)
> at org.wso2.carbon.databridge.agent.endpoint.
> DataEndpointConnectionWorker.run(DataEndpointConnectionWorker.java:42)
> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: 
> org.wso2.carbon.databridge.agent.exception.DataEndpointSecurityException:
> Error while trying to connect to ssl://10.50.139.12:7712
> at org.wso2.carbon.databridge.agent.endpoint.thrift.
> ThriftSecureClientPoolFactory.createClient(ThriftSecureClientPoolFactory.
> java:81)
> at org.wso2.carbon.databridge.agent.client.
> AbstractClientPoolFactory.makeObject(AbstractClientPoolFactory.java:39)
> at org.apache.commons.pool.impl.GenericKeyedObjectPool.
> borrowObject(GenericKeyedObjectPool.java:1212)
> at org.wso2.carbon.databridge.agent.endpoint.
> DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:91)
> ... 6 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not
> connect to 10.50.139.12 on port 7712
> at org.apache.thrift.transport.TSSLTransportFactory.createClient(
> TSSLTransportFactory.java:237)
> at org.apache.thrift.transport.TSSLTransportFactory.
> getClientSocket(TSSLTransportFactory.java:169)
> at org.wso2.carbon.databridge.agent.endpoint.thrift.
> ThriftSecureClientPoolFactory.createClient(ThriftSecureClientPoolFactory.
> java:63)
> ... 9 more
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.AbstractPlainSocketImpl.doConnect(
> AbstractPlainSocketImpl.java:350)
> at java.net.AbstractPlainSocketImpl.connectToAddress(
> AbstractPlainSocketImpl.java:206)
> at java.net.AbstractPlainSocketImpl.connect(
> AbstractPlainSocketImpl.java:188)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:589)
> at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
> at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:427)
> at sun.security.ssl.SSLSocketFactoryImpl.createSocket(
> SSLSocketFactoryImpl.java:88)
> at org.apache.thrift.transport.TSSLTransportFactory.createClient(
> TSSLTransportFactory.java:233)
> ... 11 more
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Establishing SSL connection without server's identity verification is not recommended warning when apim and the IS+KM set up is started up

2017-11-16 Thread Sashika Wijesinghe
Hi Dushantha,

As defined in the warning message, you should be able to get rid of this by
disabling JDBC trying to connect to DB over SSL by configuring the JDBC
String as below.

jdbc:mysql://localhost:3306/carbon_db?autoReconnect=true*useSSL=false*

Regards,
Sashika

On Thu, Nov 16, 2017 at 7:32 PM, Dushantha Batuwita 
wrote:

> Hi Dev;
>
> I'm involved in setting up a cluster in local machine with port offset.
> For the time being, consider the setup is consisted of APIM 2.1.0 and IS as
> KM 5.3.0
> I have followed the [1] Configuring WSO2 Identity Server as a Key Manager
> document.
>
> I have set up MySQL databases as it has been described in the document
> (e.g. WSO2UM_DB, WSO2REG_DB, WSO2AM_DB)
> and configured those in the  /repository/conf/datasources/
> master-datasources.xml
>
> Both nodes have been lifted without error.
>
> My question is
>
> When the APIM starts up a warning is shown as bellow. Please let me know
> how to avoid the said warning.
>
> Establishing SSL connection without server's identity verification is not
> recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements
> SSL connection must be established by default if explicit option isn't set.
> For compliance with existing applications not using SSL the
> verifyServerCertificate property is set to 'false'. You need either to
> explicitly disable SSL by setting useSSL=false, or set useSSL=true and
> provide truststore for server certificate verification.
>
> many thanks
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Why do we need to configure email configurations in multiple locations

2017-11-13 Thread Sashika Wijesinghe
Hi Nilasini,

Thanks for the quick response.

Do you mean that notifications for user operations can also be managed
through the email sender configurations in 'output-event-adapters.xml' ?

I have tried the email notification generation by disabling the email
configurations in axis2.xml file. This ended up with  "*Error while sending
email notification to address  on event userOperation
org.apache.axis2.AxisFault: The system cannot infer the transport
information from the mailto: URL.*". It seems for email
notifications, email configurations are evaluated from the axis2.xml as
documented.

Regards,
Sashika



On Tue, Nov 14, 2017 at 12:10 PM, Nilasini Thirunavukkarasu <
nilas...@wso2.com> wrote:

> Hi Shashika,
>
> The correct way is to configure through *output-event-adapters.xml .* It
> should be corrected in the documentation. The restructuring of these docs
> will solve the issue. During the restructuring the common configurations
> will be placed appropriately. It is taking over by Samuel.
>
> Thanks,
> Nila.
>
> On Tue, Nov 14, 2017 at 12:02 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi Team,
>>
>> When I configured the 'ask password' option I had to configure the email
>> sender configurations in *output-event-adapters.xml *file and to
>> generate email notifications on user operations, email sender
>> configurations should be configured in *axis2.**xm*l [2]. May I know the
>> purpose of maintaining the email configuration details in two
>> separate configurations files?
>>
>> [1] https://docs.wso2.com/display/IS530/Creating+Users+using
>> +the+Ask+Password+Option
>> [2] https://docs.wso2.com/display/IS530/Enabling+Notificatio
>> ns+for+User+Operations
>>
>> Thanks
>> Sashika
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> Nilasini Thirunavukkarasu
> Software Engineer - WSO2
>
> Email : nilas...@wso2.com
> Mobile : +94775241823 <+94%2077%20524%201823>
> Web : http://wso2.com/
>
>
> <http://wso2.com/signature>
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Why do we need to configure email configurations in multiple locations

2017-11-13 Thread Sashika Wijesinghe
Hi Team,

When I configured the 'ask password' option I had to configure the email
sender configurations in *output-event-adapters.xml *file and to generate
email notifications on user operations, email sender configurations should
be configured in *axis2.**xm*l [2]. May I know the purpose of maintaining
the email configuration details in two separate configurations files?

[1]
https://docs.wso2.com/display/IS530/Creating+Users+using+the+Ask+Password+Option
[2]
https://docs.wso2.com/display/IS530/Enabling+Notifications+for+User+Operations

Thanks
Sashika
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to configure single logout when multiple authentication steps involved in the authentication flow?

2017-11-07 Thread Sashika Wijesinghe
Hi Godwin,

Thanks, Hope we can implement this feature in a future release.

Regards,
Sashika

On Tue, Nov 7, 2017 at 11:48 AM, Godwin Shrimal <god...@wso2.com> wrote:

> Hi Shashika,
>
> As Malithi mentioned above Google and Facebook federated authenticators
> are not supporting Single Logout at the moment. We don't have any
> workaround unless implementing the single logout feature on those federated
> authenticators.
>
> Thanks
> Godwin
>
>
> On Tue, Nov 7, 2017 at 10:07 AM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi Malithi,
>>
>> Thanks for the response.
>>
>> Just for clarification, how does the customer's manage to do single log
>> out with external IDPs? Do we have any workaround to log out from the
>> external IDP?
>>
>> Thanks,
>> Sashika
>>
>>
>>
>> On Mon, Nov 6, 2017 at 7:57 PM, Malithi Edirisinghe <malit...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Mon, Nov 6, 2017 at 7:55 PM, Malithi Edirisinghe <malit...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Mon, Nov 6, 2017 at 5:14 PM, Sashika Wijesinghe <sash...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I want to configure single log out for a scenario where multi-step
>>>>> authentication involved (basic auth and authentication via external
>>>>> identity providers).
>>>>>
>>>>> For example, I have configured Google and Facebook as the 1st step of
>>>>> authentication (I will be using "fidp" query param to select the required
>>>>> identity provider out of Google and Facebook) and 'Basic Auth' as the 2nd
>>>>> step of authentication in the 'Local and Outbound Authentication
>>>>> configurations" of the service provider. Even though I have enabled single
>>>>> log out for the service provider, it works only for the internal
>>>>> authentication via basic auth. Session of the external IDP persist, and
>>>>> when I try to log in for the second time it only redirects to authenticate
>>>>> via basic auth.
>>>>>
>>>>
>>>> This is because the logout requests are not being initiated from Google
>>>> and Facebook federated authenticators. That implementation is missing.
>>>> There is a JIRA reported for Google case [1].
>>>>
>>>
>>> Correcting above.
>>> This is because the logout requests are not being initiated to Google
>>> and Facebook via the respective federated authenticators. That
>>> implementation is missing. There is a JIRA reported for Google case [1].
>>>
>>>
>>>>
>>>>>
>>>>> May I know how to configure single log out for this scenario (multiple
>>>>> authentication steps involved with external IDP)?
>>>>>
>>>>> Any help is highly appreciated.
>>>>>
>>>>> Thanks
>>>>> Sashika
>>>>>
>>>>> --
>>>>>
>>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>>> Mobile : +94 (0) 774537487
>>>>> sash...@wso2.com
>>>>>
>>>>
>>>>
>>>> [1] https://wso2.org/jira/browse/IDENTITY-3587
>>>>
>>>> Thanks,
>>>> Malithi.
>>>> --
>>>>
>>>> *Malithi Edirisinghe*
>>>> Associate Technical Lead
>>>> WSO2 Inc.
>>>>
>>>> Mobile : +94 (0) 718176807
>>>> malit...@wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Associate Technical Lead
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to configure single logout when multiple authentication steps involved in the authentication flow?

2017-11-06 Thread Sashika Wijesinghe
Hi Malithi,

Thanks for the response.

Just for clarification, how does the customer's manage to do single log out
with external IDPs? Do we have any workaround to log out from the external
IDP?

Thanks,
Sashika



On Mon, Nov 6, 2017 at 7:57 PM, Malithi Edirisinghe <malit...@wso2.com>
wrote:

>
>
> On Mon, Nov 6, 2017 at 7:55 PM, Malithi Edirisinghe <malit...@wso2.com>
> wrote:
>
>>
>>
>> On Mon, Nov 6, 2017 at 5:14 PM, Sashika Wijesinghe <sash...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I want to configure single log out for a scenario where multi-step
>>> authentication involved (basic auth and authentication via external
>>> identity providers).
>>>
>>> For example, I have configured Google and Facebook as the 1st step of
>>> authentication (I will be using "fidp" query param to select the required
>>> identity provider out of Google and Facebook) and 'Basic Auth' as the 2nd
>>> step of authentication in the 'Local and Outbound Authentication
>>> configurations" of the service provider. Even though I have enabled single
>>> log out for the service provider, it works only for the internal
>>> authentication via basic auth. Session of the external IDP persist, and
>>> when I try to log in for the second time it only redirects to authenticate
>>> via basic auth.
>>>
>>
>> This is because the logout requests are not being initiated from Google
>> and Facebook federated authenticators. That implementation is missing.
>> There is a JIRA reported for Google case [1].
>>
>
> Correcting above.
> This is because the logout requests are not being initiated to Google and
> Facebook via the respective federated authenticators. That implementation
> is missing. There is a JIRA reported for Google case [1].
>
>
>>
>>>
>>> May I know how to configure single log out for this scenario (multiple
>>> authentication steps involved with external IDP)?
>>>
>>> Any help is highly appreciated.
>>>
>>> Thanks
>>> Sashika
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-3587
>>
>> Thanks,
>> Malithi.
>> --
>>
>> *Malithi Edirisinghe*
>> Associate Technical Lead
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
>
> --
>
> *Malithi Edirisinghe*
> Associate Technical Lead
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to configure single logout when multiple authentication steps involved in the authentication flow?

2017-11-06 Thread Sashika Wijesinghe
Hi All,

I want to configure single log out for a scenario where multi-step
authentication involved (basic auth and authentication via external
identity providers).

For example, I have configured Google and Facebook as the 1st step of
authentication (I will be using "fidp" query param to select the required
identity provider out of Google and Facebook) and 'Basic Auth' as the 2nd
step of authentication in the 'Local and Outbound Authentication
configurations" of the service provider. Even though I have enabled single
log out for the service provider, it works only for the internal
authentication via basic auth. Session of the external IDP persist, and
when I try to log in for the second time it only redirects to authenticate
via basic auth.

May I know how to configure single log out for this scenario (multiple
authentication steps involved with external IDP)?

Any help is highly appreciated.

Thanks
Sashika

-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Ask password cannot be configured from management console when using identity REST API

2017-11-05 Thread Sashika Wijesinghe
Hi Isura,

Thanks for the explanation.

Regards,
Sashika

On Mon, Nov 6, 2017 at 9:15 AM, Isura Karunaratne <is...@wso2.com> wrote:

> Hi Sashika,
>
>
>
> On Thu, Nov 2, 2017 at 3:38 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I faced the same issue "*PasswordInvalidAsk Password
>> Feature is disabled*" when accessing
>> the RemoteUserStoreManagerService, addUser() method to add a user with
>> asking password option when user's credentials are not defined in the
>> payload.
>>
>> When an admin user performs this operation from the management console,
>> it is not required to provide a password. Is there any reason for
>> requesting to define a password to perform ask password when creating a
>> user with SOAP admin service?
>>
>
> Yes. In management console scenario, it internally generates a random
> password before creating the user. Password is mandatory in C4 user core
> APIs.
>
> Thanks
> Isura.
>
>>
>> Thanks
>> Sashika
>>
>>
>>
>>
>> On Thu, Jun 15, 2017 at 11:59 AM, Indunil Upeksha Rathnayake <
>> indu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> AFAIK, to differ adding a user with a default password using User On
>>> boarding feature and adding a user in normal way, we can consider "http://
>>> wso2.org/claims/identity/askPassword" claim value. And I think in both
>>> of the above scenarios, when adding a user, credentials shouldn't be null.
>>> UI validation to be included I guess?
>>>
>>> Thanks and Regards
>>>
>>> On Wed, Jun 7, 2017 at 9:38 AM, Danushka Fernando <danush...@wso2.com>
>>> wrote:
>>>
>>>> Hi Isura
>>>> What I meant here is, when ASK Password is enabled through
>>>> identity-mgt.properties, when admin user adds users, we give him two
>>>> options. Which are enter a default password or send email. So if its new
>>>> User On boarding feature, we can still let him enter a default password.
>>>> But problem is with no password case. Are you suggesting to generate a
>>>> password in this case?
>>>>
>>>> Thanks & Regards
>>>> Danushka Fernando
>>>> Associate Tech Lead
>>>> WSO2 inc. http://wso2.com/
>>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>>
>>>> On Tue, Jun 6, 2017 at 10:02 PM, Isura Karunaratne <is...@wso2.com>
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Tue, Jun 6, 2017 at 9:12 PM Danushka Fernando <danush...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> So Johan/ Isura
>>>>>> How should we approach here? If its not new feature we ask user to
>>>>>> add default password? In that case we dont need this to fixed I guess.
>>>>>>
>>>>>
>>>>> We shouldn't use a default password, instead we have to generate a
>>>>> random password.
>>>>>
>>>>> Thanks
>>>>> Isura
>>>>>
>>>>>>
>>>>>> Thanks & Regards
>>>>>> Danushka Fernando
>>>>>> Associate Tech Lead
>>>>>> WSO2 inc. http://wso2.com/
>>>>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>>>>
>>>>>> On Tue, Jun 6, 2017 at 9:02 PM, Johann Nallathamby <joh...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jun 6, 2017 at 8:52 PM, Isura Karunaratne <is...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Danushka,
>>>>>>>>
>>>>>>>> You have to set a none empty password while adding a user.
>>>>>>>>
>>>>>>>
>>>>>>> Sorry, I saw your reply only after I sent my reply :)
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Isura
>>>>>>>>
>>>>>>>> On Tue, Jun 6, 2017 at 8:46 PM Danushka Fernando <
>>>>>>>> danush...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi All
>>>>>>>>>
>>>>>&g

Re: [Dev] How to configure SCIM to generate an email when ask password option is provided for user creation

2017-11-05 Thread Sashika Wijesinghe
Hi Johann,

I think it would be better to have the options in the deep dive page and
direct to a different page for a developer who wishes to understand how
this feature working with all required configurations as you suggested.
Also, I believe it would be better to reduce the manual configuration steps
where ever we can so that even for a developer, the product would be more
appealing.

Regards,
Sashika

On Sun, Nov 5, 2017 at 11:06 AM, Johann Nallathamby <joh...@wso2.com> wrote:

> Again I think we've missed the point to explain why we need to define
> claims to get this feature working. If that was explained, naturally a user
> will think when he is sending a request using SCIM APIs whether he has
> included these claims also. And then he will follow that by thinking if he
> has done the claim mappings properly; if he understands how IS and claim
> mappings work. Making him understand that is not part of this section; what
> we can do here is, may be link to the section on claim management. This
> will keep this section concise and clear. Because it won't scale if we go
> to give instructions for every protocol/dialect we have. And I think in
> another conversation we said we will remove anything related to APIs from
> the deep dive pages and have it only in the developer section.
>
> If you still think we may need more hand holding of the user then we can
> have a tutorial section for this - "Identity Administration with SCIM".
>
> Regards,
> Johann.
>
> On Fri, Nov 3, 2017 at 9:37 PM, Sathya Bandara <sat...@wso2.com> wrote:
>
>> Hi Sashika,
>>
>> I guess the documentation is missing some configuration details. The
>> askPassword and verifyEmail extension attributes should be configured in
>> $SERVER_HOME/repository/conf/scim-schema-extension.config file in
>> addition to the other extension attributes which are already defined there,
>> as follows.
>>
>> {
>> "attributeURI":"urn:scim:schemas:extension:wso2:1.0:wso2Exte
>> nsion.askPassword",
>> "attributeName":"askPassword",
>> "dataType":"boolean",
>> "multiValued":"false",
>> "multiValuedAttributeChildName":"null",
>> "description":"The User's manager",
>> "schemaURI":"urn:scim:schemas:extension:wso2:1.0",
>> "readOnly":"false",
>> "required":"false",
>> "caseExact":"false",
>> "subAttributes":"null"
>> },
>>
>>
>> {
>> "attributeURI":"urn:scim:schemas:extension:wso2:1.0:wso2Exte
>> nsion.verifyEmail",
>> "attributeName":"verifyEmail",
>> "dataType":"boolean",
>> "multiValued":"false",
>> "multiValuedAttributeChildName":"null",
>> "description":"The User's manager",
>> "schemaURI":"urn:scim:schemas:extension:wso2:1.0",
>> "readOnly":"false",
>> "required":"false",
>> "caseExact":"false",
>> "subAttributes":"null"
>> },
>>
>> These two attributes should be added to the list of subAttributes of the
>> urn:scim:schemas:extension:wso2:1.0 entry which can be find at the end
>> of the scim-schema-extension.config file as shown below.
>>
>> {
>> "attributeURI":"urn:scim:schemas:extension:wso2:1.0",
>> "attributeName":"wso2Extension",
>> "dataType":"null",
>> "multiValued":"false",
>> "multiValuedAttributeChildName":"null",
>> "description":"SCIM wso2 User Schema Extension",
>> "schemaURI":"urn:scim:schemas:extension:wso2:1.0",
>> "readOnly":"false",
>> "required":"false",
>> "caseExact":"false",
>> "subAttributes":"employeeNumber costCenter organization division
>> department manager askPassword verifyEmail"
>> }
>>
>>
>> Also The correct approach to create claim mappings for SCIM extension
>> attributes is by configuring external claims for the default SCIM dialect
>> (scim:schemas:core:1.0) and not by creating a separate dialect for the
>> extension schema (scim:schemas:extension:wso2:1.0:wso2Extension). This
>> is already identified in [1] and the relevant documents has been updated.
>> Please refer Claim Mapping section in [2]. Also 

Re: [Dev] How to configure SCIM to generate an email when ask password option is provided for user creation

2017-11-04 Thread Sashika Wijesinghe
Hi Sathya,

Thanks for the configuration requirements provided above. It helps to
resolve the issue.

According to the current implementation, since we are mapping the claims
for SCIM extension isn't it better to have the claim configurations mapped
in the scim-schema-extension.config itself when we bundle the pack rather
than asking the user to add these configurations manually?

Thanks
Sashika



On Fri, Nov 3, 2017 at 9:37 PM, Sathya Bandara <sat...@wso2.com> wrote:

> Hi Sashika,
>
> I guess the documentation is missing some configuration details. The
> askPassword and verifyEmail extension attributes should be configured in
> $SERVER_HOME/repository/conf/scim-schema-extension.config file in
> addition to the other extension attributes which are already defined there,
> as follows.
>
> {
> "attributeURI":"urn:scim:schemas:extension:wso2:1.0:
> wso2Extension.askPassword",
> "attributeName":"askPassword",
> "dataType":"boolean",
> "multiValued":"false",
> "multiValuedAttributeChildName":"null",
> "description":"The User's manager",
> "schemaURI":"urn:scim:schemas:extension:wso2:1.0",
> "readOnly":"false",
> "required":"false",
> "caseExact":"false",
> "subAttributes":"null"
> },
>
>
> {
> "attributeURI":"urn:scim:schemas:extension:wso2:1.0:
> wso2Extension.verifyEmail",
> "attributeName":"verifyEmail",
> "dataType":"boolean",
> "multiValued":"false",
> "multiValuedAttributeChildName":"null",
> "description":"The User's manager",
> "schemaURI":"urn:scim:schemas:extension:wso2:1.0",
> "readOnly":"false",
> "required":"false",
> "caseExact":"false",
> "subAttributes":"null"
> },
>
> These two attributes should be added to the list of subAttributes of the
> urn:scim:schemas:extension:wso2:1.0 entry which can be find at the end of
> the scim-schema-extension.config file as shown below.
>
> {
> "attributeURI":"urn:scim:schemas:extension:wso2:1.0",
> "attributeName":"wso2Extension",
> "dataType":"null",
> "multiValued":"false",
> "multiValuedAttributeChildName":"null",
> "description":"SCIM wso2 User Schema Extension",
> "schemaURI":"urn:scim:schemas:extension:wso2:1.0",
> "readOnly":"false",
> "required":"false",
> "caseExact":"false",
> "subAttributes":"employeeNumber costCenter organization division
> department manager askPassword verifyEmail"
> }
>
>
> Also The correct approach to create claim mappings for SCIM extension
> attributes is by configuring external claims for the default SCIM dialect
> (scim:schemas:core:1.0) and not by creating a separate dialect for the
> extension schema (scim:schemas:extension:wso2:1.0:wso2Extension). This is
> already identified in [1] and the relevant documents has been updated.
> Please refer Claim Mapping section in [2]. Also I will create a Doc JIRA to
> improve the documentation with necessary configuration details in [3].
>
>
> [1] https://wso2.org/jira/browse/DOCUMENTATION-4647
> [2] https://docs.wso2.com/display/IS530/Extensible+SCIM+User+
> Schemas+With+WSO2+Identity+Server
> [3] https://docs.wso2.com/display/IS530/Creating+Users+using+
> the+Ask+Password+Option
>
> Thanks,
> Sathya
>
>
>
> On Fri, Nov 3, 2017 at 2:46 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I want to create users with ask password option using SCIM 1.1. I have
>> configured the server as documented in [1].
>>
>> The below curl command is used to create the user. After executing the
>> curl command, the user created successfully but did not receive any email
>> notification for the given email address. This works when I created a user
>> from the management console and SOAP admin service.
>>
>> Do we need any further configurations to get this done with SCIM 1.1?
>>
>> curl -v -k --user admin:admin --data "{"schemas":[],"userName":"nee
>> ls","password":"password","wso2Extension":{"askPassword":"
>> true"},"emails":"sash...@wso2.com"}" --header
>> "Content-Type:application/json" https://localhost:9444/wso2/scim/Users
>>
>> [1] https://docs.wso2.com/display/IS530/Creating+Users+using
>> +the+Ask+Password+Option
>>
>> Thanks
>> Sashika
>>
>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> Sathya Bandara
> Software Engineer
> WSO2 Inc. http://wso2.com
> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>
> <+94%2071%20411%205032>
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to configure SCIM to generate an email when ask password option is provided for user creation

2017-11-03 Thread Sashika Wijesinghe
Hi All,

I want to create users with ask password option using SCIM 1.1. I have
configured the server as documented in [1].

The below curl command is used to create the user. After executing the curl
command, the user created successfully but did not receive any email
notification for the given email address. This works when I created a user
from the management console and SOAP admin service.

Do we need any further configurations to get this done with SCIM 1.1?

curl -v -k --user admin:admin --data
"{"schemas":[],"userName":"neels","password":"password","wso2Extension":{"askPassword":"true"},"emails":"
sash...@wso2.com"}" --header "Content-Type:application/json"
https://localhost:9444/wso2/scim/Users

[1]
https://docs.wso2.com/display/IS530/Creating+Users+using+the+Ask+Password+Option

Thanks
Sashika




-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Ask password cannot be configured from management console when using identity REST API

2017-11-03 Thread Sashika Wijesinghe
Hi All,

I faced the same issue "*PasswordInvalidAsk Password Feature
is disabled*" when accessing
the RemoteUserStoreManagerService, addUser() method to add a user with
asking password option when user's credentials are not defined in the
payload.

When an admin user performs this operation from the management console, it
is not required to provide a password. Is there any reason for requesting
to define a password to perform ask password when creating a user with SOAP
admin service?

Thanks
Sashika




On Thu, Jun 15, 2017 at 11:59 AM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi,
>
> AFAIK, to differ adding a user with a default password using User On
> boarding feature and adding a user in normal way, we can consider "http://
> wso2.org/claims/identity/askPassword" claim value. And I think in both of
> the above scenarios, when adding a user, credentials shouldn't be null. UI
> validation to be included I guess?
>
> Thanks and Regards
>
> On Wed, Jun 7, 2017 at 9:38 AM, Danushka Fernando 
> wrote:
>
>> Hi Isura
>> What I meant here is, when ASK Password is enabled through
>> identity-mgt.properties, when admin user adds users, we give him two
>> options. Which are enter a default password or send email. So if its new
>> User On boarding feature, we can still let him enter a default password.
>> But problem is with no password case. Are you suggesting to generate a
>> password in this case?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Associate Tech Lead
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>> On Tue, Jun 6, 2017 at 10:02 PM, Isura Karunaratne 
>> wrote:
>>
>>>
>>>
>>> On Tue, Jun 6, 2017 at 9:12 PM Danushka Fernando 
>>> wrote:
>>>
 So Johan/ Isura
 How should we approach here? If its not new feature we ask user to add
 default password? In that case we dont need this to fixed I guess.

>>>
>>> We shouldn't use a default password, instead we have to generate a
>>> random password.
>>>
>>> Thanks
>>> Isura
>>>

 Thanks & Regards
 Danushka Fernando
 Associate Tech Lead
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729 <+94%2071%20633%202729>

 On Tue, Jun 6, 2017 at 9:02 PM, Johann Nallathamby 
 wrote:

>
>
> On Tue, Jun 6, 2017 at 8:52 PM, Isura Karunaratne 
> wrote:
>
>> Hi Danushka,
>>
>> You have to set a none empty password while adding a user.
>>
>
> Sorry, I saw your reply only after I sent my reply :)
>
>
>>
>> Thanks
>> Isura
>>
>> On Tue, Jun 6, 2017 at 8:46 PM Danushka Fernando 
>> wrote:
>>
>>> Hi All
>>>
>>> I am working on jira [1]. I could enable User Onboarding / ASK
>>> Password New version and then get the UI displayed according to that. 
>>> But
>>> we cannot create user without password here. Reason is following code is
>>> throwing the exception saying ASK Password is disabled. How should we
>>> proceed?
>>>
>>>
>>> package org.wso2.carbon.identity.mgt;
>>>
>>> ...
>>>
>>> public class IdentityMgtEventListener extends 
>>> AbstractIdentityUserOperationEventListener {
>>>
>>> ...
>>>
>>> @Override
>>> public boolean doPreAddUser(String userName, Object credential, 
>>> String[] roleList,
>>> Map claims, String profile,
>>> UserStoreManager userStoreManager) throws 
>>> UserStoreException {
>>>
>>>
>>> if (!isEnable()) {
>>> if (credential == null || 
>>> StringUtils.isBlank(credential.toString())) {
>>> log.error("Identity Management listener is disabled");
>>> throw new UserStoreException(PASSWORD_INVALID + 
>>> ASK_PASSWORD_FEATURE_IS_DISABLED);
>>> }
>>> return true;
>>> }
>>>
>>>
>>> [2017-06-06 19:45:43,491] ERROR 
>>> {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} -  Identity 
>>> Management listener is disabled[2017-06-06 19:45:43,493] ERROR 
>>> {org.wso2.carbon.user.mgt.UserRealmProxy} -  PasswordInvalidAsk 
>>> Password Feature is disabled
>>> org.wso2.carbon.user.core.UserStoreException: PasswordInvalidAsk 
>>> Password Feature is disabled
>>> at 
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:172)
>>> at 
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:1443)
>>> at 
>>> org.wso2.carbon.user.mgt.UserRealmProxy.addUser(UserRealmProxy.java:770)
>>> at 
>>> org.wso2.carbon.user.mgt.UserAdmin.addUser(UserAdmin.java:199)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 

Re: [Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-26 Thread Sashika Wijesinghe
Hi Ashen,

We have already configured the proxy port in the catalina-server.xml.

Regards,
Sashika



On Thu, Oct 26, 2017 at 11:19 AM, Ashen Weerathunga <as...@wso2.com> wrote:

> Hi Sashika,
>
> Have you added the proxy port 443 for https connector in
> *catalina-server.xml*?
> That config needs to be there for the dashboard.
>
> Go to /repository/conf/tomcat/catalina-server.xml and add the
> proxy port 443 as below.
>
>port="9443"
>   proxyPort="443"
>
>
> Thanks,
> Ashen
>
> On Thu, Oct 26, 2017 at 10:56 AM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi Ashen,
>>
>> The IS clustering guide you pointed out does not contain any information
>> to configure the IS dashboard in a cluster setup.
>>
>> In my scenario, I can log in to the management console successfully but
>> the issue occurs when login to the IS dashboard. Could this be due to any
>> missing configuration?
>>
>> Thanks
>> Sashika
>>
>> On Thu, Oct 26, 2017 at 12:35 AM, Ashen Weerathunga <as...@wso2.com>
>> wrote:
>>
>>> Hi Sashika,
>>>
>>> Can you check with IS 5.4.0 Clustered guide [1].
>>> I guess it has the information you need.
>>>
>>> [1] https://docs.wso2.com/display/IS540/Clustered+Deployment
>>>
>>> Thanks,
>>> Ashen
>>>
>>> On Wed, Oct 25, 2017 at 5:34 PM, Asela Pathberiya <as...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Oct 24, 2017 at 5:41 PM, Sashika Wijesinghe <sash...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> We have configured two IS nodes fronted by Nginx and the site.json
>>>>> with server host details as below.
>>>>>
>>>>> {
>>>>> "proxy" : {
>>>>> "proxyHost" : "is.dev.wso2.org",
>>>>> "proxyHTTPSPort" : "443",
>>>>> "proxyContextPath" : "",
>>>>> "servicePath" : "/services"
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>> When I log in to the Management Console with the admin user,
>>>>> authentication was successful but failed to login to the IS Dashboard with
>>>>> admin user or any user who have permission to the IS Dashboard login.
>>>>>
>>>>> Following is the authentication exception logged in the terminal.
>>>>>
>>>>> Any suggestion to solve this issue is highly appreciated.
>>>>>
>>>>
>>>> Don't we have a doc on configuring WSO2IS with Nginx  ?
>>>>
>>>> Thanks,
>>>> Asela.
>>>>
>>>>>
>>>>>
>>>>> TID: [-1234] [] [2017-10-24 05:28:50,683] ERROR
>>>>> {org.wso2.carbon.identity.authenticator.saml2.sso.SAML2SSOAuthenticator}
>>>>> -  Authentication Request is rejected. SAMLResponse AudienceRestriction
>>>>> validation failed.
>>>>> TID: [-1] [] [2017-10-24 05:28:50,683]  WARN
>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>  Failed Administrator login attempt 'admin@carbon.super[-1]' at
>>>>> [2017-10-24 05:28:50,683+]
>>>>> TID: [-1234] [] [2017-10-24 05:28:50,751]  WARN
>>>>> {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
>>>>>  Illegal access attempt at [2017-10-24 05:28:50,0751] from IP address
>>>>> 192.168.57.251 while trying to authenticate access to service
>>>>> WorkflowImplAdminService
>>>>>
>>>>> TID: [-1] [] [2017-10-24 05:28:49,939]  INFO
>>>>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener}
>>>>> -  Received ClusteringMessage: org.wso2.carbon.identity.entit
>>>>> lement.PolicyStatusClusterMessage@d47e9b84
>>>>> TID: [-1234] [] [2017-10-24 05:28:50,778]  INFO {
>>>>> org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost
>>>>> to url[https://is.dev.wso2.org/services/WorkflowImplAdminServic
>>>>> e.WorkflowImplAdminServiceHttpsSoap11Endpoint/]
>>>>> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>>>>> at org.apache.axis2.transport.http.HTTPSender.handleResponse(HT
>>&g

Re: [Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-25 Thread Sashika Wijesinghe
Hi Ashen,

The IS clustering guide you pointed out does not contain any information to
configure the IS dashboard in a cluster setup.

In my scenario, I can log in to the management console successfully but the
issue occurs when login to the IS dashboard. Could this be due to any
missing configuration?

Thanks
Sashika

On Thu, Oct 26, 2017 at 12:35 AM, Ashen Weerathunga <as...@wso2.com> wrote:

> Hi Sashika,
>
> Can you check with IS 5.4.0 Clustered guide [1].
> I guess it has the information you need.
>
> [1] https://docs.wso2.com/display/IS540/Clustered+Deployment
>
> Thanks,
> Ashen
>
> On Wed, Oct 25, 2017 at 5:34 PM, Asela Pathberiya <as...@wso2.com> wrote:
>
>>
>>
>> On Tue, Oct 24, 2017 at 5:41 PM, Sashika Wijesinghe <sash...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> We have configured two IS nodes fronted by Nginx and the site.json with
>>> server host details as below.
>>>
>>> {
>>> "proxy" : {
>>> "proxyHost" : "is.dev.wso2.org",
>>> "proxyHTTPSPort" : "443",
>>> "proxyContextPath" : "",
>>> "servicePath" : "/services"
>>> }
>>> }
>>>
>>>
>>> When I log in to the Management Console with the admin user,
>>> authentication was successful but failed to login to the IS Dashboard with
>>> admin user or any user who have permission to the IS Dashboard login.
>>>
>>> Following is the authentication exception logged in the terminal.
>>>
>>> Any suggestion to solve this issue is highly appreciated.
>>>
>>
>> Don't we have a doc on configuring WSO2IS with Nginx  ?
>>
>> Thanks,
>> Asela.
>>
>>>
>>>
>>> TID: [-1234] [] [2017-10-24 05:28:50,683] ERROR
>>> {org.wso2.carbon.identity.authenticator.saml2.sso.SAML2SSOAuthenticator}
>>> -  Authentication Request is rejected. SAMLResponse AudienceRestriction
>>> validation failed.
>>> TID: [-1] [] [2017-10-24 05:28:50,683]  WARN
>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
>>> Administrator login attempt 'admin@carbon.super[-1]' at [2017-10-24
>>> 05:28:50,683+]
>>> TID: [-1234] [] [2017-10-24 05:28:50,751]  WARN
>>> {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
>>>  Illegal access attempt at [2017-10-24 05:28:50,0751] from IP address
>>> 192.168.57.251 while trying to authenticate access to service
>>> WorkflowImplAdminService
>>>
>>> TID: [-1] [] [2017-10-24 05:28:49,939]  INFO
>>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener}
>>> -  Received ClusteringMessage: org.wso2.carbon.identity.entit
>>> lement.PolicyStatusClusterMessage@d47e9b84
>>> TID: [-1234] [] [2017-10-24 05:28:50,778]  INFO {
>>> org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
>>> url[https://is.dev.wso2.org/services/WorkflowImplAdminServic
>>> e.WorkflowImplAdminServiceHttpsSoap11Endpoint/]
>>> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>>> at org.apache.axis2.transport.http.HTTPSender.handleResponse(HT
>>> TPSender.java:326)
>>> at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPS
>>> ender.java:196)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
>>> riteMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
>>> nvoke(CommonsHTTPTransportSender.java:278)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>>> utInAxisOperation.java:430)
>>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>>> eImpl(OutInAxisOperation.java:225)
>>> at org.apache.axis2.client.OperationClient.execute(OperationCli
>>> ent.java:149)
>>> at org.apache.axis2.client.ServiceClient.sendReceive(ServiceCli
>>> ent.java:554)
>>> at org.jaggeryjs.modules.ws.WSRequestHostObject.jsFunction_send
>>> (WSRequestHostObject.java:379)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImp

[Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-24 Thread Sashika Wijesinghe
Hi All,

We have configured two IS nodes fronted by Nginx and the site.json with
server host details as below.

{
"proxy" : {
"proxyHost" : "is.dev.wso2.org",
"proxyHTTPSPort" : "443",
"proxyContextPath" : "",
"servicePath" : "/services"
}
}


When I log in to the Management Console with the admin user, authentication
was successful but failed to login to the IS Dashboard with admin user or
any user who have permission to the IS Dashboard login.

Following is the authentication exception logged in the terminal.

Any suggestion to solve this issue is highly appreciated.


TID: [-1234] [] [2017-10-24 05:28:50,683] ERROR
{org.wso2.carbon.identity.authenticator.saml2.sso.SAML2SSOAuthenticator} -
 Authentication Request is rejected. SAMLResponse AudienceRestriction
validation failed.
TID: [-1] [] [2017-10-24 05:28:50,683]  WARN
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
Administrator login attempt 'admin@carbon.super[-1]' at [2017-10-24
05:28:50,683+]
TID: [-1234] [] [2017-10-24 05:28:50,751]  WARN
{org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
 Illegal access attempt at [2017-10-24 05:28:50,0751] from IP address
192.168.57.251 while trying to authenticate access to service
WorkflowImplAdminService

TID: [-1] [] [2017-10-24 05:28:49,939]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener}
-  Received ClusteringMessage:
org.wso2.carbon.identity.entitlement.PolicyStatusClusterMessage@d47e9b84
TID: [-1234] [] [2017-10-24 05:28:50,778]  INFO
{org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
url[
https://is.dev.wso2.org/services/WorkflowImplAdminService.WorkflowImplAdminServiceHttpsSoap11Endpoint/
]
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:326)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
at
org.jaggeryjs.modules.ws.WSRequestHostObject.jsFunction_send(WSRequestHostObject.java:379)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.dashboard.controllers.login_logout.c1._c_getProfileList_3(/dashboard/controllers/login-logout/SAML2SSOAuthenticationClient.jag:98)
at
org.jaggeryjs.rhino.dashboard.controllers.login_logout.c1.call(/dashboard/controllers/login-logout/SAML2SSOAuthenticationClient.jag)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
at
org.jaggeryjs.rhino.dashboard.controllers.login_logout.c1._c_getBPSSessions_2(/dashboard/controllers/login-logout/SAML2SSOAuthenticationClient.jag:43)
at
org.jaggeryjs.rhino.dashboard.controllers.login_logout.c1.call(/dashboard/controllers/login-logout/SAML2SSOAuthenticationClient.jag)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at
org.jaggeryjs.rhino.dashboard.controllers.login_logout.c1._c_login_1(/dashboard/controllers/login-logout/SAML2SSOAuthenticationClient.jag:34)
at
org.jaggeryjs.rhino.dashboard.controllers.login_logout.c1.call(/dashboard/controllers/login-logout/SAML2SSOAuthenticationClient.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.jaggeryjs.rhino.dashboard.c6._c_script_0(/dashboard//acs.jag:67)
at org.jaggeryjs.rhino.dashboard.c6.call(/dashboard//acs.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.dashboard.c6.call(/dashboard//acs.jag)
at org.jaggeryjs.rhino.dashboard.c6.exec(/dashboard//acs.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at

Re: [Dev] Read and Send a file as Attachment.

2017-08-01 Thread Sashika Wijesinghe
Hi Vivek,

You can achieve your requirement with ESB. The blog [1] explains the same
use case in detail.

[1]
http://uthaiyashankar.blogspot.com/2013/07/wso2-esb-usecases-reading-file-from.html

Regards,
Sashika

On Mon, Jul 31, 2017 at 6:34 PM, Malaka Silva  wrote:

> Hi Vivek,
>
> Not sure if this is currently supported. Looping integration team.
>
> -- Forwarded message --
> From: Vivek Kumar 
> Date: Mon, Jul 31, 2017 at 5:28 PM
> Subject: Read and Send a file as Attachment.
> To: "mal...@wso2.com" 
>
>
> Hi Malak,
>
> We have requirement like we want to read a file from file location(
> *D://data/fileName.log*) and send it as an attachment in the mail.
>
>
>
> I have tried to achieve this using VFS file processing.
>
> I find file *fileName.log *in the attachment but it contains envelope of
> mediation flow not the actual content the file had.If have googled a lot
> and found nothing helpful.
>
> After analysing MailTransportSender.java , I am thinking like it is not
> supported yet in wso2.
>
> Please help me if there is any way I can achieve this WSO2ESB.
>
>
>
> *Vivek Kumar*
>
> *Associate System Analyst*
>
> *Office:  *+91-120-4737401 <+91%20120%20473%207401>
>
> *Mobile*: +91 8588897434 <+91%2085888%2097434>
>
> *Email*:vivku...@salmon.com 
>
> *Skype:*   vivekhereatskype
>
>
>
>
>
> Information contained in this e-mail and any attachments is confidential
> and intended for the use of the addressee only. Dissemination,
> distribution, copying or use of this communication without prior permission
> of the addressee is strictly prohibited. If you have received this
> transmission in error, please advise the originator by reply e-mail and
> delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector
> 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356.
>
>
>
>
> Information contained in this e-mail and any attachments is confidential
> and intended for the use of the addressee only. Dissemination,
> distribution, copying or use of this communication without prior permission
> of the addressee is strictly prohibited. If you have received this
> transmission in error, please advise the originator by reply e-mail and
> delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector
> 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356.
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Associate Director / Architect
> M: +94 777 219 791 <+94%2077%20721%209791>
> 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
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jndi.properties Production Recommended Configuration

2017-07-28 Thread Sashika Wijesinghe
Hi Junior,

The connection details you have used are correct for failover scenarios.
Refer [1] to get more information about MB failover handling.


[1] https://docs.wso2.com/display/MB320/Handling+Failover

On Thu, Jul 27, 2017 at 7:04 PM, Júnior  wrote:

> Hi everyone,
>
> Is there any recommended jndi.properties connection setup for WSO2 MB
> Connection?
>
> we have a connection string like this:
>
> connectionfactory.TopicConnectionFactory=amqp://admin:admin@carbon/carbon?
> failover='roundrobin'='2'='
> tcp://server1:5675?retries='5'='50';tcp://
> server2:5675?retries='5'='50''
>
>
> These MB are clustered, but sometimes I see that when it lost the
> connection it simply is not able to reconnect.
>
> Is there any recommended settings to be used on this connection string for
> a more reliable Broker connection?
>
> Thanks,
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EI 6.1.1 MessageTracer

2017-07-21 Thread Sashika Wijesinghe
Hi Melodias,

You can use the EI 6.1.1 analytics profile for message tracing. For more
information refer [1].

[1] https://docs.wso2.com/display/EI611/WSO2+Enterprise+Integrator+Analytics

Regards,
Sashika

On Fri, Jul 21, 2017 at 2:15 PM, Melodias  wrote:

> Hi dev,
> Is there an option to enable MessageTracer in integrator?
>
>
>
> --
> View this message in context: http://wso2-oxygen-tank.10903.
> n7.nabble.com/WSO2-EI-6-1-1-MessageTracer-tp150502.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AWS Cluster Mode Certificate Issue

2017-07-09 Thread Sashika Wijesinghe
Hi Júnior,

You need to add the certificate authorities public key cert (CA pub cert)
or if it is a self-signed certificate you need to add the public key cert
to client-truststore.jks.

On Wed, Jun 28, 2017 at 7:35 PM, Júnior  wrote:

> Hi,
>
> I am trying to setup a WSO2 Cluster using aws mode but I am receiving this
> error:
>
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException:
> PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target
> {com.hazelcast.cluster.impl.TcpIpJoinerOverAWS}
> com.hazelcast.core.HazelcastException: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
> at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:67)
>
> Do you know which certificate I need to add to the truststore?
>
> Thanks,
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2017-06-22 Thread Sashika Wijesinghe
Hi All,

I have added test cases [1] in Testlink to capture the XPath 2.0 and XSLT
2.0 functions supported by ESB. As mentioned in this mail thread some of
the functions failed while saving them due to [2], and some other functions
failed with "no such function" [3] exception. Test cases were included for
the functions that worked successfully with ESB assuming that the other
functions are not supported by ESB as concluded above.

It would be better to add automated tests for the identified test cases
[1] for XPath 2.0 and XSLT 2.0 functions.

@Documentation Team - Since we do not support all the available XPath 2.0
functions in ESB, better to include this point in the documentation.

[1] https://support.wso2.com/jira/browse/WSOQATESTC-1403
[2] *class org.jaxen.saxpath.XPathSyntaxException: fn:avg((1,2,3)): 9:
Expected: ) *
[3]* org.jaxen.UnresolvableException: No Such Function matches*

Regards,
Sashika

On Tue, Aug 9, 2016 at 11:23 AM, Sohani Weerasinghe  wrote:

> Thanks Shafreen for the input.
>
> @Nisrin: Please note
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774 <+94%2071%20643%209774>
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Tue, Aug 9, 2016 at 11:21 AM, Shafreen Anfar  wrote:
>
>> Hi Sohani,
>>
>> Sorry for the delayed response. IMO, ideally we should try writing a
>> simple java program with HE and see if it supports that particular function
>> or not. Anyways, since it is not working in ESB. I think it is OK to
>> conclude that is not supported in our ESB.
>>
>> On Fri, Aug 5, 2016 at 10:52 AM, Sohani Weerasinghe 
>> wrote:
>>
>>>
>>> Hi Shafreen,
>>>
>>> I have used [1] in testing the functions, since there is no proper
>>> reference to get a list of functions supported by the Saxon 9.4 HE. Based
>>> on this, can we confirm that the mentioned functions in the above thread
>>> are not supported in HE? (so that we can conclude with the functions we are
>>> supporting in ESB)
>>>
>>> [1] http://www.saxonica.com/html/documentation9.4/functions/
>>>
>>> Sohani Weerasinghe
>>> Senior Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Fri, Aug 5, 2016 at 10:21 AM, Shafreen Anfar 
>>> wrote:
>>>
 Hi Sohanai,

 [+ Asanthi]

 We are using Saxon: HE (Home Edition) for XAPTH 2 functions. AFAIK, we
 don't select functionality to support so anything supported by library
 should already be there, which means it's likely HE edition does not
 contain function you're looking for. Please have a look at [1].

 [1] http://www.saxonica.com/html/documentation9.4/about/

 On Thu, Aug 4, 2016 at 6:57 PM, Sohani Weerasinghe 
 wrote:

> Hi ESB Team,
>
> Please find the summary of issues encountered while testing the XPath
> 2.0 functions at [1] ( referred [2] & [3] for syntax) and really 
> appreciate
> your input on this
>
>
> *1. "Invalid XPath Syntax" occurs when saving the synapse
> configuration in management console*
>
> This error occurs for below functions:
>
>- avg- fn:avg((1,2,3,4,5))
>- codepoints-to-string - fn:codepoints-to-string((97, 32, 98, 32,
>99)))
>- distinct-values - fn:distinct-values( ('a', 'b', 'a') ) -This is
>supported when passing the value as an xml payload
>- id - //book/section/secRef/fn:id(@refs)
>- idref - //book/idref('language')/string(.)
>- index-of - fn:index-of( (4, 5, 6, 4), 4)
>- max- fn:max((2,3,5))
>- min - fn:min((2,3,5))
>- remove - fn:remove( ('a', 'b', 'c'), 2)
>- reverse - fn:reverse((1, 2, 3, 4, 5))  -This is supported when
>passing the value as an xml payload
>- string-join - string-join( ('a', 'b', 'c'), '')
>- subsequence - fn:subsequence(('a', 'b', 'c', 'd', 'e'), 3)
>
>
> *2. Issues in using error() function*
>
> According to https://www.w3.org/TR/xpath-functions-30/#ERRFOER ,
> calling the function with empty parameters should give an unidentified
> error. But when invoking the service it gives below exception
>
> Is this accepted?
>
> ERROR - SynapseXPath Evaluation of the XPath expression fn:error()
> resulted in an error
> ; Line#: 1; Column#: -1
> net.sf.saxon.trans.XPathException: Error signalled by application
> call on error()
> at net.sf.saxon.functions.Error.error(Error.java:98)
> at net.sf.saxon.functions.Error.evaluateItem(Error.java:55)
> at net.sf.saxon.expr.Expression.iterate(Expression.java:429)
> at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpress
> ionImpl.java:326)
> at 

Re: [Dev] [MB] Message Expiration Task and Messages shown in UI

2016-10-04 Thread Sashika Wijesinghe
+1 to maintain the expired messages in DB until the defined deletion time
interval, rather than display those as valid messages from the UI.
Displaying expired messages as valid messages may lead a user to perform
operations on already expired messages.

@Asanka - I think we can filter using the 'EXPIRATION_TIME'

On Tue, Oct 4, 2016 at 11:56 AM, Asanka Abeyweera  wrote:

> Yes, In user's perspective it is better not to show the expired messages.
>
> How are we going to filter out the expired messages from UI? Since we have
> the expiry time information in the database, I think we can use that
> information to filter.
>
> On Tue, Oct 4, 2016 at 11:28 AM, Sirojan Tharmakulasingam <
> siro...@wso2.com> wrote:
>
>> Hi All,
>>
>> Currently, we have two tasks to deal with expired messages.
>>
>> 1. Pre-delivery expiry message deletion task --> Will catch the expired
>> messages at the Message flusher
>> 2. Periodic message deletion task --> each 15 minutes it checks expired
>> messages and deleted them for the messages which are not in our safety slot
>> count region (we have this buffer assuming that those will be assigned to
>> slot delivery worker in the near future)
>>
>> The problem:
>>
>> Even though the messages are expired, they are still residing in the
>> database for some time.
>>
>> 1. Messages that are not in the safe-zone - 15 minutes (worst case) -
>> until the periodic task runs
>> 2. Messages that are in the safe-zone - until a subscription comes and
>> messages tries to deliver and get caught at the flusher/
>>
>> During the above time,  those messages are in the DB even though they are
>> expired. In the UI we are showing them as valid messages and valid message
>> count during the aforementioned time.
>>
>> Solution:
>>
>> 1. We are not showing the messages in the UI even though they are in the
>> DB (waiting for delete by the expiry tasks)
>>
>> WDYT? Suggestions, please?
>>
>> Regards,
>> --
>> Sirojan Tharmakulasingam
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: siro...@wso2.com
>> Mobile: +94779797913
>>
>
>
>
> --
> Asanka Abeyweera
> Senior Software Engineer
> WSO2 Inc.
>
> Phone: +94 712228648
> Blog: a5anka.github.io
>
> 
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using dep sync for artifact synchronization of Analytics Cluster

2016-09-26 Thread Sashika Wijesinghe
Hi Gihan,

Thanks for the information.

Regards,
Sashika

On Fri, Sep 23, 2016 at 2:04 PM, Gihan Anuruddha <gi...@wso2.com> wrote:

> In a normal scenario, users will do their implementation and test on
> dev/staging environments. So simply they just upload their final CApp to
> production environment. We can avoid SVN depsync in a minimum HA cluster
> for the simplicity. User needs to upload CApp to the both nodes. Another
> option is using rsync kind of an option to sync artifacts within the
> nodes. The same thing can be applied to the fully distributed cluster as
> well.
>
> Regards,
> Gihan
>
> On Fri, Sep 23, 2016 at 12:35 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> When deploying an Analytics cluster  relevant cApp is bundled with the
>> Analytics pack, therefore even without configuring SVN based deployment
>> synchronizer, Analytics cluster can be configured successfully. But if any
>> changes required (may be a bug fix etc) to the cApp later on, users have to
>> manually replace the cApp for each node.
>>
>> May I know what is the recommended way to configure analytics cluster in
>> terms of artifacts deployment?
>>
>> Thanks
>> Sashika
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Using dep sync for artifact synchronization of Analytics Cluster

2016-09-23 Thread Sashika Wijesinghe
Hi All,

When deploying an Analytics cluster  relevant cApp is bundled with the
Analytics pack, therefore even without configuring SVN based deployment
synchronizer, Analytics cluster can be configured successfully. But if any
changes required (may be a bug fix etc) to the cApp later on, users have to
manually replace the cApp for each node.

May I know what is the recommended way to configure analytics cluster in
terms of artifacts deployment?

Thanks
Sashika

-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] This DEBUG log prints with the server startup

2016-09-08 Thread Sashika Wijesinghe
Hi All,

Observed same issue [1] mentioned by Harsha, after enabling debug logs in
MB 3.2.0 M2 pack.

Any explanation regarding this is highly appreciated.

[1]
[2016-09-08 12:02:46,656] DEBUG
{org.wso2.carbon.context.internal.CarbonContextDataHolder} -  there can be
a possibility of the same class loading twice and then trying to reset the
initial context factory builder
java.lang.RuntimeException: A queue manager instance has already been set.
at
org.wso2.carbon.queuing.CarbonQueueManager.setInstance(CarbonQueueManager.java:47)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder.(CarbonContextDataHolder.java:200)
at
org.wso2.carbon.context.CarbonContext.getThreadLocalCarbonContext(CarbonContext.java:123)
at
org.wso2.carbon.utils.logging.TenantAwarePatternLayout$TenantAwarePatternParser$TenantPatternConverter$1.run(TenantAwarePatternLayout.java:403)
at
org.wso2.carbon.utils.logging.TenantAwarePatternLayout$TenantAwarePatternParser$TenantPatternConverter$1.run(TenantAwarePatternLayout.java:401)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.carbon.utils.logging.TenantAwarePatternLayout$TenantAwarePatternParser$TenantPatternConverter.getFullyQualifiedName(TenantAwarePatternLayout.java:401)
at
org.wso2.carbon.utils.logging.TenantAwarePatternLayout$TenantAwarePatternParser$TenantAwareNamedPatternConverter.convert(TenantAwarePatternLayout.java:242)
at
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:65)
at org.apache.log4j.PatternLayout.format(PatternLayout.java:506)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:176)
at
org.wso2.andes.wso2.internal.QpidBundleActivator.start(QpidBundleActivator.java:39)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

Thanks and Regards,
Sashika

On Wed, Sep 30, 2015 at 2:48 PM, Harsha Thirimanna  wrote:

> Hi Sameera,
>
> If we enable all debug logs , we can see this trace. What could be the
> reason ?
>
> [2015-09-30 14:42:31,947] DEBUG 
> {org.wso2.carbon.context.internal.CarbonContextDataHolder}
> -  Started Setting up Authenticator Configuration
> [2015-09-30 14:42:32,078] DEBUG 
> {org.wso2.carbon.context.internal.CarbonContextDataHolder}
> -  Completed Setting up Authenticator Configuration
> [2015-09-30 14:42:32,079] DEBUG 
> {org.wso2.carbon.context.internal.CarbonContextDataHolder}
> -  Unload Tenant Task: org.wso2.carbon.context.internal.
> CarbonContextDataHolder$CarbonContextCleanupTask was registered.
> [2015-09-30 14:42:32,079] DEBUG 
> {org.wso2.carbon.context.internal.CarbonContextDataHolder}
> -  there can be a possibility of the same class loading twice and then
> trying to reset the initial context factory builder
> java.lang.RuntimeException: A queue manager instance has already been set.
> at org.wso2.carbon.queuing.CarbonQueueManager.setInstance(
> CarbonQueueManager.java:47)
> at org.wso2.carbon.context.internal.CarbonContextDataHolder.(
> CarbonContextDataHolder.java:200)
> at org.wso2.carbon.context.CarbonContext.getThreadLocalCarbonContext(
> CarbonContext.java:123)
> at 

[Dev] [DEV] Validations applied to 'AndesSetRoutingKey' property

2016-09-06 Thread Sashika Wijesinghe
Hi Hemika,

When setting a routing key to a message I have used
"System.setProperty("AndesSetRoutingKey", "1");" as described in the
documentation [1]. As I observed any value set for the "AndesSetRoutingKey"
is considered as valid and the routing key property is set to the message.

May I know whether there is any validation applied to this property? I have
set an empty value as "System.setProperty("AndesSetRoutingKey", "");" ,
this is also considered as valid and the "JMS_ANDES_ROUTING_KEY" property
set to the correct queue destination. When I passed a null value to the
property it fails with NullPointerException. According to [2] 'null' value
can not be set to a property.

[1] https://docs.wso2.com/display/MB320/Setting+the+Routing+Key+for+Messages
[2]
http://stackoverflow.com/questions/4323995/set-system-propery-to-null-in-java

Thank You
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to configure Analytics cluster with MB 3.2.0 cluster?

2016-08-22 Thread Sashika Wijesinghe
@ Isuru and Mohan - Thanks for the detailed information.

@ Mohan, In the event receivers in DAS nodes, "event duplicated in cluster"
property is set to "false". Therefore as you suggested I will
configure load balancing or fail over cluster for analytics.

Regards,
Sashika

On Tue, Aug 23, 2016 at 1:13 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Tue, Aug 23, 2016 at 12:56 AM, Isuru Perera <isu...@wso2.com> wrote:
>
>> Hi,
>>
>> Do you need to publish data to multiple receiver nodes? You should be
>> able to use multiple Receiver URLs. Metrics uses the Data Publisher API.
>> Please check [1].
>>
>> I think it's better to ask from DAS team.
>>
>> [1] https://docs.wso2.com/display/CEP420/Setting+up+Multi+Receiv
>> er+and+Load+Balancing+Data+Agent
>>
>
> +1..
>
> @Sashika, how did you configured the event receiver in DAS side ? what is
> the value for "events duplicated in cluster" property ? Based on that
> property you have to configure DAS urls.. If this property is true then you
> have to use option [1]
> <https://docs.wso2.com/display/CEP420/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Sendingalltheeventstoseveralreceiversscenario2>
> .. If this property is false then you can use load balancing or fail over
> options which send events only to one node at a time..
>
> Thanks,
> Mohan
>
>
>>
>>
>> On Mon, Aug 22, 2016 at 8:45 PM, Sashika Wijesinghe <sash...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I have a requirement to connect Analytics cluster with the MB cluster
>>> (MB 3.2.0 M2).
>>>
>>> To connect a single analytics node with MB 3.2.0 pack, there is a
>>> configuration [1] in the metrics.xml file  to provide the data receiver URL
>>> of the analytics node.
>>> When Configuring analytics cluster, I have used the minimum HA
>>> deployment [2]. May I know how to configure the two analytics data receiver
>>> nodes with MB to publish stats?
>>>
>>> [1]
>>> 
>>> true
>>> 
>>> 
>>> 
>>> 60
>>> 
>>> thrift
>>> 
>>> tcp://localhost:7612
>>> 
>>> 
>>> admin
>>> admin
>>> 
>>> repository/conf/data-bridge/data-agent-
>>> config.xml
>>> 
>>>
>>> [2] https://docs.wso2.com/display/CLUSTER44x/Minimum+High+Av
>>> ailability+Deployment+-+DAS+3.0.1
>>>
>>> Thanks
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to configure Analytics cluster with MB 3.2.0 cluster?

2016-08-22 Thread Sashika Wijesinghe
Hi All,

I have a requirement to connect Analytics cluster with the MB cluster (MB
3.2.0 M2).

To connect a single analytics node with MB 3.2.0 pack, there is a
configuration [1] in the metrics.xml file  to provide the data receiver URL
of the analytics node.
When Configuring analytics cluster, I have used the minimum HA deployment
[2]. May I know how to configure the two analytics data receiver nodes with
MB to publish stats?

[1]

true



60

thrift

tcp://localhost:7612


admin
admin


repository/conf/data-bridge/data-agent-config.xml


[2]
https://docs.wso2.com/display/CLUSTER44x/Minimum+High+Availability+Deployment+-+DAS+3.0.1

Thanks

-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publishing data to CSV file in DAS

2016-02-23 Thread Sashika Wijesinghe
Hi Gihan,

In data explorer there is a set of tables
('ORG_WSO2_APIMGT_STATISTICS_FAULT', ORG_WSO2_APIMGT_STATISTICS_REQUEST)
which contains the event information. My requirement is to export these
data in to a csv file. I checked in the event publisher, but I coudn't find
'csv' format there.

Regards,

On Tue, Feb 23, 2016 at 12:28 PM, Gihan Anuruddha <gi...@wso2.com> wrote:

> You can use the event simulator for this AFAIU [1].
>
> [1] -
> https://docs.wso2.com/display/CEP400/Publishing+Data+Using+Event+Simulation
>
> On Tue, Feb 23, 2016 at 12:20 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I have configured to publish APIM statistics to DAS. Invoked the API and
>> the request/response counts were recorded in DAS data exploere.
>>
>> May I know whether there is any way of publishing this raw data to a csv
>> file through DAS?
>>
>> Any suggestion is highly appreciated.
>>
>> Thanks and Regards,
>> Sashika
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Publishing data to CSV file in DAS

2016-02-22 Thread Sashika Wijesinghe
Hi All,

I have configured to publish APIM statistics to DAS. Invoked the API and
the request/response counts were recorded in DAS data exploere.

May I know whether there is any way of publishing this raw data to a csv
file through DAS?

Any suggestion is highly appreciated.

Thanks and Regards,
Sashika


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Mobility Manager 2.0.0 RC4

2016-01-06 Thread Sashika Wijesinghe
Hi All,

found below blocking issue in the pack.

[1] https://wso2.org/jira/browse/EMM-1174

Regards,

On Wed, Jan 6, 2016 at 5:31 PM, Geeth Munasinghe  wrote:

> Hi Devs,
>
> This is the fourth release candidate of WSO2 Enterprise Mobility Manager
> 2.0.0.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12592
>
> Please download, test and vote.
>
> Source & binary distribution files:
> https://github.com/wso2/product-mdm/releases/tag/v2.0.0-RC4
>
> The tag to be voted upon:
> https://github.com/wso2/product-mdm/tree/v2.0.0-RC4
>
> Known issues
> https://wso2.org/jira/issues/?filter=12593
>
>
> [ ]  Stable - go ahead and release
> [ ]  Broken - do not release (explain why)
>
>
> Thanks and Regards,
> EMM/IoTS Team
>
>
>
>
> *G. K. S. Munasinghe*
> *Senior Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] How to configure policy criteria for role name

2016-01-06 Thread Sashika Wijesinghe
Hi IS team,

I have configured an active directory to EMM product. In the AD there are
few roles with a space in between role name (ex: Enterprise Admin). However
according the policy in carbon console, spaces are not allowed when
creating role names. Is there a standard in wso2 products not to allow
spaces in between role name? Or is there any way to configure these through
a configuration file?

Any help is highly appreciated.

Thanks and Regards,
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] jtds driver for MSSQL

2015-12-17 Thread Sashika Wijesinghe
Hi All,

May I know whether we are supporting jtds driver for MSSQL? Is it
recommended to use jtds driver?

Thanks,
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jtds driver for MSSQL

2015-12-17 Thread Sashika Wijesinghe
Thanks Prabath.

On Thu, Dec 17, 2015 at 5:52 PM, Prabath Abeysekera <praba...@wso2.com>
wrote:

> Yeah, things should work OOTB with JTDS driver too. If you come across any
> issue while testing with the same, please do raise JIRAs as appropriate.
>
> Cheers,
> Prabath
>
> On Thu, Dec 17, 2015 at 5:36 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> May I know whether we are supporting jtds driver for MSSQL? Is it
>> recommended to use jtds driver?
>>
>> Thanks,
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to download wso2 agent for android device

2015-12-13 Thread Sashika Wijesinghe
Hi Kasun,

When I changed the host entry to HTTP, download link redirects to 'No data
received' error page. Is there any other configuration change required to
get the enrollment successful?

Thanks & Regards,

On Sun, Dec 13, 2015 at 1:12 PM, Kasun Dananjaya Delgolla <kas...@wso2.com>
wrote:

> Hi Shashika,
>
> This is because you have given https your for generalConfig->host entry in
> config.json in emm-web-agent. It should be HTTP. Android doesn't allow
> HTTPS unless server has a trusted CA installed. Please change the config to
> HTTP and re-check.
>
> @Shavindri - This needs to be changed in the documentation as well. (Also
> mention in prod mode, change this to HTTPS)
>
> Thanks
>
> On Sat, Dec 12, 2015 at 5:12 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I was unable to download wso2 agent for android device due to agent
>> download failure. In the download link it appears as 'unknown' (image
>> attached).
>>
>> Before starting the server I have configured below files with domain ip
>> address. (Configuration files attached )
>> May I know whether I missed any mandatory configurations?
>>
>>- cdm-config.xml
>>- carbon.xml
>>- config.json file at
>>'/repository/deployment/server/jaggeryapps/emm/config' location
>>- config.json file at
>>'/repository/deployment/server/jaggeryapps/emm-web-agent/config'
>>location
>>
>> Any help is highly appreciated.
>>
>> Thanks & Regards,
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Exception when installing ios p2-repository in EMM

2015-12-02 Thread Sashika Wijesinghe
Hi Inosh,

I observed above error even when installing ios features using new
p2-repository. However did not get the exception after restarting the
server.

Created a JIRA for this issue.
JIRA - https://wso2.org/jira/browse/EMM-1039

Regards,

On Wed, Dec 2, 2015 at 8:37 AM, Inosh Perera <ino...@wso2.com> wrote:

> Hi Shashika,
>
> Yes. There are changes.
>
> Regards,
> Inosh
>
> On Wed, Dec 2, 2015 at 8:32 AM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi Inosh,
>>
>> I'm using the same p2-repository which I used for the pack given before
>> the alpha release. Is there any changes to the p2 repository?
>>
>> Regards,
>>
>> On Wed, Dec 2, 2015 at 8:15 AM, Inosh Perera <ino...@wso2.com> wrote:
>>
>>> Hi Sashika,
>>>
>>> Could you please tell if you have taken a pull and built the proprietary
>>> plugin and taken the p2-repo from that recently?
>>>
>>> Regards,
>>> Inosh
>>>
>>> On Wed, Dec 2, 2015 at 8:12 AM, Sashika Wijesinghe <sash...@wso2.com>
>>> wrote:
>>>
>>>> Hi Dilshan,
>>>>
>>>> This issue is still there even after restarting the EMM server.
>>>>
>>>> Regards,
>>>>
>>>>
>>>> On Wed, Dec 2, 2015 at 12:21 AM, Dilshan Edirisuriya <dils...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Sashika,
>>>>>
>>>>> Did this issue go away once you restart? At installation time there
>>>>> was a similar issue but I believe we have already fixed that.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Dilshan
>>>>>
>>>>> On Tue, Dec 1, 2015 at 6:43 PM, Sashika Wijesinghe <sash...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I want to configure IOS to MDM. I followed below steps to configure
>>>>>> IOS.
>>>>>>
>>>>>>- configure general server configurations as mentioned in doc [1
>>>>>>
>>>>>> <https://docs.wso2.com/display/EMM200/General+iOS+Server+Configurations>
>>>>>>]
>>>>>>- Start EMM server and added ios-agent.ipa file to
>>>>>>
>>>>>> '/repository/deployment/server/jaggeryapps/mdm/units/asset-download-agent-ios/public/asset'
>>>>>>path
>>>>>>- Installed p2 repository as mentioned in doc [2
>>>>>><https://docs.wso2.com/display/EMM200/Installing+the+P2+Repository>
>>>>>>]
>>>>>>
>>>>>> [1]
>>>>>> https://docs.wso2.com/display/EMM200/General+iOS+Server+Configurations
>>>>>> [2] https://docs.wso2.com/display/EMM200/Installing+the+P2+Repository
>>>>>>
>>>>>> Below exception observed in terminal after installing p2 repository.
>>>>>> May I know whether I missed any mandatory configurations?
>>>>>>
>>>>>> log4j:WARN No appenders could be found for logger
>>>>>> (org.apache.cxf.common.logging.LogUtils).
>>>>>> log4j:WARN Please initialize the log4j system properly.
>>>>>> [2015-12-01 18:10:13,701] ERROR
>>>>>> {org.apache.catalina.core.ApplicationContext} -  
>>>>>> StandardWrapper.Throwable
>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>> creating bean with name 'enrollmentService': Cannot resolve reference to
>>>>>> bean 'enrollmentServiceBean' while setting bean property 'serviceBeans'
>>>>>> with key [0]; nested exception is
>>>>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>>>>> bean with name 'enrollmentServiceBean' defined in URL
>>>>>> [jndi:/localhost/ios-enrollment/WEB-INF/cxf-servlet.xml]: Instantiation 
>>>>>> of
>>>>>> bean failed; nested exception is java.lang.NoClassDefFoundError:
>>>>>> org/wso2/carbon/device/mgt/ios/core/exception/IOSEnrollmentException
>>>>>> at
>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>>>>>> at
>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(B

Re: [Dev] [EMM] Exception when installing ios p2-repository in EMM

2015-12-01 Thread Sashika Wijesinghe
Hi Dilshan,

This issue is still there even after restarting the EMM server.

Regards,


On Wed, Dec 2, 2015 at 12:21 AM, Dilshan Edirisuriya <dils...@wso2.com>
wrote:

> Hi Sashika,
>
> Did this issue go away once you restart? At installation time there was a
> similar issue but I believe we have already fixed that.
>
> Regards,
>
> Dilshan
>
> On Tue, Dec 1, 2015 at 6:43 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I want to configure IOS to MDM. I followed below steps to configure IOS.
>>
>>- configure general server configurations as mentioned in doc [1
>><https://docs.wso2.com/display/EMM200/General+iOS+Server+Configurations>
>>]
>>- Start EMM server and added ios-agent.ipa file to
>>
>> '/repository/deployment/server/jaggeryapps/mdm/units/asset-download-agent-ios/public/asset'
>>path
>>- Installed p2 repository as mentioned in doc [2
>><https://docs.wso2.com/display/EMM200/Installing+the+P2+Repository>]
>>
>> [1]
>> https://docs.wso2.com/display/EMM200/General+iOS+Server+Configurations
>> [2] https://docs.wso2.com/display/EMM200/Installing+the+P2+Repository
>>
>> Below exception observed in terminal after installing p2 repository. May
>> I know whether I missed any mandatory configurations?
>>
>> log4j:WARN No appenders could be found for logger
>> (org.apache.cxf.common.logging.LogUtils).
>> log4j:WARN Please initialize the log4j system properly.
>> [2015-12-01 18:10:13,701] ERROR
>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'enrollmentService': Cannot resolve reference to bean
>> 'enrollmentServiceBean' while setting bean property 'serviceBeans' with key
>> [0]; nested exception is
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'enrollmentServiceBean' defined in URL
>> [jndi:/localhost/ios-enrollment/WEB-INF/cxf-servlet.xml]: Instantiation of
>> bean failed; nested exception is java.lang.NoClassDefFoundError:
>> org/wso2/carbon/device/mgt/ios/core/exception/IOSEnrollmentException
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>> at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>> at
>> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:151)
>> at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>> at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:76)
>> at
>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)

Re: [Dev] [EMM] Exception when installing ios p2-repository in EMM

2015-12-01 Thread Sashika Wijesinghe
Hi Inosh,

I'm using the same p2-repository which I used for the pack given before the
alpha release. Is there any changes to the p2 repository?

Regards,

On Wed, Dec 2, 2015 at 8:15 AM, Inosh Perera <ino...@wso2.com> wrote:

> Hi Sashika,
>
> Could you please tell if you have taken a pull and built the proprietary
> plugin and taken the p2-repo from that recently?
>
> Regards,
> Inosh
>
> On Wed, Dec 2, 2015 at 8:12 AM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi Dilshan,
>>
>> This issue is still there even after restarting the EMM server.
>>
>> Regards,
>>
>>
>> On Wed, Dec 2, 2015 at 12:21 AM, Dilshan Edirisuriya <dils...@wso2.com>
>> wrote:
>>
>>> Hi Sashika,
>>>
>>> Did this issue go away once you restart? At installation time there was
>>> a similar issue but I believe we have already fixed that.
>>>
>>> Regards,
>>>
>>> Dilshan
>>>
>>> On Tue, Dec 1, 2015 at 6:43 PM, Sashika Wijesinghe <sash...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I want to configure IOS to MDM. I followed below steps to configure IOS.
>>>>
>>>>- configure general server configurations as mentioned in doc [1
>>>><https://docs.wso2.com/display/EMM200/General+iOS+Server+Configurations>
>>>>]
>>>>- Start EMM server and added ios-agent.ipa file to
>>>>
>>>> '/repository/deployment/server/jaggeryapps/mdm/units/asset-download-agent-ios/public/asset'
>>>>path
>>>>- Installed p2 repository as mentioned in doc [2
>>>><https://docs.wso2.com/display/EMM200/Installing+the+P2+Repository>]
>>>>
>>>> [1]
>>>> https://docs.wso2.com/display/EMM200/General+iOS+Server+Configurations
>>>> [2] https://docs.wso2.com/display/EMM200/Installing+the+P2+Repository
>>>>
>>>> Below exception observed in terminal after installing p2 repository.
>>>> May I know whether I missed any mandatory configurations?
>>>>
>>>> log4j:WARN No appenders could be found for logger
>>>> (org.apache.cxf.common.logging.LogUtils).
>>>> log4j:WARN Please initialize the log4j system properly.
>>>> [2015-12-01 18:10:13,701] ERROR
>>>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>>> bean with name 'enrollmentService': Cannot resolve reference to bean
>>>> 'enrollmentServiceBean' while setting bean property 'serviceBeans' with key
>>>> [0]; nested exception is
>>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>>> bean with name 'enrollmentServiceBean' defined in URL
>>>> [jndi:/localhost/ios-enrollment/WEB-INF/cxf-servlet.xml]: Instantiation of
>>>> bean failed; nested exception is java.lang.NoClassDefFoundError:
>>>> org/wso2/carbon/device/mgt/ios/core/exception/IOSEnrollmentException
>>>> at
>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>>>> at
>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>>>> at
>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>>> at
>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>>>> at
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>>>> at
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>>>> at
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>>>> at
>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>>> at
>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>>> at
>>>> org.springframework.beans.factory.support.Def

[Dev] [EMM] Exception when installing ios p2-repository in EMM

2015-12-01 Thread Sashika Wijesinghe
Hi All,

I want to configure IOS to MDM. I followed below steps to configure IOS.

   - configure general server configurations as mentioned in doc [1
   
   ]
   - Start EMM server and added ios-agent.ipa file to
   
'/repository/deployment/server/jaggeryapps/mdm/units/asset-download-agent-ios/public/asset'
   path
   - Installed p2 repository as mentioned in doc [2
   ]

[1] https://docs.wso2.com/display/EMM200/General+iOS+Server+Configurations
[2] https://docs.wso2.com/display/EMM200/Installing+the+P2+Repository

Below exception observed in terminal after installing p2 repository. May I
know whether I missed any mandatory configurations?

log4j:WARN No appenders could be found for logger
(org.apache.cxf.common.logging.LogUtils).
log4j:WARN Please initialize the log4j system properly.
[2015-12-01 18:10:13,701] ERROR
{org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'enrollmentService': Cannot resolve reference to bean
'enrollmentServiceBean' while setting bean property 'serviceBeans' with key
[0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'enrollmentServiceBean' defined in URL
[jndi:/localhost/ios-enrollment/WEB-INF/cxf-servlet.xml]: Instantiation of
bean failed; nested exception is java.lang.NoClassDefFoundError:
org/wso2/carbon/device/mgt/ios/core/exception/IOSEnrollmentException
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:151)
at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:76)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:290)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:198)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:258)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:208)
at

Re: [Dev] [EMM] Roles and Permissions

2015-11-13 Thread Sashika Wijesinghe
Adding Geeth.

Hi Geeth,

We have some doubts about the real usage of "Device Management" and "Device
Management Admin" permission structure. (question raised by Chathurika) and
some other questions regarding role permissions.

1) What are the minimum permission levels required for a device user?

2) There is a separate permission section called 'android' what is the
purpose of those permissions?

[image: Inline image 1]



Appreciate your help to clarify above issues.

Thanks & Regards,

On Mon, Oct 26, 2015 at 5:02 PM, Chathurika De Silva 
wrote:

> Hi
>
> In EMM for permissions the following structure is there
>
>-Device Management
>   -Device Management Admin
>
> User 1 -> Device Management (parent level permission)
> User 2 -> Device Management Admin  (Child level permission only)
>
> What are the contexts that above users can be used? Help regarding this is
> highly appreciated.
>
> Thank You
> Erandi
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM 200][Docs] Improvements needed on EMM Documentation

2015-10-26 Thread Sashika Wijesinghe
Hi Shavindri,

When updating "Setting up Mysql" documentation, please include
configuration instructions for all the relevant data sources that needs to
be configured. Further it would be better to add the purpose of each data
source mentioned in "master-datasources.xml" and "cdm-datasources.xml",
since it would be helpful for the user when configuring data sources.

Thanks and Regards,
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2EMM 2.0.0 Milestone 7 Released

2015-10-20 Thread Sashika Wijesinghe
Hi All,

I observed FileNotFoundException when starting a fresh pack with mysql
database [1] . Further there is a naming issue in WSO2AM_DS datasource,
same jndi config name is used for WSO2AM_DB and WSO2AM_DS [2].

I have reported JIRA for above issues.

[1] https://wso2.org/jira/browse/EMM-822
[2] https://wso2.org/jira/browse/EMM-823

Regards,
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][BPS] Clarification on bps dbscripts

2015-10-12 Thread Sashika Wijesinghe
Hi Firzhan,

There scripts to drop and truncate as well. Appreciate your help in
clarifying below issues.

1. In /dbscripts/bps/bpel/drop there are scripts to drop the
tables in BPS database.

To verify the scripts, I stopped the BPS server and drop tables using the
given 'drop scripts' and recreate the tables using given 'create scripts'.
After restarting the server, "*[2015-10-12 11:33:14,791] ERROR
{org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} -
 Cannot find DeploymentUnitDAO instance for package AdderProcess-1.*" error
noted in terminal. This is because the package details are available in
registry database.

Further it is not possible to continue the work by deploying a new bpel
process due to corrupted process. I had to undeploy the corrupted bpel
process to continue work.

Is there any recommended best practice to use the drop bps scripts? If so
it should be documented because these scripts are bundled with the BPS
package itself.


Thanks

On Fri, Oct 9, 2015 at 5:56 PM, Firzhan Naqash <firz...@wso2.com> wrote:

> Hi,
>
> Those scripts are used to create the necessary database schema for bpel.
> Without executing this scripts, you won't be able to start the bps server.
>
> As a first step, after configuring the bps-datasources.xml file, you have
> to execute this script against your preferred database. Or else if you have
> necessary database permissions, you can start the server with -Dsetup
> option.
>
> Regards,
> Firzhan
>
>
> --
> *Firzhan Naqash*
> Senior Software Engineer - Integration Platform Team
> WSO2 Inc. http://wso2.com
>
> email: firz...@wso2.com <lasan...@wso2.com>
> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
> blog: http://firzhanblogger.blogspot.com/
> <http://firzhanblogger.blogspot.com/>  <http://suhothayan.blogspot.com/>*
> *twitter: https://twitter.com/firzhan007
> <https://twitter.com/firzhan007> | linked-in: 
> **https://www.linkedin.com/in/firzhan
> <https://www.linkedin.com/in/firzhan>*
>
> On Fri, Oct 9, 2015 at 5:51 PM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> There were bpel database scripts under /dbscripts/bps/bpel. May
>> I know the real usecase of these scripts? Is there any specific
>> pre-conditions that needs to follow before executing these scripts?
>>
>> Thanks
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][BPS] Clarification on bps dbscripts

2015-10-12 Thread Sashika Wijesinghe
Hi Hasitha,

Thanks for the information. These information is not documented in BPS
documentation, therefore raised a documentation jira. (
https://wso2.org/jira/browse/DOCUMENTATION-2529)

Regards,

On Mon, Oct 12, 2015 at 1:39 PM, Hasitha Aravinda <hasi...@wso2.com> wrote:

> Hi Sashika,
>
> Drop/Truncate scripts are used to recreate fresh environments.  Specially
> these scripts will be useful, when you are working with restricted
> environments like where you don't have privileges to create databases, etc.
> Some users want these scripts specially when they do load tests.
>
> Since you have dropped only bps database, this is expected. Since we are
> creating fresh environment, we need to drop registry tables and re-create
> them. AFAIK registry doesn't have drop scripts. Also we need to remove
> previous deployed artifacts from file system as well.
>
> Thanks
> Hasitha.
>
>
>
>
> On Mon, Oct 12, 2015 at 11:59 AM, Sashika Wijesinghe <sash...@wso2.com>
> wrote:
>
>> Hi Firzhan,
>>
>> There scripts to drop and truncate as well. Appreciate your help in
>> clarifying below issues.
>>
>> 1. In /dbscripts/bps/bpel/drop there are scripts to drop the
>> tables in BPS database.
>>
>> To verify the scripts, I stopped the BPS server and drop tables using the
>> given 'drop scripts' and recreate the tables using given 'create scripts'.
>> After restarting the server, "*[2015-10-12 11:33:14,791] ERROR
>> {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} -
>>  Cannot find DeploymentUnitDAO instance for package AdderProcess-1.*"
>> error noted in terminal. This is because the package details are available
>> in registry database.
>>
>> Further it is not possible to continue the work by deploying a new bpel
>> process due to corrupted process. I had to undeploy the corrupted bpel
>> process to continue work.
>>
>> Is there any recommended best practice to use the drop bps scripts? If so
>> it should be documented because these scripts are bundled with the BPS
>> package itself.
>>
>>
>> Thanks
>>
>> On Fri, Oct 9, 2015 at 5:56 PM, Firzhan Naqash <firz...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Those scripts are used to create the necessary database schema for bpel.
>>> Without executing this scripts, you won't be able to start the bps server.
>>>
>>> As a first step, after configuring the bps-datasources.xml file, you
>>> have to execute this script against your preferred database. Or else if you
>>> have necessary database permissions, you can start the server with -Dsetup
>>> option.
>>>
>>> Regards,
>>> Firzhan
>>>
>>>
>>> --
>>> *Firzhan Naqash*
>>> Senior Software Engineer - Integration Platform Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: firz...@wso2.com <lasan...@wso2.com>
>>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>>> blog: http://firzhanblogger.blogspot.com/
>>> <http://firzhanblogger.blogspot.com/>  <http://suhothayan.blogspot.com/>*
>>> *twitter: https://twitter.com/firzhan007
>>> <https://twitter.com/firzhan007> | linked-in: 
>>> **https://www.linkedin.com/in/firzhan
>>> <https://www.linkedin.com/in/firzhan>*
>>>
>>> On Fri, Oct 9, 2015 at 5:51 PM, Sashika Wijesinghe <sash...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> There were bpel database scripts under /dbscripts/bps/bpel.
>>>> May I know the real usecase of these scripts? Is there any specific
>>>> pre-conditions that needs to follow before executing these scripts?
>>>>
>>>> Thanks
>>>> --
>>>>
>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>> Mobile : +94 (0) 774537487
>>>> sash...@wso2.com
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][BPS] Clarification on bps dbscripts

2015-10-09 Thread Sashika Wijesinghe
Hi All,

There were bpel database scripts under /dbscripts/bps/bpel. May I
know the real usecase of these scripts? Is there any specific
pre-conditions that needs to follow before executing these scripts?

Thanks
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [CEP] Integrating ML extension in CEP distributed mode setup

2015-09-30 Thread Sashika Wijesinghe
Hi All,

I have setup the environment according to the instructions given in Doc
[1]. To test the scenario I have setup the CEP cluster in local machine and
connected to the storm cluster setup in QA cloud and installed ml features
in both manager node and worker node.

When I started worker node with -DworkerNode=true property "*Caused by:
org.wso2.siddhi.query.api.exception.ExecutionPlanValidationException: No
extension exist for StreamFunctionExtension{namespace='ml'}  in execution
plan "ExecutionPlanML*" observed in worker node. Reported a JIRA [2] for
this issue (test artifacts are attached with the issue).

Since there was an exception when starting with -DworkerNode=true property,
I have started the worker node without that property. And send events to
worker node. Then I observed "*java.lang.RuntimeException:
org.wso2.siddhi.query.api.exception.ExecutionPlanValidationException: No
extension exist for StreamFunctionExtension*
*{namespace='ml'}*" exception in Storm UI.

May I know the reason for above error? Do I need to refer ml features in
storm as well?

[1]
https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner
[2] https://wso2.org/jira/browse/CEP-1405

Any help is highly appreciated.

On Fri, Sep 18, 2015 at 10:49 AM, Manorama Perera <manor...@wso2.com> wrote:

> Hi Sashika,
>
> The doc [1] is now updated with the steps to update the storm dependency
> jar.
>
> [1]
> https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner
>
> Thanks.
>
> On Thu, Sep 17, 2015 at 11:10 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>
>> Hi Suho,
>>
>> Mano started to work on a document on this.
>>
>> On Thu, Sep 17, 2015 at 11:06 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Thu, Sep 17, 2015 at 8:55 PM, Sashika Wijesinghe <sash...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I want to test how ML extension can be integrated with CEP storm
>>>> distributed cluster. So for that I have set up CEP with a manager node and
>>>> a worker node. And installed ML features using p2-repository in manager
>>>> node. Then deployed an event flow in CEP manager node and send events to
>>>> the receiver in worker node. Then I observed " No extension exist for
>>>> StreamFunctionExtension{namespace='ml'}  in execution plan
>>>> "ExecutionPlanML" in worker node.
>>>>
>>>
>>>> To overcome this issue, I have started worker node without
>>>> "-DworkerNode=true" argument and installed ML features in worker node as
>>>> well. Then restart the entire cluster (worker started with
>>>> -DworkerNode=true) and send events to the worker node. But events are not
>>>> logged in worker node (logger publisher is used).
>>>>
>>>> Further I have tested the same flow in standalone CEP pack according to
>>>> the instructions given in [1]
>>>> <https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner>
>>>> , and it works as expected.
>>>> [1]
>>>> https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner
>>>>
>>>>
>>>> Please help me to clarify below issues
>>>>
>>>> 1) When we setup a storm distributed cluster and installed a feature in
>>>> manager node, isn't there any way of synchronizing that feature details
>>>> with worker node rather than installing the same features in worker node?
>>>>
>>>> No this is not supported in WSO2 Servers, need to install in all nodes.
>>>
>>>
>>>> 2) Even after I installed the feature in worker node I didn't get any
>>>> events. What can be the possible reasons for that?
>>>>
>>>> Since there are no documentation on how to set up the ML extension in
>>>> CEP storm distribute cluster , it would be better to update the documents
>>>> with relevant details.
>>>>
>>>> We have to also update the storm dependency jar, @ML forks can you
>>> update the docs with the storm story too?
>>>
>>> Regards
>>> Suho
>>>
>>>
>>>> Appreciate your help on this matter.
>>>>
>>>> Thanks
>>>>
>>>> --
>>>>
>>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>>> Mobile : +94 (0) 774537487
>>>> sash...@wso2.com
>>>>
>>>
>>>

[Dev] [DEV] [CEP] Issues noted in CEP RC3 pack

2015-09-17 Thread Sashika Wijesinghe
Hi CEP team,

We have setup distributed mode CEP cluster in given EC2 instances for RC3
pack. In our setup we have observed below mentioned issues and raised JIRA
tickets on those.

[1] https://wso2.org/jira/browse/CEP-1373
[2] https://wso2.org/jira/browse/CEP-1377
[2] https://wso2.org/jira/browse/CEP-1379

Regards,
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [CEP] Integrating ML extension in CEP distributed mode setup

2015-09-17 Thread Sashika Wijesinghe
Hi All,

I want to test how ML extension can be integrated with CEP storm
distributed cluster. So for that I have set up CEP with a manager node and
a worker node. And installed ML features using p2-repository in manager
node. Then deployed an event flow in CEP manager node and send events to
the receiver in worker node. Then I observed " No extension exist for
StreamFunctionExtension{namespace='ml'}  in execution plan
"ExecutionPlanML" in worker node.

To overcome this issue, I have started worker node without
"-DworkerNode=true" argument and installed ML features in worker node as
well. Then restart the entire cluster (worker started with
-DworkerNode=true) and send events to the worker node. But events are not
logged in worker node (logger publisher is used).

Further I have tested the same flow in standalone CEP pack according to the
instructions given in [1]

, and it works as expected.
[1]
https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner


Please help me to clarify below issues

1) When we setup a storm distributed cluster and installed a feature in
manager node, isn't there any way of synchronizing that feature details
with worker node rather than installing the same features in worker node?

2) Even after I installed the feature in worker node I didn't get any
events. What can be the possible reasons for that?

Since there are no documentation on how to set up the ML extension in CEP
storm distribute cluster , it would be better to update the documents with
relevant details.


Appreciate your help on this matter.

Thanks

-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] "svn: E200030: Index not exists: I_NODES_MOVED" error in CEP worker node

2015-09-15 Thread Sashika Wijesinghe
Hi All,

We setup distributed mode CEP with 3 nodes, one manager node, one worker
node and remaining node working both as worker and manager (depsync enabled
and registry shared). Noted below error logging continuously in worker node
after starting the worker node using -DworkerNode=true argument. Is there
any known reason for this issue?

CEP - RC2 pack
Added svnkit-all-1.8.7.wso2v1.jar to components/dropins folder
Added trilead-ssh2-1.0.0-build215.jar to componenets/lib folder

[2015-09-15 08:27:00,120] @tenant11.com [22] [CEP] INFO
{org.wso2.carbon.event.publisher.core.EventPublisherDeployer} -  Event
Publisher configuration successfully deployed and in active state : wso2out
[2015-09-15 08:27:04,108] ERROR
{org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository}
-  Error while checking out or updating artifacts from the SVN repository
org.tigris.subversion.svnclientadapter.SVNClientException:
org.apache.subversion.javahl.ClientException: svn: E200030: Index not
exists: I_NODES_MOVED
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.revert(AbstractJhlClientAdapter.java:1190)
at
org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.checkout(SVNBasedArtifactRepository.java:457)
at
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.checkout(DeploymentSynchronizer.java:178)
at
org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:96)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:179)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:137)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.subversion.javahl.ClientException: svn: E200030:
Index not exists: I_NODES_MOVED
at
org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68)
at
org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1492)
at
org.tmatesoft.svn.core.javahl17.SVNClientImpl.revert(SVNClientImpl.java:439)
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.revert(AbstractJhlClientAdapter.java:1187)
... 12 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: E200030: Index not
exists: I_NODES_MOVED
at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
at
org.tmatesoft.svn.core.internal.db.SVNSqlJetDb.createSqlJetError(SVNSqlJetDb.java:193)
at
org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.openCursor(SVNSqlJetSelectStatement.java:63)
at
org.tmatesoft.svn.core.internal.db.SVNSqlJetStatement.next(SVNSqlJetStatement.java:90)
at
org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.next(SVNSqlJetSelectStatement.java:108)
at
org.tmatesoft.svn.core.internal.wc17.db.SvnWcDbRevert.revertRecursive(SvnWcDbRevert.java:329)
at
org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.opRevert(SVNWCDb.java:2868)
at
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRevert.revert(SvnNgRevert.java:123)
at
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRevert.revert(SvnNgRevert.java:69)
at
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRevert.run(SvnNgRevert.java:39)
at
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRevert.run(SvnNgRevert.java:26)
at
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
at
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
at
org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at
org.tmatesoft.svn.core.javahl17.SVNClientImpl.revert(SVNClientImpl.java:437)
... 13 more
Caused by: org.tmatesoft.sqljet.core.SqlJetException: Index not exists:
I_NODES_MOVED: error code is MISUSE
at
org.tmatesoft.sqljet.core.internal.table.SqlJetTable.checkIndexName(SqlJetTable.java:285)
at
org.tmatesoft.sqljet.core.internal.table.SqlJetTable.access$300(SqlJetTable.java:46)
at
org.tmatesoft.sqljet.core.internal.table.SqlJetTable$8.runWithLock(SqlJetTable.java:236)
at
org.tmatesoft.sqljet.core.table.SqlJetDb$1.runSynchronized(SqlJetDb.java:172)
at
org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynchronized(SqlJetEngine.java:217)
at 

Re: [Dev] Clarifications on CEP

2015-09-14 Thread Sashika Wijesinghe
Hi Nirmal,

I tried to install 'Machine learner core' feature in a fresh CEP pack (13th
September Jenkins pack) , but couldn't continue installation due to below
issue.

Cannot complete the install because of a conflicting dependency. Software
being installed: WSO2 Carbon - Machine Learner Core Feature 1.0.1.SNAPSHOT
(org.wso2.carbon.ml.core.feature.group 1.0.1.SNAPSHOT) Software currently
installed: WSO2 Carbon - Event Publisher Feature 5.0.1
(org.wso2.carbon.event.publisher.feature.group 5.0.1) Only one of the
following can be installed at once: WSO2 Carbon - Event Output Email
Adapter Server Feature 5.0.1
(org.wso2.carbon.event.output.adapter.email.server.feature.jar 5.0.1) WSO2
Carbon - Event Output Email Adapter Server Feature 5.0.2.SNAPSHOT
(org.wso2.carbon.event.output.adapter.email.server.feature.jar
5.0.2.SNAPSHOT) Cannot satisfy dependency: From: WSO2 Carbon - Event Output
Email Adapter Server Feature 5.0.1
(org.wso2.carbon.event.output.adapter.email.server.feature.group 5.0.1) To:
org.wso2.carbon.event.output.adapter.email.server.feature.jar [5.0.1]
Cannot satisfy dependency: From: WSO2 Carbon - Event Output Email Adapter
Server Feature 5.0.2.SNAPSHOT
(org.wso2.carbon.event.output.adapter.email.server.feature.group
5.0.2.SNAPSHOT) To:
org.wso2.carbon.event.output.adapter.email.server.feature.jar
[5.0.2.SNAPSHOT] Cannot satisfy dependency: From: WSO2 Carbon - Event
Publisher Output Adapter Feature 5.0.1
(org.wso2.carbon.event.output.adapter.feature.group 5.0.1) To:
org.wso2.carbon.event.output.adapter.email.server.feature.group [5.0.1]
Cannot satisfy dependency: From: WSO2 Carbon - Event Publisher Feature
5.0.1 (org.wso2.carbon.event.publisher.feature.group 5.0.1) To:
org.wso2.carbon.event.output.adapter.feature.group [5.0.1] Cannot satisfy
dependency: From: WSO2 Carbon - Machine Learner Core Feature 1.0.1.SNAPSHOT
(org.wso2.carbon.ml.core.feature.group 1.0.1.SNAPSHOT) To:
org.wso2.carbon.event.output.adapter.email.server.feature.group
[5.0.2.SNAPSHOT,5.1.0)

Appreciate your help on this matter.

Thanks.

On Mon, Sep 14, 2015 at 10:02 AM, Nirmal Fernando <nir...@wso2.com> wrote:

> Shared the ML p2-repo with Sashika.
>
> On Sun, Sep 13, 2015 at 10:40 PM, Shavantha Weerasinghe <
> shavan...@wso2.com> wrote:
>
>> Hi Sashika
>>
>> I got the p2 from lasantha last week will share tomorrow
>> On Sep 12, 2015 10:24 PM, "Sashika Wijesinghe" <sash...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> May I know the location to download P2 repository to add ML features for
>>> CEP?
>>>
>>> Thanks
>>>
>>> On Wed, Sep 9, 2015 at 12:02 PM, Sashika Wijesinghe <sash...@wso2.com>
>>> wrote:
>>>
>>>> Hi Lasantha,
>>>>
>>>> Thanks for the clarification.
>>>>
>>>> In the documentation it has mentioned that '-DworkerNode=true" argument
>>>> will deactivate the UI bundle, So I thought there should not be any UI
>>>> component when a user tried to access to the worker node.
>>>> And I felt its good if we are not enabling the login page. because when
>>>> I tried to login to the CEP using worker node I got '*login failed*'
>>>> error message.
>>>>
>>>> Thanks & Regards,
>>>>
>>>> On Wed, Sep 9, 2015 at 11:21 AM, Lasantha Fernando <lasan...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Sashika,
>>>>>
>>>>> Yes that is the usual behaviour for WSO2 servers when started with
>>>>> worker node true. The login page will be visible, but you won't be allowed
>>>>> to login.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> On 9 September 2015 at 11:16, Sashika Wijesinghe <sash...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Suho/Lasantha,
>>>>>>
>>>>>> I'm working on CEP distributed mode set up. When a worker node is
>>>>>> started using "-DworkerNode=true" argument, I expected that UI of the
>>>>>> worker node should not be visible. However CEP login page is visible when
>>>>>> started with -DworkerNode=true argument, but can't access to CEP, because
>>>>>> login functionality is not functioning.
>>>>>>
>>>>>> Appreciate your clarification on above situation.
>>>>>>
>>>>>> Thank You
>>>>>>
>>>>>> On Wed, Sep 9, 2015 at 11:00 AM, Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com&g

Re: [Dev] Clarifications on CEP

2015-09-12 Thread Sashika Wijesinghe
Hi All,

May I know the location to download P2 repository to add ML features for
CEP?

Thanks

On Wed, Sep 9, 2015 at 12:02 PM, Sashika Wijesinghe <sash...@wso2.com>
wrote:

> Hi Lasantha,
>
> Thanks for the clarification.
>
> In the documentation it has mentioned that '-DworkerNode=true" argument
> will deactivate the UI bundle, So I thought there should not be any UI
> component when a user tried to access to the worker node.
> And I felt its good if we are not enabling the login page. because when I
> tried to login to the CEP using worker node I got '*login failed*' error
> message.
>
> Thanks & Regards,
>
> On Wed, Sep 9, 2015 at 11:21 AM, Lasantha Fernando <lasan...@wso2.com>
> wrote:
>
>> Hi Sashika,
>>
>> Yes that is the usual behaviour for WSO2 servers when started with worker
>> node true. The login page will be visible, but you won't be allowed to
>> login.
>>
>> Thanks,
>>
>> On 9 September 2015 at 11:16, Sashika Wijesinghe <sash...@wso2.com>
>> wrote:
>>
>>> Hi Suho/Lasantha,
>>>
>>> I'm working on CEP distributed mode set up. When a worker node is
>>> started using "-DworkerNode=true" argument, I expected that UI of the
>>> worker node should not be visible. However CEP login page is visible when
>>> started with -DworkerNode=true argument, but can't access to CEP, because
>>> login functionality is not functioning.
>>>
>>> Appreciate your clarification on above situation.
>>>
>>> Thank You
>>>
>>> On Wed, Sep 9, 2015 at 11:00 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> Can you look into this
>>>>
>>>> Suho
>>>>
>>>> On Wed, Sep 9, 2015 at 10:59 AM, Shavantha Weerasinghe <
>>>> shavan...@wso2.com> wrote:
>>>>
>>>>> Hi Suho/Lasantha
>>>>>
>>>>> We observed the bellow exception when we set the hostName as
>>>>> *192.168.48.128* but the exception does not come if we set localhost.
>>>>> This is on the node that behaves as both manager and worker on 
>>>>> *192.168.48.128.
>>>>> *Do we need to set the /etc/hosts if we are to use the IP
>>>>>
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> <hostName*>192.168.48.128*
>>>>> 8904
>>>>> 
>>>>> 
>>>>> localhost
>>>>> 11000
>>>>> 
>>>>> 
>>>>>
>>>>> 
>>>>> 
>>>>> 
>>>>> 192.168.48.128
>>>>> 8904
>>>>> 
>>>>> 
>>>>> 192.168.48.128
>>>>> 8905
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>> [2015-09-09 05:14:57,550] ERROR
>>>>> {org.wso2.carbon.event.processor.core.internal.storm.manager.StormManagerServer}
>>>>> -  Cannot start Storm Manager Server on 192.168.48.128:8905
>>>>> org.apache.thrift.transport.TTransportException: Could not create
>>>>> ServerSocket on address /192.168.48.128:8905.
>>>>> at
>>>>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:93)
>>>>> at
>>>>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:79)
>>>>> at
>>>>> org.wso2.carbon.event.processor.core.internal.storm.manager.StormManagerServer.(StormManagerServer.java:41)
>>>>> at
>>>>> org.wso2.carbon.event.processor.core.internal.ds.EventProcessorServiceDS.activate(EventProcessorServiceDS.java:87)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>
>>>>>
>>>>> Shavantha Weerasinghe
>>>>> Senior Software Engineer QA
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware.

Re: [Dev] Clarifications on CEP

2015-09-09 Thread Sashika Wijesinghe
Hi Lasantha,

Thanks for the clarification.

In the documentation it has mentioned that '-DworkerNode=true" argument
will deactivate the UI bundle, So I thought there should not be any UI
component when a user tried to access to the worker node.
And I felt its good if we are not enabling the login page. because when I
tried to login to the CEP using worker node I got '*login failed*' error
message.

Thanks & Regards,

On Wed, Sep 9, 2015 at 11:21 AM, Lasantha Fernando <lasan...@wso2.com>
wrote:

> Hi Sashika,
>
> Yes that is the usual behaviour for WSO2 servers when started with worker
> node true. The login page will be visible, but you won't be allowed to
> login.
>
> Thanks,
>
> On 9 September 2015 at 11:16, Sashika Wijesinghe <sash...@wso2.com> wrote:
>
>> Hi Suho/Lasantha,
>>
>> I'm working on CEP distributed mode set up. When a worker node is started
>> using "-DworkerNode=true" argument, I expected that UI of the worker node
>> should not be visible. However CEP login page is visible when started with
>> -DworkerNode=true argument, but can't access to CEP, because login
>> functionality is not functioning.
>>
>> Appreciate your clarification on above situation.
>>
>> Thank You
>>
>> On Wed, Sep 9, 2015 at 11:00 AM, Sriskandarajah Suhothayan <s...@wso2.com
>> > wrote:
>>
>>> Can you look into this
>>>
>>> Suho
>>>
>>> On Wed, Sep 9, 2015 at 10:59 AM, Shavantha Weerasinghe <
>>> shavan...@wso2.com> wrote:
>>>
>>>> Hi Suho/Lasantha
>>>>
>>>> We observed the bellow exception when we set the hostName as
>>>> *192.168.48.128* but the exception does not come if we set localhost.
>>>> This is on the node that behaves as both manager and worker on 
>>>> *192.168.48.128.
>>>> *Do we need to set the /etc/hosts if we are to use the IP
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> <hostName*>192.168.48.128*
>>>> 8904
>>>> 
>>>> 
>>>> localhost
>>>> 11000
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>> 
>>>> 192.168.48.128
>>>> 8904
>>>> 
>>>> 
>>>> 192.168.48.128
>>>> 8905
>>>> 
>>>> 
>>>>
>>>>
>>>> [2015-09-09 05:14:57,550] ERROR
>>>> {org.wso2.carbon.event.processor.core.internal.storm.manager.StormManagerServer}
>>>> -  Cannot start Storm Manager Server on 192.168.48.128:8905
>>>> org.apache.thrift.transport.TTransportException: Could not create
>>>> ServerSocket on address /192.168.48.128:8905.
>>>> at
>>>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:93)
>>>> at
>>>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:79)
>>>> at
>>>> org.wso2.carbon.event.processor.core.internal.storm.manager.StormManagerServer.(StormManagerServer.java:41)
>>>> at
>>>> org.wso2.carbon.event.processor.core.internal.ds.EventProcessorServiceDS.activate(EventProcessorServiceDS.java:87)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>
>>>>
>>>> Shavantha Weerasinghe
>>>> Senior Software Engineer QA
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware.
>>>> http://wso2.com
>>>> http://wso2.org
>>>> Tel : 94 11 214 5345
>>>> Fax :94 11 2145300
>>>>
>>>>
>>>> On Tue, Sep 8, 2015 at 10:16 AM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> We are not supporting this for this release, we might support his in
>>>>> future using SSO, but not for this release.
>>>>>
>>>>> Suho
>>>>>
>>>>> On Tue, Sep 8, 2015 at 9:45 AM, Tharik Kanaka <tha...@wso2.com>

Re: [Dev] Clarifications on CEP

2015-09-08 Thread Sashika Wijesinghe
Hi Suho/Lasantha,

I'm working on CEP distributed mode set up. When a worker node is started
using "-DworkerNode=true" argument, I expected that UI of the worker node
should not be visible. However CEP login page is visible when started with
-DworkerNode=true argument, but can't access to CEP, because login
functionality is not functioning.

Appreciate your clarification on above situation.

Thank You

On Wed, Sep 9, 2015 at 11:00 AM, Sriskandarajah Suhothayan 
wrote:

> Can you look into this
>
> Suho
>
> On Wed, Sep 9, 2015 at 10:59 AM, Shavantha Weerasinghe  > wrote:
>
>> Hi Suho/Lasantha
>>
>> We observed the bellow exception when we set the hostName as
>> *192.168.48.128* but the exception does not come if we set localhost.
>> This is on the node that behaves as both manager and worker on 
>> *192.168.48.128.
>> *Do we need to set the /etc/hosts if we are to use the IP
>>
>> 
>> 
>> 
>> 
>> 192.168.48.128*
>> 8904
>> 
>> 
>> localhost
>> 11000
>> 
>> 
>>
>> 
>> 
>> 
>> 192.168.48.128
>> 8904
>> 
>> 
>> 192.168.48.128
>> 8905
>> 
>> 
>>
>>
>> [2015-09-09 05:14:57,550] ERROR
>> {org.wso2.carbon.event.processor.core.internal.storm.manager.StormManagerServer}
>> -  Cannot start Storm Manager Server on 192.168.48.128:8905
>> org.apache.thrift.transport.TTransportException: Could not create
>> ServerSocket on address /192.168.48.128:8905.
>> at
>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:93)
>> at
>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:79)
>> at
>> org.wso2.carbon.event.processor.core.internal.storm.manager.StormManagerServer.(StormManagerServer.java:41)
>> at
>> org.wso2.carbon.event.processor.core.internal.ds.EventProcessorServiceDS.activate(EventProcessorServiceDS.java:87)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>>
>> Shavantha Weerasinghe
>> Senior Software Engineer QA
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> http://wso2.com
>> http://wso2.org
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>> On Tue, Sep 8, 2015 at 10:16 AM, Sriskandarajah Suhothayan > > wrote:
>>
>>> We are not supporting this for this release, we might support his in
>>> future using SSO, but not for this release.
>>>
>>> Suho
>>>
>>> On Tue, Sep 8, 2015 at 9:45 AM, Tharik Kanaka  wrote:
>>>
 Hi All,

 As Mohan mentioned gaining login session of management console is not
 possible with current implementation of analytics dashboards.

 Regards,

 On Tue, Sep 8, 2015 at 9:28 AM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

>
>
> On Mon, Sep 7, 2015 at 10:50 PM, Shavantha Weerasinghe <
> shavan...@wso2.com> wrote:
>
>> Hi All
>>
>> Appreciate if I can get a clarification on the two below points.
>>
>> 1.Is there a way we can configure for the cep admin to gain access to
>> the analytic dashboard without entering the login again if he has logged
>> into the management console.
>>
>
> Hmm, I don't think this is possible as per current implementation..
> @Damith or Tharik, please confirm..
>
>
>>
>> 2. When we are accepting events from multiple sources (ex: soap/http)
>> into a single stream there may be a need to stop receiving events into a
>> specific events receiver. Is there away we can disable an event receiver
>> without deleting it. The same could apply to event publishers as well
>>
>> No, it is not possible in CEP 4.0.0 but it is in the roadmap. We
> already have jira [1] which is reported by you :)
>
> [1] https://wso2.org/jira/browse/CEP-506
>
> Thanks,
> Mohan
>
>
>
>>
>> Regards,
>> Shavantha Weerasinghe
>> Senior Software Engineer QA
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> http://wso2.com
>> http://wso2.org
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>