[Dev] Stratos CC Server startup error

2013-07-24 Thread Udara Liyanage
Hi,

I get the following error when Stratos cloud controller is starting up.
However *jamm_0.2.5.wso2v2.ja*r has the class *MemoryTest * and it is in
active state.

Someone also seems to find the same in error in BAM

http://stackoverflow.com/questions/17787044/cant-run-bam-2-3-0-server-due-error-java-lang-noclassdeffounderror-org-github



ERROR {org.apache.cassandra.service.AbstractCassandraDaemon} -  Exception
encountered during startup
java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter
at org.apache.cassandra.db.Memtable.init(Memtable.java:118)
at org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)
at org.apache.cassandra.db.DataTracker.init(DataTracker.java:63)
at
org.apache.cassandra.db.ColumnFamilyStore.init(ColumnFamilyStore.java:230)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)
at org.apache.cassandra.db.Table.initCf(Table.java:371)
at org.apache.cassandra.db.Table.init(Table.java:304)
at org.apache.cassandra.db.Table.open(Table.java:119)
at org.apache.cassandra.db.Table.open(Table.java:97)
at org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:273)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:171)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
at
org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 15 more
java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter
at org.apache.cassandra.db.Memtable.init(Memtable.java:118)
at org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)
at org.apache.cassandra.db.DataTracker.init(DataTracker.java:63)
at
org.apache.cassandra.db.ColumnFamilyStore.init(ColumnFamilyStore.java:230)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)
at org.apache.cassandra.db.Table.initCf(Table.java:371)
at org.apache.cassandra.db.Table.init(Table.java:304)
at org.apache.cassandra.db.Table.open(Table.java:119)
at org.apache.cassandra.db.Table.open(Table.java:97)
at org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:273)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:171)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
at
org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 15 more
Exception encountered during startup: org/github/jamm/MemoryMeter
[2013-07-24 11:26:57,234] ERROR
{org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
Core bundle
java.lang.IllegalStateException: Shutdown in progress
at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:39)
at java.lang.Runtime.addShutdownHook(Runtime.java:192)
at
org.wso2.carbon.user.core.util.DatabaseUtil.logDatabaseConnections(DatabaseUtil.java:544)
at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:70)
at
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at

[Dev] Please commit all user core changes asap

2013-07-24 Thread Asela Pathberiya
Hi All,

If there are any changes that you have done for user core... Please try to
finish them EOD and commit them... (or else provide patches)...  We need to
freeze the user core ASAP.

Thanks,
Asela.

-- 
Thanks  Regards,
Asela

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


[Dev] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project wss4j: Compilation failure: Compilation failure:

2013-07-24 Thread Ayashkantha Ramasinghe
Hi,

I got the $subject while building the trunk-kernel and I tried with a clean
repo.

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1:26.633s
[INFO] Finished at: Wed Jul 24 11:37:50 IST 2013
[INFO] Final Memory: 286M/1123M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
(default-compile) on project wss4j: Compilation failure: Compilation
failure:
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
EncryptionKey is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[11,33]
EncTicketPart is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[12,33]
Ticket is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[13,40]
KeyUsage is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[14,24]
DerInputStream is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[15,24]
DerValue is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[50,2]
EncryptionKey is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[57,9]
EncryptionKey is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[58,2]
DerInputStream is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[58,36]
DerInputStream is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[59,2]
DerValue is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[64,3]
DerValue is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[66,19]
DerValue is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[74,34]
DerInputStream is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[74,9]
EncryptionKey is internal proprietary API and may be removed in a future
release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[76,2]
DerValue is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[78,2]
DerValue is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[81,3]
DerValue is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[90,27]
Ticket is internal proprietary API and may be removed in a future release
[ERROR]
[ERROR]
/home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[93,37]
Ticket is internal proprietary API and may be removed in a 

[Dev] How to enable SSL for MySQL

2013-07-24 Thread Chanika Geeganage
Hi,

I followed several tutorials to enable SSL for MyQSL. [1] [2]. But still
I'm getting following configuration when I check whether the SSL is enabled.

mysql show variables like %ssl%;
+-+-+
| Variable_name | Value   |
+-+-+
| have_openssl  | DISABLED   |
| have_ssl   | DISABLED   |
| ssl_ca   | /etc/mysql/ca-cert.pem|
| ssl_capath   | |
| ssl_cert | /etc/mysql/server-cert.pem |
| ssl_cipher| |
| ssl_key | /etc/mysql/server-key.pem  |
+-+--+


[1]
http://www.howtoforge.com/how-to-set-up-mysql-database-replication-with-ssl-encryption-on-centos-5.4
[2]
https://mifosforge.jira.com/wiki/display/MIFOS/How+to+enable+MySQL+SSL+on+Ubuntu

Have I missed any steps? Please advise.

-- 
Best Regards..

Chanika Geeganage
Software Engineer
WSO2, Inc.; http://wso2.com

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


Re: [Dev] How to enable SSL for MySQL

2013-07-24 Thread Udara Rathnayake
Hi Chanika,

Your server is capable of supporting SSL,you need to start in a mode which
enable them to be used according to the reference [1].

[1] http://dev.mysql.com/doc/refman/5.1/en/configuring-for-ssl.html


On Wed, Jul 24, 2013 at 12:16 PM, Chanika Geeganage chan...@wso2.comwrote:

 Hi,

 I followed several tutorials to enable SSL for MyQSL. [1] [2]. But still
 I'm getting following configuration when I check whether the SSL is enabled.

 mysql show variables like %ssl%;
 +-+-+
 | Variable_name | Value   |
 +-+-+
 | have_openssl  | DISABLED   |
 | have_ssl   | DISABLED   |
 | ssl_ca   | /etc/mysql/ca-cert.pem|
 | ssl_capath   | |
 | ssl_cert | /etc/mysql/server-cert.pem |
 | ssl_cipher| |
 | ssl_key | /etc/mysql/server-key.pem  |
 +-+--+


 [1]
 http://www.howtoforge.com/how-to-set-up-mysql-database-replication-with-ssl-encryption-on-centos-5.4
 [2]
 https://mifosforge.jira.com/wiki/display/MIFOS/How+to+enable+MySQL+SSL+on+Ubuntu

 Have I missed any steps? Please advise.

 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Mobile: +94773522586

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




-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

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


[Dev] Compilation error on org.wso2.carbon.automation.api in trunk/platform

2013-07-24 Thread Geeth Munasinghe
I am getting this error on trunk/platform in org.wso2.carbon.automation.api

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.automation.api: Compilation
failure: Compilation failure:
[ERROR]
/home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[27,48]
cannot find symbol
[ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
[ERROR] location: package org.wso2.carbon.identity.entitlement.stub
[ERROR]
/home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[69,32]
cannot find symbol
[ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
[ERROR] location: class
org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
[ERROR]
/home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[83,32]
cannot find symbol
[ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
[ERROR] location: class
org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
[ERROR]
/home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[27,48]
cannot find symbol
[ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
[ERROR] location: package org.wso2.carbon.identity.entitlement.stub
[ERROR]
/home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[69,32]
cannot find symbol
[ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
[ERROR] location: class
org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
[ERROR]
/home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[83,32]
cannot find symbol
[ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
[ERROR] location: class
org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.carbon.automation.api



Thanks
Geeth


*G. K. S. Munasinghe
*
*Software Engineer,*
*WSO2, Inc. http://wso2.com *
*lean.enterprise.middleware.*
*
*
email: ge...@wso2.com
phone:(+94) 777911226
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to enable SSL for MySQL

2013-07-24 Thread Chanika Geeganage
I tried with it, but still no luck.

Here is how the permission are set to .pem files

-rw-r--r-- 1 root root 1375 Jul 24 11:31 ca-cert.pem
-rw-r--r-- 1 root root 1679 Jul 24 11:30 ca-key.pem
-rw-r--r-- 1 root root 1257 Jul 24 11:33 client-cert.pem
-rw-r--r-- 1 root root 1704 Jul 24 11:33 client-key.pem
-rw-r--r-- 1 root root 1070 Jul 24 11:33 client-req.pem
-rw-r--r-- 1 root root 1237 Jul 24 11:32 server-cert.pem
-rw-r--r-- 1 root root 1704 Jul 24 11:32 server-key.pem
-rw-r--r-- 1 root root 1050 Jul 24 11:32 server-req.pem

Thanks



On Wed, Jul 24, 2013 at 12:25 PM, Udara Rathnayake uda...@wso2.com wrote:

 Hi Chanika,

 Your server is capable of supporting SSL,you need to start in a mode which
 enable them to be used according to the reference [1].

 [1] http://dev.mysql.com/doc/refman/5.1/en/configuring-for-ssl.html


 On Wed, Jul 24, 2013 at 12:16 PM, Chanika Geeganage chan...@wso2.comwrote:

 Hi,

 I followed several tutorials to enable SSL for MyQSL. [1] [2]. But still
 I'm getting following configuration when I check whether the SSL is enabled.

 mysql show variables like %ssl%;
 +-+-+
 | Variable_name | Value   |
 +-+-+
 | have_openssl  | DISABLED   |
 | have_ssl   | DISABLED   |
 | ssl_ca   | /etc/mysql/ca-cert.pem|
 | ssl_capath   | |
 | ssl_cert | /etc/mysql/server-cert.pem |
 | ssl_cipher| |
 | ssl_key | /etc/mysql/server-key.pem  |
 +-+--+


 [1]
 http://www.howtoforge.com/how-to-set-up-mysql-database-replication-with-ssl-encryption-on-centos-5.4
 [2]
 https://mifosforge.jira.com/wiki/display/MIFOS/How+to+enable+MySQL+SSL+on+Ubuntu

 Have I missed any steps? Please advise.

 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Mobile: +94773522586

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




 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com




-- 
Best Regards..

Chanika Geeganage
Software Engineer
WSO2, Inc.; http://wso2.com

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


Re: [Dev] How to deploy secured web apps with AS current trunk

2013-07-24 Thread Amila Suriarachchi
On Wed, Jul 24, 2013 at 10:38 AM, Asela Pathberiya as...@wso2.com wrote:

 Yes there are some issues in user core now...  We are fixing them..
  basically when there is no multiple user store, PRIMARY prefix will
 not be there...


It should work even there are multiple user stores.

thanks,
Amila.


 Thanks,
 Asela.


 On Tue, Jul 23, 2013 at 6:40 PM, Amila Suriarachchi am...@wso2.comwrote:

 I build a pack from the current trunk and now it adds userstore name
 twice. eg. PRIMARY/PRIMARY/myrole

 thanks,
 Amila.


 On Tue, Jul 23, 2013 at 5:48 PM, Amila Suriarachchi am...@wso2.comwrote:




 On Tue, Jul 23, 2013 at 5:29 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Amila,

 For my Information, what are these pre-fixes ?


 Just create a role. Then you will see :)

 Basically if it is an internal role, role is named as internal/myrole or
 in a user store PRIMARY/myrole.

 thanks,
 Amila.



  On Tue, Jul 23, 2013 at 4:00 PM, Amila Suriarachchi am...@wso2.comwrote:

 hi,

 With AS 5.1.0 the attached web app works when we create a role with
 the name manager and assign to a user. But with the new model it seems to
 be not working due to some prefixes added to the role names.

 please have a look.

 thanks,
 Amila.

 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




 --
 Thanks  Regards,
 Asela

 Mobile : +94 777 625 933




-- 
*Amila Suriarachchi*

Software Architect
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

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


Re: [Dev] How to deploy secured web apps with AS current trunk

2013-07-24 Thread Asela Pathberiya
On Wed, Jul 24, 2013 at 12:54 PM, Amila Suriarachchi am...@wso2.com wrote:




 On Wed, Jul 24, 2013 at 10:38 AM, Asela Pathberiya as...@wso2.com wrote:

 Yes there are some issues in user core now...  We are fixing them..
  basically when there is no multiple user store, PRIMARY prefix will
 not be there...


 It should work even there are multiple user stores.


Sorry i mean...  there would not be PRIMARY by default  but when
configure multiple user store,  user/roles in secondary user stores would
be qualified with this name...

Thanks,
Asela.


 thanks,
 Amila.


 Thanks,
 Asela.


 On Tue, Jul 23, 2013 at 6:40 PM, Amila Suriarachchi am...@wso2.comwrote:

 I build a pack from the current trunk and now it adds userstore name
 twice. eg. PRIMARY/PRIMARY/myrole

 thanks,
 Amila.


 On Tue, Jul 23, 2013 at 5:48 PM, Amila Suriarachchi am...@wso2.comwrote:




 On Tue, Jul 23, 2013 at 5:29 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Amila,

 For my Information, what are these pre-fixes ?


 Just create a role. Then you will see :)

 Basically if it is an internal role, role is named as internal/myrole
 or in a user store PRIMARY/myrole.

 thanks,
 Amila.



  On Tue, Jul 23, 2013 at 4:00 PM, Amila Suriarachchi 
 am...@wso2.comwrote:

 hi,

 With AS 5.1.0 the attached web app works when we create a role with
 the name manager and assign to a user. But with the new model it seems to
 be not working due to some prefixes added to the role names.

 please have a look.

 thanks,
 Amila.

 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




 --
 Thanks  Regards,
 Asela

 Mobile : +94 777 625 933




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




-- 
Thanks  Regards,
Asela

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


Re: [Dev] How to deploy secured web apps with AS current trunk

2013-07-24 Thread Asela Pathberiya
On Wed, Jul 24, 2013 at 12:58 PM, Asela Pathberiya as...@wso2.com wrote:




 On Wed, Jul 24, 2013 at 12:54 PM, Amila Suriarachchi am...@wso2.comwrote:




 On Wed, Jul 24, 2013 at 10:38 AM, Asela Pathberiya as...@wso2.comwrote:

 Yes there are some issues in user core now...  We are fixing them..
  basically when there is no multiple user store, PRIMARY prefix will
 not be there...


 It should work even there are multiple user stores.


 Sorry i mean...  there would not be PRIMARY by default  but when
 configure multiple user store,  user/roles in secondary user stores would
 be qualified with this name...


not this   with user store's domain name that has been configured.



 Thanks,
 Asela.


 thanks,
 Amila.


 Thanks,
 Asela.


 On Tue, Jul 23, 2013 at 6:40 PM, Amila Suriarachchi am...@wso2.comwrote:

 I build a pack from the current trunk and now it adds userstore name
 twice. eg. PRIMARY/PRIMARY/myrole

 thanks,
 Amila.


 On Tue, Jul 23, 2013 at 5:48 PM, Amila Suriarachchi am...@wso2.comwrote:




 On Tue, Jul 23, 2013 at 5:29 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Amila,

 For my Information, what are these pre-fixes ?


 Just create a role. Then you will see :)

 Basically if it is an internal role, role is named as internal/myrole
 or in a user store PRIMARY/myrole.

 thanks,
 Amila.



  On Tue, Jul 23, 2013 at 4:00 PM, Amila Suriarachchi 
 am...@wso2.comwrote:

 hi,

 With AS 5.1.0 the attached web app works when we create a role with
 the name manager and assign to a user. But with the new model it seems 
 to
 be not working due to some prefixes added to the role names.

 please have a look.

 thanks,
 Amila.

 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




 --
 Thanks  Regards,
 Asela

 Mobile : +94 777 625 933




 --
 *Amila Suriarachchi*

 Software Architect
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 71 3082805




 --
 Thanks  Regards,
 Asela

 Mobile : +94 777 625 933




-- 
Thanks  Regards,
Asela

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


Re: [Dev] Compilation error on org.wso2.carbon.automation.api in trunk/platform

2013-07-24 Thread Krishantha Samaraweera
Fixed now..

Failure was due to EntitlementPolicyAdminService API change.

Thanks,
Krishantha.

On Wed, Jul 24, 2013 at 12:37 PM, Geeth Munasinghe ge...@wso2.com wrote:

 I am getting this error on trunk/platform in org.wso2.carbon.automation.api

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.automation.api: Compilation
 failure: Compilation failure:
 [ERROR]
 /home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[27,48]
 cannot find symbol
 [ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
 [ERROR] location: package org.wso2.carbon.identity.entitlement.stub
 [ERROR]
 /home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[69,32]
 cannot find symbol
 [ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
 [ERROR] location: class
 org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
 [ERROR]
 /home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[83,32]
 cannot find symbol
 [ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
 [ERROR] location: class
 org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
 [ERROR]
 /home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[27,48]
 cannot find symbol
 [ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
 [ERROR] location: package org.wso2.carbon.identity.entitlement.stub
 [ERROR]
 /home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[69,32]
 cannot find symbol
 [ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
 [ERROR] location: class
 org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
 [ERROR]
 /home/geeth/workspace/carbon/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/entitlement/EntitlementPolicyServiceClient.java:[83,32]
 cannot find symbol
 [ERROR] symbol  : class EntitlementPolicyAdminServiceIdentityException
 [ERROR] location: class
 org.wso2.carbon.automation.api.clients.identity.entitlement.EntitlementPolicyServiceClient
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.automation.api



 Thanks
 Geeth


 *G. K. S. Munasinghe
 *
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com *
 *lean.enterprise.middleware.*
 *
 *
 email: ge...@wso2.com
 phone:(+94) 777911226

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


[Dev] Two files having same name in one svn location : EndPointAndRegistryPage.java EndpointAndRegistryPage.java

2013-07-24 Thread Sumedha Rubasinghe
Hi,
We have two files having the same name inside
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation
framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/selenium/appfactory/resources/


EndPointAndRegistryPage.javahttps://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/selenium/appfactory/resources/EndPointAndRegistryPage.java
EndpointAndRegistryPage.javahttps://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/selenium/appfactory/resources/EndpointAndRegistryPage.java

This is causing

svn: Can't open file
'platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/selenium/appfactory/resources/.svn/tmp/text-base/EndpointAndRegistryPage.java.svn-base':
No such file or directory
^

when performing SVN operations in some systems. Can we please remove one of
these?


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


Re: [Dev] Two files having same name in one svn location : EndPointAndRegistryPage.java EndpointAndRegistryPage.java

2013-07-24 Thread Krishantha Samaraweera
Fixed in revision 178910

Thanks,
Krishantha.

On Wed, Jul 24, 2013 at 1:31 PM, Sumedha Rubasinghe sume...@wso2.comwrote:

 Hi,
 We have two files having the same name inside
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation
 framework/org.wso2.carbon.automation.api/src/main/java
 /org/wso2/carbon/automation/api/selenium/appfactory/resources/


 EndPointAndRegistryPage.javahttps://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/selenium/appfactory/resources/EndPointAndRegistryPage.java
 EndpointAndRegistryPage.javahttps://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/selenium/appfactory/resources/EndpointAndRegistryPage.java

 This is causing

 svn: Can't open file 'platform-integration/test-automation-framework/org.
 wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api
 /selenium/appfactory/resources/.svn/tmp/text-base/EndpointAndRegistryPage.
 java.svn-base': No such file or directory
 ^

 when performing SVN operations in some systems. Can we please remove one
 of these?


 --
 /sumedha
 b :  bit.ly/sumedha

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


[Dev] Generating UIs for RXTs in a Jaggery App

2013-07-24 Thread Sameera Medagammaddegedara
Hello Everyone,

We are attempting to ;

   1. Locate all available artifacts (RXT) in the Governance Registry
   2. Generate a UI to facilitate creation of new artifacts (Create, View,
   Delete and Update)   inside a Jaggery application

We have reached an impasse in determining how best to generate the UI.The
available options we have located so far are given below;

*Option 1*
Read and pass the RXT file.

*Option 2*
Pass the WSDL file generated by the Governance Registry [1][2].

*Question*
What would be the ideal choice? Have we missed any other options?

*References;*

[1] CRUD operation support for Governance Artifacts,* URL: *
http://docs.wso2.org/wiki/display/Governance453/CRUD+operation+support+for+Configurable+Governance+Artifacts

[2] Configurable Governance Artifacts (RXT), *URL: *
http://docs.wso2.org/wiki/pages/viewpage.action?pageId=16191336

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


[Dev] Accessing Carbon Server data to compute Atom URL

2013-07-24 Thread Shelan Perera
Hi,

As i have discussed offline with Sameera it is not advisable to retrieve
server data because when tenant users access the registry this information
is more privileged to tennant users than its level.We are using this code
to compute atom URL [1].

Due to this we have problems when browsing registry in tennant mode [2]

org.wso2.carbon.registry.common.ui.utils.UIUtil::getAtomURL()


* ServerData data = client.getServerData();*
if (data != null  data.getRegistryType() != null
 data.getRegistryType().equals(remote)) {
remoteRegistryURL = data.getRemoteRegistryURL();
if (data.getRemoteRegistryChroot() != null 

!data.getRemoteRegistryChroot().equals(RegistryConstants.PATH_SEPARATOR)) {
chroot = data.getRemoteRegistryChroot();
if
(!chroot.startsWith(RegistryConstants.PATH_SEPARATOR)) {
chroot = RegistryConstants.PATH_SEPARATOR + chroot;
}
if (chroot.endsWith(RegistryConstants.PATH_SEPARATOR)) {
chroot = chroot.substring(0, chroot.length() -
RegistryConstants.PATH_SEPARATOR.length());
}
}
}


Solution is to get rid of this code. Please share if you have any concerns
over this.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/registry/org.wso2.carbon.registry.common.ui/src/main/java/org/wso2/carbon/registry/common/ui/utils/UIUtil.java


[2] https://wso2.org/jira/browse/REGISTRY-1684
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Generating UIs for RXTs in a Jaggery App

2013-07-24 Thread Eranda Sooriyabandara
Hi Sameera,

On Wed, Jul 24, 2013 at 2:48 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hello Everyone,

 We are attempting to ;

1. Locate all available artifacts (RXT) in the Governance Registry
2. Generate a UI to facilitate creation of new artifacts (Create,
View, Delete and Update)   inside a Jaggery application

 We have reached an impasse in determining how best to generate the UI.The
 available options we have located so far are given below;

 *Option 1*
 Read and pass the RXT file.

 *Option 2*
 Pass the WSDL file generated by the Governance Registry [1][2].

 *Question*
 What would be the ideal choice? Have we missed any other options?



I might not understand the question you are asking but you can't your
Option 1 and Option 2 are not options but you need to read the rxt and
create the UI according to the configuration constructs. I highly recommend
you to check how it works in the Governance Registry.

thanks
Eranda



 *References;*

 [1] CRUD operation support for Governance Artifacts,* URL: *
 http://docs.wso2.org/wiki/display/Governance453/CRUD+operation+support+for+Configurable+Governance+Artifacts

 [2] Configurable Governance Artifacts (RXT), *URL: *
 http://docs.wso2.org/wiki/pages/viewpage.action?pageId=16191336

 Thank You,
 Sameera

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




-- 
*Eranda Sooriyabandara
*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/



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


[Dev] Ability to integrate and run TCKs with porducts

2013-07-24 Thread Vijitha Kumara
Hi All,

I think it'd be good if we have the $Subject. What need to be done is to
have a simple config in pom.xml (or some other config method) which enables
a carbon server get started (and shutdown/cleanup) and run some external
test cases along with it. As I see we currently depend on TestNG this might
involve some custom task execution for Ant based JUnit tests etc... (not
sure whether we have tried that?) or something similar.

For example if you have a TCK jar (which might be based on JUnit tests) it
should be able to run with the framework as part of the integration test
flow and get the results. This would be very much useful when it comes to
specification implementations so it can run any other standard compatible
TCKs as part of the product integration test suite to showcase the
compliance.





Regards,
Vijitha.








-- 
Vijitha Kumara
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: viji...@wso2.com


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


[Dev] Fwd: Generating UIs for RXTs in a Jaggery App

2013-07-24 Thread Ruchira Wageesha
On Wed, Jul 24, 2013 at 2:46 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hello Everyone,

 We are attempting to ;

1. Locate all available artifacts (RXT) in the Governance Registry
2. Generate a UI to facilitate creation of new artifacts (Create,
View, Delete and Update)   inside a Jaggery application

 We have reached an impasse in determining how best to generate the UI.The
 available options we have located so far are given below;

 *Option 1*
 Read and pass the RXT file.

Only concern I had regarding this was, how to read the RXT definitions in a
distributed deployment. Anyway, as RXT definitions are copied from file
system to the registry, we should be able to read from there instead of
reading from the file system. Once we have the rxt content in the Jaggery
application, then RXT UIs can be generated by reusing the way which GReg
uses.


 *Option 2*
 Pass the WSDL file generated by the Governance Registry [1][2].

 *Question*
 What would be the ideal choice? Have we missed any other options?

 *References;*

 [1] CRUD operation support for Governance Artifacts,* URL: *
 http://docs.wso2.org/wiki/display/Governance453/CRUD+operation+support+for+Configurable+Governance+Artifacts

 [2] Configurable Governance Artifacts (RXT), *URL: *
 http://docs.wso2.org/wiki/pages/viewpage.action?pageId=16191336

 Thank You,
 Sameera




-- 
*Ruchira Wageesha
**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: ruch...@wso2.com,   blog: ruchirawageesha.blogspot.com,   mobile:
+94 77 5493444*



-- 
*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] Fwd: Generating UIs for RXTs in a Jaggery App

2013-07-24 Thread Ajith Vitharana
On Wed, Jul 24, 2013 at 3:32 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 On Wed, Jul 24, 2013 at 2:46 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hello Everyone,

 We are attempting to ;

1. Locate all available artifacts (RXT) in the Governance Registry
2. Generate a UI to facilitate creation of new artifacts (Create,
View, Delete and Update)   inside a Jaggery application

 We have reached an impasse in determining how best to generate the UI.The
 available options we have located so far are given below;

 *Option 1*
 Read and pass the RXT file.

 Only concern I had regarding this was, how to read the RXT definitions in
 a distributed deployment. Anyway, as RXT definitions are copied from file
 system to the registry, we should be able to read from there instead of
 reading from the file system. Once we have the rxt content in the Jaggery
 application, then RXT UIs can be generated by reusing the way which GReguses.


RXTs already stored in registry.
/_system/governance/repository/components/org.wso2.carbon.governance/types

Thanks
Ajith.


 *Option 2*
 Pass the WSDL file generated by the Governance Registry [1][2].

 *Question*
 What would be the ideal choice? Have we missed any other options?

 *References;*

 [1] CRUD operation support for Governance Artifacts,* URL: *
 http://docs.wso2.org/wiki/display/Governance453/CRUD+operation+support+for+Configurable+Governance+Artifacts

 [2] Configurable Governance Artifacts (RXT), *URL: *
 http://docs.wso2.org/wiki/pages/viewpage.action?pageId=16191336

 Thank You,
 Sameera




 --
 *Ruchira Wageesha
 **Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: ruch...@wso2.com,   blog: ruchirawageesha.blogspot.com,   mobile: +94
 77 5493444*



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




-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: App Factory Code Review - ETA @ Thu Jul 25, 2013 2pm - 3pm (sham...@wso2.com)

2013-07-24 Thread Shamika Ariyawansa
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130725T083000Z
DTEND:20130725T093000Z
DTSTAMP:20130724T114255Z
ORGANIZER;CN=Shamika Ariyawansa:mailto:sham...@wso2.com
UID:m8decilmfv9d80mrvb8m327...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chanaka Jayasena;X-NUM-GUESTS=0:mailto:chan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ajanthan Balachandran;X-NUM-GUESTS=0:mailto:ajant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Shamika Ariyawansa;X-NUM-GUESTS=0:mailto:sham...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Punnadi Gunarathna;X-NUM-GUESTS=0:mailto:punn...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Asanka Dissanayake;X-NUM-GUESTS=0:mailto:asan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manisha Gayathri;X-NUM-GUESTS=0:mailto:mani...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ramith Jayasinghe;X-NUM-GUESTS=0:mailto:ram...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Danushka Fernando;X-NUM-GUESTS=0:mailto:danush...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;C
 N=LK #59 2nd Floor Room;X-NUM-GUESTS=0:mailto:wso2.com_38323432343934383931
 3...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ranga Siriwardena;X-NUM-GUESTS=0:mailto:ra...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Gayan Dhanushka;X-NUM-GUESTS=0:mailto:gay...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nihanth Joseph;X-NUM-GUESTS=0:mailto:niha...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Janaka Ranabahu;X-NUM-GUESTS=0:mailto:jan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Shiroshica Kulatilake;X-NUM-GUESTS=0:mailto:sh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20130724T113603Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEWeid=bThkZWNpbG1mdjlkODBtcnZiOG0zMjdvMWcgZGV2QHdzbzIub3Jntok=MTYjc2hhb
 WlrYUB3c28yLmNvbWIzYjEzNmQ3MzRkYmZhOTM1OWJjNTJiMjM4YWQ2NzkzNjZmNjI2YmQctz=
 Asia/Colombohl=en.
LAST-MODIFIED:20130724T114255Z
LOCATION:LK #59 2nd Floor Room
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:App Factory Code Review - ETA
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] Why are we using JSP Scriplets?

2013-07-24 Thread Amila Maha Arachchi
Hi Venura,

There are a few places where we have used custom tags. For example,
pagination support.

IMO, tags should be used for re-usable code segment only. Otherwise it will
be an waste of effort. And, I also agree that there are some places where
we can improve by introducing tags. Having said all these things, my
feeling is we, as a middleware company shows less interest in the UI layer
since there is less interaction with it (once configured, it is running :)).

Regards,
AmilaM.


On Wed, Jul 24, 2013 at 9:15 AM, Venura Kahawala ven...@wso2.com wrote:

 Hi,

 Most of the UI components which are written using JSP have bunch of
 scriptlets, which is a not a recommended way of implementing UI using JSP
 as per my knowledge.
 If we use custom tags, anybody looking at the page can understand what the
 page is doing very easily as well as we can easily debug a logic since it
 is written in pure java.

 I'm not aware whether there are any specific reasons behind using
 Scriplets, but personally I think custom tags are much cleaner, and
 reusable.

 Please share your thoughts.

 Regards,
 Venura

 --
 Senior Software Engineer

 Mobile: +94 71 82 300 20


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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

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


Re: [Dev] Invitation: App Factory Code Review - ETA @ Thu Jul 25, 2013 2pm - 3pm (sham...@wso2.com)

2013-07-24 Thread Shamika Ariyawansa
Crucible project can be found at - http://wso2.org/crucible/cru/WAF003-6


On Wed, Jul 24, 2013 at 5:12 PM, Shamika Ariyawansa sham...@wso2.comwrote:

 more details 
 »https://www.google.com/calendar/event?action=VIEWeid=bThkZWNpbG1mdjlkODBtcnZiOG0zMjdvMWcgZGV2QHdzbzIub3Jntok=MTYjc2hhbWlrYUB3c28yLmNvbWIzYjEzNmQ3MzRkYmZhOTM1OWJjNTJiMjM4YWQ2NzkzNjZmNjI2YmQctz=Asia/Colombohl=en
 App Factory Code Review - ETA
 *When*
 Thu Jul 25, 2013 2pm – 3pm Colombo
 *Where*
 LK #59 2nd Floor Room 
 (maphttp://maps.google.lk/maps?q=LK+%2359+2nd+Floor+Roomhl=en
 )
 *Calendar*
 sham...@wso2.com
 *Who*
 •
 Shamika Ariyawansa - organizer
 •
 Chanaka Jayasena
 •
 Ajanthan Balachandran
 •
 Punnadi Gunarathna
 •
 Asanka Dissanayake
 •
 Manisha Gayathri
 •
 Ramith Jayasinghe
 •
 Danushka Fernando
 •
 Ranga Siriwardena
 •
 Gayan Dhanushka
 •
 Nihanth Joseph
 •
 Janaka Ranabahu
 •
 Shiroshica Kulatilake
 •
 Dimuthu Leelarathne
 •
 dev@wso2.org

 Going?   
 ***Yeshttps://www.google.com/calendar/event?action=RESPONDeid=bThkZWNpbG1mdjlkODBtcnZiOG0zMjdvMWcgZGV2QHdzbzIub3Jnrst=1tok=MTYjc2hhbWlrYUB3c28yLmNvbWIzYjEzNmQ3MzRkYmZhOTM1OWJjNTJiMjM4YWQ2NzkzNjZmNjI2YmQctz=Asia/Colombohl=en-
 Maybehttps://www.google.com/calendar/event?action=RESPONDeid=bThkZWNpbG1mdjlkODBtcnZiOG0zMjdvMWcgZGV2QHdzbzIub3Jnrst=3tok=MTYjc2hhbWlrYUB3c28yLmNvbWIzYjEzNmQ3MzRkYmZhOTM1OWJjNTJiMjM4YWQ2NzkzNjZmNjI2YmQctz=Asia/Colombohl=en-
 Nohttps://www.google.com/calendar/event?action=RESPONDeid=bThkZWNpbG1mdjlkODBtcnZiOG0zMjdvMWcgZGV2QHdzbzIub3Jnrst=2tok=MTYjc2hhbWlrYUB3c28yLmNvbWIzYjEzNmQ3MzRkYmZhOTM1OWJjNTJiMjM4YWQ2NzkzNjZmNjI2YmQctz=Asia/Colombohl=en
 ***more options 
 »https://www.google.com/calendar/event?action=VIEWeid=bThkZWNpbG1mdjlkODBtcnZiOG0zMjdvMWcgZGV2QHdzbzIub3Jntok=MTYjc2hhbWlrYUB3c28yLmNvbWIzYjEzNmQ3MzRkYmZhOTM1OWJjNTJiMjM4YWQ2NzkzNjZmNjI2YmQctz=Asia/Colombohl=en

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

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

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

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




-- 
Shamika Ariyawansa
Senior Software Engineer

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


[Dev] Status of Dashboards in AppFactory/aPaaS : MileStone 1

2013-07-24 Thread Gayan Dhanushka
*Objective: *To have a thin slice that spans through

- Event publishing to BAM - application creation

Completed

- Creation of scripts for the captured events to convert data into UES
gadgets

Completed

- Create a store with UES gadgets which represent the events captured

Completed

- Create a default dashboard with these gadgets

Completed

- Do the above for two existing roles in AF

Completed

Thanks

Gayan



-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


[Dev] G-Reg Test failure : Capp deployment.

2013-07-24 Thread Ajith Vitharana
Hi All,

I'm deploying a *mix_1.0.0.car [1]* file and it is deploying fine.
applicationAdmin.listAllApplications() retuns the name as *mix_1.0.0*.
But the application list  view it display  as *mix . *
*
*
in artifact.xml has following entry:
*artifact name=mix version=1.0.0 type=carbon/application
*
*
*
What it the actual name should assert ? Or  it is a bug ?

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/resources/car/mix_1.0.0.car

Thanks
Ajith.

-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
attachment: app-list.png___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg Test failure : Capp deployment.

2013-07-24 Thread Harshana Martin
Hi Ajith,


On Wed, Jul 24, 2013 at 7:27 AM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 I'm deploying a *mix_1.0.0.car [1]* file and it is deploying fine.
 applicationAdmin.listAllApplications() retuns the name as *mix_1.0.0*.
 But the application list  view it display  as *mix . *
 *
 *
 in artifact.xml has following entry:
 *artifact name=mix version=1.0.0 type=carbon/application
 *
 *
 *
 What it the actual name should assert ? Or  it is a bug ?


C-App name is mix and the version is 1.0.0.

List All Applications API might be returning the Name+_+Version which is
wrong.

If we look up the name, it has to return just mix and the version should
separately provided as 1.0.0.

Thanks and Regards,
Harshana


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/resources/car/mix_1.0.0.car

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




-- 

Harshana Martin
Associate Technical Lead
WSO2 Inc. : http://wso2.com

Mobile: +94 775 998 115
Profile: https://www.google.com/profiles/harshana05
Blog: http://harshana05.blogspot.com
Twitter: http://twitter.com/harshana05
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CurrentSession.getUser() returns PRIMARY/admin.

2013-07-24 Thread Asela Pathberiya
I guess,  this is also due the the adding PRIMARY prefix in to the
default user store...?  we will remove it soon.  sorry we are
still re-factoring the user core code  Once it is done..  we will let
you know...

Thanks,
Asela.


On Wed, Jul 24, 2013 at 9:51 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 While debugging a test I found the $subject. This is lead to a lot of test
 failures and feature broken.
 What should be the correct behavior ?

 registryContext.getLogWriter().addLog(
 sourcePath, CurrentSession.getUser(),
 LogEntry.ADD_ASSOCIATION,
 associationType + ; + targetPath);

 [1]
 https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/session/CurrentSession.java

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




-- 
Thanks  Regards,
Asela

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


Re: [Dev] G-Reg Test failure : Capp deployment.

2013-07-24 Thread Ajith Vitharana
On Wed, Jul 24, 2013 at 9:15 PM, Harshana Martin harsh...@wso2.com wrote:

 Hi Ajith,


 On Wed, Jul 24, 2013 at 7:27 AM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 I'm deploying a *mix_1.0.0.car [1]* file and it is deploying fine.
 applicationAdmin.listAllApplications() retuns the name as *mix_1.0.0*.
 But the application list  view it display  as *mix . *
 *
 *
 in artifact.xml has following entry:
 *artifact name=mix version=1.0.0 type=carbon/application
 *
 *
 *
 What it the actual name should assert ? Or  it is a bug ?


 C-App name is mix and the version is 1.0.0.

 List All Applications API might be returning the Name+_+Version which is
 wrong.


Ok. If so this is a bug. I found  some AS test failures has fixed just
changing the asset value.
r177579 - KasunG.

 [1]https://wso2.org/jira/browse/WSAS-1283

Thanks
Ajith.


 If we look up the name, it has to return just mix and the version 
 shouldseparately
 provided as 1.0.0.

 Thanks and Regards,
 Harshana


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/resources/car/mix_1.0.0.car

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --

 Harshana Martin
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 775 998 115
 Profile: https://www.google.com/profiles/harshana05
 Blog: http://harshana05.blogspot.com
 Twitter: http://twitter.com/harshana05




-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg Test failure : Capp deployment.

2013-07-24 Thread Ajith Vitharana
Hi Harshana,

I found that this change has made to fix the issue [1]. We have to change
the tests according to that fix.

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

Thanks
Ajith.




On Wed, Jul 24, 2013 at 7:57 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 I'm deploying a *mix_1.0.0.car [1]* file and it is deploying fine.
 applicationAdmin.listAllApplications() retuns the name as *mix_1.0.0*.
 But the application list  view it display  as *mix . *
 *
 *
 in artifact.xml has following entry:
 *artifact name=mix version=1.0.0 type=carbon/application
 *
 *
 *
 What it the actual name should assert ? Or  it is a bug ?

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/resources/car/mix_1.0.0.car

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg Test failure : Capp deployment.

2013-07-24 Thread Kasun Gajasinghe
Hi Ajith,

ApplicationAdmin has been changed to support two CARs with same name but
different versions. [1] So, in the patch provided in the JIRA, they have
used application id to be the car name + version. Therefore, we have
changed our integration tests accordingly.

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





On Wed, Jul 24, 2013 at 10:14 PM, Ajith Vitharana aji...@wso2.com wrote:




 On Wed, Jul 24, 2013 at 9:15 PM, Harshana Martin harsh...@wso2.comwrote:

 Hi Ajith,


  On Wed, Jul 24, 2013 at 7:27 AM, Ajith Vitharana aji...@wso2.comwrote:

 Hi All,

 I'm deploying a *mix_1.0.0.car [1]* file and it is deploying fine.
 applicationAdmin.listAllApplications() retuns the name as *mix_1.0.0*.
 But the application list  view it display  as *mix . *
 *
 *
 in artifact.xml has following entry:
 *artifact name=mix version=1.0.0 type=carbon/application
 *
 *
 *
 What it the actual name should assert ? Or  it is a bug ?


 C-App name is mix and the version is 1.0.0.

 List All Applications API might be returning the Name+_+Version which
 is wrong.


 Ok. If so this is a bug. I found  some AS test failures has fixed just
 changing the asset value.
 r177579 - KasunG.

  [1]https://wso2.org/jira/browse/WSAS-1283

 Thanks
 Ajith.


 If we look up the name, it has to return just mix and the version 
 shouldseparately
 provided as 1.0.0.

 Thanks and Regards,
 Harshana


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/resources/car/mix_1.0.0.car

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --

 Harshana Martin
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 775 998 115
 Profile: https://www.google.com/profiles/harshana05
 Blog: http://harshana05.blogspot.com
 Twitter: http://twitter.com/harshana05




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* http://kasunbg.org


*
twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


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


Re: [Dev] Accessing Carbon Server data to compute Atom URL

2013-07-24 Thread Senaka Fernando
Hi Shelan,

This code is no longer in use AFAIU, so we can remove it.

Thanks,
Senaka.


On Wed, Jul 24, 2013 at 2:53 PM, Shelan Perera she...@wso2.com wrote:

 Hi,

 As i have discussed offline with Sameera it is not advisable to retrieve
 server data because when tenant users access the registry this information
 is more privileged to tennant users than its level.We are using this code
 to compute atom URL [1].

 Due to this we have problems when browsing registry in tennant mode [2]

 org.wso2.carbon.registry.common.ui.utils.UIUtil::getAtomURL()


 * ServerData data = client.getServerData();*
 if (data != null  data.getRegistryType() != null
  data.getRegistryType().equals(remote)) {
 remoteRegistryURL = data.getRemoteRegistryURL();
 if (data.getRemoteRegistryChroot() != null 

 !data.getRemoteRegistryChroot().equals(RegistryConstants.PATH_SEPARATOR)) {
 chroot = data.getRemoteRegistryChroot();
 if
 (!chroot.startsWith(RegistryConstants.PATH_SEPARATOR)) {
 chroot = RegistryConstants.PATH_SEPARATOR + chroot;
 }
 if (chroot.endsWith(RegistryConstants.PATH_SEPARATOR))
 {
 chroot = chroot.substring(0, chroot.length() -
 RegistryConstants.PATH_SEPARATOR.length());
 }
 }
 }


 Solution is to get rid of this code. Please share if you have any concerns
 over this.

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/registry/org.wso2.carbon.registry.common.ui/src/main/java/org/wso2/carbon/registry/common/ui/utils/UIUtil.java


 [2] https://wso2.org/jira/browse/REGISTRY-1684
 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




-- 
* http://us13.wso2con.com/
*
*
*
*Senaka Fernando*
Senior Technical Lead; 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: +94 77 322 1818
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] Accessing Carbon Server data to compute Atom URL

2013-07-24 Thread Shelan Perera
Hi,

Yes it is redundant. Resolved the issue after that refactoring with
mentioning the reason.

Thanks


On Wed, Jul 24, 2013 at 10:38 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi Shelan,

 This code is no longer in use AFAIU, so we can remove it.

 Thanks,
 Senaka.


 On Wed, Jul 24, 2013 at 2:53 PM, Shelan Perera she...@wso2.com wrote:

 Hi,

 As i have discussed offline with Sameera it is not advisable to retrieve
 server data because when tenant users access the registry this information
 is more privileged to tennant users than its level.We are using this code
 to compute atom URL [1].

 Due to this we have problems when browsing registry in tennant mode [2]

 org.wso2.carbon.registry.common.ui.utils.UIUtil::getAtomURL()


 * ServerData data = client.getServerData();*
 if (data != null  data.getRegistryType() != null
  data.getRegistryType().equals(remote)) {
 remoteRegistryURL = data.getRemoteRegistryURL();
 if (data.getRemoteRegistryChroot() != null 

 !data.getRemoteRegistryChroot().equals(RegistryConstants.PATH_SEPARATOR)) {
 chroot = data.getRemoteRegistryChroot();
 if
 (!chroot.startsWith(RegistryConstants.PATH_SEPARATOR)) {
 chroot = RegistryConstants.PATH_SEPARATOR +
 chroot;
 }
 if
 (chroot.endsWith(RegistryConstants.PATH_SEPARATOR)) {
 chroot = chroot.substring(0, chroot.length() -
 RegistryConstants.PATH_SEPARATOR.length());
 }
 }
 }


 Solution is to get rid of this code. Please share if you have any
 concerns over this.

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/registry/org.wso2.carbon.registry.common.ui/src/main/java/org/wso2/carbon/registry/common/ui/utils/UIUtil.java


 [2] https://wso2.org/jira/browse/REGISTRY-1684
 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




 --
 * http://us13.wso2con.com/
 *
 *
 *
 *Senaka Fernando*
 Senior Technical Lead; 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: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware




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


[Dev] Test failure- Capp deployment.

2013-07-24 Thread Ajith Vitharana
Hi All,

The following test case has tested  a method to verify the registry
location of the Capp.
But in 4.2.0 it doesn't create such registry location. (It works in G-Reg
4.5.3)

What is the expected behavior ??

@Test(description = Search whether CApp is in
/_system/config/repository/applications,
dependsOnMethods = {uploadCApplicationWithGar})
public void isCApplicationInRegistry() throws RegistryException {
registry.get(*/_system/config/repository/applications/ + cAppName*
);
}


[1]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/capp/deployment/test/UploadCarFileWithGarTestCase.java

Thanks
Ajith.

-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test failure- Capp deployment.

2013-07-24 Thread Ajith Vitharana
As Team,

Please verify this ? We need to fix this type of issues soon.

Thanks
Ajith.




On Wed, Jul 24, 2013 at 11:26 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 The following test case has tested  a method to verify the registry
 location of the Capp.
 But in 4.2.0 it doesn't create such registry location. (It works in G-Reg
 4.5.3)

 What is the expected behavior ??

 @Test(description = Search whether CApp is in
 /_system/config/repository/applications,
 dependsOnMethods = {uploadCApplicationWithGar})
 public void isCApplicationInRegistry() throws RegistryException {
 registry.get(*/_system/config/repository/applications/ +
 cAppName*);
 }


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/capp/deployment/test/UploadCarFileWithGarTestCase.java

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350





-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test failure- Capp deployment.

2013-07-24 Thread Supun Malinga
Hi Pradeep,

Can you guys have a look pls. AFAIR you were doing some CApp improvements..

thanks,


On Thu, Jul 25, 2013 at 6:53 AM, Ajith Vitharana aji...@wso2.com wrote:

 As Team,

 Please verify this ? We need to fix this type of issues soon.

 Thanks
 Ajith.




 On Wed, Jul 24, 2013 at 11:26 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 The following test case has tested  a method to verify the registry
 location of the Capp.
 But in 4.2.0 it doesn't create such registry location. (It works in G-Reg
 4.5.3)

 What is the expected behavior ??

 @Test(description = Search whether CApp is in
 /_system/config/repository/applications,
 dependsOnMethods = {uploadCApplicationWithGar})
 public void isCApplicationInRegistry() throws RegistryException {
 registry.get(*/_system/config/repository/applications/ +
 cAppName*);
 }


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/capp/deployment/test/UploadCarFileWithGarTestCase.java

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350





 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




-- 
Supun Malinga,

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


Re: [Dev] Test failure- Capp deployment.

2013-07-24 Thread Sagara Gunathunga
On Wed, Jul 24, 2013 at 10:17 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Pradeep,

 Can you guys have a look pls. AFAIR you were doing some CApp improvements..


Supun,

Please correct me if I'm wrong here, according to my understanding AS team
only maintain CApp features related to services and webapp ?

Thanks !


 thanks,


 On Thu, Jul 25, 2013 at 6:53 AM, Ajith Vitharana aji...@wso2.com wrote:

 As Team,

 Please verify this ? We need to fix this type of issues soon.

 Thanks
 Ajith.




 On Wed, Jul 24, 2013 at 11:26 PM, Ajith Vitharana aji...@wso2.comwrote:

 Hi All,

 The following test case has tested  a method to verify the registry
 location of the Capp.
 But in 4.2.0 it doesn't create such registry location. (It works in
 G-Reg 4.5.3)

 What is the expected behavior ??

 @Test(description = Search whether CApp is in
 /_system/config/repository/applications,
 dependsOnMethods = {uploadCApplicationWithGar})
 public void isCApplicationInRegistry() throws RegistryException {
 registry.get(*/_system/config/repository/applications/ +
 cAppName*);
 }


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/capp/deployment/test/UploadCarFileWithGarTestCase.java

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350





 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 http://wso2.org
 email - sup...@wso2.com sup...@wso2.com
 mobile - 071 56 91 321




-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test failure- Capp deployment.

2013-07-24 Thread Supun Malinga
On Thu, Jul 25, 2013 at 7:52 AM, Sagara Gunathunga sag...@wso2.com wrote:




 On Wed, Jul 24, 2013 at 10:17 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Pradeep,

 Can you guys have a look pls. AFAIR you were doing some CApp
 improvements..


 Supun,

 Please correct me if I'm wrong here, according to my understanding AS team
 only maintain CApp features related to services and webapp ?

Yeah.. Ajith you should be talking to the kernel team :).

thanks,


 Thanks !


 thanks,


 On Thu, Jul 25, 2013 at 6:53 AM, Ajith Vitharana aji...@wso2.com wrote:

 As Team,

 Please verify this ? We need to fix this type of issues soon.

 Thanks
 Ajith.




 On Wed, Jul 24, 2013 at 11:26 PM, Ajith Vitharana aji...@wso2.comwrote:

 Hi All,

 The following test case has tested  a method to verify the registry
 location of the Capp.
 But in 4.2.0 it doesn't create such registry location. (It works in
 G-Reg 4.5.3)

 What is the expected behavior ??

 @Test(description = Search whether CApp is in
 /_system/config/repository/applications,
 dependsOnMethods = {uploadCApplicationWithGar})
 public void isCApplicationInRegistry() throws RegistryException {
 registry.get(*/_system/config/repository/applications/ +
 cAppName*);
 }


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/capp/deployment/test/UploadCarFileWithGarTestCase.java

 Thanks
 Ajith.

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350





 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 http://wso2.org
 email - sup...@wso2.com sup...@wso2.com
 mobile - 071 56 91 321




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com




-- 
Supun Malinga,

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


Re: [Dev] DSS 3.0.2 release

2013-07-24 Thread Samisa Abeysinghe
Guys, are we releasing this? Are the packs ready?


On Fri, Jul 19, 2013 at 2:24 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 On Fri, Jul 19, 2013 at 1:04 PM, Shameera Rathnayaka shame...@wso2.comwrote:

 Hi,

 As this release is based on kernel 4.2.0, Shouldn't this be DSS 3.1.0?
 ESB also planed to release a patch release(4.7.1) with 4.2.0 but later
 decided change it to 4.8.0.


 No, there is no such thing, this is a bug fix release for DSS 3.0.1, and
 it does not have any new features. So the version DSS 3.0.2 is correct. As
 for the ESB, they changed it to 4.8.0, because they have new features in
 that.

 Cheers,
 Anjana.



 Thanks,
 Shameera.


 On Tue, Jul 2, 2013 at 12:13 PM, Chanika Geeganage chan...@wso2.comwrote:

  Hi all,

 The DSS 3.0.2 will be released for the carbon version 4.2.0 in the end
 of the July. (31/07/2013) with the above planed features.

 Thanks.


 On Thu, May 30, 2013 at 1:35 PM, Chanika Geeganage chan...@wso2.comwrote:

 Hi all,

 We are planing to release a patch release for DSS (DSS 3.0.2) in the
 middle of June for 4.1.3 patch release with followings.

 1. Bug fixes, mainly for the issue [1]
 2. Providing compatibility with the latest IS changes

 [1] https://wso2.org/jira/browse/WSAS-1245

 Thanks.

 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Mobile: +94773522586




 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Mobile: +94773522586

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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT 
 apache.orgshame...@apache.org
 *
 *phone:  +9471 922 1454*
 *
 *
 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




-- 

Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] why we added juli-log manager to kernel dependencies ?

2013-07-24 Thread Pradeep Fernando
Hi KasunG,

Why $subject ?


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


Re: [Dev] Ability to integrate and run TCKs with porducts

2013-07-24 Thread Eranda Sooriyabandara
Hi Vijitha,


On Wed, Jul 24, 2013 at 3:14 PM, Vijitha Kumara viji...@wso2.com wrote:

 Hi All,

 I think it'd be good if we have the $Subject. What need to be done is to
 have a simple config in pom.xml (or some other config method) which enables
 a carbon server get started (and shutdown/cleanup) and run some external
 test cases along with it. As I see we currently depend on TestNG this
 might involve some custom task execution for Ant based JUnit tests etc... (
 not sure whether we have tried that?) or something similar.

 For example if you have a TCK jar (which might be based on JUnit tests) it
 should be able to run with the framework as part of the integration test
 flow and get the results. This would be very much useful when it comes to
 specification implementations so it can run any other standard compatible
 TCKs as part of the product integration test suite to showcase the
 compliance.


I don't think we need to discuss it rather doing. We should use a different
module in products/greg/modules/integration/registry/ where we started the
server and run the tck against it.

thanks
Eranda







 Regards,
 Vijitha.








 --
 Vijitha Kumara
 Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
 email: viji...@wso2.com


 Lean . Enterprise . Middleware

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




-- 
*Eranda Sooriyabandara
*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/



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