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  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  wrote:
>
>> In master-datasources.xml (wso2is-5.0.0/repository/conf/datasources) you
>> can increase the database connection pool size by
>> increasing 50 property.
>>
>> 
>> WSO2_CARBON_DB
>> The datasource used for registry and user
>> manager
>> 
>> jdbc/WSO2CarbonDB
>> 
>> 
>> 
>>
>> jdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6
>> wso2carbon
>> wso2carbon
>> org.h2.Driver
>> 50
>> 6
>> true
>> SELECT 1
>> 3
>> 
>> 
>> 
>>
>> Hope this will help. Thanks.
>>
>>
>> On Mon, Jul 7, 2014 at 11:55 AM, Daya Attapattu  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
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewP

[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
java.uti

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

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

> Hi Gayashan,
>
> I ll look at it and let you know.
>
> Regards.
>
>
> On Mon, Jul 7, 2014 at 6:43 AM, Gayashan Amarasinghe 
> 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  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 
>>> 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 
 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 *
> lean.enterprise.middlewa

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 
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  wrote:
>
>> Hi Gayashan,
>>
>> I ll look at it and let you know.
>>
>> Regards.
>>
>>
>> On Mon, Jul 7, 2014 at 6:43 AM, Gayashan Amarasinghe 
>> 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 
>>> 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 >>> > 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 
> 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} -  

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  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  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  wrote:
>>
>>> In master-datasources.xml (wso2is-5.0.0/repository/conf/datasources) you
>>> can increase the database connection pool size by
>>> increasing 50 property.
>>>
>>> 
>>> WSO2_CARBON_DB
>>> The datasource used for registry and user
>>> manager
>>> 
>>> jdbc/WSO2CarbonDB
>>> 
>>> 
>>> 
>>>
>>> jdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6
>>> wso2carbon
>>> wso2carbon
>>> org.h2.Driver
>>> 50
>>> 6
>>> true
>>> SELECT 1
>>> 3
>>> 
>>> 
>>> 
>>>
>>> Hope this will help. Thanks.
>>>
>>>
>>> On Mon, Jul 7, 2014 at 11:55 AM, Daya Attapattu  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  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  wrote:
>>
>>> Hi Gayashan,
>>>
>>> I ll look at it and let you know.
>>>
>>> Regards.
>>>
>>>
>>> On Mon, Jul 7, 2014 at 6:43 AM, Gayashan Amarasinghe 
>>> 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 
 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 
>> 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.

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


http://wso2.org/bps/config";>




  































   














125


 true 






 




datasources.properties
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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



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

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


[Dev] Identity Server: NPE

2014-07-07 Thread Daya Attapattu
I am running IS with 400 users (400 threads from Jmeter).  After running
for about 2 hours, I got an NPE.

 ERROR {org.wso2.carbon.identity.entitlement.EntitlementService} -  Error
occurred while evaluating XACML request
java.lang.NullPointerException
at
org.wso2.carbon.identity.entitlement.EntitlementService.getDecision(EntitlementService.java:51)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
 at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
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.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: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.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)


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


[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  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 *
*Mobile:(+94)777219209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


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

*email: ruch...@wso2.com ,   blog:
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  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 
> 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 *
>
> *email: ruch...@wso2.com ,   blog:
> 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  wrote:

>  This event has been changed.
> more details »
> 
> 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
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/subash
> 
> *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
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google 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  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 
> wrote:
>
>>  This event has been changed.
>> more details »
>> 
>> 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
>> )
>> *Video call*
>> https://plus.google.com/hangouts/_/wso2.com/subash
>> 
>> *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
>> 
>> - Maybe
>> 
>> - No
>> *
>> more options »
>> 
>>
>> Invitation from Google 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.c

[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

.

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 
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  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 
>> 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 *
>>
>> *email: ruch...@wso2.com ,   blog:
>> 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 *

*email: ruch...@wso2.com ,   blog:
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  wrote:

> Hi All,
>
> It seems validate mediator only supports the feature
> XMLConstants.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  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:  encoding="utf-8"?> :Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "> y>http://samples.esb.wso2.org/xsd";
> xmlns:sam="http:
> //samples.esb.wso2.org">
>   
>  
> 100
> 
>Colomobo
>1
>Indika Sampath
> 
>  
>   
>
> [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.(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
> org.apache.axis2.transport.rabbitmq.AxisRabbitMQException: Error while
> creating
> connection pool
> at
> org.apache.axis2.transport.rabbitmq.RabbitMQMessageSender

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

>
> 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 *
___
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  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  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]  Senaka Fernando*
>> Software Architect; WSO2 Inc.; http://wso2.com
>>
>>
>>
>> * Member; Apache Software Foundation; http://apache.org
>> E-mail: senaka AT 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
>> *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  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  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  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  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]  Senaka Fernando*
>>> Software Architect; WSO2 Inc.; http://wso2.com
>>>
>>>
>>>
>>> * Member; Apache Software Foundation; http://apache.org
>>> E-mail: senaka AT 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
>>> *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]  Senaka Fernando*
Software Architect; WSO2 Inc.; http://wso2.com



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


*M: +44 782 741 1966 Linked-In: 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  wrote:

>
>
>
> On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi 
> 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
>> true
>>
>> 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 ?
>> true
>>
>
>>
>> 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 *
>
___
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  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 *
___
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  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 
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  wrote:

> updating correct title
>
>
> On Fri, Jul 4, 2014 at 11:46 AM, Amalka Subasinghe 
> 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]
>>
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ser="
>> http://services.samples";>
>>
>>   
>>
>>   http://ws.apache.org/ns/synapse
>> ">c1
>>
>>   
>>
>>   
>>
>>  
>>
>> 
>>
>> 1
>>
>>  
>>
>>   
>>
>> 
>>
>> 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 Tania Mahanama
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  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 
> wrote:
>
>>
>>
>>
>> On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi 
>> 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
>>> true
>>>
>>> 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 ?
>>> true
>>>
>>
>>>
>>> 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 *
>>
>
>
> ___
> 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] 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  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  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 
>> wrote:
>>
>>>
>>>
>>>
>>> On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi 
>>> 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
 true

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

>>>

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


http://ws.apache.org/ns/synapse";>

   
org.apache.activemq.jndi.ActiveMQInitialContextFactory
   tcp://localhost:61616
   QueueConnectionFactory
   queue
   ordersQueue
   
   



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



 On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi 
 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
> true
>
> 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 ?
> true
>

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

>>>
>>>
>>> ___
>>> 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  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  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  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 
>>> wrote:
>>>



 On Tue, Jul 1, 2014 at 11:56 AM, Pavithra Madurangi 
 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
> true
>
> 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 ?
> true
>

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

>>>
>>>
>>> ___
>>> 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  wrote:

> This event has been changed.
> more details »
> 
> 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
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/warunap
> 
> *Calendar*
> Waruna Perera
> *Who*
> •
> Waruna Perera - organizer
> •
> Amalka Subasinghe
> •
> Nuwan Wimalasekara
> •
> Dimuthu De Lanerolle
> •
> Krishantha Samaraweera
> •
> Malintha Adikari
> •
> dev@wso2.org
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google 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  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  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  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 *
>> *  ~Mobile +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me *
>> *  ~Twitter @dulitharw *
>>   *~Github @dulichan *
>>   *~SO @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

(
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 
wrote:

> Not clear..Validate mediator is used to validate the requests based on the
> schema..
>
>
> On 7 July 2014 18:30, Sohani Weerasinghe  wrote:
>
>> Hi All,
>>
>> It seems validate mediator only supports the feature
>> XMLConstants.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  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 
> 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


[Dev] ClassNotFoundException when starting API Manager 1.6 patch0342 - Sporadic

2014-07-07 Thread Chaminda Jayawardena
Getting this error *sporadically* when it is starting the API Manager 1.6
with the patch 0342 locally.

Possibility of the occurrence is high with below Env and could not find a
JIRA for this.

Environment:
**Changed the offset and used as the Gateway Node.
**Another instance is already running as the Key Manager Node.
**One WSO2 AS instance is also running in the background.

*[2014-07-08 10:38:36,273] ERROR - StandardContext Servlet / threw load()
exception*
*java.lang.ClassNotFoundException:
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet*
* at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)*
* at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)*
* at
org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)*
* at
org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)*
* at
org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)*
* at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)*
* at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)*
* at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)*
* at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)*
* at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)*
* at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)*
* at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)*
* at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)*
* at java.util.concurrent.FutureTask.run(FutureTask.java:166)*
* at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)*
* at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)*
* at java.lang.Thread.run(Thread.java:722)*


-- 
Thanks & Regards

*Chaminda Jayawardena*
Senior Software Engineer - QA
WSO2 Inc. - http://wso2.com
+94-77-7725234
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ES 1.2.0 server hang-on intermittently - with Carbon 4.3.0

2014-07-07 Thread Ayesha Dissanayaka
Hi,

I was trying to fix "ES 1.2.0 Pack randomly hangs on server start up".[01]

While tying to fix above issue, I compared debug logs and observed that
server caused to hang-up when
"org.wso2.carbon.tomcat.ext.servlet.DelegationServlet" is not activated.

Compared debug logs are as bellow.

--- Log snippet when server continued to start
sucesfully---

TID: [0] [ES] [2014-07-06 16:50:09,297] DEBUG
{org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
{org.apache.axiom.om.util.StAXUtils}
TID: [0] [ES] [2014-07-06 16:50:09,302] DEBUG
{org.wso2.carbon.user.mgt.permission.ManagementPermissionsAdder} -  Adding
permissions in bundleorg.wso2.carbon.webapp.mgt
{org.wso2.carbon.user.mgt.permission.ManagementPermissionsAdder}
TID: [0] [ES] [2014-07-06 16:50:09,302] DEBUG
{org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
{org.apache.axiom.om.util.StAXUtils}
TID: [0] [ES] [2014-07-06 16:50:09,307] DEBUG
{org.wso2.jaggery.scxml.internal.RealmServiceComponent} -  Obtained realm
service. {org.wso2.jaggery.scxml.internal.RealmServiceComponent}
TID: [0] [ES] [2014-07-06 16:50:09,311] DEBUG
{org.wso2.carbon.policy.internal.Activator} -  * Security secpolicy
 {org.wso2.carbon.policy.internal.Activator}
*TID: [0] [ES] [2014-07-06 16:50:11,974] DEBUG
{org.wso2.carbon.tomcat.ext.servlet.DelegationServlet} -  within the init
method of DelegationServlet
{org.wso2.carbon.tomcat.ext.servlet.DelegationServlet}*
TID: [0] [ES] [2014-07-06 16:50:12,164] DEBUG
{org.wso2.carbon.core.init.CarbonServerManager} -  Starting Carbon
initialization... {org.wso2.carbon.core.init.CarbonServerManager}
TID: [0] [ES] [2014-07-06 16:50:12,168] DEBUG
{org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
{org.apache.axiom.om.util.StAXUtils}
.

--- Logs snippet when server randomly hang-up
---

TID: [0] [ES] [2014-07-06 16:41:40,772] DEBUG
{org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
{org.apache.axiom.om.util.StAXUtils}
TID: [0] [ES] [2014-07-06 16:41:40,775] DEBUG
{org.wso2.jaggery.scxml.internal.RealmServiceComponent} -  Obtained realm
service. {org.wso2.jaggery.scxml.internal.RealmServiceComponent}
TID: [0] [ES] [2014-07-06 16:41:40,779] DEBUG
{org.wso2.carbon.policy.internal.Activator} -  * Security secpolicy
 {org.wso2.carbon.policy.internal.Activator}
TID: [0] [ES] [2014-07-06 16:42:07,983] DEBUG
{org.wso2.carbon.caching.impl.CacheCleanupTask} -  Cache expiry scheduler
running... {org.wso2.carbon.caching.impl.CacheCleanupTask}
TID: [0] [ES] [2014-07-06 16:42:07,984] DEBUG
{org.wso2.carbon.caching.impl.CacheImpl} -  Cache:Claim.Cache,
entry:Invalidate.Cache.Key, lastAccessed: Sun Jul 06 16:41:39 IST 2014,
lastModified: Sun Jul 06 16:41:39 IST 2014
{org.wso2.carbon.caching.impl.CacheImpl}
TID: [0] [ES] [2014-07-06 16:42:07,985] DEBUG
{org.wso2.carbon.caching.impl.CacheImpl} -  Cache:PERMISSION_CACHE,
entry:org.wso2.carbon.user.core.authorization.PermissionTreeCacheKey@675471,
lastAccessed: Sun Jul 06 16:41:40 IST 2014, lastModified: Sun Jul 06
16:41:39 IST 2014 {org.wso2.carbon.caching.impl.CacheImpl}
TID: [0] [ES] [2014-07-06 16:42:07,985] DEBUG
{org.wso2.carbon.caching.impl.CacheImpl} -  Cache:REG_PATH_CACHE,
entry:org.wso2.carbon.registry.core.caching.RegistryCacheKey@89615645,
lastAccessed: Sun Jul 06 16:41:40 IST 2014, lastModified: Sun Jul 06
16:41:40 IST 2014 {org.wso2.carbon.caching.impl.CacheImpl}
TID: [0] [ES] [2014-07-06 16:42:07,985] DEBUG
{org.wso2.carbon.caching.impl.CacheImpl} -  Cache:REG_PATH_CACHE,
entry:org.wso2.carbon.registry.core.caching.RegistryCacheKey@18e25946,
lastAccessed: Sun Jul 06 16:41:40 IST 2014, lastModified: Sun Jul 06
16:41:40 IST 2014 {org.wso2.carbon.caching.impl.CacheImpl}


Above issue is observed in Carbon 4.3.0.

According to the observations, this severer hang-up is caused when
*org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init()
*is not executed. (i.e org.wso2.carbon.tomcat.ext is not active)

[01] https://wso2.org/jira/browse/STORE-451

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ES 1.2.0 server hang-on intermittently - with Carbon 4.3.0

2014-07-07 Thread Chamil Jeewantha
Hi Ayesha,

<>

I have noted the following issue in AS on JIT (Carbon 4.3.0) which occurs
randomly. See the logged exception. Chaminda has reported the same issue on API
Manager 1.6 with the patch 0342.

[2014-07-08 10:51:47,189] ERROR {org.apache.catalina.core.StandardContext}
-  Servlet / threw load() exception
java.lang.ClassNotFoundException:
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
at
org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
 at
org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
at
org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1143)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
 at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
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:895)
 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)




On Tue, Jul 8, 2014 at 11:27 AM, Ayesha Dissanayaka  wrote:

> Hi,
>
> I was trying to fix "ES 1.2.0 Pack randomly hangs on server start up".[01]
>
> While tying to fix above issue, I compared debug logs and observed that
> server caused to hang-up when
> "org.wso2.carbon.tomcat.ext.servlet.DelegationServlet" is not activated.
>
> Compared debug logs are as bellow.
>
> --- Log snippet when server continued to start
> sucesfully---
>
> TID: [0] [ES] [2014-07-06 16:50:09,297] DEBUG
> {org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
> org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
> {org.apache.axiom.om.util.StAXUtils}
> TID: [0] [ES] [2014-07-06 16:50:09,302] DEBUG
> {org.wso2.carbon.user.mgt.permission.ManagementPermissionsAdder} -  Adding
> permissions in bundleorg.wso2.carbon.webapp.mgt
> {org.wso2.carbon.user.mgt.permission.ManagementPermissionsAdder}
> TID: [0] [ES] [2014-07-06 16:50:09,302] DEBUG
> {org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
> org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
> {org.apache.axiom.om.util.StAXUtils}
> TID: [0] [ES] [2014-07-06 16:50:09,307] DEBUG
> {org.wso2.jaggery.scxml.internal.RealmServiceComponent} -  Obtained realm
> service. {org.wso2.jaggery.scxml.internal.RealmServiceComponent}
> TID: [0] [ES] [2014-07-06 16:50:09,311] DEBUG
> {org.wso2.carbon.policy.internal.Activator} -  * Security secpolicy
>  {org.wso2.carbon.policy.internal.Activator}
> *TID: [0] [ES] [2014-07-06 16:50:11,974] DEBUG
> {org.wso2.carbon.tomcat.ext.servlet.DelegationServlet} -  within the init
> method of DelegationServlet
> {org.wso2.carbon.tomcat.ext.servlet.DelegationServlet}*
> TID: [0] [ES] [2014-07-06 16:50:12,164] DEBUG
> {org.wso2.carbon.core.init.CarbonServerManager} -  Starting Carbon
> initialization... {org.wso2.carbon.core.init.CarbonServerManager}
> TID: [0] [ES] [2014-07-06 16:50:12,168] DEBUG
> {org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
> org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
> {org.apache.axiom.om.util.StAXUtils}
> .
>
> --- Logs snippet when server randomly hang-up
> ---
>
> TID: [0] [ES] [2014-07-06 16:41:40,772] DEBUG
> {org.apache.axiom.om.util.StAXUtils} -  XMLStreamReader is
> org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper
> {org.apache.axiom.om.util.StAXUtils}
> TID: [0] [ES] [2014-07-06 16:41:40,775] DEBUG
> {org.wso2.jaggery.scxml.internal.RealmServiceComponent} -  Obtained realm
> service. {org.wso2.jaggery.scxml.internal.RealmServiceComponent}
> TID: [0] [ES] [2014-07-06 16:41:40,779] DEBUG
> {org.wso2.carbon.policy.internal.Activator} -  * Security secpolicy
>  {org.wso2.carbon.policy.internal.Activator}
> TID: [0] [ES] [2014-07-06 16:42:07,983] DEBUG
> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Cache expiry scheduler
> running... {org.wso2.carbon.caching.impl.CacheCleanupTask}
> TID: [0] [ES] [2014-07-06 16:42:07,984] DEBUG
> {org.wso2.carbon.caching.impl.CacheImpl} -  Cache:Claim.Cache,
> entry:Invalidate.Cache.Key, lastAccessed: Sun Jul 06 16:41:39 IST 2014,
> lastModified: Sun Jul 06 16:41:

[Dev] BPMN Humantask Jaggery app date picker

2014-07-07 Thread Amal Gunatilake
Hi All,

In the BPMN Humantask UI, in certain task completion forms, we need to add
the date picker to get the user input.

Following are the options available

1) Use the JQueryUI library to generate the date picker (via adding
JQueryUI JS library).
2) Use the HTML 5 date picker html tag (  ).

If we use the 2nd option then the date picker will only work with HTML 5
supportive browsers and this will finally return the date format
as"-mm-dd", but the backend need the input as "dd/mm/" format. So
we may have to again reformat the initial input via a JS script.

Where as JQuery UI will support in any browser and give us the option to
format the date using the inbuilt method $.datepicker.formatDate(
"yy-mm-dd", inputDate ). If we use JQuery UI in future we might be able to
use this library in displaying graphs, etc.

Please let us know your feedback on what is the best option to go ahead
with.

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev