[Dev] make MB bind to 0.0.0.0 by default

2015-06-26 Thread Manuranga Perera
MB by default bind to 127.0.0.1 . This is not sometime visible through
other interfaces such were Wi-Fi and has to be manually changed to IP form
broker.xml.

It's better if we can bind it to 0.0.0.0 or to :: .Please test this and
make it the default.
-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : manu@wso2.comint
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] make MB bind to 0.0.0.0 by default

2015-06-26 Thread Ramith Jayasinghe
could you create a public jira.?

On Fri, Jun 26, 2015 at 11:34 AM, Manuranga Perera m...@wso2.com wrote:

 MB by default bind to 127.0.0.1 . This is not sometime visible through
 other interfaces such were Wi-Fi and has to be manually changed to IP form
 broker.xml.

 It's better if we can bind it to 0.0.0.0 or to :: .Please test this and
 make it the default.
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : manu@wso2.comint




-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Registry][Carbon] An exception occurred processing JSP page

2015-06-26 Thread Ruwan Abeykoon
Hi Registry/Governance team,

The issue I am getting is due to couple of places in carbon-registry and
carbon-governance e.g. in [1]

carbon:breadcrumb
 label=%=request.getParameter(breadcrumb)%
topPage=true
request=%=request%/

I think having quote in the label attribute is wrong.
can we change them to something like

carbon:breadcrumb
label=${param[\breadcrumb\]}
topPage=true
request=%=request%/


[1]
https://github.com/wso2/carbon-governance/blob/065e7ee6511d5608694b93abab8b340c87a666d0/components/governance/org.wso2.carbon.governance.generic.ui/src/main/resources/web/generic/list.jsp

On Thu, Jun 25, 2015 at 11:39 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Carbon team,
 I am getting an exception in all the registry ui pages along the line of
 $subject.  It could be a missing or incompatible jar related to jasper
 compiler.

 Running Carbon 4.4.0
 JDK : 1.7.0_79

 What could be the cause?

 Part of the stack trace, hope this is sufficient --
 ---

 Caused by: org.apache.jasper.JasperException: An exception occurred
 processing JSP page /relations/relations.jsp at line 28


 25: jsp:include page=../relations/relations-i18n-ajaxprocessor.jsp/

 26: script type=text/javascript
 src=../relations/js/relations.js/script

 27:

 28: jsp:include page=../relations/dependencies.jsp/

 29:

 30: jsp:include page=../relations/associations.jsp/

 31:



 Stacktrace:

 at
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)

 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)

 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

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

 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)

 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)

 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)

 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)

 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)

 at org.apache.jsp.resources.resource_jsp._jspService(resource_jsp.java:456)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)

 ... 102 more

 Caused by: org.apache.jasper.JasperException: An exception occurred
 processing JSP page /relations/dependencies.jsp at line 131


 128: % String url =
 ../relations/association-list-ajaxprocessor.jsp?type=dependspath= +
 request.getParameter(path).replaceAll(,%26); %

 129: div id=dependenciesDiv

 130:

 131: jsp:include page=%=url%/

 132: /div

 133: /div

 134: /fmt:bundle



 Stacktrace:

 at
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)

 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)

 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

 at
 

[Dev] WSO2 Carbon Metrics - Status Update

2015-06-26 Thread Isuru Perera
Hi,

This mail is just to give an update of the work I did in last few weeks
regarding Metrics.

Following are the features/improvements done in Metrics 1.1.0-SNAPSHOT [1]
version.

   - Metrics UI by default now shows JVM Metrics. These charts are
   generated from JMX information, which reported from metrics-jvm
   component. See related discussion: [Architecture] Metrics Visualization
   [2].
   - Metrics UI can be extended easily with an OSGi Fragment bundle. See
   related commit [3].
   - Messaging Metrics UI is implemented for WSO2 Message Broker as an OSGi
   Fragment bundle. See PR [4].
   - Metrics UI fetches data from the database. Queries are optimized for
   searching multiple metric names and attributes. See commit [5].
   - Metrics feature is now enabled by default. See commit [6].
   - Metrics UI support filtering data for a custom time range. I used
   jQuery UI Timepicker plugin to select date and time for the custom time
   range. See commit [7].
   - Metrics Levels can now be changed dynamically via the JMX operation
   setMetricLevel(String name, String level). See commit [8]. This is just a
   basic implementation and in future, this must be improved to support
   updating the levels in metric hierarchy (by keeping metrics in a tree
   structure).
   - Metrics UI can automatically update charts. There is a button to
   toggle Auto Update. See commit [9].
   - For main Metric components [10], there are JUnit test cases. Following
   shows the current coverage. (Stats obtained by manually running coverage in
   Eclipse for individual components)


ElementCoverageCovered Instructions
Missed InstructionsTotal Instructions
org.wso2.carbon.metrics.common 60.7 %  284
184468
org.wso2.carbon.metrics.data.common89.1 %  350
43 393
org.wso2.carbon.metrics.data.service   91.4 %  3,066
2873,353
org.wso2.carbon.metrics.impl   86.6 %  4,838
7465,584
org.wso2.carbon.metrics.jdbc.reporter  94.9 %  1,899
1032,002

Thanks!

[1] https://github.com/wso2/carbon-metrics
[2] http://markmail.org/message/s7boioidv2ktagac
[3]
https://github.com/wso2/carbon-metrics/commit/d774046c7c88f2b80eaf92b5477148267e43f57e
[4] https://github.com/wso2/carbon-business-messaging/pull/65
[5]
https://github.com/wso2/carbon-metrics/commit/146686fd4f0f4733749b98be5b107109f1dee7b2
[6]
https://github.com/wso2/carbon-metrics/commit/3e80ba2fa546e4e735abd0c592af13ceadeb8e01
[7]
https://github.com/wso2/carbon-metrics/commit/ab6a187775f3ae14531d3cffe8c38ff301fecfd1
[8]
https://github.com/wso2/carbon-metrics/commit/b467d21f7e3922620741262b04ae8c678786f884
[9]
https://github.com/wso2/carbon-metrics/commit/db0dc3639a43df8e214e03b2525c2a4ecfabbdf4
[10] https://github.com/wso2/carbon-metrics/tree/master/components

-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 https://www.google.com/+IsuruPereraWSO2/about
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Registry][Carbon] An exception occurred processing JSP page

2015-06-26 Thread Harsha Kumara
Hi Ruwan,

I think you will need to add the following property to wso2server.sh and
the wso2server.bat appropriately.. It was discuss in [1].

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false \


[1] - http://mail.wso2.org/mailarchive/dev/2014-April/029523.html

Thanks,
Harsha

On Fri, Jun 26, 2015 at 12:24 PM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Registry/Governance team,

 The issue I am getting is due to couple of places in carbon-registry and
 carbon-governance e.g. in [1]

 carbon:breadcrumb
  label=%=request.getParameter(breadcrumb)%
 topPage=true
 request=%=request%/

 I think having quote in the label attribute is wrong.
 can we change them to something like

 carbon:breadcrumb
 label=${param[\breadcrumb\]}
 topPage=true
 request=%=request%/


 [1]
 https://github.com/wso2/carbon-governance/blob/065e7ee6511d5608694b93abab8b340c87a666d0/components/governance/org.wso2.carbon.governance.generic.ui/src/main/resources/web/generic/list.jsp

 On Thu, Jun 25, 2015 at 11:39 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Carbon team,
 I am getting an exception in all the registry ui pages along the line of
 $subject.  It could be a missing or incompatible jar related to jasper
 compiler.

 Running Carbon 4.4.0
 JDK : 1.7.0_79

 What could be the cause?

 Part of the stack trace, hope this is sufficient --
 ---

 Caused by: org.apache.jasper.JasperException: An exception occurred
 processing JSP page /relations/relations.jsp at line 28


 25: jsp:include page=../relations/relations-i18n-ajaxprocessor.jsp/

 26: script type=text/javascript
 src=../relations/js/relations.js/script

 27:

 28: jsp:include page=../relations/dependencies.jsp/

 29:

 30: jsp:include page=../relations/associations.jsp/

 31:



 Stacktrace:

 at
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)

 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)

 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

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

 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)

 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)

 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)

 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)

 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)

 at
 org.apache.jsp.resources.resource_jsp._jspService(resource_jsp.java:456)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)

 ... 102 more

 Caused by: org.apache.jasper.JasperException: An exception occurred
 processing JSP page /relations/dependencies.jsp at line 131


 128: % String url =
 ../relations/association-list-ajaxprocessor.jsp?type=dependspath= +
 request.getParameter(path).replaceAll(,%26); %

 129: div id=dependenciesDiv

 130:

 131: jsp:include page=%=url%/

 132: /div

 133: /div

 134: /fmt:bundle



 Stacktrace:

 at
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)

 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at 

Re: [Dev] [Registry][Carbon] An exception occurred processing JSP page

2015-06-26 Thread Ruwan Abeykoon
Hi Harsha,
Thanks, setting STRICT_QUOTE_ESCAPING=false worked.

Cheers,

On Fri, Jun 26, 2015 at 12:32 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Ruwan,

 I think you will need to add the following property to wso2server.sh and
 the wso2server.bat appropriately.. It was discuss in [1].

 -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false \


 [1] - http://mail.wso2.org/mailarchive/dev/2014-April/029523.html

 Thanks,
 Harsha

 On Fri, Jun 26, 2015 at 12:24 PM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Registry/Governance team,

 The issue I am getting is due to couple of places in carbon-registry and
 carbon-governance e.g. in [1]

 carbon:breadcrumb
  label=%=request.getParameter(breadcrumb)%
 topPage=true
 request=%=request%/

 I think having quote in the label attribute is wrong.
 can we change them to something like

 carbon:breadcrumb
 label=${param[\breadcrumb\]}
 topPage=true
 request=%=request%/


 [1]
 https://github.com/wso2/carbon-governance/blob/065e7ee6511d5608694b93abab8b340c87a666d0/components/governance/org.wso2.carbon.governance.generic.ui/src/main/resources/web/generic/list.jsp

 On Thu, Jun 25, 2015 at 11:39 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Carbon team,
 I am getting an exception in all the registry ui pages along the line of
 $subject.  It could be a missing or incompatible jar related to jasper
 compiler.

 Running Carbon 4.4.0
 JDK : 1.7.0_79

 What could be the cause?

 Part of the stack trace, hope this is sufficient --
 ---

 Caused by: org.apache.jasper.JasperException: An exception occurred
 processing JSP page /relations/relations.jsp at line 28


 25: jsp:include page=../relations/relations-i18n-ajaxprocessor.jsp/

 26: script type=text/javascript
 src=../relations/js/relations.js/script

 27:

 28: jsp:include page=../relations/dependencies.jsp/

 29:

 30: jsp:include page=../relations/associations.jsp/

 31:



 Stacktrace:

 at
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)

 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)

 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

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

 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)

 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)

 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)

 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)

 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)

 at
 org.apache.jsp.resources.resource_jsp._jspService(resource_jsp.java:456)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)

 ... 102 more

 Caused by: org.apache.jasper.JasperException: An exception occurred
 processing JSP page /relations/dependencies.jsp at line 131


 128: % String url =
 ../relations/association-list-ajaxprocessor.jsp?type=dependspath= +
 request.getParameter(path).replaceAll(,%26); %

 129: div id=dependenciesDiv

 130:

 131: jsp:include page=%=url%/

 132: /div

 133: /div

 134: /fmt:bundle



 Stacktrace:

 at
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)

 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

 at 

Re: [Dev] [User-core][Authentication] Multiple requests to LDAP/AD when authentication fails

2015-06-26 Thread Asela Pathberiya
This has been done to support multiple DN pattern  which is fixed for
ticket [1]. If we just return the false,  there can be some problem
with it.  Therefore we need to check whether multiple DN has been
configured or not and then return the false

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

Thanks,
Asela.

On Thu, Jun 25, 2015 at 6:14 PM, Damith Senanayake dami...@wso2.com wrote:
 Sorry, in the above code the section
 if (name != null) {
 try {
 if (debug) {
 log.debug(Cache hit. Using DN  + name);
 }
 bValue = this.bindAsUser(userName,name, (String)
 credential);
 } catch (NamingException e) {
 // do nothing if bind fails since we check for other DN
 // patterns as well.
 if (log.isDebugEnabled()) {
 log.debug(Checking authentication with UserDN  + name
 + failed  +
 e.getMessage(), e);
 }
 }

 return bValue;

 }
  should be changed as

 if (name != null) {
 try {
 if (debug) {
 log.debug(Cache hit. Using DN  + name);
 }
 bValue = this.bindAsUser(userName,name, (String)
 credential);
 } catch (NamingException e) {
 // do nothing if bind fails since we check for other DN
 // patterns as well.
 if (log.isDebugEnabled()) {
 log.debug(Checking authentication with UserDN  + name
 + failed  +
 e.getMessage(), e);
 }
 }

  if(bValue){
   return bValue;
  }
 }



 On Thu, Jun 25, 2015 at 6:11 PM, Damith Senanayake dami...@wso2.com wrote:

 in org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.java, the
 following section follows a logic as

 1. Check cache for user RDN
 -a) if RDN in cache, try authentication with User Store, and return true
 if successful,
 -b) if RDN in cache and authentication fails, continue,

 2.  Try creating user RDN from UserDN Patterns, and attempt authentication
 3. If UserDN patterns are null,  try authentication from UserBase, and
 attempt authentication.

 The code is as below

  boolean debug = log.isDebugEnabled();

 if (userName == null || credential == null) {
 return false;
 }

 userName = userName.trim();

 String password = (String) credential;
 password = password.trim();

 if (userName.equals() || password.equals()) {
 return false;
 }

 if (debug) {
 log.debug(Authenticating user  + userName);
 }

 boolean bValue = false;
 // check cached user DN first.
 String name = userCache.get(userName);
 if (name != null) {
 try {
 if (debug) {
 log.debug(Cache hit. Using DN  + name);
 }
 bValue = this.bindAsUser(userName,name, (String)
 credential);
 } catch (NamingException e) {
 // do nothing if bind fails since we check for other DN
 // patterns as well.
 if (log.isDebugEnabled()) {
 log.debug(Checking authentication with UserDN  +
 name + failed  +
 e.getMessage(), e);
 }
 }

 return bValue;

 }

 // read list of patterns from user-mgt.xml
 String patterns =
 realmConfig.getUserStoreProperty(LDAPConstants.USER_DN_PATTERN);

 if (patterns != null  !patterns.isEmpty()) {

 if (debug) {
 log.debug(Using UserDNPatterns  + patterns);
 }

 // if the property is present, split it using # to see if
 there are
 // multiple patterns specified.
 String[] userDNPatternList = patterns.split(#);
 if (userDNPatternList.length  0) {
 for (String userDNPattern : userDNPatternList) {
 name = MessageFormat.format(userDNPattern,

 escapeUsernameSpecialCharacters(userName,true));
 if (debug) {
 log.debug(Authenticating with  + name);
 }
 try {
 if (name != null) {
 bValue = this.bindAsUser(userName, name,
 (String) credential);
 if (bValue) {
 userCache.put(userName, name);
 break;
 }
 }
 } catch (NamingException e) {
 // do nothing if bind fails since we check for
 other DN
 // patterns as well.
 if (log.isDebugEnabled()) {
 

[Dev] Please merge the carbon4-kernel integration test commit#252

2015-06-26 Thread Nuwan Wimalasekara
Hi Carbon Team,

Please merge the pull request
https://github.com/wso2/carbon4-kernel/pull/252

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Application Server 5.2.1 Docker Image

2015-06-26 Thread Kishanthan Thangarajah
Thanks Imesh and Akila. I will try this out for ESB image.

On Thu, Jun 25, 2015 at 1:54 PM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Kishanthan,

 On Wed, Jun 24, 2015 at 11:29 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi Imesh,

 Good stuff. I could get this working by installing and starting the
 container on my local machine (using boot2docker). Is there a way to start
 a AS cluster (mgt+worker) with this image?


 Yes we can, we have written a script for this in ESB:

 https://github.com/wso2/product-private-paas/blob/master/cartridges/docker/wso2esb-4.8.1/run.sh

 On Wed, Jun 24, 2015 at 11:29 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi Imesh,

 Good stuff. I could get this working by installing and starting the
 container on my local machine (using boot2docker). Is there a way to start
 a AS cluster (mgt+worker) with this image?



 On Wed, Jun 24, 2015 at 10:57 AM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Devs,

 WSO2 Application Server 5.2.1 Docker image is now available in Docker
 Hub:
 https://registry.hub.docker.com/u/wso2/as/

 Thanks

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


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




 --
 *Kishanthan Thangarajah*
 Associate Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

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




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




-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESBJAVA-3836] - JSP compilation error on JDK 8

2015-06-26 Thread Prabath Ariyarathna
Hi Kasun G.

Reason seems to be exposed same ECJ packages from
the jasper-jdt_6.0.18.wso2v1 bundle and it has exposed from the
carbon-commons (org.wso2.carbon.reporting.ui.feature). After removing this
bundle JSP exceptions has not occurred.


Thanks.

On Fri, Jun 26, 2015 at 6:27 AM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi KasunG.

 I tested scenario with the set carbon-kernel  ECJ version to
 4.4.2 but same  exceptions can see in the console however if we place the
 ECJ jar into the lib directory, it is working perfectly even for the old
 ECJ 4.3.1.


 Thanks.

 On Thu, Jun 25, 2015 at 6:39 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Raised a jira - https://wso2.org/jira/browse/WSAS-1993

 On Thu, Jun 25, 2015 at 6:38 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 The ECJ bundle is not packed into the Tomcat orbit. Rather, it is
 included in kernel o.w.c.core.common feature. We have tested with ECJ
 4.4.2, and it worked.

 PrabathAR is testing this further.

 On Thu, Jun 25, 2015 at 6:28 AM, Prabath Ariyarathna prabat...@wso2.com
  wrote:

 Hi KasunG.

 I tried with change ECJ version to 4.4.2 but same error has occurred.
 Do I need to change anything other than the ECJ version?


 Thanks.

 On Wed, Jun 24, 2015 at 5:28 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 We are using Eclipse ECJ for JSP compilation which is packed into the
 Tomcat orbit bundle. We are currently using ECJ 4.3.1. To support JDK 8, 
 we
 will need to update it to ECJ 4.4.x as per this Tomcat bug [1].

 To verify, can you guys try your scenario by updating the ecj version
 of tomcat orbit [2] to 4.4.2?


 [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=56283
 [2]
 https://github.com/wso2/orbit/blob/master/tomcat/7.0.59.wso2v3/pom.xml

 Regards,
 KasunG

 --

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






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


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

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

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

 *Mobile: +94 77 699 4730 *








 --

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






 --

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






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


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

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

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

 *Mobile: +94 77 699 4730 *








-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


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

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

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

*Mobile: +94 77 699 4730 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS]

2015-06-26 Thread Sabra Ossen
Hi,

@Thusitha , there are no extra jars in the web app and also is there is
method to check out the actual web socket that gets deployed in the AS.

@Kasun, the name of the web app is the same TestWebApp and I checked the
behavior in chrome which displays the following error in the console


*Failed to load resource: the server responded with a status of 405 (Method
Not Allowed)WebSocket connection to 'ws://10.224.29.52:9763/TestWebApp/echo
http://10.224.29.52:9763/TestWebApp/echo' failed: Error during WebSocket
handshake: Unexpected response code: 404*

Regards.

On Thu, Jun 25, 2015 at 6:55 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi,

 What's the war name of your webapp? AS do not process the path parameter
 in context.xml currently. Rather, it uses the war name as the context.

 Also, you might want to run the same in Chome and verify the behavior. In
 some of the Firefox versions, you need to use MozWebSocket object instead
 of WebSocket object. See [1].

 [1]
 https://github.com/wso2/product-as/blob/master/modules/samples/example/src/main/resources/websocket/chat.xhtml#L55

 On Thu, Jun 25, 2015 at 5:38 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Sabra,

 AFAIK you don't have to do any extra configurations to make websocket
 works with AS. This kind of issues may pop out when webapp contains
 websoket jars inside the webapp itself (WEB-INF/lib).
 IF not most probably there is some mismatch in the actual websocket that
 get deployed and what you are trying to connect.

 Thanks

 On Thu, Jun 25, 2015 at 5:08 PM, Sabra Ossen sabra...@gmail.com wrote:

 Hi Thusitha,

 The context path is as follows (present in context.xml),  *Context
 antiJARLocking=true path=/TestWebApp/*

 and the error code is 404 stating that the html file echo was not
 found.

 Thanks.

 On Thu, Jun 25, 2015 at 4:43 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Sabra,

 Did you check the Context path is correct? Also can you check what is
 the error code that you get?
 Thanks

 On Thu, Jun 25, 2015 at 4:28 PM, Sabra Ossen sabra...@gmail.com
 wrote:

 Hi,

 I am following the blog mentioned in [1] and I can successfully run
 the Web App in the local tomcat server, when I run the following code in
 the WSO2 AS 5.3.0 alpha the browser returns the following error in the
 browser console.

 *Firefox can't establish a connection to the server at
 ws://10.225.125.91:9763/TestWebApp/echo
 http://10.225.125.91:9763/TestWebApp/echo.*

 Server code;

 import java.io.IOException;
  import javax.websocket.OnClose;import javax.websocket.OnMessage;import 
 javax.websocket.OnOpen;import javax.websocket.Session;import 
 javax.websocket.server.ServerEndpoint;

 @ServerEndpoint(/echo) public class EchoServer {

 @OnOpen
 public void onOpen(Session session){
 System.out.println(session.getId() +  has opened a connection);
 try {
 session.getBasicRemote().sendText(Connection Established);
 } catch (IOException ex) {
 ex.printStackTrace();
 }
 }

 @OnMessage
 public void onMessage(String message, Session session){
 System.out.println(Message from  + session.getId() + :  + 
 message);
 try {
 session.getBasicRemote().sendText(message);
 } catch (IOException ex) {
 ex.printStackTrace();
 }
 }

 @OnClose
 public void onClose(Session session){
 System.out.println(Session  +session.getId()+ has ended);
 }}


 index.html;

 !DOCTYPE html

 html
 head
 titleEcho Chamber/title
 meta charset=UTF-8
 meta name=viewport content=width=device-width
 /head
 body

 div
 input type=text id=messageinput/
 /div
 div
 button type=button onclick=openSocket(); Open/
 button
 button type=button onclick=send(); Send/button
 button type=button onclick=closeSocket(); Close/
 button
 /div
 !-- Server responses get written here --
 div id=messages/div

 !-- Script to utilise the WebSocket --
 script type=text/javascript

 var webSocket;
 var messages = document.getElementById(messages);

 function openSocket(){

 if(webSocket !== undefined  webSocket.readyState
 !== WebSocket.CLOSED){
writeResponse(WebSocket is already opened.);
 return;
 }

 *webSocket = new WebSocket(ws:// +
 window.location.host + /TestWebApp/echo);*

 webSocket.onopen = function(event){
 if(event.data === undefined)
 return;

 writeResponse(event.data);
 };

 webSocket.onmessage = function(event){
 writeResponse(event.data);
 };

 webSocket.onclose = function(event){
   

Re: [Dev] [AS]

2015-06-26 Thread Thusitha Thilina Dayaratne
Hi Sabra,

Since you are using JSR 356 based implementation it is not working on the
AS 5.2.1. Because AS 5.2.1 only supports tomcat based websocket
implementation. But sample should be worked on AS 5.3.0-Alpha. Are you
building this using a maven project? If so share the pom.

Thanks

On Fri, Jun 26, 2015 at 8:32 PM, Sabra Ossen sabra...@gmail.com wrote:

 Hi,

 @Chathura, I am using oracle JDK 7 in Ubuntu 14.04.

 @Manoj, Thank you for the samples. But this particular example does not
 work in the AS 5.3.0 as well as 5.2.1. The built in samples work well in
 both versions of the AS.

 Regards.

 On Fri, Jun 26, 2015 at 4:57 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi Sabra,

 I was able to run the same sample successfully in AS 5.3.0 running on
 Ubuntu machine. I'm using JDK 7.
 Could you please mention the JDK version and OS that you are using ?

 Regards,
 Chathura.

 On Fri, Jun 26, 2015 at 3:55 PM, Sabra Ossen sabra...@gmail.com wrote:

 Hi,

 @Thusitha , there are no extra jars in the web app and also is there is
 method to check out the actual web socket that gets deployed in the AS.

 @Kasun, the name of the web app is the same TestWebApp and I checked
 the behavior in chrome which displays the following error in the console


 *Failed to load resource: the server responded with a status of 405
 (Method Not Allowed)WebSocket connection to
 'ws://10.224.29.52:9763/TestWebApp/echo
 http://10.224.29.52:9763/TestWebApp/echo' failed: Error during WebSocket
 handshake: Unexpected response code: 404*

 Regards.

 On Thu, Jun 25, 2015 at 6:55 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 What's the war name of your webapp? AS do not process the path
 parameter in context.xml currently. Rather, it uses the war name as the
 context.

 Also, you might want to run the same in Chome and verify the behavior.
 In some of the Firefox versions, you need to use MozWebSocket object
 instead of WebSocket object. See [1].

 [1]
 https://github.com/wso2/product-as/blob/master/modules/samples/example/src/main/resources/websocket/chat.xhtml#L55

 On Thu, Jun 25, 2015 at 5:38 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Sabra,

 AFAIK you don't have to do any extra configurations to make websocket
 works with AS. This kind of issues may pop out when webapp contains
 websoket jars inside the webapp itself (WEB-INF/lib).
 IF not most probably there is some mismatch in the actual websocket
 that get deployed and what you are trying to connect.

 Thanks

 On Thu, Jun 25, 2015 at 5:08 PM, Sabra Ossen sabra...@gmail.com
 wrote:

 Hi Thusitha,

 The context path is as follows (present in context.xml),  *Context
 antiJARLocking=true path=/TestWebApp/*

 and the error code is 404 stating that the html file echo was not
 found.

 Thanks.

 On Thu, Jun 25, 2015 at 4:43 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Sabra,

 Did you check the Context path is correct? Also can you check what
 is the error code that you get?
 Thanks

 On Thu, Jun 25, 2015 at 4:28 PM, Sabra Ossen sabra...@gmail.com
 wrote:

 Hi,

 I am following the blog mentioned in [1] and I can successfully run
 the Web App in the local tomcat server, when I run the following code 
 in
 the WSO2 AS 5.3.0 alpha the browser returns the following error in the
 browser console.

 *Firefox can't establish a connection to the server at
 ws://10.225.125.91:9763/TestWebApp/echo
 http://10.225.125.91:9763/TestWebApp/echo.*

 Server code;

 import java.io.IOException;
  import javax.websocket.OnClose;import 
 javax.websocket.OnMessage;import javax.websocket.OnOpen;import 
 javax.websocket.Session;import javax.websocket.server.ServerEndpoint;

 @ServerEndpoint(/echo) public class EchoServer {

 @OnOpen
 public void onOpen(Session session){
 System.out.println(session.getId() +  has opened a 
 connection);
 try {
 session.getBasicRemote().sendText(Connection 
 Established);
 } catch (IOException ex) {
 ex.printStackTrace();
 }
 }

 @OnMessage
 public void onMessage(String message, Session session){
 System.out.println(Message from  + session.getId() + :  + 
 message);
 try {
 session.getBasicRemote().sendText(message);
 } catch (IOException ex) {
 ex.printStackTrace();
 }
 }

 @OnClose
 public void onClose(Session session){
 System.out.println(Session  +session.getId()+ has ended);
 }}


 index.html;

 !DOCTYPE html

 html
 head
 titleEcho Chamber/title
 meta charset=UTF-8
 meta name=viewport content=width=device-width
 /head
 body

 div
 input type=text id=messageinput/
 /div
 div
 button type=button onclick=openSocket(); Open/
 button
 button type=button onclick=send(); Send/button
 button type=button onclick=closeSocket(); Close/
 button
 /div
 

[Dev] WSO2 ML 1.0.0 Beta-2 Released

2015-06-26 Thread CD Athuraliya
WSO2 ML 1.0.0 Beta-2 Released!

WSO2 ML team is pleased to announce the Beta-2 release of WSO2 ML 1.0.0.
The distribution is available at [1] and ML P2 repository at [2]. This
release includes following bug fixes and improvements.

Bug

   - [ML-77 https://wso2.org/jira/browse/ML-77] - Generated model's
   weight vector should be verified for not null and not infinite
   - [ML-78 https://wso2.org/jira/browse/ML-78] - Canceling a new model
   created by existing analysis deletes the analysis
   - [ML-80 https://wso2.org/jira/browse/ML-80] - New feature indices
   should be available via the built model
   - [ML-82 https://wso2.org/jira/browse/ML-82] - Feature Importance
   graph doesn't show all features sometimes
   - [ML-85 https://wso2.org/jira/browse/ML-85] - rename BAM option -
   DAS in dataset upload feature
   - [ML-89 https://wso2.org/jira/browse/ML-89] - Predict Mediator 'Help'
   page is missing
   - [ML-90 https://wso2.org/jira/browse/ML-90] - [Mediator] Namespaces
   doesn't get appear in namespace editor
   - [ML-91 https://wso2.org/jira/browse/ML-91] - [Mediator] WARN -
   MLIOFactory Failed to load/instantiate the class: null getting printed due
   to improper usage of MLIOFactory
   - [ML-92 https://wso2.org/jira/browse/ML-92] - [Mediator] Updated
   feature xpath expressions are not getting updated
   - [ML-96 https://wso2.org/jira/browse/ML-96] - Bundle predict mediator
   feature to p2-repo
   - [ML-97 https://wso2.org/jira/browse/ML-97] - Cluster diagram doesn't
   work in DAS case.

Improvement

   - [ML-75 https://wso2.org/jira/browse/ML-75] - Add favicon to ML UI
   - [ML-76 https://wso2.org/jira/browse/ML-76] - Models of an analysis
   page should be in reverse chronological order
   - [ML-79 https://wso2.org/jira/browse/ML-79] - [UI] Upload data points
   for prediction using a file
   - [ML-81 https://wso2.org/jira/browse/ML-81] - [UI] Sanitize
   dynamically generated content using an encoding function
   - [ML-83 https://wso2.org/jira/browse/ML-83] - In DAS case, we have to
   extract feature names from the table schema
   - [ML-84 https://wso2.org/jira/browse/ML-84] - Refactor input and
   output adapters to work with String paths instead of URIs
   - [ML-86 https://wso2.org/jira/browse/ML-86] - Styles for ML Carbon
   console
   - [ML-87 https://wso2.org/jira/browse/ML-87] - Make default folder
   configurations OS independent
   - [ML-88 https://wso2.org/jira/browse/ML-88] - Create a Spark Commons
   feature and use it from ML and DAS
   - [ML-93 https://wso2.org/jira/browse/ML-93] - [DAS] API to retrieve
   all table names of a tenant
   - [ML-94 https://wso2.org/jira/browse/ML-94] - Confusion matrix for
   multiclass classification models
   - [ML-99 https://wso2.org/jira/browse/ML-99] - List DAS tables to
   select a particular table when creating dataset from DAS

Task

   - [ML-95 https://wso2.org/jira/browse/ML-95] - Get all carbon kernel
   patches to ML
   - [ML-98 https://wso2.org/jira/browse/ML-98] - Enable UI tests for
   Jenkins



The documentation for ML 1.0.0 Beta-2 can be found at [3]. Please report
any issues you may find in our JIRA [4].

[1]
https://github.com/wso2/product-ml/releases/download/1.0.0-beta2/wso2ml-1.0.0-SNAPSHOT.zip
[2]
https://github.com/wso2/product-ml/releases/download/1.0.0-beta2/p2-repo.zip
[3] https://docs.wso2.com/display/ML100/WSO2+Machine+Learner+Documentation
[4] https://wso2.org/jira/browse/ML

- WSO2 ML Team -

-- 
*CD Athuraliya*
Software Engineer
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 716288847 94716288847
LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter
https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2015-06-26 Thread Kathees Rajendram
4 methods are failing and 6 methods are skipped out of 25.

On Fri, Jun 26, 2015 at 6:21 PM, Malaka Silva mal...@wso2.com wrote:

 How many methods are there in the connector and how many are failing?

 On Fri, Jun 26, 2015 at 6:14 PM, Kathees Rajendram kath...@wso2.com
 wrote:

 Hi Malaka,

 Please review and merge the PR[1] for Disqus.Some methods are failing
 because of *This method is currently under development* in API [2].

 [1] - https://github.com/wso2/esb-connectors/pull/208
 [2] - https://disqus.com/api/docs/threads/create/

 Thanks,
 Kathees

 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173




 --

 Best Regards,

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

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

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




-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS]

2015-06-26 Thread Sabra Ossen
Hi,

@Chathura, I am using oracle JDK 7 in Ubuntu 14.04.

@Manoj, Thank you for the samples. But this particular example does not
work in the AS 5.3.0 as well as 5.2.1. The built in samples work well in
both versions of the AS.

Regards.

On Fri, Jun 26, 2015 at 4:57 PM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi Sabra,

 I was able to run the same sample successfully in AS 5.3.0 running on
 Ubuntu machine. I'm using JDK 7.
 Could you please mention the JDK version and OS that you are using ?

 Regards,
 Chathura.

 On Fri, Jun 26, 2015 at 3:55 PM, Sabra Ossen sabra...@gmail.com wrote:

 Hi,

 @Thusitha , there are no extra jars in the web app and also is there is
 method to check out the actual web socket that gets deployed in the AS.

 @Kasun, the name of the web app is the same TestWebApp and I checked
 the behavior in chrome which displays the following error in the console


 *Failed to load resource: the server responded with a status of 405
 (Method Not Allowed)WebSocket connection to
 'ws://10.224.29.52:9763/TestWebApp/echo
 http://10.224.29.52:9763/TestWebApp/echo' failed: Error during WebSocket
 handshake: Unexpected response code: 404*

 Regards.

 On Thu, Jun 25, 2015 at 6:55 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 What's the war name of your webapp? AS do not process the path parameter
 in context.xml currently. Rather, it uses the war name as the context.

 Also, you might want to run the same in Chome and verify the behavior.
 In some of the Firefox versions, you need to use MozWebSocket object
 instead of WebSocket object. See [1].

 [1]
 https://github.com/wso2/product-as/blob/master/modules/samples/example/src/main/resources/websocket/chat.xhtml#L55

 On Thu, Jun 25, 2015 at 5:38 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Sabra,

 AFAIK you don't have to do any extra configurations to make websocket
 works with AS. This kind of issues may pop out when webapp contains
 websoket jars inside the webapp itself (WEB-INF/lib).
 IF not most probably there is some mismatch in the actual websocket
 that get deployed and what you are trying to connect.

 Thanks

 On Thu, Jun 25, 2015 at 5:08 PM, Sabra Ossen sabra...@gmail.com
 wrote:

 Hi Thusitha,

 The context path is as follows (present in context.xml),  *Context
 antiJARLocking=true path=/TestWebApp/*

 and the error code is 404 stating that the html file echo was not
 found.

 Thanks.

 On Thu, Jun 25, 2015 at 4:43 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Sabra,

 Did you check the Context path is correct? Also can you check what is
 the error code that you get?
 Thanks

 On Thu, Jun 25, 2015 at 4:28 PM, Sabra Ossen sabra...@gmail.com
 wrote:

 Hi,

 I am following the blog mentioned in [1] and I can successfully run
 the Web App in the local tomcat server, when I run the following code in
 the WSO2 AS 5.3.0 alpha the browser returns the following error in the
 browser console.

 *Firefox can't establish a connection to the server at
 ws://10.225.125.91:9763/TestWebApp/echo
 http://10.225.125.91:9763/TestWebApp/echo.*

 Server code;

 import java.io.IOException;
  import javax.websocket.OnClose;import javax.websocket.OnMessage;import 
 javax.websocket.OnOpen;import javax.websocket.Session;import 
 javax.websocket.server.ServerEndpoint;

 @ServerEndpoint(/echo) public class EchoServer {

 @OnOpen
 public void onOpen(Session session){
 System.out.println(session.getId() +  has opened a 
 connection);
 try {
 session.getBasicRemote().sendText(Connection Established);
 } catch (IOException ex) {
 ex.printStackTrace();
 }
 }

 @OnMessage
 public void onMessage(String message, Session session){
 System.out.println(Message from  + session.getId() + :  + 
 message);
 try {
 session.getBasicRemote().sendText(message);
 } catch (IOException ex) {
 ex.printStackTrace();
 }
 }

 @OnClose
 public void onClose(Session session){
 System.out.println(Session  +session.getId()+ has ended);
 }}


 index.html;

 !DOCTYPE html

 html
 head
 titleEcho Chamber/title
 meta charset=UTF-8
 meta name=viewport content=width=device-width
 /head
 body

 div
 input type=text id=messageinput/
 /div
 div
 button type=button onclick=openSocket(); Open/
 button
 button type=button onclick=send(); Send/button
 button type=button onclick=closeSocket(); Close/
 button
 /div
 !-- Server responses get written here --
 div id=messages/div

 !-- Script to utilise the WebSocket --
 script type=text/javascript

 var webSocket;
 var messages = document.getElementById(messages);

 function openSocket(){

 if(webSocket !== undefined  webSocket.readyState
 !== 

Re: [Dev] make MB bind to 0.0.0.0 by default

2015-06-26 Thread Manuranga Perera
done https://wso2.org/jira/browse/MB-1124

On Fri, Jun 26, 2015 at 1:07 AM, Ramith Jayasinghe ram...@wso2.com wrote:

 could you create a public jira.?

 On Fri, Jun 26, 2015 at 11:34 AM, Manuranga Perera m...@wso2.com wrote:

 MB by default bind to 127.0.0.1 . This is not sometime visible through
 other interfaces such were Wi-Fi and has to be manually changed to IP form
 broker.xml.

 It's better if we can bind it to 0.0.0.0 or to :: .Please test this and
 make it the default.
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : manu@wso2.comint




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2015-06-26 Thread Malaka Silva
We need to note this down and mark the status as working with esb latest
version.

On Fri, Jun 26, 2015 at 7:53 PM, Kathees Rajendram kath...@wso2.com wrote:

 4 methods are failing and 6 methods are skipped out of 25.

 On Fri, Jun 26, 2015 at 6:21 PM, Malaka Silva mal...@wso2.com wrote:

 How many methods are there in the connector and how many are failing?

 On Fri, Jun 26, 2015 at 6:14 PM, Kathees Rajendram kath...@wso2.com
 wrote:

 Hi Malaka,

 Please review and merge the PR[1] for Disqus.Some methods are failing
 because of *This method is currently under development* in API [2].

 [1] - https://github.com/wso2/esb-connectors/pull/208
 [2] - https://disqus.com/api/docs/threads/create/

 Thanks,
 Kathees

 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173




 --

 Best Regards,

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

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

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




 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173




-- 

Best Regards,

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

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

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


Re: [Dev] [ESBJAVA-3836] - JSP compilation error on JDK 8

2015-06-26 Thread KasunG Gajasinghe
It is wrong to package ECJ bundles inside reporting ui feature. This bundle
is already coming from kernel.

The jasper-jdt is a wso2 orbit of ECJ, but there was no need to create an
orbit in the first place since the original jar itself is an osgi bundle.

I believe we can remove this from the reporting ui feature. But can you
verify that with the maintainers of the reporting component?


On Fri, Jun 26, 2015 at 2:16 PM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi Kasun G.

 Reason seems to be exposed same ECJ packages from
 the jasper-jdt_6.0.18.wso2v1 bundle and it has exposed from the
 carbon-commons (org.wso2.carbon.reporting.ui.feature). After removing
 this bundle JSP exceptions has not occurred.


 Thanks.

 On Fri, Jun 26, 2015 at 6:27 AM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 Hi KasunG.

 I tested scenario with the set carbon-kernel  ECJ version to
 4.4.2 but same  exceptions can see in the console however if we place the
 ECJ jar into the lib directory, it is working perfectly even for the old
 ECJ 4.3.1.


 Thanks.

 On Thu, Jun 25, 2015 at 6:39 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Raised a jira - https://wso2.org/jira/browse/WSAS-1993

 On Thu, Jun 25, 2015 at 6:38 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 The ECJ bundle is not packed into the Tomcat orbit. Rather, it is
 included in kernel o.w.c.core.common feature. We have tested with ECJ
 4.4.2, and it worked.

 PrabathAR is testing this further.

 On Thu, Jun 25, 2015 at 6:28 AM, Prabath Ariyarathna 
 prabat...@wso2.com wrote:

 Hi KasunG.

 I tried with change ECJ version to 4.4.2 but same error has occurred.
 Do I need to change anything other than the ECJ version?


 Thanks.

 On Wed, Jun 24, 2015 at 5:28 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 We are using Eclipse ECJ for JSP compilation which is packed into the
 Tomcat orbit bundle. We are currently using ECJ 4.3.1. To support JDK 8, 
 we
 will need to update it to ECJ 4.4.x as per this Tomcat bug [1].

 To verify, can you guys try your scenario by updating the ecj version
 of tomcat orbit [2] to 4.4.2?


 [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=56283
 [2]
 https://github.com/wso2/orbit/blob/master/tomcat/7.0.59.wso2v3/pom.xml

 Regards,
 KasunG

 --

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






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


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

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

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

 *Mobile: +94 77 699 4730 *








 --

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






 --

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






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


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

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

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

 *Mobile: +94 77 699 4730 *








 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


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

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

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

 *Mobile: +94 77 699 4730 *








-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] JMS Inbound Endpoint Topic Consumer Configuration

2015-06-26 Thread Malaka Silva
Note added to esb 490 documentation.

On Wed, May 27, 2015 at 9:48 PM, eranda rajapaksha erand...@gmail.com
wrote:

 Hi,

 I think it will be really helpful to have a note on this and about the
 cache level.

 Thank you!

 On Wed, May 27, 2015 at 8:40 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Hi,

 Is this something we need to document?

 Thanks

 On Wed, May 27, 2015 at 10:07 AM, eranda rajapaksha erand...@gmail.com
 wrote:

 Hi,

 It works fine after changing the cache level.

 Thanks a lot!

 On Wed, May 27, 2015 at 12:13 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Eranda,

 Increase the transport.jms.CacheLevel to maximum and check.

 You should see registered consumers in activemq topic ui view.

 On Tue, May 26, 2015 at 10:20 PM, eranda rajapaksha erand...@gmail.com
  wrote:

 Hi,

 I am trying to configure WSO2 ESB JMS inbound endpoint as a Topic
 Listener with ActiveMQ broker.
 I used following configuration on wso2esb-4.9.0-M8-SNAPSHOT and it
 worked fine, but when I use the same configuration with 
 wso2esb-4.9.0-ALPHA
 it doesn't work. (it doesn't consume messages from the given ActiveMQ 
 topic)
 Is there any change that I have to do in the configuration with
 wso2esb-4.9.0-ALPHA?

 ?xml version=1.0 encoding=UTF-8?
 definitions xmlns=http://ws.apache.org/ns/synapse;
registry
 provider=org.wso2.carbon.mediation.registry.WSO2Registry
   parameter name=cachableDuration15000/parameter
/registry
taskManager
 provider=org.wso2.carbon.mediation.ntask.NTaskTaskManager
   parameter name=cachableDuration15000/parameter
/taskManager
sequence name=request onError=fault
   call
  endpoint
 address uri=
 http://localhost:9000/services/SimpleStockQuoteService;
  format=soap12/
  /endpoint
   /call
   drop/
/sequence
sequence name=fault
   log level=full
  property name=MESSAGE value=Executing default
 #34;fault#34; sequence/
  property name=ERROR_CODE
 expression=get-property('ERROR_CODE')/
  property name=ERROR_MESSAGE
 expression=get-property('ERROR_MESSAGE')/
   /log
   drop/
/sequence
sequence name=main
   log level=full/
   drop/
/sequence
inboundEndpoint name=jms_inbound
 sequence=request
 onError=fault
 protocol=jms
 suspend=false
   parameters
  parameter name=interval1000/parameter
  parameter
 name=transport.jms.DestinationexampleTopic/parameter
  parameter name=transport.jms.CacheLevel1/parameter
  parameter
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/parameter
  parameter name=sequentialtrue/parameter
  parameter
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/parameter
  parameter
 name=java.naming.provider.urltcp://localhost:61616/parameter
  parameter
 name=transport.jms.SessionAcknowledgementAUTO_ACKNOWLEDGE/parameter
  parameter
 name=transport.jms.SessionTransactedfalse/parameter
  parameter
 name=transport.jms.ConnectionFactoryTypetopic/parameter
   /parameters
/inboundEndpoint
 /definitions


 Thank you!

 --
 *Eranda Rajapakshe*
 Computer Science and Engineering Undergraduate,
 University of Moratuwa.
 Tel : +94784822608
 Email : erand...@gmail.com eran...@wso2.com

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




 --

 Best Regards,

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

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

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




 --
 *Eranda Rajapakshe*
 Computer Science and Engineering Undergraduate,
 University of Moratuwa.
 Tel : +94784822608
 Email : erand...@gmail.com eran...@wso2.com

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




 --
 *Hasitha Abeykoon*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com




 --
 *Eranda Rajapakshe*
 Computer Science and Engineering Undergraduate,
 University of Moratuwa.
 Tel : +94784822608
 Email : erand...@gmail.com eran...@wso2.com




-- 

Best Regards,

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

WSO2, Inc.
lean . enterprise 

[Dev] Metrics UI: Show we restrict to super-tenant only?

2015-06-26 Thread Isuru Perera
Hi,

Do we need to show Metrics UIs for tenant users? I think we should restrict
Metrics UIs to super-tenant and allow only if there is some admin
permission.

WDYT?

Thanks!

-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 https://www.google.com/+IsuruPereraWSO2/about
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Supporting referential integrity in the database of WSO2MB

2015-06-26 Thread Anuja Herath
Hi Sasikala,

Since we dropped cassandra, this will enable us to use full power of RDBMS.
But make sure that mentioned operations will work on MySQL, MS SQL and
oracle in the same way.

Thanks,
Anuja

On Fri, Jun 26, 2015 at 2:56 PM, Sasikala Kottegoda sasik...@wso2.com
wrote:

 Hi all,

 Currently our database schema does not support referential integrity
 between the tables MB_CONTENT (which stores message contet) and MB_METADATA
 (which store message metadata). But message content with no related
 metadata is meaningless.

 To address this problem, what we have done is deleting message content
 along with metadata.

 But if we have have a foreign key relationship between the two tables, we
 will be able to ensure that no message content will be left without
 metadata associated. Also, it will reduce the number of database calls that
 are made thus speeding up the process.

 Any comments?

 Thank you.
 --
 Sasikala Kottegoda
 *Software Engineer*
 WSO2 Inc., http://wso2.com/
 lean. enterprise. middleware
 Mobile: +94 774835928/712792401

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




-- 
Anuja Herath
*Software Engineer*
*WSO2, Inc.*
Mobile : +94 (0)71 429 8861
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BAM] Sorted view of the Cassandra data in the BAM Console

2015-06-26 Thread Shabir Mohamed
Hi,

Is there a way I could *sort*  view the data written to Cassandra in
WSO2 BAM via the Explore Cluster window under Cassandra Explorer???

Thanks
-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com ayy...@wso2.com
Mobile: +94 77 3516019 | +94 71 6583393
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM] Sorted view of the Cassandra data in the BAM Console

2015-06-26 Thread Anjana Fernando
Hi Shabir,

I'm afraid, we cannot do that. The data is shown in the same order we get
from Cassandra.

Cheers,
Anjana.

On Fri, Jun 26, 2015 at 2:31 PM, Shabir Mohamed sha...@wso2.com wrote:

 Hi,

 Is there a way I could *sort*  view the data written to Cassandra in
 WSO2 BAM via the Explore Cluster window under Cassandra Explorer???

 Thanks
 -
 *Shabir Mohamed*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 Email: sha...@wso2.com ayy...@wso2.com
 Mobile: +94 77 3516019 | +94 71 6583393

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




-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Supporting referential integrity in the database of WSO2MB

2015-06-26 Thread Sasikala Kottegoda
Hi all,

Currently our database schema does not support referential integrity
between the tables MB_CONTENT (which stores message contet) and MB_METADATA
(which store message metadata). But message content with no related
metadata is meaningless.

To address this problem, what we have done is deleting message content
along with metadata.

But if we have have a foreign key relationship between the two tables, we
will be able to ensure that no message content will be left without
metadata associated. Also, it will reduce the number of database calls that
are made thus speeding up the process.

Any comments?

Thank you.
-- 
Sasikala Kottegoda
*Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928/712792401
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Metrics UI: Show we restrict to super-tenant only?

2015-06-26 Thread Isuru Perera
Thanks Srinath!

I will show Metrics UI only in super-tenant.

PS: Subject of this mail thread should be: Metrics UI: *Should* we
restrict to super-tenant only?. Sorry about the mistake!

On Fri, Jun 26, 2015 at 2:39 PM, Srinath Perera srin...@wso2.com wrote:

 +1

 On Fri, Jun 26, 2015 at 2:35 PM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 Do we need to show Metrics UIs for tenant users? I think we should
 restrict Metrics UIs to super-tenant and allow only if there is some admin
 permission.

 WDYT?

 Thanks!

 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2 https://www.google.com/+IsuruPereraWSO2/about




 --
 
 Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
 Site: http://people.apache.org/~hemapani/
 Photos: http://www.flickr.com/photos/hemapani/
 Phone: 0772360902




-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 https://www.google.com/+IsuruPereraWSO2/about
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR for IDENTITY-3371

2015-06-26 Thread Nuwandi Wickramasinghe
Hi,
Fix for [1] is found in [2]

[1] https://wso2.org/jira/browse/IDENTITY-3371
[2] https://github.com/wso2/carbon-identity/pull/492

thanks




-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


Re: [Dev] Visibility of Internal Roles for the tenant admins

2015-06-26 Thread Bhathiya Jayasekara
Hi Tanya,

On Fri, Jun 26, 2015 at 4:44 PM, Tanya Madurapperuma ta...@wso2.com wrote:

 Hi,

 In products like ES, APIM we have set of internal roles such as
 internal/publisher, internal/store, internal/reviewer etc that comes by
 default.

 These roles are visible when we log into the super tenant.

 But if we create a tenant and login to that tenant from management console
 as the tenant admin, those internal roles are not visible to the tenant
 admin.

 Is this the desired behaviour ?


Yes, roles belong to a particular tenant.


 If so, is it the responsibility of the tenant admin to create those roles
 manually and assign the appropriate permission to that role?


You can automate that by writing a tenant loading listener by extending
AbstractAxis2ConfigurationContextObserver.

Thanks,
Bhathiya



 Appreciate any insight.

 Thanks,
 Tanya


 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

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




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

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
http://www.linkedin.com/in/bhathiyaj*
*Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
*Blog: http://movingaheadblog.blogspot.com
http://movingaheadblog.blogspot.com/*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APPM]Please review and merge PR for APPM-482

2015-06-26 Thread Sajith Abeywardhana
Hi Team,

Please review and merge PR[1] for APPM-482[2]

[1]. https://github.com/wso2/carbon-appmgt/pull/85
[2]. https://wso2.org/jira/browse/APPM-482

*Sajith Abeywardhana* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka.
Mobile: +94772260485
Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Visibility of Internal Roles for the tenant admins

2015-06-26 Thread Ishara Karunarathna
Hi,

On Fri, Jun 26, 2015 at 5:01 PM, Bhathiya Jayasekara bhath...@wso2.com
wrote:

 Hi Tanya,

 On Fri, Jun 26, 2015 at 4:44 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi,

 In products like ES, APIM we have set of internal roles such as
 internal/publisher, internal/store, internal/reviewer etc that comes by
 default.

 These roles are visible when we log into the super tenant.

 But if we create a tenant and login to that tenant from management
 console as the tenant admin, those internal roles are not visible to the
 tenant admin.

 Is this the desired behaviour ?


 Yes, roles belong to a particular tenant.


 If so, is it the responsibility of the tenant admin to create those roles
 manually and assign the appropriate permission to that role?


 You can automate that by writing a tenant loading listener by extending
 AbstractAxis2ConfigurationContextObserver.

I think its better to use TenantMgtListener to  do this.

Thanks,
Ishara


 Thanks,
 Bhathiya



 Appreciate any insight.

 Thanks,
 Tanya


 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

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




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

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

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




-- 
Ishara Karunarathna
Senior Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2015-06-26 Thread Malaka Silva
How many methods are there in the connector and how many are failing?

On Fri, Jun 26, 2015 at 6:14 PM, Kathees Rajendram kath...@wso2.com wrote:

 Hi Malaka,

 Please review and merge the PR[1] for Disqus.Some methods are failing
 because of *This method is currently under development* in API [2].

 [1] - https://github.com/wso2/esb-connectors/pull/208
 [2] - https://disqus.com/api/docs/threads/create/

 Thanks,
 Kathees

 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173




-- 

Best Regards,

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

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

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


Re: [Dev] Maven.wso2.org will be unavailable during 2015-06-26 1700- 1800 IST

2015-06-26 Thread Chamara Thilina
HI,

Due to unavoidable circumstances we have postponed the maintenance.

Thank You,
ChamaraT

On Fri, Jun 26, 2015 at 9:53 AM, Chamara Thilina chama...@wso2.com wrote:

 HI All,


 For the maintenance purpose maven.wso2.org will be unavailable during
 above mentioned time.

 Sorry for the inconvenience causing.

 Thank You,
 ChamaraT

 --
 Chamara Thilina Samarakoon
 Senior Systems Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94772929487
 blog: http://mageconfig.blogspot.com/
 linkedin: https://www.linkedin.com/pub/chamara-samarakoon




-- 
Chamara Thilina Samarakoon
Senior Systems Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94772929487
blog: http://mageconfig.blogspot.com/
linkedin: https://www.linkedin.com/pub/chamara-samarakoon
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR for IDENTITY-3372

2015-06-26 Thread Nuwandi Wickramasinghe
Hi,
Please find fix for [1] in [2]

[1] https://wso2.org/jira/browse/IDENTITY-3372
[2] https://github.com/wso2/carbon-identity/pull/499
-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


[Dev] Please review and merge

2015-06-26 Thread Kathees Rajendram
Hi Malaka,

Please review and merge the PR[1] for Disqus.Some methods are failing
because of *This method is currently under development* in API [2].

[1] - https://github.com/wso2/esb-connectors/pull/208
[2] - https://disqus.com/api/docs/threads/create/

Thanks,
Kathees

-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How OSGi Bundle Activation Policy Works in Runtime

2015-06-26 Thread Nuwan Pallewela
If a plug-in's Bundle Activation Policy is configured as lazy, will
another plug-in which depends on it can use it if the current state of the
first plug-in is in RESOLVED state? Will it come to ACTIVE state because of
the second plug-In's invocation?

-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *
*lean . enterprise . middleware*

Email   *nuw...@wso2.com nuw...@wso2.com*
Mobile  *+94719079739*
*+94767100087*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev