Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-28 Thread Ayyoob Hamza
Hi Ruwan,
Thanks for your suggestions, This makes sense because, with the offline
chat I had with kasunG; Classes are resolved initially before osgis' are
activated. Therefore there should be some duplicate packages. I ll try to
look into it and resolve it.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Mon, Jul 27, 2015 at 10:00 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Ayoob,
 There might be some other duplicate package exports in the pack which
 causes the CNF exception.

 Yes, I also second your observation (in carbon 4.4.0), that the Webapp
 Deployment occurs once the carbon-deployer bundle is activated. It will
 then make sure tomcat bundle is activated. However none of the other user
 bundles are not guaranteed to be activated at this time.

 @Thilini
 This is contrary to the document [1], which is for carbon 4.2.0 based.

 Also I have seen this error when Tomcat sees the offending class(package)
 in BundleA while other user bundle sees this class in BundleB. This is most
 probably what you are experiencing. Thats why it is important that no too
 bundles should export same package name.

 Cheers,
 Ruwan

 [1]
 http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/


 On Mon, Jul 27, 2015 at 12:50 AM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi Thilini
 As in this link (Under How tomcat works) it suggest that the war
 deployment happens after the tomcat bundle get activated, not the end of
 all osgi bundle activated.

 If thats the case how can we guarantee that the web deployment can only
 be happen after the osgi bundle activation ?.
 [ 1 ]
 http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/

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




 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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


Re: [Dev] What is the recommended database server for local databases of a deployment environment?

2015-07-28 Thread Isuru Perera
Hi,

It's recommended to use H2 as the local repository. However we recommend
other databases for config and governance repositories.

On Tue, Jul 28, 2015 at 12:55 PM, Shashika Karunatilaka 
shashikabo...@gmail.com wrote:

 Hi Lakshani,

 AFAIK its ok to use H2 as local. According to the documentation it
 says([1]) to use industry-standard RDBMS such as Oracle, PostgreSQL,
 MySQL, MS SQL, etc

 [1] https://docs.wso2.com/display/CLUSTER420/Setting+up+the+Database

 Thank you.

 On Tue, Jul 28, 2015 at 3:02 PM, Lakshani Gamage laksh...@wso2.com
 wrote:

 Hi all,

 I have to setup APPM internal deployment. In one slice(VM) there are one
 gateway, one IDP, one publisher and one store. There are two or more slices
 with above components. In the deployment environment, UM_DB, REG_DB and
 AM_DB are used as shared MYSQL databases.

 Upto now, I used H2 for local carbon db. Is it the recommended way? Do I
 need to use MYSQL for local db as well?

 Please share your ideas.

 Thanks,
 --
 Lakshani Gamage

 *Software Engineer*
 Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194

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




 --
 *Best Regards,*
 *Shashika karunatilaka,*

 *B.Sc in Computer Science,*
 *University of Colombo School of Computing,*
 *Senior Software Engineer, StarHub Inc (www.starhub.com
 http://www.wso2.com)*
 http://shashikabokks.wordpress.com

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




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

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


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
Can you share your new conf/user-mgt.xml,
conf/datasources/master-datasources.xml and conf/registry xml ?

On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi zahra7...@gmail.com
wrote:

 I change datasource 's name to db name with lowercase in
 master-datasources.xm and also change jdbc/WSO2CarbonDB to
 jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
 service, but still I couldn't load consols, here is the Error: TID: [0]
 [EMM] [2015-07-28 14:17:34,933] error: 
 {org.wso2.carbon.user.core.internal.Activator}
 - Cannot start User Manager Core bundle
 {org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
 Error in looking up data source: Name [wso2_carbon_db] is not bound in this
 Context. Unable to find [wso2_carbon_db]

 On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla kas...@wso2.com
  wrote:

 As I see, all your DB names are different in the config file and the
 actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So, go
 to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also
 check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar file
 is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might not
 installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
http://lk.linkedin.com/in/kasundananjaya*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the recommended database server for local databases of a deployment environment?

2015-07-28 Thread Shashika Karunatilaka
Hi Lakshani,

AFAIK its ok to use H2 as local. According to the documentation it
says([1]) to use industry-standard RDBMS such as Oracle, PostgreSQL, MySQL,
MS SQL, etc

[1] https://docs.wso2.com/display/CLUSTER420/Setting+up+the+Database

Thank you.

On Tue, Jul 28, 2015 at 3:02 PM, Lakshani Gamage laksh...@wso2.com wrote:

 Hi all,

 I have to setup APPM internal deployment. In one slice(VM) there are one
 gateway, one IDP, one publisher and one store. There are two or more slices
 with above components. In the deployment environment, UM_DB, REG_DB and
 AM_DB are used as shared MYSQL databases.

 Upto now, I used H2 for local carbon db. Is it the recommended way? Do I
 need to use MYSQL for local db as well?

 Please share your ideas.

 Thanks,
 --
 Lakshani Gamage

 *Software Engineer*
 Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194

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




-- 
*Best Regards,*
*Shashika karunatilaka,*

*B.Sc in Computer Science,*
*University of Colombo School of Computing,*
*Senior Software Engineer, StarHub Inc (www.starhub.com
http://www.wso2.com)*
http://shashikabokks.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC1

2015-07-28 Thread Udara Rathnayake
Hi All,

We were able to build/test carbon-store and product-es by pointing to the
above repository.
We don't see any functional issues in this build.

Regards,
UdaraR

On Tue, Jul 28, 2015 at 12:23 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Devs,

 WSO2 Carbon Kernel 4.4.1. RC1 Release Vote

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12323

 Please download kernel RC1 and test your products with the kernel 4.4.1
 RC1 and vote. Vote will be open for 72 hours or as needed.

 *Source  binary distribution files:*

 http://maven.wso2.org/nexus/content/repositories/staging/org/wso2/carbon/wso2carbon/4.4.1/

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-012/

 *The tag to be voted upon :*
 https://github.com/wso2/carbon4-kernel/tree/v4.4.1-RC1


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release

 Thanks,
 Best Regards
 Carbon Team.
 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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


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


[Dev] Improving URI Template support in HTTP Endpoint

2015-07-28 Thread Ravi Undupitiya
Hi all,

Currently with the HTTP Endpoint it is difficult to handle a large set of
query parameters, and this is doubly so when we have to handle individual
query params when running into encoding related issues.

As an example ESB connectors handle query parameters by using script
mediator to create a long query param string and then passing this on to
the HTTP Endpoint.

The underlying library we use for URI Templates support RFC 6570 including
{?param*} operators which when provided with a map will handle the query
parameters in a cleaner way allowing to group a set of parameters without
having to worry about escaping things like  delimiter.

In addition to this, there are several more operators that can only be
supported by passing a map including: {+param*}, {list*}, {list*}.

Based on this shall we enable support for these operators in HTTP Endpoint?

We can provide this functionality in the following manner (which is the
least intrusive when we consider changes in dev studio and synapse):

Similar to uri.var prefixed properties we have
uri.map.map_name.entry_key. This will allow us to generate a set of
maps with a unique map name that we can then use to pass onto to the
template library.

property name=uri.map.geoloc.lat value=7° 7' 2.0820'' N /
property name=uri.map.geoloc.lng value=80° 13' 19.8048'' E /
property name=uri.var.scheme value=http://; /
property name=uri.var.hostport value=localhost:8280 /
property name=uri.var.path value=/services/Position /

http
uri-template={+uri.var.scheme}{+uri.var.hostport}{+uri.var.path}{?uri.map.geoloc*}
/

Above will result in:
http://localhost:8280/services/Position?lng=80%C2%B0%2013%27%2019.8048%27%27%20Elat=7%C2%B0%207%27%202.0820%27%27%20N



Thanks,
-- 
*Ravi Undupitiya*
Senior Software Engineer; WSO2 http://wso2.com


*E-mail: r...@wso2.com http://wso2.com**M: **+94 772 930 712*

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


[Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Zahra Alimadadi
Hi,

Could some one help me in this, please:

EMM - migrate from H2 to Mysql
http://stackoverflow.com/q/31656417/3933607?sem=2

Best regards,
Zahra

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


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So, go to
your DB configurations (masterdatasources.xml) in
repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
do the same to the others as well.

Thanks

On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi zahra7...@gmail.com
wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also check
 for j/connector in mysql installer. (here http://tinypic.com/r/2w5kayq/8 is
 this screen shot) and the jar file is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla kas...@wso2.com
  wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might not
 installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
http://lk.linkedin.com/in/kasundananjaya*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Zahra Alimadadi
Yes, I edit the question and add them.

On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla kas...@wso2.com
wrote:


 Can you share your new conf/user-mgt.xml,
 conf/datasources/master-datasources.xml and conf/registry xml ?

 On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 I change datasource 's name to db name with lowercase in
 master-datasources.xm and also change jdbc/WSO2CarbonDB to
 jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
 service, but still I couldn't load consols, here is the Error: TID: [0]
 [EMM] [2015-07-28 14:17:34,933] error: 
 {org.wso2.carbon.user.core.internal.Activator}
 - Cannot start User Manager Core bundle
 {org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
 Error in looking up data source: Name [wso2_carbon_db] is not bound in this
 Context. Unable to find [wso2_carbon_db]

 On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 As I see, all your DB names are different in the config file and the
 actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So,
 go to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also
 check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar
 file is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might not
 installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi zahra7...@gmail.com
  wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




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


Re: [Dev] Finding tomcat version of Carbon products

2015-07-28 Thread Aruna Karunarathna
version is in the products release-notes.html file.

On Tue, Jul 28, 2015 at 10:44 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 How do we find the tomcat version of Carbon products rather than searching
 for the jar in plugins folder. Don't we mention the tomcat version of
 Carbon products at any configuration file?

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deployment fails (Proxy services) for tenants in a ESB worker/manager separated setup

2015-07-28 Thread Lakmali Baminiwatta
Hi all,

This issue has been reported in recent releases as well (APIM 1.9.0, ESB
4.9.0-Alpha). Didn't we remove the code which loads transport configs from
registry?
According to the stack trace from ESB 4.9.0 Alpha, it seems still it is
trying to load transports from registry.












*Caused by:
org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
Resource does not exist at path
/_system/config/repository/transports/https/listenerat
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:532)at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:172)at
org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:613)at
org.wso2.carbon.registry.core.session.UserRegistry.access$400(UserRegistry.java:60)at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:596)at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:593)at
java.security.AccessController.doPrivileged(Native Method)at
org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:593)at
org.wso2.carbon.core.transports.TransportPersistenceManager.getTransportResource(TransportPersistenceManager.java:317)at
org.wso2.carbon.core.transports.TransportPersistenceManager.updateEnabledTransports(TransportPersistenceManager.java:248)at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:329)*

Thanks,
Lakmali

On 10 October 2013 at 18:02, Kishanthan Thangarajah kishant...@wso2.com
wrote:

 I have added a fix for this in : https://wso2.org/jira/browse/CARBON-14508.
 Please use this patch for testing purpose. I'll do more testing before
 finalizing this fix.


 On Thu, Oct 10, 2013 at 5:20 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Shall we remove these config loading part, if we are not using them from
 registry anymore?


 On Thu, Oct 10, 2013 at 3:21 PM, Miyuru Wanninayaka miy...@wso2.com
 wrote:

 I thought we already removed loading transport config from registry.
 Even API-M faced same kind of issue because of loading transports from
 registry. Seems that didn't happened ;(


 On Thu, Oct 10, 2013 at 2:58 PM, Evanthika Amarasiri evanth...@wso2.com
  wrote:

 Note that I got the below exception when starting the Manager node with
 M4 packs.

 [2013-10-10 14:46:22,793]  INFO - StartupFinalizerServiceComponent WSO2
 Carbon started in 92 sec
 [2013-10-10 14:46:22,820] ERROR - FIXTransportServiceComponent Error
 while activating FIX transport management bundle
 org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
 Resource does not exist at path
 /_system/config/repository/transports/fix/listener
  at
 org.wso2.carbon.registry.core.jdbc.handlers.builtin.MountHandler.get(MountHandler.java:445)
  at
 org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.get(HandlerManager.java:2444)
 at
 org.wso2.carbon.registry.core.jdbc.handlers.UserDefinedHandlerManager.get(UserDefinedHandlerManager.java:200)
  at
 org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.get(HandlerLifecycleManager.java:959)
  at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:512)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:180)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:524)
  at
 org.wso2.carbon.core.transports.TransportPersistenceManager.getTransportResource(TransportPersistenceManager.java:317)
  at
 org.wso2.carbon.core.transports.TransportPersistenceManager.getTransportElement(TransportPersistenceManager.java:124)
  at
 org.wso2.carbon.core.transports.TransportPersistenceManager.saveTransportConfiguration(TransportPersistenceManager.java:285)
  at
 org.wso2.carbon.transport.fix.internal.FIXTransportServiceComponent.activate(FIXTransportServiceComponent.java:64)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
  at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
  at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
  at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
  at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
  at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
  at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
  

Re: [Dev] What is the recommended database server for local databases of a deployment environment?

2015-07-28 Thread Lakshani Gamage
Thanks for the quick feedback.

On Tue, Jul 28, 2015 at 12:58 PM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 It's recommended to use H2 as the local repository. However we recommend
 other databases for config and governance repositories.

 On Tue, Jul 28, 2015 at 12:55 PM, Shashika Karunatilaka 
 shashikabo...@gmail.com wrote:

 Hi Lakshani,

 AFAIK its ok to use H2 as local. According to the documentation it
 says([1]) to use industry-standard RDBMS such as Oracle, PostgreSQL,
 MySQL, MS SQL, etc

 [1] https://docs.wso2.com/display/CLUSTER420/Setting+up+the+Database

 Thank you.

 On Tue, Jul 28, 2015 at 3:02 PM, Lakshani Gamage laksh...@wso2.com
 wrote:

 Hi all,

 I have to setup APPM internal deployment. In one slice(VM) there are one
 gateway, one IDP, one publisher and one store. There are two or more slices
 with above components. In the deployment environment, UM_DB, REG_DB and
 AM_DB are used as shared MYSQL databases.

 Upto now, I used H2 for local carbon db. Is it the recommended way? Do I
 need to use MYSQL for local db as well?

 Please share your ideas.

 Thanks,
 --
 Lakshani Gamage

 *Software Engineer*
 Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194

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




 --
 *Best Regards,*
 *Shashika karunatilaka,*

 *B.Sc in Computer Science,*
 *University of Colombo School of Computing,*
 *Senior Software Engineer, StarHub Inc (www.starhub.com
 http://www.wso2.com)*
 http://shashikabokks.wordpress.com

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




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

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




-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Zahra Alimadadi
Hi Kasun,

You mean WSO2_CARBON_DB?
I created 3 databases, and I check it. here is the screen shot
http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also check
for j/connector in mysql installer. (here http://tinypic.com/r/2w5kayq/8 is
this screen shot) and the jar file is located in
Carbone_Home\repository\components\lib\mysql-connector-java.jar

Best regards,
Zahra

On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla kas...@wso2.com
wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might not
 installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




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


Re: [Dev] [PPaaS] Need to update Private PaaS P2 profile to refer Stratos 4.1.0 Features

2015-07-28 Thread Akila Ravihansa Perera
Hi Imesh,

I think we need to refactor the private-paas pom structure to be consistent
with other WSO2 products projects. I'll work on this task.

JIRA created: https://wso2.org/jira/browse/PAAS-202

Thanks.

On Tue, Jul 28, 2015 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote:

 I have now done this modification with the following commit revision:

 https://github.com/wso2/product-private-paas/commit/376eb325d00f8251e5c0a2f9e3e7d2134efb9935

 On Mon, Jul 27, 2015 at 1:48 PM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Devs,

 Apache Stratos 4.1.0 is was released few days back [1]. Now we can update
 Private PaaS product's P2 profile [2] to use Stratos 4.1.0 features. It
 would be better if we can introduce a maven property to configure this.

 [1] https://dist.apache.org/repos/dist/release/stratos/4.1.0/
 [2]
 https://github.com/wso2/product-private-paas/tree/master/products/ppaas/modules/p2-profile-gen

 Thanks

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




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


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




-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

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


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
As I see, all your DB names are different in the config file and the actual
DB. So rename your config file
(repository/conf/datasources/master-datasources.xml) as well as
user-mgt.xml and registry.xml to match the actual databases.

Thanks

On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla kas...@wso2.com
wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So, go
 to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also
 check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar file
 is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might not
 installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
http://lk.linkedin.com/in/kasundananjaya*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-07-28 Thread Srinath Perera
please send an update.

On Thu, Jul 9, 2015 at 9:25 AM, Mohamed Fawzan fawz...@gmail.com wrote:

 Is this similar to what you have in your mind?

 graph = {

nodeA : {
in : [ nodeB ],
out : [nodeC, nodeE]
 },

   nodeB : {
in : [nodeM],
out : [nodeA]
   }, 


 }

 -Regards



 On Thu, Jul 9, 2015 at 8:45 AM, Srinath Perera srin...@wso2.com wrote:

 Typically, graph are represented by list if vertices and list of edges.

 Each vertice can keep a list references to  incoming and outgoing edges

 On Thu, Jul 9, 2015 at 8:28 AM, Mohamed Fawzan fawz...@gmail.com wrote:

 Yes, we can track the added streams an throw an error when we get the
 same stream more than once.

 One more question on building the graph, i am struggling to find a
 optimal data structure to sotre the graph information, because unlike
 regular graphs, a particular node in our graph will have two vertices
 (input  output). Can you please tell me whether you have any particular
 data structure in mind?


 -Regards


 On Thursday, July 9, 2015, Srinath Perera srin...@wso2.com wrote:

 not often, as that will lead to circles. Can we detect and give a error
 when he try to add a stream to canvus.

 On Wed, Jul 8, 2015 at 7:16 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,

 When we compose the query, Can we have the same stream appear twice in
 the canvas?

 -Regards



 On Mon, Jul 6, 2015 at 8:29 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,


 I have removed the Drawing feature as I have encountered a bug, Looks
 like the 'click' event in d3 automatically triggers a 'drag' event as 
 well.
 I have tried to set a Flag and resolve the issue. But it seems that only
 Opera (Web Browser) has the issue. Chrome and FF works fine. I will 
 update
 the draw feature and notify.

 -Regards



 On Mon, Jul 6, 2015 at 8:25 AM, Srinath Perera srin...@wso2.com
 wrote:

 I tried to draw, but failed. Can you do a small screencast on how to
 draw and connect.

 On current palette, everything looks same, we need to indicate
 queries are different than other operators.

 --Srinath

 On Fri, Jul 3, 2015 at 8:39 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,

 As per our discussion, I have modified the UI[1]
 http://vc.mutexlk.com. here is the list of updated features,

 1. I have added an operator to compose queries. (icon : query).
 2. Other operators can be dropped to query boxes(cannot dropped
 outside the query boxes), Also it can only be dragged inside query 
 boxes.
 3. The query boxes itself can be dragged with operators.
 4  IO Streams were re drawn.


 Please check  comment on it so that I can proceed with making the
 Graph. you can find the repo here [2]
 https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language


 [1] - http://vc.mutexlk.com
 [2] -
 https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language

 -Regards



 On Tue, Jun 23, 2015 at 6:51 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,

 I have found a workaround for connecting elements with click 
 click. I will update the demo soon with the (progress of) 
 improvements we
 have discussed in the meeting on 19th.  .

 -Regards

 On Mon, Jun 15, 2015 at 5:13 AM, Mohamed Fawzan fawz...@gmail.com
  wrote:

 Hi Srinath.

 I have added support for large file names in the streams [1]
 http://vc.mutexlk.com/dashboard.html  by showing the part of
 the stream name in the rectangle element. When you *hover *
 you can see the* full stream name. *Also when the user drag the
 element to the canvas, he get the same behavior their.

 Currently I'm working on connecting the elements. It is bit
 difficult. But I am close enough. I think i can present it by this 
 week.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Fri, Jun 12, 2015 at 4:29 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Thanks.


 On Friday, June 12, 2015, Srinath Perera srin...@wso2.com
 wrote:

 yes that is OK.

 On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Yes. It is a good time. I can take the 6.00AM Train from
 kandy. Can reach colombo by 10.00 i guess. Is it o?


 On Friday, June 12, 2015, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Understood. Thanks Srinath.

 On Friday, June 12, 2015, Srinath Perera srin...@wso2.com
 wrote:

 Input and output streams are the same thing. Sometimes, a
 stream can be both inputs and outputs E.g. Stream 2.

 [image: Inline image 1]

 On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi Srinath,

 Can you please help me to understand the streams? I mean
 the InputOutputNode in.


 InputOutputNode : {

 connectionName : 'StockQuoteStream',

 connectionType :'Stream',

 connectionTypeDetails : 'para1:string, para2:int'

 }


 In the layout[1]  http://vc.mutexlk.com/dashboard.htmlI have 
 considered Input  Output streams as 

Re: [Dev] Finding tomcat version of Carbon products

2015-07-28 Thread Aruna Karunarathna
I meant for the 4.4.1 release version. Since it's been upgraded.. :)

On Tue, Jul 28, 2015 at 12:55 PM, Aruna Karunarathna ar...@wso2.com wrote:

 version is in the products release-notes.html file.

 On Tue, Jul 28, 2015 at 10:44 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 How do we find the tomcat version of Carbon products rather than
 searching for the jar in plugins folder. Don't we mention the tomcat
 version of Carbon products at any configuration file?

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




 --

 *Aruna Sujith Karunarathna *| Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the recommended database server for local databases of a deployment environment?

2015-07-28 Thread Nuwan Silva
When setting up QA environment we use the default H2 for the local carbon
db.

Regards,
NuwanS.

On Tue, Jul 28, 2015 at 12:55 PM, Shashika Karunatilaka 
shashikabo...@gmail.com wrote:

 Hi Lakshani,

 AFAIK its ok to use H2 as local. According to the documentation it
 says([1]) to use industry-standard RDBMS such as Oracle, PostgreSQL,
 MySQL, MS SQL, etc

 [1] https://docs.wso2.com/display/CLUSTER420/Setting+up+the+Database

 Thank you.

 On Tue, Jul 28, 2015 at 3:02 PM, Lakshani Gamage laksh...@wso2.com
 wrote:

 Hi all,

 I have to setup APPM internal deployment. In one slice(VM) there are one
 gateway, one IDP, one publisher and one store. There are two or more slices
 with above components. In the deployment environment, UM_DB, REG_DB and
 AM_DB are used as shared MYSQL databases.

 Upto now, I used H2 for local carbon db. Is it the recommended way? Do I
 need to use MYSQL for local db as well?

 Please share your ideas.

 Thanks,
 --
 Lakshani Gamage

 *Software Engineer*
 Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194

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




 --
 *Best Regards,*
 *Shashika karunatilaka,*

 *B.Sc in Computer Science,*
 *University of Colombo School of Computing,*
 *Senior Software Engineer, StarHub Inc (www.starhub.com
 http://www.wso2.com)*
 http://shashikabokks.wordpress.com




-- 


*Nuwan Silva*
*Senior Software Engineer - QA*
Mobile: +9477 980 4543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
Hi Zahra,

You might be missing WSO2CARBON_DB in your DB server or you might not
installed the MySQL JDBC driver. Please follow [1] to get your
configuration corrected.

[1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

Thanks

On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi zahra7...@gmail.com
wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
http://lk.linkedin.com/in/kasundananjaya*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC1

2015-07-28 Thread Chanaka Fernando
Hi All,

I have been able to build the product-esb and carbon-mediation repositories
without any issue with the 4.4.1 kernel version. But when I start the pack
and trying to access the management console from the URL which is printed
in the log, it is not redirecting me to the login page. It shows me a blank
page.

https://10.100.0.37:9443/carbon/

But if I changed this URL to below (removing the trailing forward slash)

https://10.100.0.37:9443/carbon

It redirects me to the login page. I cannot see any error logs in the
backend log in the previous scenario. What could be the reason for this
behavior?

Thanks,
Chanaka

On Tue, Jul 28, 2015 at 1:42 PM, Udara Rathnayake uda...@wso2.com wrote:

 Hi All,

 We were able to build/test carbon-store and product-es by pointing to the
 above repository.
 We don't see any functional issues in this build.

 Regards,
 UdaraR

 On Tue, Jul 28, 2015 at 12:23 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Devs,

 WSO2 Carbon Kernel 4.4.1. RC1 Release Vote

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12323

 Please download kernel RC1 and test your products with the kernel 4.4.1
 RC1 and vote. Vote will be open for 72 hours or as needed.

 *Source  binary distribution files:*

 http://maven.wso2.org/nexus/content/repositories/staging/org/wso2/carbon/wso2carbon/4.4.1/

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-012/

 *The tag to be voted upon :*
 https://github.com/wso2/carbon4-kernel/tree/v4.4.1-RC1


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release

 Thanks,
 Best Regards
 Carbon Team.
 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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



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




-- 
--
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Zahra Alimadadi
I change datasource 's name to db name with lowercase in
master-datasources.xm and also change jdbc/WSO2CarbonDB to
jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
service, but still I couldn't load consols, here is the Error: TID: [0]
[EMM] [2015-07-28 14:17:34,933] error:
{org.wso2.carbon.user.core.internal.Activator}
- Cannot start User Manager Core bundle
{org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
Error in looking up data source: Name [wso2_carbon_db] is not bound in this
Context. Unable to find [wso2_carbon_db]

On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla kas...@wso2.com
wrote:

 As I see, all your DB names are different in the config file and the
 actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla kas...@wso2.com
  wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So, go
 to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also
 check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar file
 is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might not
 installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




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


Re: [Dev] wso2-openid4java-0.9.6-wso2v4 released to staging.

2015-07-28 Thread Prasad Tissera
Thanks...

Sent from my mobile
On Jul 28, 2015 10:40 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Prasad,

 Released the repo.

 On Tue, Jul 28, 2015 at 10:30 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Kasun,

 wso2-openid4java-0.9.6-wso2v4 released to staging [1]. Please review and
 release. Thanks.

 [1].
 http://maven.wso2.org/nexus/content/repositories/orgwso2orgopenid4java-015/

 Regards,
 Prasad.

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444




 --

 *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] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC1

2015-07-28 Thread Shazni Nazeer
Hi all,

Same was observed with the G-Reg pack built with 4.4.1. No errors in the
backend. Removing the slash let us log in. carbon-registry,
carbon-governance and product-greg builds fine.

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

On Tue, Jul 28, 2015 at 2:12 PM, Chanaka Fernando chana...@wso2.com wrote:

 Hi All,

 I have been able to build the product-esb and carbon-mediation
 repositories without any issue with the 4.4.1 kernel version. But when I
 start the pack and trying to access the management console from the URL
 which is printed in the log, it is not redirecting me to the login page. It
 shows me a blank page.

 https://10.100.0.37:9443/carbon/

 But if I changed this URL to below (removing the trailing forward slash)

 https://10.100.0.37:9443/carbon

 It redirects me to the login page. I cannot see any error logs in the
 backend log in the previous scenario. What could be the reason for this
 behavior?

 Thanks,
 Chanaka

 On Tue, Jul 28, 2015 at 1:42 PM, Udara Rathnayake uda...@wso2.com wrote:

 Hi All,

 We were able to build/test carbon-store and product-es by pointing to the
 above repository.
 We don't see any functional issues in this build.

 Regards,
 UdaraR

 On Tue, Jul 28, 2015 at 12:23 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Devs,

 WSO2 Carbon Kernel 4.4.1. RC1 Release Vote

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12323

 Please download kernel RC1 and test your products with the kernel 4.4.1
 RC1 and vote. Vote will be open for 72 hours or as needed.

 *Source  binary distribution files:*

 http://maven.wso2.org/nexus/content/repositories/staging/org/wso2/carbon/wso2carbon/4.4.1/

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-012/

 *The tag to be voted upon :*
 https://github.com/wso2/carbon4-kernel/tree/v4.4.1-RC1


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release

 Thanks,
 Best Regards
 Carbon Team.
 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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



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




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com




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


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


[Dev] [SSO][APIM][SHIBBOLETH] Class Cast Exception while log in.

2015-07-28 Thread Abimaran Kugathasan
Hi All,


I have configured API Manager 1.9.0 with Shibboleth 2.4.4 for SSO
functionality. I have used 
https://idp.wso2.org:443/idp/profile/SAML2/POST/SSO; as the
IdentityProviderSSOServiceURL in store/site/conf/site.json file like below

ssoConfiguration : {
enabled : true,
issuer : store,
identityProviderURL : 
https://idp.wso2.org:443/idp/profile/SAML2/POST/SSO;,
keyStorePassword : wso2carbon,
identityAlias : idp.wso2.org,
responseSigningEnabled:true,
keyStoreName :repository/resources/security/wso2carbon.jks,
passive : false,
signRequests : false,
acsURL :https://localhost:9443/store/jagg/jaggery_acs.jag;
}

I'm getting below exception in APIM while log in to API Store

[2015-07-28 13:52:26,658]  WARN - AuthenticationHandler Illegal access
attempt at [2015-07-28 13:52:26,0658] from IP address 10.100.5.121 :
Service is RemoteAuthorizationManagerService
[2015-07-28 13:52:26,660] ERROR - AxisEngine Access Denied. Please login
first.
org.apache.axis2.AxisFault: Access Denied. Please login first.
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:97)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
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:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
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:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

And, getting below exception in shibboleth IDP

13:52:26.714 - ERROR

[Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-07-28 Thread Mohamed Fawzan
Hi srinath,

I.m in the exam week. Will send an update by friday. Please excuse.


On Tue, Jul 28, 2015 at 3:05 PM, Srinath Perera srin...@wso2.com
javascript:_e(%7B%7D,'cvml','srin...@wso2.com'); wrote:

 please send an update.

 On Thu, Jul 9, 2015 at 9:25 AM, Mohamed Fawzan fawz...@gmail.com
 javascript:_e(%7B%7D,'cvml','fawz...@gmail.com'); wrote:

 Is this similar to what you have in your mind?

 graph = {

nodeA : {
in : [ nodeB ],
out : [nodeC, nodeE]
 },

   nodeB : {
in : [nodeM],
out : [nodeA]
   }, 


 }

 -Regards



 On Thu, Jul 9, 2015 at 8:45 AM, Srinath Perera srin...@wso2.com
 javascript:_e(%7B%7D,'cvml','srin...@wso2.com'); wrote:

 Typically, graph are represented by list if vertices and list of edges.

 Each vertice can keep a list references to  incoming and outgoing edges

 On Thu, Jul 9, 2015 at 8:28 AM, Mohamed Fawzan fawz...@gmail.com
 javascript:_e(%7B%7D,'cvml','fawz...@gmail.com'); wrote:

 Yes, we can track the added streams an throw an error when we get the
 same stream more than once.

 One more question on building the graph, i am struggling to find a
 optimal data structure to sotre the graph information, because unlike
 regular graphs, a particular node in our graph will have two vertices
 (input  output). Can you please tell me whether you have any particular
 data structure in mind?


 -Regards


 On Thursday, July 9, 2015, Srinath Perera srin...@wso2.com
 javascript:_e(%7B%7D,'cvml','srin...@wso2.com'); wrote:

 not often, as that will lead to circles. Can we detect and give a
 error when he try to add a stream to canvus.

 On Wed, Jul 8, 2015 at 7:16 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,

 When we compose the query, Can we have the same stream appear twice
 in the canvas?

 -Regards



 On Mon, Jul 6, 2015 at 8:29 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,


 I have removed the Drawing feature as I have encountered a bug,
 Looks like the 'click' event in d3 automatically triggers a 'drag' 
 event as
 well. I have tried to set a Flag and resolve the issue. But it seems 
 that
 only Opera (Web Browser) has the issue. Chrome and FF works fine. I will
 update the draw feature and notify.

 -Regards



 On Mon, Jul 6, 2015 at 8:25 AM, Srinath Perera srin...@wso2.com
 wrote:

 I tried to draw, but failed. Can you do a small screencast on how
 to draw and connect.

 On current palette, everything looks same, we need to indicate
 queries are different than other operators.

 --Srinath

 On Fri, Jul 3, 2015 at 8:39 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,

 As per our discussion, I have modified the UI[1]
 http://vc.mutexlk.com. here is the list of updated features,

 1. I have added an operator to compose queries. (icon : query).
 2. Other operators can be dropped to query boxes(cannot dropped
 outside the query boxes), Also it can only be dragged inside query 
 boxes.
 3. The query boxes itself can be dragged with operators.
 4  IO Streams were re drawn.


 Please check  comment on it so that I can proceed with making the
 Graph. you can find the repo here [2]
 https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language


 [1] - http://vc.mutexlk.com
 [2] -
 https://github.com/Fawzanm/Extensible-Visual-Composer-Siddhi-Language

 -Regards



 On Tue, Jun 23, 2015 at 6:51 PM, Mohamed Fawzan fawz...@gmail.com
  wrote:

 Hi Srinath,

 I have found a workaround for connecting elements with click 
 click. I will update the demo soon with the (progress of) 
 improvements we
 have discussed in the meeting on 19th.  .

 -Regards

 On Mon, Jun 15, 2015 at 5:13 AM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi Srinath.

 I have added support for large file names in the streams [1]
 http://vc.mutexlk.com/dashboard.html  by showing the part of
 the stream name in the rectangle element. When you *hover *
 you can see the* full stream name. *Also when the user drag the
 element to the canvas, he get the same behavior their.

 Currently I'm working on connecting the elements. It is bit
 difficult. But I am close enough. I think i can present it by this 
 week.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Fri, Jun 12, 2015 at 4:29 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Thanks.


 On Friday, June 12, 2015, Srinath Perera srin...@wso2.com
 wrote:

 yes that is OK.

 On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Yes. It is a good time. I can take the 6.00AM Train from
 kandy. Can reach colombo by 10.00 i guess. Is it o?


 On Friday, June 12, 2015, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Understood. Thanks Srinath.

 On Friday, June 12, 2015, Srinath Perera srin...@wso2.com
 wrote:

 Input and output streams are the same thing. Sometimes, a
 stream can be both inputs and outputs E.g. Stream 2.

 [image: Inline image 1]

 On Thu, Jun 11, 

Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Zahra Alimadadi
Hi Jason,

I change jndi names, now I get this error:

ERROR {JAGGERY.modules.common:js} -
org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException (/emm/modules/common.js#364)

at 
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)

here is link https://ceit.aut.ac.ir/~9031020/log-mysql.txt to full log.

Best regards,
Zahra

On Tue, Jul 28, 2015 at 5:07 PM, Jason De Silva jas...@wso2.com wrote:

 Hi Zahra,

 I think you have added the wrong jndi names in user-mgt.xml and
 master-datasources.xml. Try replacing it with jdbc/WSO2CarbonDB which can
 be found in master-datasources.xml.

 Regards
 Jason

 On Tue, Jul 28, 2015 at 5:50 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 I change the url but still I get same error. I also change
 master-datasources.xml in question . should I also change name under
 jndiConfig

 On Tue, Jul 28, 2015 at 3:25 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Still the JDBC URLS are wrong in your master-datasources.xml. Please
 make all of them exactly same to the DBs you created.

 Thanks
 On Jul 28, 2015 3:42 PM, Zahra Alimadadi zahra7...@gmail.com wrote:

 Yes, I edit the question and add them.

 On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:


 Can you share your new conf/user-mgt.xml,
 conf/datasources/master-datasources.xml and conf/registry xml ?

 On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 I change datasource 's name to db name with lowercase in
 master-datasources.xm and also change jdbc/WSO2CarbonDB to
 jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
 service, but still I couldn't load consols, here is the Error: TID: [0]
 [EMM] [2015-07-28 14:17:34,933] error: 
 {org.wso2.carbon.user.core.internal.Activator}
 - Cannot start User Manager Core bundle
 {org.wso2.carbon.user.core.internal.Activator} 
 java.lang.RuntimeException:
 Error in looking up data source: Name [wso2_carbon_db] is not bound in 
 this
 Context. Unable to find [wso2_carbon_db]

 On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 As I see, all your DB names are different in the config file and the
 actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive.
 So, go to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to 
 wso2_carbon_db and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and
 also check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar
 file is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might
 not installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: 

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

2015-07-28 Thread Kasun Bandara
Hi,

Please $Subject the PR [1] as the Fix for the Public JIRA [2].

[1] https://github.com/wso2/carbon4-kernel/pull/351

[2] https://wso2.org/jira/browse/IDENTITY-3340
https://wso2.org/jira/browse/IDENTITY-3327
Thanks,
Kasun Bandara

-- 
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
%2B94%20%280%29%20773%20451194
kas...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Ruwan Abeykoon
Hi All,
I created small program to inspect a Carbon based pack for duplicate class
exports.
This will help to resolve intermittent NoClassDefFoundException.
I have put it into [1] hoping that anyone facing the same issue as I did,
can save few days of trouble. You need to checkout and build it.
Instructions are provided in the README file.

Please let me know of any improvements or issues.

[1]https://github.com/ruwanta/CarbonOSGI-Bundle-Verifier


Cheers
Ruwan

-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com http://wso2.com/ *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
phone:(+94) 39736
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Prasanna Dangalla
Hi RuwanA,

Thanks a lot. looks like this we'll help us a lot in future.

Thanks

On Wed, Jul 29, 2015 at 3:14 AM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi Ruwan,
 Thanks for the tool, this will ease up the process on finding the
 duplicate packages which I am being stalled on.

 Cheers,

 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

 On Tue, Jul 28, 2015 at 8:08 PM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi All,
 I created small program to inspect a Carbon based pack for duplicate
 class exports.
 This will help to resolve intermittent NoClassDefFoundException.
 I have put it into [1] hoping that anyone facing the same issue as I did,
 can save few days of trouble. You need to checkout and build it.
 Instructions are provided in the README file.

 Please let me know of any improvements or issues.

 [1]https://github.com/ruwanta/CarbonOSGI-Bundle-Verifier


 Cheers
 Ruwan

 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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



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




-- 
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg 5.0.0 nightly build pack - 22/07/2015

2015-07-28 Thread Sameera Kannangara
Correction:
Hi all,

Please find 2015-07-29 nightly built pack at [1].
Please use this pack for QA work.

Thank you,
SameeraK.

[1]
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150728/


On Wed, Jul 29, 2015 at 10:33 AM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 Please find 2015-07-29 at [1].

 Thank you,
 SameeraK.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150728/

 On Wed, Jul 22, 2015 at 9:14 PM, Chandana Napagoda chand...@wso2.com
 wrote:

 Hi,

 Please find $subject from[1].

 [1].
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150722/

 Regards,
 Chandana
 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile : +94718169299
 %2B94718169299*

 *Blog  :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com*




 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-07-28 Thread Madusanka Premaratne
Hi all,
I have recently updated jaggery version of APIM from 0.9.0 to 0.10.0 and
API Store gives the following error. I checked that the method
*raplaceEmailDomain* exists in *APIUtil* and I was not able to find out an
issue.

[2015-07-29 10:39:34,309] ERROR - WebAppManager
org.mozilla.javascript.EcmaError: TypeError: Cannot call property
replaceEmailDomain in object [JavaPackage
org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
object. (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: TypeError: Cannot call property
replaceEmailDomain in object [JavaPackage
org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
object. (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call
property replaceEmailDomain in object [JavaPackage
org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
object. (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
at 

Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Zahra Alimadadi
I restart server agin. now the consols loaded but I couldn't log in to emm
consol I get error 500 :

192.168.1.157 - - [28/Jul/2015:19:05:17 +0430] POST /emm/acs HTTP/1.1 500
1042 https://192.168.1.157:9443/commonauth; Mozilla/5.0 (Windows NT 6.1;
WOW64)

AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

But I can log in to publisher and store consols.

here is the full log for http-access
https://ceit.aut.ac.ir/~9031020/http_access_log.txt and wso2carbon
https://ceit.aut.ac.ir/~9031020/carbon-log.txt after restarting.

On Tue, Jul 28, 2015 at 6:06 PM, Zahra Alimadadi zahra7...@gmail.com
wrote:

 Hi Jason,

 I change jndi names, now I get this error:

 ERROR {JAGGERY.modules.common:js} -
 org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (/emm/modules/common.js#364)

   at 
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
   at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)

 here is link https://ceit.aut.ac.ir/~9031020/log-mysql.txt to full log.

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 5:07 PM, Jason De Silva jas...@wso2.com wrote:

 Hi Zahra,

 I think you have added the wrong jndi names in user-mgt.xml and
 master-datasources.xml. Try replacing it with jdbc/WSO2CarbonDB which can
 be found in master-datasources.xml.

 Regards
 Jason

 On Tue, Jul 28, 2015 at 5:50 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 I change the url but still I get same error. I also change
 master-datasources.xml in question . should I also change name under
 jndiConfig

 On Tue, Jul 28, 2015 at 3:25 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Still the JDBC URLS are wrong in your master-datasources.xml. Please
 make all of them exactly same to the DBs you created.

 Thanks
 On Jul 28, 2015 3:42 PM, Zahra Alimadadi zahra7...@gmail.com wrote:

 Yes, I edit the question and add them.

 On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:


 Can you share your new conf/user-mgt.xml,
 conf/datasources/master-datasources.xml and conf/registry xml ?

 On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi zahra7...@gmail.com
  wrote:

 I change datasource 's name to db name with lowercase in
 master-datasources.xm and also change jdbc/WSO2CarbonDB to
 jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
 service, but still I couldn't load consols, here is the Error: TID: [0]
 [EMM] [2015-07-28 14:17:34,933] error: 
 {org.wso2.carbon.user.core.internal.Activator}
 - Cannot start User Manager Core bundle
 {org.wso2.carbon.user.core.internal.Activator} 
 java.lang.RuntimeException:
 Error in looking up data source: Name [wso2_carbon_db] is not bound in 
 this
 Context. Unable to find [wso2_carbon_db]

 On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 As I see, all your DB names are different in the config file and
 the actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive.
 So, go to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to 
 wso2_carbon_db and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and
 also check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the
 jar file is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you
 might not installed the MySQL JDBC driver. Please follow [1] to get 
 your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 

Re: [Dev] Review and Merge PR for ESB Jira 3619

2015-07-28 Thread Malaka Silva
Merged please resolve the jira

On Tue, Jul 28, 2015 at 6:20 PM, Sriashalya Srivathsan asha...@wso2.com
wrote:

 $subject for following
 https://github.com/wso2/wso2-synapse/pull/292

 --
 Regards
 S.Sriashalya,
 WSO2 *Inc*.
 lean . enterprise . middleware




-- 

Best Regards,

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

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

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


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
Still the JDBC URLS are wrong in your master-datasources.xml. Please make
all of them exactly same to the DBs you created.

Thanks
On Jul 28, 2015 3:42 PM, Zahra Alimadadi zahra7...@gmail.com wrote:

 Yes, I edit the question and add them.

 On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla kas...@wso2.com
  wrote:


 Can you share your new conf/user-mgt.xml,
 conf/datasources/master-datasources.xml and conf/registry xml ?

 On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 I change datasource 's name to db name with lowercase in
 master-datasources.xm and also change jdbc/WSO2CarbonDB to
 jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
 service, but still I couldn't load consols, here is the Error: TID: [0]
 [EMM] [2015-07-28 14:17:34,933] error: 
 {org.wso2.carbon.user.core.internal.Activator}
 - Cannot start User Manager Core bundle
 {org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
 Error in looking up data source: Name [wso2_carbon_db] is not bound in this
 Context. Unable to find [wso2_carbon_db]

 On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 As I see, all your DB names are different in the config file and the
 actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So,
 go to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db 
 and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also
 check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar
 file is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might
 not installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*


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


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Jason De Silva
Hi Zahra,

I think you have added the wrong jndi names in user-mgt.xml and
master-datasources.xml. Try replacing it with jdbc/WSO2CarbonDB which can
be found in master-datasources.xml.

Regards
Jason

On Tue, Jul 28, 2015 at 5:50 PM, Zahra Alimadadi zahra7...@gmail.com
wrote:

 I change the url but still I get same error. I also change
 master-datasources.xml in question . should I also change name under
 jndiConfig

 On Tue, Jul 28, 2015 at 3:25 PM, Kasun Dananjaya Delgolla kas...@wso2.com
  wrote:

 Still the JDBC URLS are wrong in your master-datasources.xml. Please make
 all of them exactly same to the DBs you created.

 Thanks
 On Jul 28, 2015 3:42 PM, Zahra Alimadadi zahra7...@gmail.com wrote:

 Yes, I edit the question and add them.

 On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:


 Can you share your new conf/user-mgt.xml,
 conf/datasources/master-datasources.xml and conf/registry xml ?

 On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 I change datasource 's name to db name with lowercase in
 master-datasources.xm and also change jdbc/WSO2CarbonDB to
 jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
 service, but still I couldn't load consols, here is the Error: TID: [0]
 [EMM] [2015-07-28 14:17:34,933] error: 
 {org.wso2.carbon.user.core.internal.Activator}
 - Cannot start User Manager Core bundle
 {org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
 Error in looking up data source: Name [wso2_carbon_db] is not bound in 
 this
 Context. Unable to find [wso2_carbon_db]

 On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 As I see, all your DB names are different in the config file and the
 actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive.
 So, go to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db 
 and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and
 also check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar
 file is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might
 not installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 *Zahra Alimadadi*


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




-- 
Jason De Silva
*Software 

Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Zahra Alimadadi
I change the url but still I get same error. I also change
master-datasources.xml in question . should I also change name under
jndiConfig

On Tue, Jul 28, 2015 at 3:25 PM, Kasun Dananjaya Delgolla kas...@wso2.com
wrote:

 Still the JDBC URLS are wrong in your master-datasources.xml. Please make
 all of them exactly same to the DBs you created.

 Thanks
 On Jul 28, 2015 3:42 PM, Zahra Alimadadi zahra7...@gmail.com wrote:

 Yes, I edit the question and add them.

 On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:


 Can you share your new conf/user-mgt.xml,
 conf/datasources/master-datasources.xml and conf/registry xml ?

 On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi zahra7...@gmail.com
 wrote:

 I change datasource 's name to db name with lowercase in
 master-datasources.xm and also change jdbc/WSO2CarbonDB to
 jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
 service, but still I couldn't load consols, here is the Error: TID: [0]
 [EMM] [2015-07-28 14:17:34,933] error: 
 {org.wso2.carbon.user.core.internal.Activator}
 - Cannot start User Manager Core bundle
 {org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
 Error in looking up data source: Name [wso2_carbon_db] is not bound in this
 Context. Unable to find [wso2_carbon_db]

 On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 As I see, all your DB names are different in the config file and the
 actual DB. So rename your config file
 (repository/conf/datasources/master-datasources.xml) as well as
 user-mgt.xml and registry.xml to match the actual databases.

 Thanks

 On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So,
 go to your DB configurations (masterdatasources.xml) in
 repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db 
 and
 do the same to the others as well.

 Thanks

 On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi zahra7...@gmail.com
  wrote:

 Hi Kasun,

 You mean WSO2_CARBON_DB?
 I created 3 databases, and I check it. here is the screen shot
 http://tinypic.com/view.php?pic=15cdq2gs=8#.VbdCbiuUfeI and also
 check for j/connector in mysql installer. (here
 http://tinypic.com/r/2w5kayq/8 is this screen shot) and the jar
 file is located in
 Carbone_Home\repository\components\lib\mysql-connector-java.jar

 Best regards,
 Zahra

 On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi Zahra,

 You might be missing WSO2CARBON_DB in your DB server or you might
 not installed the MySQL JDBC driver. Please follow [1] to get your
 configuration corrected.

 [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

 Thanks

 On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
 zahra7...@gmail.com wrote:

 Hi,

 Could some one help me in this, please:

 EMM - migrate from H2 to Mysql
 http://stackoverflow.com/q/31656417/3933607?sem=2

 Best regards,
 Zahra

 --



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




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 *Zahra Alimadadi*




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


[Dev] Review and Merge PR for ESB Jira 3619

2015-07-28 Thread Sriashalya Srivathsan
$subject for following
https://github.com/wso2/wso2-synapse/pull/292

-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [SSO][APIM][SHIBBOLETH] Class Cast Exception while log in.

2015-07-28 Thread Pavithra Madurangi
Can you please double check whether the issuer name (store) exactly matches
with shibboleth metadata configs (RelyingParty id in relying-party.xml and
entityID specified in config file @ metadata folder)

On Tue, Jul 28, 2015 at 3:52 PM, Abimaran Kugathasan abima...@wso2.com
wrote:

 Hi All,


 I have configured API Manager 1.9.0 with Shibboleth 2.4.4 for SSO
 functionality. I have used 
 https://idp.wso2.org:443/idp/profile/SAML2/POST/SSO; as the
 IdentityProviderSSOServiceURL in store/site/conf/site.json file like below

 ssoConfiguration : {
 enabled : true,
 issuer : store,
 identityProviderURL : 
 https://idp.wso2.org:443/idp/profile/SAML2/POST/SSO;,
 keyStorePassword : wso2carbon,
 identityAlias : idp.wso2.org,
 responseSigningEnabled:true,
 keyStoreName :repository/resources/security/wso2carbon.jks,
 passive : false,
 signRequests : false,
 acsURL :https://localhost:9443/store/jagg/jaggery_acs.jag;
 }

 I'm getting below exception in APIM while log in to API Store

 [2015-07-28 13:52:26,658]  WARN - AuthenticationHandler Illegal access
 attempt at [2015-07-28 13:52:26,0658] from IP address 10.100.5.121 :
 Service is RemoteAuthorizationManagerService
 [2015-07-28 13:52:26,660] ERROR - AxisEngine Access Denied. Please login
 first.
 org.apache.axis2.AxisFault: Access Denied. Please login first.
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:97)
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 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:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 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:950)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
 at
 

Re: [Dev] [SSO][APIM][SHIBBOLETH] Class Cast Exception while log in.

2015-07-28 Thread Abimaran Kugathasan
Hi Pavithra,

Yes, there are same, you can see both below.

rp:RelyingParty id=store
 provider=https://idp.wso2.org/idp/shibboleth;
 defaultSigningCredentialRef=IdPCredential

 
defaultAuthenticationMethod=urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
rp:ProfileConfiguration xsi:type=saml:SAML2SSOProfile
 signResponses=always
 signAssertions=always
encryptAssertions=never
 encryptNameIds=never/
/rp:RelyingParty

EntityDescriptor entityID=store
xmlns=urn:oasis:names:tc:SAML:2.0:metadata
in /opt/shibboleth-idp/metadata/store.xml file

On Tue, Jul 28, 2015 at 3:57 PM, Pavithra Madurangi pavit...@wso2.com
wrote:

 Can you please double check whether the issuer name (store) exactly
 matches with shibboleth metadata configs (RelyingParty id in
 relying-party.xml and entityID specified in config file @ metadata folder)

 On Tue, Jul 28, 2015 at 3:52 PM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Hi All,


 I have configured API Manager 1.9.0 with Shibboleth 2.4.4 for SSO
 functionality. I have used 
 https://idp.wso2.org:443/idp/profile/SAML2/POST/SSO; as the
 IdentityProviderSSOServiceURL in store/site/conf/site.json file like below

 ssoConfiguration : {
 enabled : true,
 issuer : store,
 identityProviderURL : 
 https://idp.wso2.org:443/idp/profile/SAML2/POST/SSO;,
 keyStorePassword : wso2carbon,
 identityAlias : idp.wso2.org,
 responseSigningEnabled:true,
 keyStoreName :repository/resources/security/wso2carbon.jks,
 passive : false,
 signRequests : false,
 acsURL :https://localhost:9443/store/jagg/jaggery_acs.jag;
 }

 I'm getting below exception in APIM while log in to API Store

 [2015-07-28 13:52:26,658]  WARN - AuthenticationHandler Illegal access
 attempt at [2015-07-28 13:52:26,0658] from IP address 10.100.5.121 :
 Service is RemoteAuthorizationManagerService
 [2015-07-28 13:52:26,660] ERROR - AxisEngine Access Denied. Please login
 first.
 org.apache.axis2.AxisFault: Access Denied. Please login first.
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:97)
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 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:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 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
 

Re: [Dev] [PPaaS] Need to update Private PaaS P2 profile to refer Stratos 4.1.0 Features

2015-07-28 Thread Imesh Gunaratne
Great! Thanks Akila!

On Tue, Jul 28, 2015 at 2:30 PM, Akila Ravihansa Perera raviha...@wso2.com
wrote:

 Hi Imesh,

 I think we need to refactor the private-paas pom structure to be
 consistent with other WSO2 products projects. I'll work on this task.

 JIRA created: https://wso2.org/jira/browse/PAAS-202

 Thanks.

 On Tue, Jul 28, 2015 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote:

 I have now done this modification with the following commit revision:

 https://github.com/wso2/product-private-paas/commit/376eb325d00f8251e5c0a2f9e3e7d2134efb9935

 On Mon, Jul 27, 2015 at 1:48 PM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Devs,

 Apache Stratos 4.1.0 is was released few days back [1]. Now we can
 update Private PaaS product's P2 profile [2] to use Stratos 4.1.0 features.
 It would be better if we can introduce a maven property to configure this.

 [1] https://dist.apache.org/repos/dist/release/stratos/4.1.0/
 [2]
 https://github.com/wso2/product-private-paas/tree/master/products/ppaas/modules/p2-profile-gen

 Thanks

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




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


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




 --
 Akila Ravihansa Perera
 WSO2 Inc.;  http://wso2.com/

 Blog: http://ravihansa3000.blogspot.com




-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to get admin name for super tenant

2015-07-28 Thread Manuranga Perera
getTenant form TenantManager returns null for super tenant. is there any
other way to get tenant admin ?

-- 
With regards,
*Manu*ranga Perera.

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


Re: [Dev] How to get admin name for super tenant

2015-07-28 Thread Manuranga Perera
(it works for other tenants)

On Tue, Jul 28, 2015 at 6:16 PM, Manuranga Perera m...@wso2.com wrote:

 getTenant form TenantManager returns null for super tenant. is there any
 other way to get tenant admin ?

 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




-- 
With regards,
*Manu*ranga Perera.

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


Re: [Dev] [EMM][CDM] EMM url prints from cdmf

2015-07-28 Thread Prabath Abeysekera
+1.

Thanks for pointing this out. Fixed in carbon-devicemgt master branch.

Cheers,
Prabath

On Wed, Jul 22, 2015 at 7:59 PM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi,
 What is the  reason for printing emm url from CDMF[1][2]. because this
  block will be executed even if we are running only cdmf without the emm. I
 believe this needs to be moved into cdmf-plugins for emm.

 [1]
 https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/startup/handler/URLPrinterStartupHandler.java
 https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fcarbon-device-mgt%2Fblob%2Fmaster%2Fcomponents%2Fdevice-mgt%2Forg.wso2.carbon.device.mgt.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fdevice%2Fmgt%2Fcore%2Fstartup%2Fhandler%2FURLPrinterStartupHandler.javasa=Dsntz=1usg=AFQjCNGtwmG8FXfXpbA6813Scdtt14lfQw
 [2]
 https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/internal/DeviceManagementServiceComponent.java


 Thanks,


 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

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




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


Re: [Dev] G-Reg 5.0.0 nightly build pack - 22/07/2015

2015-07-28 Thread Sameera Kannangara
Hi all,

Please find 2015-07-29 at [1].

Thank you,
SameeraK.

[1]
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150728/

On Wed, Jul 22, 2015 at 9:14 PM, Chandana Napagoda chand...@wso2.com
wrote:

 Hi,

 Please find $subject from[1].

 [1].
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150722/

 Regards,
 Chandana
 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile : +94718169299
 %2B94718169299*

 *Blog  :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com*




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Aruna Karunarathna
Great tool indeed!

Small suggestion/improvement, can you specify the exported version of
packages, since many issues occur when the versions are the same.

Regards,
Aruna

On Wed, Jul 29, 2015 at 11:05 AM, Sameera Jayasoma same...@wso2.com wrote:

 This will be a very useful tool to debug intermittent class loading
 issues.

 On Wed, Jul 29, 2015 at 10:40 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 +1 maven plugin
 Will do when I have some time




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware


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




-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Imesh Gunaratne
A very useful tool Ruwan! I just ran this for Stratos and found a list of
duplicated package exports. May be we can move this feature to a maven
plugin and use it in the build.

Thanks

On Tue, Jul 28, 2015 at 8:08 PM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi All,
 I created small program to inspect a Carbon based pack for duplicate class
 exports.
 This will help to resolve intermittent NoClassDefFoundException.
 I have put it into [1] hoping that anyone facing the same issue as I did,
 can save few days of trouble. You need to checkout and build it.
 Instructions are provided in the README file.

 Please let me know of any improvements or issues.

 [1]https://github.com/ruwanta/CarbonOSGI-Bundle-Verifier


 Cheers
 Ruwan

 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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




-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-07-28 Thread Tanya Madurapperuma
- Check whether the org.wso2.carbon.apimgt.impl.utils.APIUtil jar is
available in the classpath.
- Check whether the compiled java version of above jar and the java version
you started the server are the same

Thanks,
Tanya

On Wed, Jul 29, 2015 at 10:53 AM, Madusanka Premaratne madusan...@wso2.com
wrote:

 Hi all,
 I have recently updated jaggery version of APIM from 0.9.0 to 0.10.0 and
 API Store gives the following error. I checked that the method
 *raplaceEmailDomain* exists in *APIUtil* and I was not able to find out
 an issue.

 [2015-07-29 10:39:34,309] ERROR - WebAppManager
 org.mozilla.javascript.EcmaError: TypeError: Cannot call property
 replaceEmailDomain in object [JavaPackage
 org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
 object. (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: TypeError: Cannot call property
 replaceEmailDomain in object [JavaPackage
 org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
 object. (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
 at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
 at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call
 property replaceEmailDomain in object [JavaPackage
 

Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Ruwan Abeykoon
+1 maven plugin
Will do when I have some time
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Sameera Jayasoma
This will be a very useful tool to debug intermittent class loading issues.

On Wed, Jul 29, 2015 at 10:40 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 +1 maven plugin
 Will do when I have some time




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] wso2-openid4java-0.9.6-wso2v4 released to staging.

2015-07-28 Thread KasunG Gajasinghe
Hi Prasad,

Released the repo.

On Tue, Jul 28, 2015 at 10:30 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Kasun,

 wso2-openid4java-0.9.6-wso2v4 released to staging [1]. Please review and
 release. Thanks.

 [1].
 http://maven.wso2.org/nexus/content/repositories/orgwso2orgopenid4java-015/

 Regards,
 Prasad.

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444




-- 

*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


[Dev] [ES][2.0.0-alpha1] Two questions on Tags, User Reviews, and 2.0.0-RC release date

2015-07-28 Thread Teodoro De Giorgio
Hi Dev Team,

   I have two questions:


1)  I'am using the 2.0.0-alpha1 version of the ES but I'm not able to use:

a.  tags for custom assets (add, edit and delete from publisher)

b.  rating and User Reviews
is this a known issue for this version or I am doing something wrong?


[Machine generated alternative text: Description Technical Details User Reviews 
Share Test Rate this asset Post Review ?j ?) ?j ?) Be the first one to review!]




2)  Do you know when the 2.0.0-RC version will be released on github?

Thanks in advance
Regards
Teodoro De Giorgio
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] wso2-openid4java-0.9.6-wso2v4 released to staging.

2015-07-28 Thread Prasad Tissera
Hi Kasun,

wso2-openid4java-0.9.6-wso2v4 released to staging [1]. Please review and
release. Thanks.

[1].
http://maven.wso2.org/nexus/content/repositories/orgwso2orgopenid4java-015/

Regards,
Prasad.

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


Re: [Dev] Developer Studio custom mediator pack dependencies

2015-07-28 Thread Udara Liyanage
Hi,

Got it resolved  after embed-dependency is put inside instruction tag.

On Tue, Jul 28, 2015 at 11:15 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Rajitha,

 Thanks for the information. I tried packing all dependencies with *, but
 it did not pack any dependencies.

 configuration
   instructions
 Bundle-SymbolicNameJsonValidatorMediator/Bundle-SymbolicName
 Bundle-NameJsonValidatorMediator/Bundle-Name
 Export-Packageorg.udara.mediation,/Export-Package
 DynamicImport-Package*/DynamicImport-Package
   /instructions
  Embed-Dependency*/Embed-Dependency
 /configuration


 On Tue, Jul 28, 2015 at 10:43 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Udara,

 This is ok too, but AFAIK it's better to
 use Private-Packageorg.foo.myproject.*/Private-Package as in [1] o that
 those classes won't get exposed to others(Since only you need these
 packages). Or either you can
 use Embed-Dependencydependencies/Embed-Dependency as well. Then those
 jars will be embedded in the osgi jar

 [1] -
 http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

 Thanks,

 On Tue, Jul 28, 2015 at 10:36 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I'v created a mediator project in order to write a custom mediator.
 However if I am using some dependencies(not available in ESB) how can I
 bundle them with the mediator jar. Dependencies were added to the pom, yet
 they are not bundled by default.

 Dependencies were bundled when I added them to export package. Is this
 the correct way of packing dependencies, or is there is another way I can
 specify which dependencies to be packed.

 Export-Packageorg.udara.mediation, org.mydependency/Export-Package

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Developer Studio custom mediator pack dependencies

2015-07-28 Thread Rajith Vitharana
Hi Udara,

I just tried with
Embed-Dependency*;scope=compile|runtime/Embed-Dependency and it
worked fine for me. According to the doc [1] we can embed dependencies with
different scopes as well.

[1] -
http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

Thanks,

On Tue, Jul 28, 2015 at 11:15 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Rajitha,

 Thanks for the information. I tried packing all dependencies with *, but
 it did not pack any dependencies.

 configuration
   instructions
 Bundle-SymbolicNameJsonValidatorMediator/Bundle-SymbolicName
 Bundle-NameJsonValidatorMediator/Bundle-Name
 Export-Packageorg.udara.mediation,/Export-Package
 DynamicImport-Package*/DynamicImport-Package
   /instructions
  Embed-Dependency*/Embed-Dependency
 /configuration


 On Tue, Jul 28, 2015 at 10:43 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Udara,

 This is ok too, but AFAIK it's better to
 use Private-Packageorg.foo.myproject.*/Private-Package as in [1] o that
 those classes won't get exposed to others(Since only you need these
 packages). Or either you can
 use Embed-Dependencydependencies/Embed-Dependency as well. Then those
 jars will be embedded in the osgi jar

 [1] -
 http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

 Thanks,

 On Tue, Jul 28, 2015 at 10:36 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I'v created a mediator project in order to write a custom mediator.
 However if I am using some dependencies(not available in ESB) how can I
 bundle them with the mediator jar. Dependencies were added to the pom, yet
 they are not bundled by default.

 Dependencies were bundled when I added them to export package. Is this
 the correct way of packing dependencies, or is there is another way I can
 specify which dependencies to be packed.

 Export-Packageorg.udara.mediation, org.mydependency/Export-Package

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




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


Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-28 Thread Viraj Rajaguru
Hi Nuwan,

There is a class loading issue in DevS 3.7.1 on MacOS with Java 7 update
55(7u55) and later updates. That's because you are getting the same issue
irrespective of having CDATA tags or not in the payload.(There shouldn't be
any issue if you enter the JS script without CDATA tag as Sohani
mentioned.) Please use Java 7 update 55(7u55) with DevS 3.7.1 on Mac OS to
avoid this issue.(This issue[1] has been fixed in the DevS master branch)

And also we have done an improvement to Script mediator to persist the
CDATA tag in the source view.[2] This fix is also available in the DevS
master branch.

Thanks,
Viraj.

[1] - https://wso2.org/jira/browse/TOOLS-2958
[2] - https://wso2.org/jira/browse/TOOLS-2730


On Tue, Jul 28, 2015 at 8:39 AM, Nuwan Dias nuw...@wso2.com wrote:

 I doubt its due to the CDATA tags. I tried both with and without CDATA
 tags, but it throws the same error always.

 I even tried providing the content through the source editor, but saving
 from the source editor also gives the same error.

 Please note that an API with the exact configuration can be deployed on
 ESB 4.8.1 without any issues. However, for the script to execute correctly
 the CDATA tags are required. If the CDATA tags were missing, it would throw
 the following exception at runtime (only).

 *org.mozilla.javascript.EvaluatorException: Can't find method
 org.apache.synapse.mediators.bsf.ScriptMessageContext.setPayloadXML().*

 Thanks,
 NuwanD.

 On Tue, Jul 28, 2015 at 7:45 AM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Hi Jasintha,

 This is the error I am getting

 org.apache.synapse.SynapseException: Exception initializing inline script
 at
 org.apache.synapse.mediators.bsf.ScriptMediator.initInlineScript(ScriptMediator.java:365)
 at
 org.apache.synapse.mediators.bsf.ScriptMediator.init(ScriptMediator.java:152)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.ScriptMediatorTransformer.createScriptMediator(ScriptMediatorTransformer.java:58)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.ScriptMediatorTransformer.transformWithinSequence(ScriptMediatorTransformer.java:45)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.AbstractEsbNodeTransformer.doTransformWithinSequence(AbstractEsbNodeTransformer.java:118)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.SequenceTransformer.transformWithinSequence(SequenceTransformer.java:88)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.DefaultEsbModelExporter.transformSequence(DefaultEsbModelExporter.java:193)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.DefaultEsbModelExporter.designToSource(DefaultEsbModelExporter.java:349)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.diagram.part.EsbMultiPageEditor.updateAssociatedXMLFile(EsbMultiPageEditor.java:593)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.diagram.part.EsbMultiPageEditor.doSave(EsbMultiPageEditor.java:676)
 at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:154)
 at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:283)
 at
 org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
 at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
 at
 org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:2157)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2153)
 at
 org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:291)
 at
 org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:269)
 at
 org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:159)
 at
 org.eclipse.ui.internal.WorkbenchPage.saveSaveable(WorkbenchPage.java:3915)
 at
 org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3929)
 at
 org.eclipse.ui.internal.handlers.SaveHandler.execute(SaveHandler.java:54)
 at
 org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
 at
 org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
 at
 org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
 at
 org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
 at
 org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
 at
 org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)
 at 

Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-28 Thread Viraj Rajaguru
[Correction]

On Tue, Jul 28, 2015 at 11:52 AM, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Nuwan,

 There is a class loading issue in DevS 3.7.1 on MacOS with Java 7 update
 55(7u55) and later updates. That's because you are getting the same issue
 irrespective of having CDATA tags or not in the payload.(There shouldn't be
 any issue if you enter the JS script without CDATA tag as Sohani
 mentioned.) Please use Java 7 update 55(7u55) with DevS 3.7.1 on Mac OS to
 avoid this issue.(This issue[1] has been fixed in the DevS master branch)


Please use Java 7 update 51(7u51) with DevS 3.7.1 on Mac OS to avoid this
issue


 And also we have done an improvement to Script mediator to persist the
 CDATA tag in the source view.[2] This fix is also available in the DevS
 master branch.

 Thanks,
 Viraj.

 [1] - https://wso2.org/jira/browse/TOOLS-2958
 [2] - https://wso2.org/jira/browse/TOOLS-2730


 On Tue, Jul 28, 2015 at 8:39 AM, Nuwan Dias nuw...@wso2.com wrote:

 I doubt its due to the CDATA tags. I tried both with and without CDATA
 tags, but it throws the same error always.

 I even tried providing the content through the source editor, but saving
 from the source editor also gives the same error.

 Please note that an API with the exact configuration can be deployed on
 ESB 4.8.1 without any issues. However, for the script to execute correctly
 the CDATA tags are required. If the CDATA tags were missing, it would throw
 the following exception at runtime (only).

 *org.mozilla.javascript.EvaluatorException: Can't find method
 org.apache.synapse.mediators.bsf.ScriptMessageContext.setPayloadXML().*

 Thanks,
 NuwanD.

 On Tue, Jul 28, 2015 at 7:45 AM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Hi Jasintha,

 This is the error I am getting

 org.apache.synapse.SynapseException: Exception initializing inline script
 at
 org.apache.synapse.mediators.bsf.ScriptMediator.initInlineScript(ScriptMediator.java:365)
 at
 org.apache.synapse.mediators.bsf.ScriptMediator.init(ScriptMediator.java:152)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.ScriptMediatorTransformer.createScriptMediator(ScriptMediatorTransformer.java:58)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.ScriptMediatorTransformer.transformWithinSequence(ScriptMediatorTransformer.java:45)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.AbstractEsbNodeTransformer.doTransformWithinSequence(AbstractEsbNodeTransformer.java:118)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.SequenceTransformer.transformWithinSequence(SequenceTransformer.java:88)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.DefaultEsbModelExporter.transformSequence(DefaultEsbModelExporter.java:193)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.internal.persistence.DefaultEsbModelExporter.designToSource(DefaultEsbModelExporter.java:349)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.diagram.part.EsbMultiPageEditor.updateAssociatedXMLFile(EsbMultiPageEditor.java:593)
 at
 org.wso2.developerstudio.eclipse.gmf.esb.diagram.part.EsbMultiPageEditor.doSave(EsbMultiPageEditor.java:676)
 at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:154)
 at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:283)
 at
 org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
 at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
 at
 org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:2157)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2153)
 at
 org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:291)
 at
 org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:269)
 at
 org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:159)
 at
 org.eclipse.ui.internal.WorkbenchPage.saveSaveable(WorkbenchPage.java:3915)
 at
 org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3929)
 at
 org.eclipse.ui.internal.handlers.SaveHandler.execute(SaveHandler.java:54)
 at
 org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
 at
 org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
 at
 org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
 at
 org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
 at
 

Re: [Dev] How to get admin name for super tenant

2015-07-28 Thread Tharindu Edirisinghe
Hi Manu,

You can use the code below. It gives the admin username of any tenant.

UserRealm realm = (UserRealm)
CarbonContext.getThreadLocalCarbonContext().getUserRealm();
String tenantAdmin = realm.getRealmConfiguration().getAdminUserName();

Regards,
TharinduE

On Tue, Jul 28, 2015 at 6:16 PM, Manuranga Perera m...@wso2.com wrote:

 (it works for other tenants)

 On Tue, Jul 28, 2015 at 6:16 PM, Manuranga Perera m...@wso2.com wrote:

 getTenant form TenantManager returns null for super tenant. is there any
 other way to get tenant admin ?

 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Identity Server Team
Blog : tharindue.blogspot.com
mobile : +94 775 181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Ayyoob Hamza
Hi Ruwan,
Thanks for the tool, this will ease up the process on finding the duplicate
packages which I am being stalled on.

Cheers,

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Tue, Jul 28, 2015 at 8:08 PM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi All,
 I created small program to inspect a Carbon based pack for duplicate class
 exports.
 This will help to resolve intermittent NoClassDefFoundException.
 I have put it into [1] hoping that anyone facing the same issue as I did,
 can save few days of trouble. You need to checkout and build it.
 Instructions are provided in the README file.

 Please let me know of any improvements or issues.

 [1]https://github.com/ruwanta/CarbonOSGI-Bundle-Verifier


 Cheers
 Ruwan

 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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


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