Re: [Dev] Storage Server(SS) git migration update

2014-07-07 Thread Prabath Abeysekera
Hi Harsha,

Good Stuff! Please keep the thread posted as you proceed with the remaining
tasks of the migration effort too.

Cheers,
Prabath

On Mon, Jul 7, 2014 at 10:33 AM, Harsha Kumara hars...@wso2.com wrote:

 Hi,

 We have successfully migrated product repo to git and completed task upto
 enabling pull request builder plugin[1]. Also did smoke tests on the basic
 functions of the product. Meanwhile carbon-storage-managment components in
 the repo also updated to newest. Currently working on rest of the tasks in
 the git migration.

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

 Thanks,
 Harsha

 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




-- 
Prabath Abeysekara
Associate Technical Lead, Data TG.
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Patch method support for SCIM end points]

2014-07-07 Thread Gayan Gunawardana
Hi All,

The requirement based on [1]. Since wso2 identity server can act as a SCIM
provider, it exposes  REST end points with standard http methods (GET,
POST, PUT, DELETE). How ever according to [2] http PATCH method also
require to do patch operation. The idea of patch operation is, suppose we
need to add new user to existing group, with update operation we can update
entire list of users in a particular group so we have to send complete set
of users. Patch operation supports merging of existing users with new
users.

The bottleneck to implement patch operation is currently [3] does not
support http PATCH method directly. But according to [4] it allows custom
annotation such as @Update or @Patch.

WDYT?


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

[2] http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1

[3] http://cxf.apache.org/docs/jax-rs.html

[4] http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod

Thanks,
Gayan


-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Roshan Wijesena
Hi all,

I have been running UI - Integration test for AM 1.7.0/1.7.1 for while, and
i am getting an error as below,

What could be the reason for that? Google suggest possible dependency
conflicts would cause for it.

I am using test property browser.name=htmlUnit.

setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
152.981 sec   FAILURE!
java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
at
org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
at
org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 61 more

tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
0.001 sec   FAILURE!
java.lang.NullPointerException
at
org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

[2014-07-07 06:12:44,456]  INFO
{org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Shutting
down server..

Results :

Failed tests:   setUp(org.wso2.carbom.am.integration.ui.LoginTestCase):
org/w3c/dom/ElementTraversal
  tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase

Thanks in advance!

-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94752126789*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com http://wso2.com/*
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Identity Server: Number of Connections

2014-07-07 Thread Daya Attapattu
I am trying to run 400 users (400 threads on jmeter) on identity server.
 IS fails with the following message:

ERROR {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -
 Failed to start new registry transaction.
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data
source rejected establishment of connection,  message from server: Too
many connections

Is there any configuration parameter that I can use to facilitate a larger
number of threads?

Regards, Daya

-- 
Daya Atapattu
WSO2 Inc.
Phone: +94 77 047 4730, +1 203 484 7099
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Gayashan Amarasinghe
Hi Roshan,

From the log it seems like a class loading issue. Can you check whether the
relevant libraries are in the class path? [Specifically look for the
xml-apis.jar]

Thanks.

/Gayashan


On Mon, Jul 7, 2014 at 11:50 AM, Roshan Wijesena ros...@wso2.com wrote:

 Hi all,

 I have been running UI - Integration test for AM 1.7.0/1.7.1 for while,
 and i am getting an error as below,

 What could be the reason for that? Google suggest possible dependency
 conflicts would cause for it.

 I am using test property browser.name=htmlUnit.

 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 152.981 sec   FAILURE!
 java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at
 org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
 at
 org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
 Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 61 more

 tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 0.001 sec   FAILURE!
 java.lang.NullPointerException
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

 [2014-07-07 06:12:44,456]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Shutting
 down server..

 Results :

 Failed tests:   setUp(org.wso2.carbom.am.integration.ui.LoginTestCase):
 org/w3c/dom/ElementTraversal
   tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase

 Thanks in advance!

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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




-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception when calling DefaultBootstrap.bootstrap() method in OpenSAML

2014-07-07 Thread Isura Karunaratne
Hi prasad,

  Following blog [1] will help you fix the issue. There is a comment
regarding the exception above with a way to resolve the issue.
[1]
http://sureshatt.blogspot.com/2012/11/how-to-read-saml-20-response-with.html

Regards



On Mon, Jul 7, 2014 at 9:46 AM, Prasad Tissera pras...@wso2.com wrote:

 Hi,

 I go the following exception when calling DefaultBootstrap.bootstrap()
 method from org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil. Do you have
 any idea?

 ERROR {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Error in
 bootstrapping the OpenSAML2 library
 org.opensaml.xml.ConfigurationException: Unable to read XMLTooling
 configuration schema
 at org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:98)
 at org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:73)
 at
 org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:182)
 at
 org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:87)
 at
 org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil.doBootstrap(SAMLSSOUtil.java:439)

 Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to
 read schema document 'null', because 1) could not find the document; 2) the
 document could not be read; 3) the root element of the document is not
 xsd:schema.

 ERROR {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Error in
 bootstrapping the OpenSAML2 library
 org.opensaml.xml.ConfigurationException: Unable to read XMLTooling
 configuration schema
 at org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:98)
 at org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:73)
 at
 org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:182)
 at
 org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:87)
 at
 org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil.doBootstrap(SAMLSSOUtil.java:439)


 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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




-- 
Isura Dilhara Karunaratne
Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Patch method support for SCIM end points]

2014-07-07 Thread Ishara Karunarathna
Hi Gayan,


On Mon, Jul 7, 2014 at 11:46 AM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi All,

 The requirement based on [1]. Since wso2 identity server can act as a SCIM
 provider, it exposes  REST end points with standard http methods (GET,
 POST, PUT, DELETE). How ever according to [2] http PATCH method also
 require to do patch operation. The idea of patch operation is, suppose we
 need to add new user to existing group, with update operation we can update
 entire list of users in a particular group so we have to send complete set
 of users. Patch operation supports merging of existing users with new
 users.

 The bottleneck to implement patch operation is currently [3] does not
 support http PATCH method directly. But according to [4] it allows custom
 annotation such as @Update or @Patch.

 WDYT?


+1,
You will have to do the custom implementation to get PATCH support.



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

 [2] http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1

 [3] http://cxf.apache.org/docs/jax-rs.html

 [4] http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod

 Thanks,
 Gayan


 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933




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

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


Re: [Dev] Identity Server: Number of Connections

2014-07-07 Thread Prasad Tissera
In master-datasources.xml (wso2is-5.0.0/repository/conf/datasources) you
can increase the database connection pool size by
increasing maxActive50/maxActive property.

datasource
nameWSO2_CARBON_DB/name
descriptionThe datasource used for registry and user
manager/description
jndiConfig
namejdbc/WSO2CarbonDB/name
/jndiConfig
definition type=RDBMS
configuration

urljdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6/url
usernamewso2carbon/username
passwordwso2carbon/password
driverClassNameorg.h2.Driver/driverClassName
maxActive50/maxActive
maxWait6/maxWait
testOnBorrowtrue/testOnBorrow
validationQuerySELECT 1/validationQuery
validationInterval3/validationInterval
/configuration
/definition
/datasource

Hope this will help. Thanks.


On Mon, Jul 7, 2014 at 11:55 AM, Daya Attapattu d...@wso2.com wrote:

 I am trying to run 400 users (400 threads on jmeter) on identity server.
  IS fails with the following message:

 ERROR {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -
  Failed to start new registry transaction.
 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data
 source rejected establishment of connection,  message from server: Too
 many connections

 Is there any configuration parameter that I can use to facilitate a larger
 number of threads?

 Regards, Daya

 --
 Daya Atapattu
 WSO2 Inc.
 Phone: +94 77 047 4730, +1 203 484 7099


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




-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Patch method support for SCIM end points]

2014-07-07 Thread Supun Malinga
yeah. it looks like patch method is not supported OOTB, since as per the
spec[5] patch method is not specified. So the usual practice seems to be
implementing it by the user..

[5] http://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html

thanks,


On Mon, Jul 7, 2014 at 12:01 PM, Ishara Karunarathna isha...@wso2.com
wrote:

 Hi Gayan,


 On Mon, Jul 7, 2014 at 11:46 AM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi All,

 The requirement based on [1]. Since wso2 identity server can act as a
 SCIM provider, it exposes  REST end points with standard http methods (GET,
 POST, PUT, DELETE). How ever according to [2] http PATCH method also
 require to do patch operation. The idea of patch operation is, suppose we
 need to add new user to existing group, with update operation we can update
 entire list of users in a particular group so we have to send complete set
 of users. Patch operation supports merging of existing users with new
 users.

 The bottleneck to implement patch operation is currently [3] does not
 support http PATCH method directly. But according to [4] it allows custom
 annotation such as @Update or @Patch.

 WDYT?


 +1,
 You will have to do the custom implementation to get PATCH support.



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

 [2] http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1

 [3] http://cxf.apache.org/docs/jax-rs.html

 [4] http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod

 Thanks,
 Gayan


 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception when calling DefaultBootstrap.bootstrap() method in OpenSAML

2014-07-07 Thread Prasad Tissera
Hi Isura,

I tried it with no success. This is my dependency list in the pom. Code
worked without any issues when run standalone. Since I assume this should
be a dependency issue.

dependency
groupIdorg.wso2.carbon/groupId
artifactIdorg.wso2.carbon.identity.sso.saml/artifactId
version4.2.3/version
exclusions
exclusion
groupIdorg.slf4j/groupId
artifactIdslf4j-jcl/artifactId
/exclusion
exclusion
groupIdopensaml.wso2/groupId
artifactIdopensaml2/artifactId
/exclusion
/exclusions
/dependency
dependency
groupIdorg.opensaml/groupId
artifactIdopensaml/artifactId
version2.2.3/version
exclusions
exclusion
groupIdorg.opensaml/groupId
artifactIdopenws/artifactId
/exclusion
exclusion
groupIdjargs/groupId
artifactIdjargs/artifactId
/exclusion
exclusion
groupIdxalan/groupId
artifactIdxalan/artifactId
/exclusion
exclusion
groupIdxerces/groupId
artifactIdxml-apis/artifactId
/exclusion
/exclusions
/dependency
dependency
groupIdorg.opensaml/groupId
artifactIdopenws/artifactId
version1.4.2/version
exclusions
exclusion
groupIdorg.slf4j/groupId
artifactIdslf4j-api/artifactId
/exclusion
exclusion
groupIdorg.slf4j/groupId
artifactIdlog4j-over-slf4j/artifactId
/exclusion
exclusion
groupIdorg.slf4j/groupId
artifactIdslf4j-jcl/artifactId
/exclusion
exclusion
groupIdorg.slf4j/groupId
artifactIdjcl-over-slf4j/artifactId
/exclusion
exclusion
groupIdorg.slf4j/groupId
artifactIdjul-to-slf4j/artifactId
/exclusion
/exclusions
/dependency
dependency
groupIdxalan/groupId
artifactIdxalan/artifactId
version2.7.1/version
/dependency
dependency
groupIdxerces/groupId
artifactIdxml-apis/artifactId
version1.4.01/version
/dependency
/dependencies
repositories
repository
idxerces-api/id
urlhttp://www.eviware.com/repository/maven2//url
/repository
/repositories

Thanks.

Regards,
Prasad.


On Mon, Jul 7, 2014 at 12:01 PM, Isura Karunaratne is...@wso2.com wrote:

 Hi prasad,

   Following blog [1] will help you fix the issue. There is a comment
 regarding the exception above with a way to resolve the issue.
 [1]
 http://sureshatt.blogspot.com/2012/11/how-to-read-saml-20-response-with.html

 Regards



 On Mon, Jul 7, 2014 at 9:46 AM, Prasad Tissera pras...@wso2.com wrote:

 Hi,

 I go the following exception when calling DefaultBootstrap.bootstrap()
 method from org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil. Do you have
 any idea?

 ERROR {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Error in
 bootstrapping the OpenSAML2 library
 org.opensaml.xml.ConfigurationException: Unable to read XMLTooling
 configuration schema
 at
 org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:98)
 at
 org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:73)
 at
 org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:182)
 at
 org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:87)
 at
 org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil.doBootstrap(SAMLSSOUtil.java:439)

 Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to
 read schema document 'null', because 1) could not find the document; 2) the
 document could not be read; 3) the root element of the document is not
 xsd:schema.

 ERROR {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Error in
 bootstrapping the OpenSAML2 library
 org.opensaml.xml.ConfigurationException: Unable to read XMLTooling
 configuration schema
 at
 org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:98)
 at
 org.opensaml.xml.XMLConfigurator.init(XMLConfigurator.java:73)
 at
 org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:182)
 at
 org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:87)
 at
 org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil.doBootstrap(SAMLSSOUtil.java:439)


 --
 

Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Krishantha Samaraweera
Hi Roshan,

Any particular reason to use htmlUnit.. Did you check with firefox as the
browser ?

I don't think test framework will work with htmlUnit as it has many
inherited dependencies conflicts with our carbon dependencies. Those might
be excluded already. And HtmlUnit driver is for unit testing. Our
recommendation is to use actual browser driver for integration tests.

Note that none of the popular browsers uses the javascript engine used by
HtmlUnit http://code.google.com/p/selenium/wiki/HtmlUnit (Rhino
http://www.mozilla.org/rhino/). If you test javascript using HtmlUnit
http://code.google.com/p/selenium/wiki/HtmlUnit the results may differ
significantly from those browsers.

Thanks,
Krishantha.


On Mon, Jul 7, 2014 at 11:50 AM, Roshan Wijesena ros...@wso2.com wrote:

 Hi all,

 I have been running UI - Integration test for AM 1.7.0/1.7.1 for while,
 and i am getting an error as below,

 What could be the reason for that? Google suggest possible dependency
 conflicts would cause for it.

 I am using test property browser.name=htmlUnit.

 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 152.981 sec   FAILURE!
 java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at
 org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
 at
 org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
 Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 61 more

 tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 0.001 sec   FAILURE!
 java.lang.NullPointerException
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

 [2014-07-07 06:12:44,456]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Shutting
 down server..

 Results :

 Failed tests:   setUp(org.wso2.carbom.am.integration.ui.LoginTestCase):
 org/w3c/dom/ElementTraversal
   tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase

 Thanks in advance!

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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




-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Gayashan Amarasinghe
Hi Roshan,

Is it also available in the runtime class path?

Thanks.

/Gayashan


On Mon, Jul 7, 2014 at 12:08 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Gayashan.

 Thanks, yes it seems to be a class load problem, probably loading a wrong
 version of it. BTW I have xml-apis.jar-1.3.04 in my class path.

 Regards.


 On Mon, Jul 7, 2014 at 6:29 AM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Roshan,

 From the log it seems like a class loading issue. Can you check whether
 the relevant libraries are in the class path? [Specifically look for the
 xml-apis.jar]

 Thanks.

 /Gayashan


  On Mon, Jul 7, 2014 at 11:50 AM, Roshan Wijesena ros...@wso2.com
 wrote:

  Hi all,

 I have been running UI - Integration test for AM 1.7.0/1.7.1 for while,
 and i am getting an error as below,

 What could be the reason for that? Google suggest possible dependency
 conflicts would cause for it.

 I am using test property browser.name=htmlUnit.

 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 152.981 sec   FAILURE!
 java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at
 org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
 at
 org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
 Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 61 more

 tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 0.001 sec   FAILURE!
 java.lang.NullPointerException
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

 [2014-07-07 06:12:44,456]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Shutting
 down server..

 Results :

 Failed tests:   setUp(org.wso2.carbom.am.integration.ui.LoginTestCase):
 org/w3c/dom/ElementTraversal
   tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase

 Thanks in advance!

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Patch method support for SCIM end points]

2014-07-07 Thread Gayan Gunawardana
Thanks Ishara  Supun.

Will proceed accordingly.

Thanks,
Gayan


On Mon, Jul 7, 2014 at 12:11 PM, Supun Malinga sup...@wso2.com wrote:

 yeah. it looks like patch method is not supported OOTB, since as per the
 spec[5] patch method is not specified. So the usual practice seems to be
 implementing it by the user..

 [5]
 http://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html

 thanks,


 On Mon, Jul 7, 2014 at 12:01 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Hi Gayan,


 On Mon, Jul 7, 2014 at 11:46 AM, Gayan Gunawardana ga...@wso2.com
 wrote:

 Hi All,

 The requirement based on [1]. Since wso2 identity server can act as a
 SCIM provider, it exposes  REST end points with standard http methods (GET,
 POST, PUT, DELETE). How ever according to [2] http PATCH method also
 require to do patch operation. The idea of patch operation is, suppose we
 need to add new user to existing group, with update operation we can update
 entire list of users in a particular group so we have to send complete set
 of users. Patch operation supports merging of existing users with new
 users.

 The bottleneck to implement patch operation is currently [3] does not
 support http PATCH method directly. But according to [4] it allows custom
 annotation such as @Update or @Patch.

 WDYT?


 +1,
 You will have to do the custom implementation to get PATCH support.



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

 [2] http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1

 [3] http://cxf.apache.org/docs/jax-rs.html

 [4]
 http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod

 Thanks,
 Gayan


 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678




 --
 Supun Malinga,

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




-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Server: Number of Connections

2014-07-07 Thread Prasad Tissera
Hi Daya,

Yes, I also don't think there is a linear relationship between numbers of
users and max active connections. I thought it was 50 when trying with 400
users. In this case, issue should be something else. May be not closing the
connection properly. I'm not aware of the values used in customer
deployments. May be someone can shed some light? Thanks.

Regards,
Prasad.



On Mon, Jul 7, 2014 at 12:27 PM, Daya Attapattu d...@wso2.com wrote:

 Hi Prasad,

 Thank you for the response.  I have actually increased this to 250.  In a
 way, it makes sense that I can run 200 threads but not 400 (with 250).  I
 have previously run 100 threads with maxActive at 50 though.  I was under
 the impression that this is not the upper limit of users; because all
 threads are not active at the same instance (and if they are, I was
 expecting them to queue up).  May be I am wrong. I will increase this to
 400 and run.   One of my problems is that, I don't want to deviate from
 standard settings too much as that will affect performance in an irregular
 way.  But if customers actually increase this when they are running many
 users, then I have no problem in doing the same.

 Regards, Daya


 On Mon, Jul 7, 2014 at 12:08 PM, Prasad Tissera pras...@wso2.com wrote:

 In master-datasources.xml (wso2is-5.0.0/repository/conf/datasources) you
 can increase the database connection pool size by
 increasing maxActive50/maxActive property.

 datasource
 nameWSO2_CARBON_DB/name
 descriptionThe datasource used for registry and user
 manager/description
 jndiConfig
 namejdbc/WSO2CarbonDB/name
 /jndiConfig
 definition type=RDBMS
 configuration

 urljdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6/url
 usernamewso2carbon/username
 passwordwso2carbon/password
 driverClassNameorg.h2.Driver/driverClassName
 maxActive50/maxActive
 maxWait6/maxWait
 testOnBorrowtrue/testOnBorrow
 validationQuerySELECT 1/validationQuery
 validationInterval3/validationInterval
 /configuration
 /definition
 /datasource

 Hope this will help. Thanks.


 On Mon, Jul 7, 2014 at 11:55 AM, Daya Attapattu d...@wso2.com wrote:

 I am trying to run 400 users (400 threads on jmeter) on identity server.
  IS fails with the following message:

 ERROR {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -
  Failed to start new registry transaction.
 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
 Data source rejected establishment of connection,  message from server:
 Too many connections

 Is there any configuration parameter that I can use to facilitate a
 larger number of threads?

 Regards, Daya

 --
 Daya Atapattu
 WSO2 Inc.
 Phone: +94 77 047 4730, +1 203 484 7099


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




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444




 --
 Daya Atapattu
 WSO2 Inc.
 Phone: +94 77 047 4730, +1 203 484 7099




-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Roshan Wijesena
Hi Krishantha,

Thanks for your reply.

My original intention was hide browser loading from user,any way i am
totally fine go with  fire-fox browser option too.

I have re-run test suite with  browser.name=firefox. I am getting an error
afterwards as below.

[2014-07-07 06:47:42,161]  INFO
{org.wso2.carbon.automation.core.PlatformTestManager} -
 --Start executing test class InitializedAndSetupServer on
suiteam-server
[2014-07-07 06:47:42,229]  INFO
{org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient}
-  Login Successful
[2014-07-07 06:47:42,233]  INFO
{org.wso2.carbon.automation.core.BrowserManager} -  Test runs on
firefoxbrowser
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to
host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
pack-en...@firefox.mozilla.org visible
1404715663242 DeferredSave.extensions.json DEBUG Save changes
1404715663242 DeferredSave.extensions.json DEBUG Save changes
1404715663242 addons.xpi DEBUG New add-on ubu...@ubuntu.com installed in
app-system-share
1404715663243 addons.xpi-utils DEBUG Make addon
app-system-share:ubu...@ubuntu.com visible
1404715663244 DeferredSave.extensions.json DEBUG Save changes
1404715663244 DeferredSave.extensions.json DEBUG Save changes
1404715663244 addons.xpi DEBUG New add-on
{2e1445b0-2682-11e1-bfc2-0800200c9a66} installed in app-system-share
1404715663245 addons.xpi-utils DEBUG Make addon
app-system-share:{2e1445b0-2682-11e1-bfc2-0800200c9a66} visible
1404715663245 DeferredSave.extensions.json DEBUG Save changes
1404715663245 DeferredSave.extensions.json DEBUG Save changes
1404715663245 addons.xpi DEBUG New add-on webapps-t...@lists.launchpad.net
installed in app-system-share
1404715663246 addons.xpi-utils DEBUG Make addon
app-system-share:webapps-t...@lists.launchpad.net visible
1404715663246 DeferredSave.extensions.json DEBUG Save changes
1404715663246 DeferredSave.extensions.json DEBUG Save changes
1404715663246 addons.xpi DEBUG Loading bootstrap scope from
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
webapps-t...@lists.launchpad.net
1404715663248 addons.xpi WARN Add-on webapps-t...@lists.launchpad.net is
missing bootstrap method install
1404715663249 addons.xpi DEBUG New add-on
online-accou...@lists.launchpad.net installed in app-system-local
1404715663250 addons.xpi-utils DEBUG Make addon
app-system-local:online-accou...@lists.launchpad.net visible
1404715663250 DeferredSave.extensions.json DEBUG Save changes
1404715663250 DeferredSave.extensions.json DEBUG Save changes
1404715663255 addons.xpi DEBUG Updating database with changes to installed
add-ons
1404715663255 addons.xpi-utils DEBUG Updating add-on states
1404715663256 addons.xpi-utils DEBUG Writing add-ons list
1404715663256 addons.xpi DEBUG Registering manifest for
/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi
1404715663257 addons.xpi DEBUG Registering manifest for
/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi
1404715663407 DeferredSave.extensions.json DEBUG Starting timer
1404715663431 DeferredSave.extensions.json DEBUG Starting write
1404715663438 addons.manager DEBUG shutdown
1404715663438 addons.xpi DEBUG shutdown
1404715663438 addons.xpi-utils DEBUG shutdown
1404715663459 DeferredSave.extensions.json DEBUG Write succeeded
1404715663459 addons.xpi-utils DEBUG XPI Database saved, setting schema
version preference to 16
1404715663459 addons.xpi DEBUG Notifying XPI shutdown observers
1404715663460 addons.manager DEBUG Async provider shutdown done

(process:27961): GLib-CRITICAL **: g_slice_set_config: assertion
'sys_page_size == 0' failed

(firefox:27961): GLib-GObject-WARNING **: Attempt to add property
GnomeProgram::sm-connect after class was initialised

(firefox:27961): GLib-GObject-WARNING **: Attempt to add property
GnomeProgram::show-crash-dialog after class was initialised

(firefox:27961): GLib-GObject-WARNING **: Attempt to add property
GnomeProgram::display after class was initialised

(firefox:27961): GLib-GObject-WARNING **: Attempt to add property
GnomeProgram::default-icon after class was initialised
1404715663666 addons.xpi DEBUG startup
1404715663667 addons.xpi DEBUG Ignoring file entry whose name is not a
valid add-on ID:
/tmp/anonymous7867109267375390245webdriver-profile/extensions/webdriver-staging
1404715663667 addons.xpi DEBUG checkForChanges
1404715663673 addons.xpi DEBUG No changes found
1404715663675 addons.xpi DEBUG Registering manifest for
/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi
1404715663675 addons.xpi DEBUG Registering manifest for
/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 651:
aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 651:
aUrl is undefined

at

[Dev] Registry resource not found exception thrown at UES tenant login

2014-07-07 Thread Gayan Yalpathwala
Hi Manu/Sameera,

I get the following exception when logged in as a tenant. Version: UES
1.1.0. Noticed that this has been fixed in other products previously (refer
[1] and [2]).

[2014-07-07 12:19:38,795] ERROR
{org.wso2.carbon.registry.app.ResourceServlet} -  Error retrieving the
resource /_system/governance/repository/theme/admin/main.css. Resource does
not exist at path /_system/governance/repository/theme/admin/main.css
org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
Resource does not exist at path
/_system/governance/repository/theme/admin/main.css
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:532)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:164)
at
org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:524)
at
org.wso2.carbon.registry.app.ResourceServlet.doGet(ResourceServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
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:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
at
org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
at
org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.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:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at

Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Roshan Wijesena
Hi Gayashan,

I ll look at it and let you know.

Regards.


On Mon, Jul 7, 2014 at 6:43 AM, Gayashan Amarasinghe gayas...@wso2.com
wrote:

 Hi Roshan,

 Is it also available in the runtime class path?

 Thanks.

 /Gayashan


 On Mon, Jul 7, 2014 at 12:08 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Gayashan.

 Thanks, yes it seems to be a class load problem, probably loading a wrong
 version of it. BTW I have xml-apis.jar-1.3.04 in my class path.

 Regards.


 On Mon, Jul 7, 2014 at 6:29 AM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Roshan,

 From the log it seems like a class loading issue. Can you check whether
 the relevant libraries are in the class path? [Specifically look for the
 xml-apis.jar]

 Thanks.

 /Gayashan


  On Mon, Jul 7, 2014 at 11:50 AM, Roshan Wijesena ros...@wso2.com
 wrote:

  Hi all,

 I have been running UI - Integration test for AM 1.7.0/1.7.1 for while,
 and i am getting an error as below,

 What could be the reason for that? Google suggest possible dependency
 conflicts would cause for it.

 I am using test property browser.name=htmlUnit.

 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 152.981 sec   FAILURE!
 java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at
 org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
 at
 org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
 Caused by: java.lang.ClassNotFoundException:
 org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 61 more

 tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time
 elapsed: 0.001 sec   FAILURE!
 java.lang.NullPointerException
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

 [2014-07-07 06:12:44,456]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Shutting
 down server..

 Results :

 Failed tests:   setUp(org.wso2.carbom.am.integration.ui.LoginTestCase):
 org/w3c/dom/ElementTraversal
   tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase

 Thanks in advance!

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94752126789*
Email: ros...@wso2.com
*WSO2, Inc. :** 

Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Krishantha Samaraweera
The core error simply means that Firefox didn't come up within 45 seconds.
Can you give following details

1. Selenium version in your classpath.
2. Installation location of your firefox binary.
3. Firefox version.
4. Your JDK version.

Thanks,
Krishantha.


On Mon, Jul 7, 2014 at 12:35 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Gayashan,

 I ll look at it and let you know.

 Regards.


 On Mon, Jul 7, 2014 at 6:43 AM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Roshan,

 Is it also available in the runtime class path?

 Thanks.

 /Gayashan


 On Mon, Jul 7, 2014 at 12:08 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Gayashan.

 Thanks, yes it seems to be a class load problem, probably loading a
 wrong version of it. BTW I have xml-apis.jar-1.3.04 in my class path.

 Regards.


 On Mon, Jul 7, 2014 at 6:29 AM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Roshan,

 From the log it seems like a class loading issue. Can you check whether
 the relevant libraries are in the class path? [Specifically look for the
 xml-apis.jar]

 Thanks.

 /Gayashan


  On Mon, Jul 7, 2014 at 11:50 AM, Roshan Wijesena ros...@wso2.com
 wrote:

  Hi all,

 I have been running UI - Integration test for AM 1.7.0/1.7.1 for
 while, and i am getting an error as below,

 What could be the reason for that? Google suggest possible dependency
 conflicts would cause for it.

 I am using test property browser.name=htmlUnit.

 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 152.981 sec   FAILURE!
 java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at
 org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
 at
 org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
 Caused by: java.lang.ClassNotFoundException:
 org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 61 more

 tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time
 elapsed: 0.001 sec   FAILURE!
 java.lang.NullPointerException
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

 [2014-07-07 06:12:44,456]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  
 Shutting
 down server..

 Results :

 Failed tests:
 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase):
 org/w3c/dom/ElementTraversal
   tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase

 Thanks in advance!

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com 

Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Roshan Wijesena
Hi Krishantha,

While running test i can see new empty firefox window is getting load but
doing nothing..

meantime here my info.

Selenium version in your class-path = selenium-java-2.31.0.jar

Firefox = /usr/bin/firefox (I used which firefox)

Firefox version = 30.0

jdk 1.6

Regards.


On Mon, Jul 7, 2014 at 7:11 AM, Krishantha Samaraweera krishan...@wso2.com
wrote:

 The core error simply means that Firefox didn't come up within 45 seconds.
 Can you give following details

 1. Selenium version in your classpath.
 2. Installation location of your firefox binary.
 3. Firefox version.
 4. Your JDK version.

 Thanks,
 Krishantha.


 On Mon, Jul 7, 2014 at 12:35 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Gayashan,

 I ll look at it and let you know.

 Regards.


 On Mon, Jul 7, 2014 at 6:43 AM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Roshan,

 Is it also available in the runtime class path?

 Thanks.

 /Gayashan


 On Mon, Jul 7, 2014 at 12:08 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Hi Gayashan.

 Thanks, yes it seems to be a class load problem, probably loading a
 wrong version of it. BTW I have xml-apis.jar-1.3.04 in my class path.

 Regards.


 On Mon, Jul 7, 2014 at 6:29 AM, Gayashan Amarasinghe gayas...@wso2.com
  wrote:

 Hi Roshan,

 From the log it seems like a class loading issue. Can you check
 whether the relevant libraries are in the class path? [Specifically look
 for the xml-apis.jar]

 Thanks.

 /Gayashan


  On Mon, Jul 7, 2014 at 11:50 AM, Roshan Wijesena ros...@wso2.com
 wrote:

  Hi all,

 I have been running UI - Integration test for AM 1.7.0/1.7.1 for
 while, and i am getting an error as below,

 What could be the reason for that? Google suggest possible dependency
 conflicts would cause for it.

 I am using test property browser.name=htmlUnit.

 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time elapsed:
 152.981 sec   FAILURE!
 java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at
 org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
 at
 org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
 Caused by: java.lang.ClassNotFoundException:
 org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 61 more

 tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time
 elapsed: 0.001 sec   FAILURE!
 java.lang.NullPointerException
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

 [2014-07-07 06:12:44,456]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  
 Shutting
 down server..

 Results :

 Failed tests:
 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase):
 org/w3c/dom/ElementTraversal
   tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase

 Thanks in advance!

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 Dev mailing list
 

Re: [Dev] Identity Server: Number of Connections

2014-07-07 Thread Daya Attapattu
I think the message is coming from mysql side:
http://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html

- Daya



On Mon, Jul 7, 2014 at 12:34 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Daya,

 Yes, I also don't think there is a linear relationship between numbers of
 users and max active connections. I thought it was 50 when trying with 400
 users. In this case, issue should be something else. May be not closing the
 connection properly. I'm not aware of the values used in customer
 deployments. May be someone can shed some light? Thanks.

 Regards,
 Prasad.



 On Mon, Jul 7, 2014 at 12:27 PM, Daya Attapattu d...@wso2.com wrote:

 Hi Prasad,

 Thank you for the response.  I have actually increased this to 250.  In a
 way, it makes sense that I can run 200 threads but not 400 (with 250).  I
 have previously run 100 threads with maxActive at 50 though.  I was under
 the impression that this is not the upper limit of users; because all
 threads are not active at the same instance (and if they are, I was
 expecting them to queue up).  May be I am wrong. I will increase this to
 400 and run.   One of my problems is that, I don't want to deviate from
 standard settings too much as that will affect performance in an irregular
 way.  But if customers actually increase this when they are running many
 users, then I have no problem in doing the same.

 Regards, Daya


 On Mon, Jul 7, 2014 at 12:08 PM, Prasad Tissera pras...@wso2.com wrote:

 In master-datasources.xml (wso2is-5.0.0/repository/conf/datasources) you
 can increase the database connection pool size by
 increasing maxActive50/maxActive property.

 datasource
 nameWSO2_CARBON_DB/name
 descriptionThe datasource used for registry and user
 manager/description
 jndiConfig
 namejdbc/WSO2CarbonDB/name
 /jndiConfig
 definition type=RDBMS
 configuration

 urljdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6/url
 usernamewso2carbon/username
 passwordwso2carbon/password
 driverClassNameorg.h2.Driver/driverClassName
 maxActive50/maxActive
 maxWait6/maxWait
 testOnBorrowtrue/testOnBorrow
 validationQuerySELECT 1/validationQuery
 validationInterval3/validationInterval
 /configuration
 /definition
 /datasource

 Hope this will help. Thanks.


 On Mon, Jul 7, 2014 at 11:55 AM, Daya Attapattu d...@wso2.com wrote:

 I am trying to run 400 users (400 threads on jmeter) on identity
 server.  IS fails with the following message:

 ERROR {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -
  Failed to start new registry transaction.
 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
 Data source rejected establishment of connection,  message from server:
 Too many connections

 Is there any configuration parameter that I can use to facilitate a
 larger number of threads?

 Regards, Daya

 --
 Daya Atapattu
 WSO2 Inc.
 Phone: +94 77 047 4730, +1 203 484 7099


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




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444




 --
 Daya Atapattu
 WSO2 Inc.
 Phone: +94 77 047 4730, +1 203 484 7099




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444




-- 
Daya Atapattu
WSO2 Inc.
Phone: +94 77 047 4730, +1 203 484 7099
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM 1.7.0 UI-Integration test fail.

2014-07-07 Thread Roshan Wijesena
Hi all,

I had a offline chat with Krishantha, and  he gave me a solution and it is
works fine. please find the updates below.

Root cause = My selenium version (2.3.*) is not compatible with my Firefox
browser (30.0).

Solution = download firefox 20 and extract to my local folder  and run test
with following command , mvn clean install
-Dwebdriver.firefox.bin=/home/roshan/firefox20/firefox/firefox-bin. test
run perfectly.

Thanks very much.
Regards.


On Mon, Jul 7, 2014 at 7:19 AM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Krishantha,

 While running test i can see new empty firefox window is getting load but
 doing nothing..

 meantime here my info.

 Selenium version in your class-path = selenium-java-2.31.0.jar

 Firefox = /usr/bin/firefox (I used which firefox)

 Firefox version = 30.0

 jdk 1.6

 Regards.


 On Mon, Jul 7, 2014 at 7:11 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 The core error simply means that Firefox didn't come up within 45
 seconds. Can you give following details

 1. Selenium version in your classpath.
 2. Installation location of your firefox binary.
 3. Firefox version.
 4. Your JDK version.

 Thanks,
 Krishantha.


 On Mon, Jul 7, 2014 at 12:35 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Gayashan,

 I ll look at it and let you know.

 Regards.


 On Mon, Jul 7, 2014 at 6:43 AM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Roshan,

 Is it also available in the runtime class path?

 Thanks.

 /Gayashan


 On Mon, Jul 7, 2014 at 12:08 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Hi Gayashan.

 Thanks, yes it seems to be a class load problem, probably loading a
 wrong version of it. BTW I have xml-apis.jar-1.3.04 in my class path.

 Regards.


 On Mon, Jul 7, 2014 at 6:29 AM, Gayashan Amarasinghe 
 gayas...@wso2.com wrote:

 Hi Roshan,

 From the log it seems like a class loading issue. Can you check
 whether the relevant libraries are in the class path? [Specifically look
 for the xml-apis.jar]

 Thanks.

 /Gayashan


  On Mon, Jul 7, 2014 at 11:50 AM, Roshan Wijesena ros...@wso2.com
 wrote:

  Hi all,

 I have been running UI - Integration test for AM 1.7.0/1.7.1 for
 while, and i am getting an error as below,

 What could be the reason for that? Google suggest possible
 dependency conflicts would cause for it.

 I am using test property browser.name=htmlUnit.

 setUp(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time
 elapsed: 152.981 sec   FAILURE!
 java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at
 org.wso2.carbon.automation.core.BrowserManager.getDriver(BrowserManager.java:83)
 at
 org.wso2.carbon.automation.core.BrowserManager.getWebDriver(BrowserManager.java:68)
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.setUp(LoginTestCase.java:36)
 Caused by: java.lang.ClassNotFoundException:
 org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 61 more

 tearDown(org.wso2.carbom.am.integration.ui.LoginTestCase)  Time
 elapsed: 0.001 sec   FAILURE!
 java.lang.NullPointerException
  at
 org.wso2.carbom.am.integration.ui.LoginTestCase.tearDown(LoginTestCase.java:51)

 [2014-07-07 06:12:44,456]  INFO
 

[Dev] BAM doesn't show the stats

2014-07-07 Thread Kasun Dissanayake
Hi All,

I have configured the APP Manager with BAM according to the instructions
given in docs. But when I check the H2 the database is created successfully
but there are no any data in the tables. I checked the Synapse
configuration and it hits the UsageHandler without any problem. Any help on
$subject ?

Thanks and Regards

-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Sever: Cache $__local__$.PDP_DECISION_CACHE

2014-07-07 Thread Asela Pathberiya
Hi Daya,

It seems to be that,  there is some issue with the building the cache
and it has not been properly synchronized.  I created a jira [1] and
attached the possible patched jar file. It would be great, If you
could continue testing with patched jar file.

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

Thanks,
Asela.

On Mon, Jul 7, 2014 at 11:00 AM, Daya Attapattu d...@wso2.com wrote:
 I am running performance tests on EC2.  After several hours of running IS
 breaks with the message:

 [2014-07-07 05:19:45,182] ERROR
 {org.wso2.carbon.identity.entitlement.EntitlementService} -  Error occurred
 while evaluating XACML request
 javax.cache.CacheException: Cache $__local__$.PDP_DECISION_CACHE already
 exists

 Why is that?

 - Daya

 --
 Daya Atapattu
 WSO2 Inc.
 Phone: +94 77 047 4730, +1 203 484 7099




-- 
Thanks  Regards,
Asela

ATL
Mobile : +94 777 625 933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] Warning message from cluster when carrying out performance test

2014-07-07 Thread Firzhan Naqash
Hi,

I was trying to do a performance test of BPS on 4 node cluster in my local
machine.

I have increased the MySQL max_conections variable count to 300.

When I was trying to send messages in to the cluster I keep getting
following warning message.



[2014-07-07 14:48:29,104]  WARN {Transaction} -  Unexpected exception from
afterCompletion; continuing
com.hazelcast.nio.serialization.HazelcastSerializationException:
com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance
is not active!
at
com.hazelcast.nio.serialization.SerializationServiceImpl.handleException(SerializationServiceImpl.java:269)
at
com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:171)
at
com.hazelcast.instance.HazelcastInstanceImpl.getLock(HazelcastInstanceImpl.java:165)
at
com.hazelcast.instance.HazelcastInstanceProxy.getLock(HazelcastInstanceProxy.java:73)
at
org.apache.ode.bpel.engine.HazelcastInstanceLockManager.unlock(HazelcastInstanceLockManager.java:82)
at
org.apache.ode.bpel.engine.BpelEngineImpl$1.afterCompletion(BpelEngineImpl.java:473)
at
org.apache.ode.scheduler.simple.SimpleScheduler$2.afterCompletion(SimpleScheduler.java:333)
at
org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:534)
at
org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:527)
at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:326)
at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:287)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:235)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:530)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:514)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.hazelcast.core.HazelcastInstanceNotActiveException:
Hazelcast instance is not active!
at
com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:156)
... 18 more


Is there any configurations that I have missed when configuring the cluster
?

I have attached BPS.xml file and datasource.properties file


Regards,
Firzhan
?xml version=1.0 encoding=UTF-8?
!--
 ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ WSO2 Inc. licenses this file to you under the Apache License,
 ~ Version 2.0 (the License); you may not use this file except
 ~ in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing,
 ~ software distributed under the License is distributed on an
 ~ AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 ~ KIND, either express or implied.  See the License for the
 ~ specific language governing permissions and limitations
 ~ under the License.
 --
tns:WSO2BPS xmlns:tns=http://wso2.org/bps/config;
!-- Database Configuration for WSO2 BPS BPEL Engine's Persistence Storage  --
tns:DataBaseConfig
!-- Data source configuration. Use data sources created in data sources component. --
tns:DataSource name=bpsds
  tns:JNDI contextFactory=com.sun.jndi.rmi.registry.RegistryContextFactory providerURL=rmi://localhost:2199/
/tns:DataSource
/tns:DataBaseConfig

!-- Process dehydration configuration --
!--tns:ProcessDehydration maxCount=0 value=true
tns:MaxAge value=0/
/tns:ProcessDehydration--

!--tns:TransactionFactory class=/--

!-- BPEL Event Listeners. They must implement BPELEventListener interface --
!--tns:EventListeners
tns:listener class=org.wso2.bps.SampleEventListener/
/tns:EventListeners--

!--tns:EventListeners
tns:listener class=org.wso2.carbon.bpel.core.ode.integration.jmx.JmxBpelEventListener/
/tns:EventListeners--

!-- BPEL Message Exchange Interceptors. Used to track and handle incoming and out going
 Messages from BPEL Processes.
--
!--tns:MexInterceptors
tns:interceptor class=/
/tns:MexInterceptors--

!-- BPEL Extensions --
!--tns:ExtensionBundles
tns:runtimes
tns:runtime class=org.wso2.bps.SampleExtensionRuntime/
/tns:runtimes
tns:filters
tns:filter class=org.wso2.bps.SampleCorrelationFilter/
/tns:filters
/tns:ExtensionBundles--

!-- OpenJPA 

Re: [Dev] Please commit this to patch 0009

2014-07-07 Thread Kishanthan Thangarajah
This is added. But since this is a change in the configuration file, the
products needs to copy and replace the file during their distribution
build.

Can you also send the fixes to 4.3.0 kernel as a pull request?


On Thu, Jul 3, 2014 at 5:21 PM, Shelan Perera she...@wso2.com wrote:

 Hi,

 Please add this fix to patch0009 so that BAM new release will have this
 fix.

 https://wso2.org/jira/browse/BAM-1659

 Thanks

 --
 *Shelan Perera*

 Senior Software Engineer
 Integration Technology Group
 *WSO2, Inc. : wso2.com http://wso2.com*
 lean.enterprise.middleware.

 *Blog* :   blog.shelan.org
 *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
 *Twitter* :https://twitter.com/#!/shelan

 *Mobile*  : +94 772 604 402




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

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


Re: [Dev] Identity Sever: Cache $__local__$.PDP_DECISION_CACHE

2014-07-07 Thread Daya Attapattu
Thanks, Asela.  I will use the patch.  Now, (before applying the patch) I
got an NPE from IS.  I will post that in a different thread.

- Daya



On Mon, Jul 7, 2014 at 2:27 PM, Asela Pathberiya as...@wso2.com wrote:

 Hi Daya,

 It seems to be that,  there is some issue with the building the cache
 and it has not been properly synchronized.  I created a jira [1] and
 attached the possible patched jar file. It would be great, If you
 could continue testing with patched jar file.

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

 Thanks,
 Asela.

 On Mon, Jul 7, 2014 at 11:00 AM, Daya Attapattu d...@wso2.com wrote:
  I am running performance tests on EC2.  After several hours of running IS
  breaks with the message:
 
  [2014-07-07 05:19:45,182] ERROR
  {org.wso2.carbon.identity.entitlement.EntitlementService} -  Error
 occurred
  while evaluating XACML request
  javax.cache.CacheException: Cache $__local__$.PDP_DECISION_CACHE already
  exists
 
  Why is that?
 
  - Daya
 
  --
  Daya Atapattu
  WSO2 Inc.
  Phone: +94 77 047 4730, +1 203 484 7099
 



 --
 Thanks  Regards,
 Asela

 ATL
 Mobile : +94 777 625 933




-- 
Daya Atapattu
WSO2 Inc.
Phone: +94 77 047 4730, +1 203 484 7099
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixing CApp story for Carbon 4.3.0

2014-07-07 Thread Kishanthan Thangarajah
On Sun, Jul 6, 2014 at 3:12 PM, Johann Nallathamby joh...@wso2.com wrote:

 Hi Kishanthan,


 On Tue, Jul 1, 2014 at 8:03 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi All,

 We recently had a meeting on $subject. Our current story for CApp (Carbon
 Application) development approach is broken when including application of
 QoS for services. This was mainly due to the issues we faced with,

 - the file-based metadata persistence layer for services.
 - the possibility to change/apply QoS via mgt console.
 - clustering and deployment synchronization.

 To fix these, as the first step, we have removed the file based
 persistence layer from platform. This layer was mainly used to persist QoS
 related settings of the axis2services. This can be replaced by using
 services.xml file for each service.  All types of axis2services (other than
 proxy-services) has support for services.xml currently. For proxy services,
 the application of some QoS (Ex: security) can be defined inline by
 referring the relevant policies from registry.

 We need a meeting to discuss about the following next steps.
 - How this will affect ESB (proxy-services) and how to fix those.
 - Removing the current way of applying QoS via mgt console and providing
 a different approach, which will not be part of the CApp development
 process.


 This will have serious impact on STS functionality of IS. STS is a
 specialised axis2 service, deployed from an OSGi bundle and shared across
 all tenants. The security policy used to secure the STS is within the scope
 of a tenant and is deployed as a service metafile like any other service.
 STS  is unsecured by default. Tenant admins would secure the STS with
 preferred policy.

 Two reason why the above approach would not work for IS,

 1. Securing STS is a admin functionality in my opinion. It is not a
 development time aspect. This may be not the case for other services.

 2. Since STS is a shared service editing services.xml won't work.

 If we go with this new approach in platform, we need to do the following
 from IS side.

 1. We need to continue using the security wizard UI to apply policies and
 modify the backend service to persist policy in either registry or Identity
 DB.

 2. We need to modify the Security Deployment Interceptor which reads the
 security policy from filesystem, to read it from registry or database.


Yes, this would be the option here. You can also use the same approach like
how proxy services keep policy references for applied security scenarios
with registry.



 @Sagara/KasunG
 How is AS team planning to handle this. Are you going to deprecate usage
 of security wizard UI and leave it to development time? Or are you having
 any other approach in mind?

 Thanks,
 Johann.


 Thanks,
 Kishanthan.

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

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

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




 --
 Thanks  Regards,

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

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




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

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


[Dev] [IS 5.0.0] Configure SP using configuration file in IS

2014-07-07 Thread Rajith Vitharana
Hi All,

Are there any way of creating Service Provider with federated
authentication using a configuration file in IS?
I have created a IDP for the federated authentication using a config file.
Then I have tried to create a Service provider which uses the above created
IDP for federated authentication. But that service provider seems not to
identify the IDP.

Is there any way of achieving this?

Thanks,

-- 
Rajith Vitharana

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


[Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-07 Thread Dimuthu De Lanerolle
Hi,

I have started working on this. Our plan is to write a common test class
inside carbon-platform-integration-utils module which product teams can
extend and start running jaggery tests residing inside
[PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test directory.
Invocation of each test endpoint will be treated as a separate test case
resulting number of test cases to be executed will get equal to number of
test endpoints to be invoked.

Regards

Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge the pull request to wso2-synapse

2014-07-07 Thread Vanjikumaran Sivajothy
Hi sajith,
Due to aggregation mediator test case fail due to given pull request. We
have reverted the change.

Thanks,
Best Regards,
Vanji


On Mon, Jun 30, 2014 at 7:09 PM, Sajith Kariyawasam saj...@wso2.com wrote:

 Hi,

 Please merge the pull request [1] which is for relevant JIRA [2]

 [1] https://github.com/wso2-dev/wso2-synapse/pull/56
 [2] https://wso2.org/jira/browse/ESBJAVA-3156

 Thanks,
 Sajith

 --
 *--*

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




-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com http://wso2.com/*
*Mobile:(+94)777219209*
[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
https://twitter.com/vanjikumaran [image: LinkedIn]
http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
http://www.slideshare.net/vanjikumaran

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


Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-07 Thread Ruchira Wageesha
Hi Dimuthu,

With this approach, everyone who wants to test Jaggery apps will have to
write the same Java code by extending your base class, which is redundant.
Hence, IMO, the best options would be to wrap your base class and write a
maven plugin. So, what other's will have to do is, just add that
configuration in the pom and tests will be executed automatically without
writing any Java code.

/Ruchira


On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Hi,

 I have started working on this. Our plan is to write a common test class
 inside carbon-platform-integration-utils module which product teams can
 extend and start running jaggery tests residing inside
 [PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test directory.
 Invocation of each test endpoint will be treated as a separate test case
 resulting number of test cases to be executed will get equal to number of
 test endpoints to be invoked.

 Regards

 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

*email: ruch...@wso2.com ruch...@wso2.com,   blog:
ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-07 Thread Krishantha Samaraweera
Hi Ruchira,

This is not going to be a simple plugin to implement.This plugin will act
as a test executor and report generator, and we need to integrate code
coverage generation as well. Maven already provide sure-fire plug for test
execution and TestNG and Emma provide other capabilities. So writing a new
plugin from the scratch will be more work and we are going to ignore
existing plugins and test framework capabilities. I think we are trying to
reinvent the wheel again.

Adding one single test class just by extending a class provided by test
framework doesn't going to be overkill.

Is there a way to discover all jaggery applications hosted in carbon server
instance? if jaggery app discovery is available, then we can use testNG
listener to run all unit tests in those Jaggery apps even without writing
single java class in product test modules.

Thanks,
Krishantha.



On Mon, Jul 7, 2014 at 4:31 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Dimuthu,

 With this approach, everyone who wants to test Jaggery apps will have to
 write the same Java code by extending your base class, which is redundant.
 Hence, IMO, the best options would be to wrap your base class and write a
 maven plugin. So, what other's will have to do is, just add that
 configuration in the pom and tests will be executed automatically without
 writing any Java code.

 /Ruchira


 On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi,

 I have started working on this. Our plan is to write a common test class
 inside carbon-platform-integration-utils module which product teams can
 extend and start running jaggery tests residing inside
 [PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test directory.
 Invocation of each test endpoint will be treated as a separate test case
 resulting number of test cases to be executed will get equal to number of
 test endpoints to be invoked.

 Regards

 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] LogViewerStub returns null Logevent element in G-reg 5.0.0

2014-07-07 Thread Denuwanthi De Silva
Hi,

G-reg 5.0.0 SNAPSHOT display 'null' in management console, when try to view
'System logs', with the following message:
*The log must be configured to use the
org.wso2.carbon.logging.core.util.MemoryAppender to view entries through
the admin console*

The corresponding test case, shows that it is due to 'LogViewerStub'
returning a null 'Logevent', when trying to access system logs.

The JIRA issue can be found in [1]

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



Thanks,
-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updated Invitation: Progress meeting on G-Reg 5.0.0 M1 @ Mon Jul 7, 2014 2:30pm - 3:30pm (Shazni Nazir)

2014-07-07 Thread Shazni Nazeer
[Meeting Notes]

Participant: Senaka (over hangout), SameeraP, Subash, Eranda, Shelan,
Pulasthi, Heshani, Denuwanthi and me.

Following items were discussed in related to GREG 5 release.

1. Discussed about the RM task https://redmine.wso2.com/issues/584  -

   - Need to include a set of standard reports to the reposting component.
   For example reports that specifies service details, service changes and
   service impacts. Reports are needed since the UI view can't can't be made
   to show the detailed views of such information


   - Find out standard report set for repository etc.


   - Generate separate reports to get predefined details

2. Discussed about the RM task https://redmine.wso2.com/issues/46

   - Include service details other service related operations in the asset
   store, such as whether service is running, state information and code
   skeleton generation etc.

3. Discussed about the RM task https://redmine.wso2.com/issues/2336

   - This involves a service store view.


   - Associate a server rxt with the service to get details about the
   server and perform different operations according to obtained server
   details.


   - This view should be very expressive


   - Separate views for different environments like development, QA and
   production


   - Need to have a way to promote services to different environments

4. Discussed about the RM task https://redmine.wso2.com/issues/2340

   - A user added detail such as comments, ratings etc on a specific API
   have to be displayed in service store.

5. Discussed about the RM task https://redmine.wso2.com/issues/2342

   - There needs to be a wat to view notifications in the provider view.
   For example, customer complains about a service should generate a
   notification.


   - Subsequent fixes, should generate notifications to subscribed
   consumers of the service.

Please add anything I've missed out.

Shazni Nazeer

Senior Software Engineer

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com


On Mon, Jul 7, 2014 at 10:31 AM, Subash Chaturanga sub...@wso2.com wrote:

  This event has been changed.
 more details »
 https://www.google.com/calendar/event?action=VIEWeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29ttok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en
 Progress meeting on G-Reg 5.0.0 M1
 Discuss the progress so far and plan the next steps on M1
 *When*
 *Changed: *Mon Jul 7, 2014 2:30pm – 3:30pm Colombo
 *Where*
 LK 1st Floor Meeting Room (map
 http://maps.google.lk/maps?q=LK+1st+Floor+Meeting+Roomhl=en)
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/subash
 https://plus.google.com/hangouts/_/wso2.com/subash?hceid=c3ViYXNoQHdzbzIuY29t.ol2oesgr7nqfbdqc9njp8ve07g
 *Calendar*
 Shazni Nazir
 *Who*
 •
 Subash Chaturanga - organizer
 •
 Sameera Perera
 •
 Ajith Vitharana
 •
 Shazni Nazir
 •
 Sameera Kannangara
 •
 Eranda Sooriyabandara
 •
 Pulasthi Supun
 •
 Denuwanthi De Silva
 •
 Heshani Gamage
 •
 Shelan Perera

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29trst=1tok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29trst=3tok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29trst=2tok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29ttok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account sha...@wso2.com because you
 are subscribed for updated invitations on calendar Shazni Nazir.

 To stop receiving these notifications, please log in to
 https://www.google.com/calendar/ and change your notification settings
 for this calendar.

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


Re: [Dev] Updated Invitation: Progress meeting on G-Reg 5.0.0 M1 @ Mon Jul 7, 2014 2:30pm - 3:30pm (Shazni Nazir)

2014-07-07 Thread Senaka Fernando
Guys,

So important point to note is that apart from some of the feature gaps that
were recently reported and L3 bugs that were carried forward, the main
focus point of 5.0.0 is going to be the User Experience. Most of that again
will be around the Service Store, so its absolutely crucial to make sure
this delivers to the levels of expectations in terms of this product.

Thanks,
Senaka.


On Mon, Jul 7, 2014 at 12:54 PM, Shazni Nazeer sha...@wso2.com wrote:

 [Meeting Notes]

 Participant: Senaka (over hangout), SameeraP, Subash, Eranda, Shelan,
 Pulasthi, Heshani, Denuwanthi and me.

 Following items were discussed in related to GREG 5 release.

 1. Discussed about the RM task https://redmine.wso2.com/issues/584  -

- Need to include a set of standard reports to the reposting
component. For example reports that specifies service details, service
changes and service impacts. Reports are needed since the UI view can't
can't be made to show the detailed views of such information


- Find out standard report set for repository etc.


- Generate separate reports to get predefined details

 2. Discussed about the RM task https://redmine.wso2.com/issues/46

- Include service details other service related operations in the
asset store, such as whether service is running, state information and code
skeleton generation etc.

 3. Discussed about the RM task https://redmine.wso2.com/issues/2336

- This involves a service store view.


- Associate a server rxt with the service to get details about the
server and perform different operations according to obtained server
details.


- This view should be very expressive


- Separate views for different environments like development, QA and
production


- Need to have a way to promote services to different environments

 4. Discussed about the RM task https://redmine.wso2.com/issues/2340

- A user added detail such as comments, ratings etc on a specific API
have to be displayed in service store.

 5. Discussed about the RM task https://redmine.wso2.com/issues/2342

- There needs to be a wat to view notifications in the provider view.
For example, customer complains about a service should generate a
notification.


- Subsequent fixes, should generate notifications to subscribed
consumers of the service.

 Please add anything I've missed out.

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Mon, Jul 7, 2014 at 10:31 AM, Subash Chaturanga sub...@wso2.com
 wrote:

  This event has been changed.
 more details »
 https://www.google.com/calendar/event?action=VIEWeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29ttok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en
 Progress meeting on G-Reg 5.0.0 M1
 Discuss the progress so far and plan the next steps on M1
 *When*
 *Changed: *Mon Jul 7, 2014 2:30pm – 3:30pm Colombo
 *Where*
 LK 1st Floor Meeting Room (map
 http://maps.google.lk/maps?q=LK+1st+Floor+Meeting+Roomhl=en)
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/subash
 https://plus.google.com/hangouts/_/wso2.com/subash?hceid=c3ViYXNoQHdzbzIuY29t.ol2oesgr7nqfbdqc9njp8ve07g
 *Calendar*
 Shazni Nazir
 *Who*
 •
 Subash Chaturanga - organizer
 •
 Sameera Perera
 •
 Ajith Vitharana
 •
 Shazni Nazir
 •
 Sameera Kannangara
 •
 Eranda Sooriyabandara
 •
 Pulasthi Supun
 •
 Denuwanthi De Silva
 •
 Heshani Gamage
 •
 Shelan Perera

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29trst=1tok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29trst=3tok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29trst=2tok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=b2wyb2VzZ3I3bnFmYmRxYzluanA4dmUwN2cgc2hhem5pQHdzbzIuY29ttok=MTUjc3ViYXNoQHdzbzIuY29tMWM3ZjM2N2IwYjAzYzBhY2EwMGE4NzNlZDRjY2JmYTIyZWMwNTExNwctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account sha...@wso2.com because you
 are subscribed for updated invitations on calendar Shazni Nazir.

 To stop receiving these notifications, please log in to
 https://www.google.com/calendar/ and change your notification settings
 for this calendar.





-- 


*[image: http://wso2.com] http://wso2.com Senaka Fernando*
Software Architect; WSO2 Inc.; http://wso2.com



[Dev] Validate Mediator - Feature Support

2014-07-07 Thread Sohani Weerasinghe
Hi All,

It seems validate mediator only supports the feature
XMLConstants.FEATURE_SECURE_PROCESSING
http://docs.oracle.com/javase/6/docs/api/javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING
.

Are there any other features supported by the validate mediator? If not, is
there any particular reason for only supporting the above feature?

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-07 Thread Ruchira Wageesha
On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera krishan...@wso2.com
wrote:

 Hi Ruchira,

 This is not going to be a simple plugin to implement.This plugin will act
 as a test executor and report generator, and we need to integrate code
 coverage generation as well. Maven already provide sure-fire plug for test
 execution and TestNG and Emma provide other capabilities. So writing a new
 plugin from the scratch will be more work and we are going to ignore
 existing plugins and test framework capabilities. I think we are trying to
 reinvent the wheel

Sorry Krishantha, you have got it wrong :). I never said to reinvent the
wheel and I know it is useless.

To clarify what I meant, assume the configuration that everyone put in
their pom.xml asking TestNG/Emma to execute the test class that they
wrote(Let's say it as X and everyone will have to write the same class).
Instead of that, your test framework jar bundles the class(X) and you write
a maven plugin, which allows someone to ask TestNG/Emma to execute tests
with your bundled class(X) by just specifying maven plugin configuration in
their pom.xml

 again.

 Adding one single test class just by extending a class provided by test
 framework doesn't going to be overkill.

 Is there a way to discover all jaggery applications hosted in carbon
 server instance? if jaggery app discovery is available, then we can use
 testNG listener to run all unit tests in those Jaggery apps even without
 writing single java class in product test modules.

+1. If you list down all the directories available within
repository/deployment/server/jaggeryapps directory, those are the Jaggery
apps available.


 Thanks,
 Krishantha.



 On Mon, Jul 7, 2014 at 4:31 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Dimuthu,

 With this approach, everyone who wants to test Jaggery apps will have to
 write the same Java code by extending your base class, which is redundant.
 Hence, IMO, the best options would be to wrap your base class and write a
 maven plugin. So, what other's will have to do is, just add that
 configuration in the pom and tests will be executed automatically without
 writing any Java code.

 /Ruchira


 On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi,

 I have started working on this. Our plan is to write a common test class
 inside carbon-platform-integration-utils module which product teams can
 extend and start running jaggery tests residing inside
 [PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test directory.
 Invocation of each test endpoint will be treated as a separate test case
 resulting number of test cases to be executed will get equal to number of
 test endpoints to be invoked.

 Regards

 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

*email: ruch...@wso2.com ruch...@wso2.com,   blog:
ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Validate Mediator - Feature Support

2014-07-07 Thread Vijayaratha Vijayasingam
Not clear..Validate mediator is used to validate the requests based on the
schema..


On 7 July 2014 18:30, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 It seems validate mediator only supports the feature
 XMLConstants.FEATURE_SECURE_PROCESSING
 http://docs.oracle.com/javase/6/docs/api/javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING
 .

 Are there any other features supported by the validate mediator? If not,
 is there any particular reason for only supporting the above feature?

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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




-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [RabbitMQ] Cannot send messages to RabbitMQ in remote server

2014-07-07 Thread Indika Sampath
I have sorted out above issue. This was happen due to user created in
RabbitMQ doesn't have permission to access virtual hosts. This issue
resolve when grant permission to created user to access virtual hosts.
Otherwise created user has permission to access queue created in local host
only.


On Thu, Jul 3, 2014 at 5:06 PM, Indika Sampath indi...@wso2.com wrote:

 Hi All,

 I have integrate IBM MQ, Rabbit MQ with WSO2 ESB. Setup environment as
 below.

 IBM MQ version 7.0 running on Windows 7
 WSO2 ESB 4.8.0 running on Windows 7

 Rabbit MQ version 3.3.4 running on Linux

 Message flow as below.
 Send SOAP message - messageAcceptProxy - IBM MQ (queue: ivtQ) -
 AMQPProxy - RabbitMQ (queue:queue2)

 Following exception occurred when message read from IBM MQ and send to the
 Rabbit MQ which exist in the Linux machine.

 NOTE: The above message flow work perfectly when Rabbit MQ in the same
 macine. (Windows 7)

 [2014-07-03 15:14:49,977]  INFO - CarbonUIServiceComponent Mgt Console URL
  : ht
 tps://10.100.5.76:9443/carbon/
 [2014-07-03 15:15:14,595]  INFO - LogMediator STATE = message is sent to
 queue
 [2014-07-03 15:15:14,607]  INFO - TimeoutHandler This engine will expire
 all cal
 lbacks after : 120 seconds, irrespective of the timeout action, after the
 specif
 ied or optional timeout
 [2014-07-03 15:15:14,816]  INFO - LogMediator To: , WSAction: urn:mediate,
 SOAPA
 ction: urn:mediate, MessageID:
 ID:414d51204b50726f64514d67722020207500b553200147
 02, Direction: request, Envelope: ?xml version=1.0
 encoding=utf-8?soapenv
 :Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 soapenv:Bod
 ysoapenv:Envelope xmlns:xsd=http://samples.esb.wso2.org/xsd;
 xmlns:sam=http:
 //samples.esb.wso2.orgsoapenv:Body
   sam:credit
  sam:info
 xsd:amount100/xsd:amount
 xsd:personInfo
xsd:addressColomobo/xsd:address
xsd:id1/xsd:id
xsd:nameIndika Sampath/xsd:name
 /xsd:personInfo
  /sam:info
   /sam:credit
/soapenv:Body/soapenv:Envelope/soapenv:Body/soapenv:Envelope
 [2014-07-03 15:15:17,995] ERROR - RabbitMQMessageSender Error while
 creating con
 nection pool
  java.io.IOException
 at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)
 at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)
 at
 com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:12
 4)
 at
 com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:374)
 at
 com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory
 .java:590)
 at
 com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory
 .java:624)
 at
 org.apache.axis2.transport.rabbitmq.ConnectionFactory.getConnectionPo
 ol(ConnectionFactory.java:93)
 at
 org.apache.axis2.transport.rabbitmq.RabbitMQMessageSender.init(Rabb
 itMQMessageSender.java:59)
 at
 org.apache.axis2.transport.rabbitmq.RabbitMQSender.sendMessage(Rabbit
 MQSender.java:71)
 at
 org.apache.axis2.transport.base.AbstractTransportSender.invoke(Abstra
 ctTransportSender.java:112)
 at
 org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWork
 er.run(AxisEngine.java:626)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
 utor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
 .java:908)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: com.rabbitmq.client.ShutdownSignalException: connection error
 at
 com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:
 67)
 at
 com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue
 (BlockingValueOrException.java:33)
 at
 com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(
 AMQChannel.java:343)
 at
 com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:216)
 at
 com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:11
 8)
 ... 11 more
 Caused by: java.net.SocketException: Connection reset
 at java.net.SocketInputStream.read(SocketInputStream.java:168)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
 at
 java.io.DataInputStream.readUnsignedByte(DataInputStream.java:271)
 at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
 at
 com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHand
 ler.java:139)
 at
 com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.jav
 a:532)
 ... 1 more
 [2014-07-03 15:15:18,005]  INFO - AxisEngine [MessageContext:
 logID=f12b7a2e7c2c
 9fe17bd3652d34dcbf4c69cafb19d5e9ae47] Error while creating connection pool
 [2014-07-03 15:15:18,007] ERROR - AsyncCallback Error while creating
 connection
 pool
 

Re: [Dev] AD as primary user store (Read only configuration)

2014-07-07 Thread Johann Nallathamby
On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi pavit...@wso2.com
wrote:

 As per the documentation [1], it's possible to use 
 org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager for both
 read-only and read/write operations.

 So I used the configuration found at [2] (configuration for AD) and still
 I was able to add users to AD.
 Please note that following property is not there in the provided
 configuration
 Property name=ReadOnlytrue/Property

 Then I added that property to user-mgt.xml and started the server again.
 Still I can add uses to AD (which is wrong since I need read only user
 store)

 What I need to get clarified is..

 1) IMO the information in documentation is not correct.. or am I missing
 something?


@Samuel: Can you please correct the docs. AD should only be used for
read-write. Clearly mention that if AD is to be used as read-only we need
to use ReadOnlyLDAPUserStoreManager.



 2) Can we make the ActiveDirectoryUserStoreManager read - only by
 adding following property ?
 Property name=ReadOnlytrue/Property



 3) If above configuration is not correct, what is the recommended/correct
 user store manager if we need to configure read only AD as primary user
 store?
 We use ReadOnlyLDAPUserStoreManager  and it works fine.. Is it the right
 way of configuring user store?


Yes. This is the right way of using it.


  [1] https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores
 [2]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores#ConfiguringPrimaryUserStores-Read-onlymode
 ​
 Regards,
 Pavithra​

 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94777207357

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




-- 
Thanks  Regards,

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

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins Build Bot complains about build failures

2014-07-07 Thread Kasun Gajasinghe
Hi Senaka,

This has happened since the Pull Request builder do not build the
downstream projects. Since, changes in upstream projects can affect
downstream projects, we should make sure downstream projects are successful
before merging the changes to repos.

We are currently working on improving the pull-request-builder jenkins
plugin to provide this support. In the meanwhile, each TG has its own
Jenkins instance for the wso2-dev repos. So, they should make sure that the
downstream projects are not affected by their changes before sending pull
requests to the main repos.

Regards,
KasunG


On Sun, Jul 6, 2014 at 7:34 AM, Rajith Vitharana raji...@wso2.com wrote:

 Hi

 How would we manage changes in dependencies? For example dependency
 project get changed, so the original project build fails.

 Thanks,


 On Sun, Jul 6, 2014 at 2:55 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi KasunG,

 I'm getting a few mails on $subject. Shouldn't we only be merging things
 that don't end up breaking the build?

 Thanks,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Software Architect; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +44 782 741 1966 %2B44%20782%20741%201966 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




-- 

*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] BAM doesn't show the stats

2014-07-07 Thread Kasun Dissanayake
Hi All,

Found the solution.

Thanks and Regards


On Mon, Jul 7, 2014 at 2:25 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi All,

 I have configured the APP Manager with BAM according to the instructions
 given in docs. But when I check the H2 the database is created successfully
 but there are no any data in the tables. I checked the Synapse
 configuration and it hits the UsageHandler without any problem. Any help on
 $subject ?

 Thanks and Regards

 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/




-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins Build Bot complains about build failures

2014-07-07 Thread Senaka Fernando
Hi Kasun,

Thanks for clarifying. This is something we need to fix - as you explained.

Regards,
Senaka.


On Mon, Jul 7, 2014 at 4:34 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Senaka,

 This has happened since the Pull Request builder do not build the
 downstream projects. Since, changes in upstream projects can affect
 downstream projects, we should make sure downstream projects are successful
 before merging the changes to repos.

 We are currently working on improving the pull-request-builder jenkins
 plugin to provide this support. In the meanwhile, each TG has its own
 Jenkins instance for the wso2-dev repos. So, they should make sure that the
 downstream projects are not affected by their changes before sending pull
 requests to the main repos.

 Regards,
 KasunG


 On Sun, Jul 6, 2014 at 7:34 AM, Rajith Vitharana raji...@wso2.com wrote:

 Hi

 How would we manage changes in dependencies? For example dependency
 project get changed, so the original project build fails.

 Thanks,


 On Sun, Jul 6, 2014 at 2:55 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi KasunG,

 I'm getting a few mails on $subject. Shouldn't we only be merging things
 that don't end up breaking the build?

 Thanks,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Software Architect; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +44 782 741 1966 %2B44%20782%20741%201966 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --

 *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






-- 


*[image: http://wso2.com] http://wso2.com Senaka Fernando*
Software Architect; WSO2 Inc.; http://wso2.com



* Member; Apache Software Foundation; http://apache.org
http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408
754 7388; ext: 51736*;


*M: +44 782 741 1966 Linked-In: http://linkedin.com/in/senakafernando
http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AD as primary user store (Read only configuration)

2014-07-07 Thread Samuel Gnaniah
Hi Johann and Pavithra,

Thanks for reporting this. I'll work on this and make the changes.

Thanks,
Sam

*Samuel Gnaniah*
Senior Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798


On Mon, Jul 7, 2014 at 8:46 PM, Johann Nallathamby joh...@wso2.com wrote:




 On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi pavit...@wso2.com
 wrote:

 As per the documentation [1], it's possible to use 
 org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager for both
 read-only and read/write operations.

 So I used the configuration found at [2] (configuration for AD) and still
 I was able to add users to AD.
 Please note that following property is not there in the provided
 configuration
 Property name=ReadOnlytrue/Property

 Then I added that property to user-mgt.xml and started the server again.
 Still I can add uses to AD (which is wrong since I need read only user
 store)

 What I need to get clarified is..

 1) IMO the information in documentation is not correct.. or am I missing
 something?


 @Samuel: Can you please correct the docs. AD should only be used for
 read-write. Clearly mention that if AD is to be used as read-only we need
 to use ReadOnlyLDAPUserStoreManager.



 2) Can we make the ActiveDirectoryUserStoreManager read - only by
 adding following property ?
 Property name=ReadOnlytrue/Property



 3) If above configuration is not correct, what is the recommended/correct
 user store manager if we need to configure read only AD as primary user
 store?
 We use ReadOnlyLDAPUserStoreManager  and it works fine.. Is it the right
 way of configuring user store?


 Yes. This is the right way of using it.


  [1] https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores
 [2]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores#ConfiguringPrimaryUserStores-Read-onlymode
 ​
 Regards,
 Pavithra​

 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94777207357

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




 --
 Thanks  Regards,

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

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

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


[Dev] Add IDP view in G-Reg 5.0.0 SNAPSHOT pack ?

2014-07-07 Thread Subash Chaturanga
Hi Pulasthi et al,
There is $subject in the latest 4.3.0 G-Reg packs. I believe this is
mistakenly packing in to G-Reg ??


-- 
Thanks
/subash

*Subash Chaturanga*
Senior Software Engineer  Lead WSO2 Governance Registry
Platform TG; WSO2 Inc. http://wso2.com
Contact:
email: sub...@wso2.com
blog:  http://subashsdm.blogspot.com/
twitter: @subash89
phone: +9477 2225922
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add IDP view in G-Reg 5.0.0 SNAPSHOT pack ?

2014-07-07 Thread Johann Nallathamby
Hi Subash,

This feature is coming because of its dependency to oauth feature. I think
you are using oauth to secure your REST APIs.

Thanks,
Johann.


On Mon, Jul 7, 2014 at 10:14 PM, Subash Chaturanga sub...@wso2.com wrote:

 Hi Pulasthi et al,
 There is $subject in the latest 4.3.0 G-Reg packs. I believe this is
 mistakenly packing in to G-Reg ??


 --
 Thanks
 /subash

 *Subash Chaturanga*
 Senior Software Engineer  Lead WSO2 Governance Registry
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 email: sub...@wso2.com
 blog:  http://subashsdm.blogspot.com/
 twitter: @subash89
 phone: +9477 2225922
 Lean . Enterprise . Middleware

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




-- 
Thanks  Regards,

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

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] Warning message from cluster when carrying out performance test

2014-07-07 Thread Thilini Ishaka
Hi Firzhan,

Should be due to a configuration issue. Can you send the axis2.xml as well?

Thanks
Thilini


On Mon, Jul 7, 2014 at 2:30 AM, Firzhan Naqash firz...@wso2.com wrote:


 Hi,

 I was trying to do a performance test of BPS on 4 node cluster in my local
 machine.

 I have increased the MySQL max_conections variable count to 300.

 When I was trying to send messages in to the cluster I keep getting
 following warning message.



 [2014-07-07 14:48:29,104]  WARN {Transaction} -  Unexpected exception from
 afterCompletion; continuing
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance
 is not active!
 at
 com.hazelcast.nio.serialization.SerializationServiceImpl.handleException(SerializationServiceImpl.java:269)
 at
 com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:171)
 at
 com.hazelcast.instance.HazelcastInstanceImpl.getLock(HazelcastInstanceImpl.java:165)
 at
 com.hazelcast.instance.HazelcastInstanceProxy.getLock(HazelcastInstanceProxy.java:73)
 at
 org.apache.ode.bpel.engine.HazelcastInstanceLockManager.unlock(HazelcastInstanceLockManager.java:82)
 at
 org.apache.ode.bpel.engine.BpelEngineImpl$1.afterCompletion(BpelEngineImpl.java:473)
 at
 org.apache.ode.scheduler.simple.SimpleScheduler$2.afterCompletion(SimpleScheduler.java:333)
 at
 org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:534)
 at
 org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:527)
 at
 org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:326)
 at
 org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238)
 at
 org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:287)
 at
 org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:235)
 at
 org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:530)
 at
 org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:514)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: com.hazelcast.core.HazelcastInstanceNotActiveException:
 Hazelcast instance is not active!
 at
 com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:156)
 ... 18 more


 Is there any configurations that I have missed when configuring the
 cluster ?

 I have attached BPS.xml file and datasource.properties file


 Regards,
 Firzhan

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




-- 
Thilini Ishaka
Senior Software Engineer
Integration Technologies Team
 Phone: +94 11 214 5345
WSO2 Inc. http://wso2.com

blog: thiliniishaka.blogspot.com
linkedin: http://lk.linkedin.com/in/thiliniishaka
twitter: https://twitter.com/#!/ThiliniIsh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] LogViewerStub returns null Logevent element in G-reg 5.0.0

2014-07-07 Thread Amani Soysa
Hi

Looks like CARBON_MEMORY appender is not properly configured in GREG.
Please make sure following properties are there in log4j.properties file

# The memory appender for logging
log4j.appender.CARBON_MEMORY=
*org.wso2.carbon.logging.appender.CarbonMemoryAppender*
log4j.appender.CARBON_MEMORY.bufferSize=2000
log4j.appender.CARBON_MEMORY.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
# ConversionPattern will be overridden by the configuration setting in the
DB
log4j.appender.CARBON_MEMORY.layout.ConversionPattern=TID: [%T] [%S] [%d]
%P%5p {%c} - %x %m {%c}%n
log4j.appender.CARBON_MEMORY.layout.TenantPattern=%U%@%D [%T] [%S]
log4j.appender.CARBON_MEMORY.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
log4j.appender.CARBON_MEMORY.threshold=DEBUG

and also* CARBON_MEMORY* is added to the root logger.


On Mon, Jul 7, 2014 at 5:24 PM, Denuwanthi De Silva denuwan...@wso2.com
wrote:

 Hi,

 G-reg 5.0.0 SNAPSHOT display 'null' in management console, when try to
 view 'System logs', with the following message:
 *The log must be configured to use the
 org.wso2.carbon.logging.core.util.MemoryAppender to view entries through
 the admin console*

 The corresponding test case, shows that it is due to 'LogViewerStub'
 returning a null 'Logevent', when trying to access system logs.

 The JIRA issue can be found in [1]

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



 Thanks,
 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com



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




-- 
Amani Soysa
Associate Technical Lead
Mobile: +94772325528
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with session affinity load balancing with ESB

2014-07-07 Thread Amalka Subasinghe
As discussed offline with Dushan, this is not a bug. Since I'm not
restarting the ESB here, the client id, which directed to the MyServer2;
will always directed to MyServer2 until the session expires.



On Fri, Jul 4, 2014 at 11:50 AM, Amalka Subasinghe ama...@wso2.com wrote:

 updating correct title


 On Fri, Jul 4, 2014 at 11:46 AM, Amalka Subasinghe ama...@wso2.com
 wrote:

 HI,

 Found a issue while executing sample 54 and 55 as follows:

 Steps:

1.

Start ESB and setup 4 axis2 servers at the back end. (port 9001,
9002, 9003, 9004) and deploy LoadbalanceFailoverService.
2.

Login to the ESB and update ESB config with sample 54 configuration.
3.

run the axis2client   ant loadbalancefailover -Di=10 -Dmode=session
4.

Output:

 [java] Request: 1 with Session ID: 0  Response : withResponse
 from server: MyServer1

 [java] Request: 2 with Session ID: 1  Response : withResponse
 from server: MyServer2

 [java] Request: 3 with Session ID: 1  Response : withResponse
 from server: MyServer2

 [java] Request: 4 with Session ID: 0  Response : withResponse
 from server: MyServer1

 [java] Request: 5 with Session ID: 2  Response : withResponse
 from server: MyServer3

 [java] Request: 6 with Session ID: 0  Response : withResponse
 from server: MyServer1

 [java] Request: 7 with Session ID: 1  Response : withResponse
 from server: MyServer2

 [java] Request: 8 with Session ID: 2  Response : withResponse
 from server: MyServer3

 [java] Request: 9 with Session ID: 0  Response : withResponse
 from server: MyServer1

 [java] Request: 10 with Session ID: 1  Response : withResponse
 from server: MyServer2

 Session ID : 0 - MyServer1, Session ID: 1 - MyServer2, Session ID:2
 -MyServer3

1.

Update ESB configuration with sample 55 configuration and run the
axis2client again
2.

Output:

 [java] Request: 1 with Session ID: 0  Response : withResponse
 from server: MyServer1

 [java] Request: 2 with Session ID: 2  Response : withResponse
 from server: MyServer3

 [java] Request: 3 with Session ID: 2  Response : withResponse
 from server: MyServer3

 [java] Request: 4 with Session ID: 2  Response : withResponse
 from server: MyServer3

 [java] Request: 5 with Session ID: 0  Response : withResponse
 from server: MyServer1

 [java] Request: 6 with Session ID: 2  Response : withResponse
 from server: MyServer3

 [java] Request: 7 with Session ID: 1  Response : withResponse
 from server: MyServer2

 [java] Request: 8 with Session ID: 2  Response : withResponse
 from server: MyServer3

 [java] Request: 9 with Session ID: 1  Response : withResponse
 from server: MyServer2

 [java] Request: 10 with Session ID: 0  Response : withResponse
 from server: MyServer1

 Session ID : 0 - MyServer1, Session ID: 1 - MyServer2, Session ID:2
 -MyServer3

 7. With the sample 55 configuration MyServer2 should not respond for the
 requests, it should respond only when MyServer1 is down.

 I could reproduce this using soapUI too, when I use the same client IDs
 (c1, c2, c3) with the soap request.

 [The client Id, which directed to the MyServer2 with sample 54
 configuration; always directed to MyServer2 even after I updated the
 synapse config to sample 55]

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:ser=
 http://services.samples;

   soapenv:Header

   syn:ClientID xmlns:syn=http://ws.apache.org/ns/synapse
 c1/syn:ClientID

   /soapenv:Header

   soapenv:Body

  ser:sampleOperation

 !--Optional:--

 ser:param1/ser:param

  /ser:sampleOperation

   /soapenv:Body

 /soapenv:Envelope

 It seems this is not the right behavior of the ESB with session affinity
 load balancing.
 Is this a know issue? or Is there any workaround for this?

 Thanks
 Amalka
 --

 Amalka Subasinghe

 WSO2 Inc.
 Mobile: +94 77 9401267




 --

 Amalka Subasinghe

 WSO2 Inc.
 Mobile: +94 77 9401267




-- 

Amalka Subasinghe

Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AD as primary user store (Read only configuration)

2014-07-07 Thread Samuel Gnaniah
Hi Tania,

AFAIK all product pages already pull this content from the shared location
so the fix would be applied anyway.

Thanks,
Sam

*Samuel Gnaniah*
Senior Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798


On Tue, Jul 8, 2014 at 9:12 AM, Tania Mahanama ta...@wso2.com wrote:

 Hi Sam,

 I guess this is relevant for other products that have this page as well.
 Please let us know once you have made the changes.

 Thanks,
 Tania



 On Mon, Jul 7, 2014 at 9:46 PM, Samuel Gnaniah sam...@wso2.com wrote:

 Hi Johann and Pavithra,

 Thanks for reporting this. I'll work on this and make the changes.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Mon, Jul 7, 2014 at 8:46 PM, Johann Nallathamby joh...@wso2.com
 wrote:




 On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi pavit...@wso2.com
 wrote:

 As per the documentation [1], it's possible to use 
 org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager for
 both read-only and read/write operations.

 So I used the configuration found at [2] (configuration for AD) and
 still I was able to add users to AD.
 Please note that following property is not there in the provided
 configuration
 Property name=ReadOnlytrue/Property

 Then I added that property to user-mgt.xml and started the server
 again. Still I can add uses to AD (which is wrong since I need read only
 user store)

 What I need to get clarified is..

 1) IMO the information in documentation is not correct.. or am I
 missing something?


 @Samuel: Can you please correct the docs. AD should only be used for
 read-write. Clearly mention that if AD is to be used as read-only we need
 to use ReadOnlyLDAPUserStoreManager.



 2) Can we make the ActiveDirectoryUserStoreManager read - only by
 adding following property ?
 Property name=ReadOnlytrue/Property



 3) If above configuration is not correct, what is the
 recommended/correct user store manager if we need to configure read only AD
 as primary user store?
 We use ReadOnlyLDAPUserStoreManager  and it works fine.. Is it the
 right way of configuring user store?


 Yes. This is the right way of using it.


  [1]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores
 [2]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores#ConfiguringPrimaryUserStores-Read-onlymode
 ​
 Regards,
 Pavithra​

 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94777207357

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




 --
 Thanks  Regards,

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

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



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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270

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


[Dev] Error When Starting ESB with Inbound Endpoint

2014-07-07 Thread Isuru Ranawaka
hi all,

 After inserting following Inbound Endpoint configuration in to synapse.xml
and try to Start ESB it gives errors.

Synapse.xml looks like as below.

?xml version=1.0 encoding=UTF-8?
definitions xmlns=http://ws.apache.org/ns/synapse;
inboundEndpoint name=MyJMSListenerEP
   protocol=jms
   interval=1000 suspend=false
   parameters
parameter
name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/parameter
   parameter
name=java.naming.provider.urltcp://localhost:61616/parameter
   parameter
name=jms.ConnectionFactoryJNDINameQueueConnectionFactory/parameter
   parameter name=jms.ConnectionFactoryTypequeue/parameter
   parameter name=jms.DestinationordersQueue/parameter
   /parameters
   sequence key=requestHandlerSeq onError=inFault/
/inboundEndpoint
/definitions

Error Occurred is

Invalid configuration element at the top level, one of 'sequence',
'endpoint', 'proxy', 'eventSource', 'localEntry', 'priorityExecutor' or
'registry' is expected.

This is because in
org.apache.synapse.config.xml.SynapseXMLConfigurationFactory
getConfiguration(OMElement definitions, Properties properties) method does
not
handle  InboundEndpoints.

Is there another way of doing this or Is this need to be fixed.


--
Regards
Isuru Ranawaka
phone :- +94714629880
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AD as primary user store (Read only configuration)

2014-07-07 Thread Tania Mahanama
Oh, sorry. I just checked the IS and MB pages and they were not pulled from
the shared content. Will fix MB.

Thanks!
Tania


On Tue, Jul 8, 2014 at 9:15 AM, Samuel Gnaniah sam...@wso2.com wrote:

 Hi Tania,

 AFAIK all product pages already pull this content from the shared location
 so the fix would be applied anyway.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Tue, Jul 8, 2014 at 9:12 AM, Tania Mahanama ta...@wso2.com wrote:

 Hi Sam,

 I guess this is relevant for other products that have this page as well.
 Please let us know once you have made the changes.

 Thanks,
 Tania



 On Mon, Jul 7, 2014 at 9:46 PM, Samuel Gnaniah sam...@wso2.com wrote:

 Hi Johann and Pavithra,

 Thanks for reporting this. I'll work on this and make the changes.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Mon, Jul 7, 2014 at 8:46 PM, Johann Nallathamby joh...@wso2.com
 wrote:




 On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi pavit...@wso2.com
 wrote:

 As per the documentation [1], it's possible to use 
 org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager for
 both read-only and read/write operations.

 So I used the configuration found at [2] (configuration for AD) and
 still I was able to add users to AD.
 Please note that following property is not there in the provided
 configuration
 Property name=ReadOnlytrue/Property

 Then I added that property to user-mgt.xml and started the server
 again. Still I can add uses to AD (which is wrong since I need read only
 user store)

 What I need to get clarified is..

 1) IMO the information in documentation is not correct.. or am I
 missing something?


 @Samuel: Can you please correct the docs. AD should only be used for
 read-write. Clearly mention that if AD is to be used as read-only we need
 to use ReadOnlyLDAPUserStoreManager.



 2) Can we make the ActiveDirectoryUserStoreManager read - only by
 adding following property ?
 Property name=ReadOnlytrue/Property



 3) If above configuration is not correct, what is the
 recommended/correct user store manager if we need to configure read only 
 AD
 as primary user store?
 We use ReadOnlyLDAPUserStoreManager  and it works fine.. Is it the
 right way of configuring user store?


 Yes. This is the right way of using it.


  [1]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores
 [2]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores#ConfiguringPrimaryUserStores-Read-onlymode
 ​
 Regards,
 Pavithra​

 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94777207357

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




 --
 Thanks  Regards,

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

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



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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270





-- 
Tania Mahanama
Senior Technical Writer

Contact:
Mob: +94 077 5129270
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AD as primary user store (Read only configuration)

2014-07-07 Thread Samuel Gnaniah
Yeah, IS docs are an exception since I prefer to have an extra link in
there. For other docs it isn't necessary since they anyway have a link to
that topic at the bottom in addition to the page-include macro (see [1] for
an example).

[1] - http://docs.wso2.com/display/AS521/Configuring+Primary+User+Stores

Cheers,
Sam

*Samuel Gnaniah*
Senior Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798


On Tue, Jul 8, 2014 at 9:15 AM, Samuel Gnaniah sam...@wso2.com wrote:

 Hi Tania,

 AFAIK all product pages already pull this content from the shared location
 so the fix would be applied anyway.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Tue, Jul 8, 2014 at 9:12 AM, Tania Mahanama ta...@wso2.com wrote:

 Hi Sam,

 I guess this is relevant for other products that have this page as well.
 Please let us know once you have made the changes.

 Thanks,
 Tania



 On Mon, Jul 7, 2014 at 9:46 PM, Samuel Gnaniah sam...@wso2.com wrote:

 Hi Johann and Pavithra,

 Thanks for reporting this. I'll work on this and make the changes.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Mon, Jul 7, 2014 at 8:46 PM, Johann Nallathamby joh...@wso2.com
 wrote:




 On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi pavit...@wso2.com
 wrote:

 As per the documentation [1], it's possible to use 
 org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager for
 both read-only and read/write operations.

 So I used the configuration found at [2] (configuration for AD) and
 still I was able to add users to AD.
 Please note that following property is not there in the provided
 configuration
 Property name=ReadOnlytrue/Property

 Then I added that property to user-mgt.xml and started the server
 again. Still I can add uses to AD (which is wrong since I need read only
 user store)

 What I need to get clarified is..

 1) IMO the information in documentation is not correct.. or am I
 missing something?


 @Samuel: Can you please correct the docs. AD should only be used for
 read-write. Clearly mention that if AD is to be used as read-only we need
 to use ReadOnlyLDAPUserStoreManager.



 2) Can we make the ActiveDirectoryUserStoreManager read - only by
 adding following property ?
 Property name=ReadOnlytrue/Property



 3) If above configuration is not correct, what is the
 recommended/correct user store manager if we need to configure read only 
 AD
 as primary user store?
 We use ReadOnlyLDAPUserStoreManager  and it works fine.. Is it the
 right way of configuring user store?


 Yes. This is the right way of using it.


  [1]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores
 [2]
 https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores#ConfiguringPrimaryUserStores-Read-onlymode
 ​
 Regards,
 Pavithra​

 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94777207357

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




 --
 Thanks  Regards,

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

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



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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270



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


Re: [Dev] Updated Invitation: Code Review - ESB sample Test cases @ Fri Jul 4, 2014 3pm - 4pm (Waruna Perera)

2014-07-07 Thread Waruna Perera
Hi,

Following are the notes taken at the code review conducted.


   - Addressing URL's should not be hard coded. Extract them using util
   methods.
   - Do not assert for the output which is given same as the input. Always
   try to check different string in the expected request.
   - Put descriptive assertion messages.
   - Sample test cases should follow the same naming convention.
   - Always recommended to use assert equal.
   - Always try to send more than 1 message in testing scenarios.
   - Put JIRA's for changes and bugs found
   - Add test group in test cases.
   - When using log viewer client try to clear logs before run test methods.
   - When accessing file paths use set env as STAND_ALONE.


BR,


On Fri, Jul 4, 2014 at 3:04 PM, waru...@wso2.com waru...@wso2.com wrote:

 This event has been changed.
 more details »
 https://www.google.com/calendar/event?action=VIEWeid=NTRubHRjb3BtM2xqanQwbG5jdTlsOTFqYnMgZGV2QHdzbzIub3Jntok=MTYjd2FydW5hcEB3c28yLmNvbWQ1OGVmNGQwNjA0NWEzZDc3ZGE2NjA2NzAxZWMyNGM3NTg0M2UzNjcctz=Asia/Colombohl=en
 Code Review - ESB sample Test cases
 Waruna And Amalka Doing the code review
 *When*
 Fri Jul 4, 2014 3pm – 4pm Colombo
 *Where*
 *Changed: *LK 3rd Floor Meeting Room - Kernel (map
 http://maps.google.lk/maps?q=LK+3rd+Floor+Meeting+Room+-+Kernelhl=en)
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/warunap
 https://plus.google.com/hangouts/_/wso2.com/warunap?hceid=d2FydW5hcEB3c28yLmNvbQ.54nltcopm3ljjt0lncu9l91jbs
 *Calendar*
 Waruna Perera
 *Who*
 •
 Waruna Perera - organizer
 •
 Amalka Subasinghe
 •
 Nuwan Wimalasekara
 •
 Dimuthu De Lanerolle
 •
 Krishantha Samaraweera
 •
 Malintha Adikari
 •
 dev@wso2.org

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=NTRubHRjb3BtM2xqanQwbG5jdTlsOTFqYnMgZGV2QHdzbzIub3Jnrst=1tok=MTYjd2FydW5hcEB3c28yLmNvbWQ1OGVmNGQwNjA0NWEzZDc3ZGE2NjA2NzAxZWMyNGM3NTg0M2UzNjcctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=NTRubHRjb3BtM2xqanQwbG5jdTlsOTFqYnMgZGV2QHdzbzIub3Jnrst=3tok=MTYjd2FydW5hcEB3c28yLmNvbWQ1OGVmNGQwNjA0NWEzZDc3ZGE2NjA2NzAxZWMyNGM3NTg0M2UzNjcctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=NTRubHRjb3BtM2xqanQwbG5jdTlsOTFqYnMgZGV2QHdzbzIub3Jnrst=2tok=MTYjd2FydW5hcEB3c28yLmNvbWQ1OGVmNGQwNjA0NWEzZDc3ZGE2NjA2NzAxZWMyNGM3NTg0M2UzNjcctz=Asia/Colombohl=en*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=NTRubHRjb3BtM2xqanQwbG5jdTlsOTFqYnMgZGV2QHdzbzIub3Jntok=MTYjd2FydW5hcEB3c28yLmNvbWQ1OGVmNGQwNjA0NWEzZDc3ZGE2NjA2NzAxZWMyNGM3NTg0M2UzNjcctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this courtesy email at the account dev@wso2.org because
 you are an attendee of this event.

 To stop receiving future notifications for this event, decline this event.
 Alternatively you can sign up for a Google account at
 https://www.google.com/calendar/ and control your notification settings
 for your entire calendar.

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




-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Android agent registration issue

2014-07-07 Thread Mir Islam
Any other idea? Anything else I can look into to see why the clientkey uri
is not getting resolved?




On Sun, Jul 6, 2014 at 6:55 PM, Mir Islam mis...@mirislam.com wrote:

 Thanks Chan. Still the same 404. So the url is not resolving to a service
 that client is looking for. Below from access_log

 192.168.10.102 - - [06/Jul/2014:18:50:51 -0700] POST
 /emm/api/devices/clientkey HTTP/1.1 *404* - - Mozilla/5.0 (
 compatible ), Android


 On Sun, Jul 6, 2014 at 5:46 PM, Chan duli...@wso2.com wrote:

 Hi Islam,
 I have commented on the StackOverflow issue. Also please note that you
 can run the EMM server without any configurations and enroll an android
 device. As for configurations to host on an IP - please do change the sso
 idp config file as well [1]

 [1] - https://docs.wso2.com/display/EMM110/General+Server+Configurations
 (step 2)

 Cheers~


 On Mon, Jul 7, 2014 at 4:57 AM, Mir Islam mis...@mirislam.com wrote:

 Hi everyone, just started to look into wso2, specifically the emm
 server. Got a question regarding installation and registration of device.
 If this not the right list, please let me know where I can post. I have
 posted on StackOverFlow as well.
 http://stackoverflow.com/questions/24600830/wso2-android-agent-getting-404-from-emm

 Basically the agent is getting a 404 error when agent is POSTing to
 /emm/api/devices/clientkey URL. I am wondering if I have configured
 something wrong on server side. I have tried with latest GIT src and built
 the agent.

 Thanks
 Mir

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




 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
  WSO2 Inc
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*



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


[Dev] Error in wso2.war

2014-07-07 Thread Gayan Gunawardana
Hi,

I am getting this error after replacing wso2.war in IS 5.0.0.

component from org.wso2.carbon.identity.scim.provider/4.2.2 in chunk 11
release tag.

[2014-07-08 09:56:55,437] ERROR
{org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
servlet [SCIMServlet] in context with path [/wso2] threw exception [Servlet
execution threw an exception] with root cause
java.lang.ClassNotFoundException:
org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil
at
org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:138)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at
org.wso2.carbon.identity.scim.provider.filter.AuthenticationFilter.handleRequest(AuthenticationFilter.java:42)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:190)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:101)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)


-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Validate Mediator - Feature Support

2014-07-07 Thread Sohani Weerasinghe
Hi,

What I meant was in Validate Mediator when we are defining a feature, we
can only include the feature  XMLConstants.FEATURE_SECURE_PROCESSING
http://docs.oracle.com/javase/6/docs/api/javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING
(
i.e http://javax.xml.XMLConstants/feature/secure-processing). I just want
to know is there any particular reason for only supporting this feature?

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine


On Mon, Jul 7, 2014 at 6:40 PM, Vijayaratha Vijayasingam rat...@wso2.com
wrote:

 Not clear..Validate mediator is used to validate the requests based on the
 schema..


 On 7 July 2014 18:30, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 It seems validate mediator only supports the feature
 XMLConstants.FEATURE_SECURE_PROCESSING
 http://docs.oracle.com/javase/6/docs/api/javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING
 .

 Are there any other features supported by the validate mediator? If not,
 is there any particular reason for only supporting the above feature?

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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




 --
 -Ratha
 mobile: (+94)755906608

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


Re: [Dev] LogViewerStub returns null Logevent element in G-reg 5.0.0

2014-07-07 Thread Denuwanthi De Silva
Hi Amani,

Thanks for the clarification. It's working fine now.
Yes, as you mentioned the CARBON_MEMORY appender was not properly
configured in GREG due to an ES log4j.properties file overriding.

Thanks,


On Tue, Jul 8, 2014 at 7:02 AM, Amani Soysa am...@wso2.com wrote:

 Hi

 Looks like CARBON_MEMORY appender is not properly configured in GREG.
 Please make sure following properties are there in log4j.properties file

 # The memory appender for logging
 log4j.appender.CARBON_MEMORY=
 *org.wso2.carbon.logging.appender.CarbonMemoryAppender*
 log4j.appender.CARBON_MEMORY.bufferSize=2000

 log4j.appender.CARBON_MEMORY.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
 # ConversionPattern will be overridden by the configuration setting in the
 DB
 log4j.appender.CARBON_MEMORY.layout.ConversionPattern=TID: [%T] [%S] [%d]
 %P%5p {%c} - %x %m {%c}%n
 log4j.appender.CARBON_MEMORY.layout.TenantPattern=%U%@%D [%T] [%S]

 log4j.appender.CARBON_MEMORY.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
 log4j.appender.CARBON_MEMORY.threshold=DEBUG

 and also* CARBON_MEMORY* is added to the root logger.


 On Mon, Jul 7, 2014 at 5:24 PM, Denuwanthi De Silva denuwan...@wso2.com
 wrote:

 Hi,

 G-reg 5.0.0 SNAPSHOT display 'null' in management console, when try to
 view 'System logs', with the following message:
 *The log must be configured to use the
 org.wso2.carbon.logging.core.util.MemoryAppender to view entries through
 the admin console*

 The corresponding test case, shows that it is due to 'LogViewerStub'
 returning a null 'Logevent', when trying to access system logs.

 The JIRA issue can be found in [1]

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



 Thanks,
 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com



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




 --
 Amani Soysa
 Associate Technical Lead
 Mobile: +94772325528
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware




-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev