Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-23 Thread Udara Liyanage
Hi,

Make sure your changes works in Linux(Debian) environment too. In case we
can not make a script that works on both environments, it is better to have
separate scripts for Mac.
IMO It is better not to have dependent prerequisites for Linux environments.

On Wed, Sep 24, 2014 at 11:59 AM, Thushara Ranawaka 
wrote:

> Hi Nirmal,
> We had below issue as well,
>
> sed: illegal option -- r
>
> usage: sed script [-Ealn] [-i extension] [file ...]
>
>sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...
> [file ...]
>
> Above error generated when we try to execute
>
> line 549 sed-r -i -e 's@^(\s*)( name="amqp".*\s*)$@\1@g' $activemq_path/conf/activemq.xml
>
> will do some testing and get to you with the results.
>
> Thank you!
>
>
> On Wed, Sep 24, 2014 at 11:44 AM, Nirmal Fernando  wrote:
>
>> Cool.. thanks for checking. So, we could go with this? Wdyt? This avoid
>> the pre-requisite of having gsed.
>>
>> On Wed, Sep 24, 2014 at 11:42 AM, Thushara Ranawaka 
>> wrote:
>>
>>> Hi Nirmal,
>>> If we can use -n alone with -i will do the job(tested in mac osx).
>>>
>>> example:- sed -i -n "s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g"
>>> mysql.sql
>>>
>>> in the sed manual its stated like this
>>>
>>>  -i *extension*
>>>
>>>  Edit files in-place, saving backups with the specified
>>> extension.  If a zero-length extension is given, no backup will be
>>> saved.  It is not recommended to give a zero-length extension when
>>> in-place
>>>
>>>  editing files, as you risk corruption or partial content in
>>> situations where disk space is exhausted, etc.
>>>
>>>  -n
>>>
>>>  By default, each line of input is echoed to the standard
>>> output after all of the commands have been applied to it.  The -n
>>> option suppresses this behavior.
>>>
>>>
>>> Thanks,
>>>
>>> Thushara
>>>
>>> On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando 
>>> wrote:
>>>
 Guys,

 One concern; isn't there anyway to avoid this new package installation
 ? Wouldn't sed -n an option in OS X (
 http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
 )

 On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka >>> > wrote:

> Hi,
>
> Thank you Prasanna for the prompt reply and helping to rectifying the
> issue(using gsed -i instead of sed -i).
> Finally we were able to start Stratos in our mac books. I would like
> to merge all the findings together for more clarification.
>
> In our review we found that below problems in respective shell scripts.
>
> 1) In setup.sh >> line 539 the activemq.xml location is hard coded.
> 2) sed -i is included in many of the shell scripts.
> 3) use of illegal group name. (line 580 chown -R
> *$host_user:$host_user* $stratos_path)
>
> As per the work around solution :-
>
> 1)We added below lines to the setup.conf eod
> # activemq.xml path
> #
> 
> export
> activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml
>
> 2)
> i. Installed homebrew 
> ruby -e "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/master/install)"
> ii. Installed gnu-sed
> brew install gnu-sed
> iii. Changed sed -i to gsed -i in *demo.sh, ec2.sh,openstack.sh,
> add_entry_zone_file.sh, remove_entry_zone_file.sh, setup.sh and 
> vcloud.sh.*
> (I uploaded the edit files below and the link
> 
>  for
> g-drive file location)
>
> 3) Adding a user group as same as your user name in mac osx (System
> Preferences -> Users & Groups (Unlock to change) -> new Group as 'suhanr')
>
> Hope these simple steps will rectify the issue.
>
> Thanks,
> Thushara.
>
>
> On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya 
> wrote:
>
>> Hi all,
>>
>> Adding to Prasanna's comment.
>>
>> Following issue,
>> Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
>> chown: suhanr: illegal group name
>> was solved by,
>> 1. Adding a user group as suhanr in mac osx (System Preferences ->
>> Users & Groups (Unlock to change) -> new Group as 'suhanr')
>> 2. > sudo chown -R suhanr:suhanr *
>>
>> Thanks,
>> Suhan
>>
>> On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla > > wrote:
>>
>>> Hi all,
>>>
>>> Issue was with the sed and database name.
>>>
>>> Fixed those in suhanr's  mac and stratos installed successfully :D .
>>>
>>> Step followed
>>>
>>> 1. Installed homerew
>>> ruby -e "$(curl -fsSL
>>> https://raw.githubusercontent.com/Homebrew/install/master/install)"
>>> 2. Installed gnu-sed
>>> brew install gnu-sed
>>> 3. 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-23 Thread Thushara Ranawaka
Hi Nirmal,
We had below issue as well,

sed: illegal option -- r

usage: sed script [-Ealn] [-i extension] [file ...]

   sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...
[file ...]

Above error generated when we try to execute

line 549 sed-r -i -e 's@^(\s*)(@g' $activemq_path/conf/activemq.xml

will do some testing and get to you with the results.

Thank you!


On Wed, Sep 24, 2014 at 11:44 AM, Nirmal Fernando  wrote:

> Cool.. thanks for checking. So, we could go with this? Wdyt? This avoid
> the pre-requisite of having gsed.
>
> On Wed, Sep 24, 2014 at 11:42 AM, Thushara Ranawaka 
> wrote:
>
>> Hi Nirmal,
>> If we can use -n alone with -i will do the job(tested in mac osx).
>>
>> example:- sed -i -n "s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g"
>> mysql.sql
>>
>> in the sed manual its stated like this
>>
>>  -i *extension*
>>
>>  Edit files in-place, saving backups with the specified
>> extension.  If a zero-length extension is given, no backup will be
>> saved.  It is not recommended to give a zero-length extension when
>> in-place
>>
>>  editing files, as you risk corruption or partial content in
>> situations where disk space is exhausted, etc.
>>
>>  -n
>>
>>  By default, each line of input is echoed to the standard
>> output after all of the commands have been applied to it.  The -n option
>> suppresses this behavior.
>>
>>
>> Thanks,
>>
>> Thushara
>>
>> On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando 
>> wrote:
>>
>>> Guys,
>>>
>>> One concern; isn't there anyway to avoid this new package installation ?
>>> Wouldn't sed -n an option in OS X (
>>> http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
>>> )
>>>
>>> On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka 
>>> wrote:
>>>
 Hi,

 Thank you Prasanna for the prompt reply and helping to rectifying the
 issue(using gsed -i instead of sed -i).
 Finally we were able to start Stratos in our mac books. I would like to
 merge all the findings together for more clarification.

 In our review we found that below problems in respective shell scripts.

 1) In setup.sh >> line 539 the activemq.xml location is hard coded.
 2) sed -i is included in many of the shell scripts.
 3) use of illegal group name. (line 580 chown -R
 *$host_user:$host_user* $stratos_path)

 As per the work around solution :-

 1)We added below lines to the setup.conf eod
 # activemq.xml path
 #
 
 export
 activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml

 2)
 i. Installed homebrew 
 ruby -e "$(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)"
 ii. Installed gnu-sed
 brew install gnu-sed
 iii. Changed sed -i to gsed -i in *demo.sh, ec2.sh,openstack.sh,
 add_entry_zone_file.sh, remove_entry_zone_file.sh, setup.sh and vcloud.sh.*
 (I uploaded the edit files below and the link
 
  for
 g-drive file location)

 3) Adding a user group as same as your user name in mac osx (System
 Preferences -> Users & Groups (Unlock to change) -> new Group as 'suhanr')

 Hope these simple steps will rectify the issue.

 Thanks,
 Thushara.


 On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya 
 wrote:

> Hi all,
>
> Adding to Prasanna's comment.
>
> Following issue,
> Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
> chown: suhanr: illegal group name
> was solved by,
> 1. Adding a user group as suhanr in mac osx (System Preferences ->
> Users & Groups (Unlock to change) -> new Group as 'suhanr')
> 2. > sudo chown -R suhanr:suhanr *
>
> Thanks,
> Suhan
>
> On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla 
> wrote:
>
>> Hi all,
>>
>> Issue was with the sed and database name.
>>
>> Fixed those in suhanr's  mac and stratos installed successfully :D .
>>
>> Step followed
>>
>> 1. Installed homerew
>> ruby -e "$(curl -fsSL
>> https://raw.githubusercontent.com/Homebrew/install/master/install)"
>> 2. Installed gnu-sed
>> brew install gnu-sed
>> 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
>> 4. Run setup.sh
>>
>> No issues in clean.sh
>>
>>
>> On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando 
>> wrote:
>>
>>> Please check the place where it creates this database. Seems like
>>> it's not properly replaced.
>>>
>>> On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka <
>>> thusha...@wso2.com> wrote:
>>>
 Hi Manula,
 Yes it is.


 On Wed, 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-23 Thread Nirmal Fernando
Cool.. thanks for checking. So, we could go with this? Wdyt? This avoid the
pre-requisite of having gsed.

On Wed, Sep 24, 2014 at 11:42 AM, Thushara Ranawaka 
wrote:

> Hi Nirmal,
> If we can use -n alone with -i will do the job(tested in mac osx).
>
> example:- sed -i -n "s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g"
> mysql.sql
>
> in the sed manual its stated like this
>
>  -i *extension*
>
>  Edit files in-place, saving backups with the specified
> extension.  If a zero-length extension is given, no backup will be
> saved.  It is not recommended to give a zero-length extension when
> in-place
>
>  editing files, as you risk corruption or partial content in
> situations where disk space is exhausted, etc.
>
>  -n
>
>  By default, each line of input is echoed to the standard
> output after all of the commands have been applied to it.  The -n option
> suppresses this behavior.
>
>
> Thanks,
>
> Thushara
>
> On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando  wrote:
>
>> Guys,
>>
>> One concern; isn't there anyway to avoid this new package installation ?
>> Wouldn't sed -n an option in OS X (
>> http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
>> )
>>
>> On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka 
>> wrote:
>>
>>> Hi,
>>>
>>> Thank you Prasanna for the prompt reply and helping to rectifying the
>>> issue(using gsed -i instead of sed -i).
>>> Finally we were able to start Stratos in our mac books. I would like to
>>> merge all the findings together for more clarification.
>>>
>>> In our review we found that below problems in respective shell scripts.
>>>
>>> 1) In setup.sh >> line 539 the activemq.xml location is hard coded.
>>> 2) sed -i is included in many of the shell scripts.
>>> 3) use of illegal group name. (line 580 chown -R *$host_user:$host_user*
>>> $stratos_path)
>>>
>>> As per the work around solution :-
>>>
>>> 1)We added below lines to the setup.conf eod
>>> # activemq.xml path
>>> #
>>> 
>>> export
>>> activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml
>>>
>>> 2)
>>> i. Installed homebrew 
>>> ruby -e "$(curl -fsSL
>>> https://raw.githubusercontent.com/Homebrew/install/master/install)"
>>> ii. Installed gnu-sed
>>> brew install gnu-sed
>>> iii. Changed sed -i to gsed -i in *demo.sh, ec2.sh,openstack.sh,
>>> add_entry_zone_file.sh, remove_entry_zone_file.sh, setup.sh and vcloud.sh.*
>>> (I uploaded the edit files below and the link
>>> 
>>>  for
>>> g-drive file location)
>>>
>>> 3) Adding a user group as same as your user name in mac osx (System
>>> Preferences -> Users & Groups (Unlock to change) -> new Group as 'suhanr')
>>>
>>> Hope these simple steps will rectify the issue.
>>>
>>> Thanks,
>>> Thushara.
>>>
>>>
>>> On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya 
>>> wrote:
>>>
 Hi all,

 Adding to Prasanna's comment.

 Following issue,
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name
 was solved by,
 1. Adding a user group as suhanr in mac osx (System Preferences ->
 Users & Groups (Unlock to change) -> new Group as 'suhanr')
 2. > sudo chown -R suhanr:suhanr *

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla 
 wrote:

> Hi all,
>
> Issue was with the sed and database name.
>
> Fixed those in suhanr's  mac and stratos installed successfully :D .
>
> Step followed
>
> 1. Installed homerew
> ruby -e "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/master/install)"
> 2. Installed gnu-sed
> brew install gnu-sed
> 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
> 4. Run setup.sh
>
> No issues in clean.sh
>
>
> On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando 
> wrote:
>
>> Please check the place where it creates this database. Seems like
>> it's not properly replaced.
>>
>> On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka <
>> thusha...@wso2.com> wrote:
>>
>>> Hi Manula,
>>> Yes it is.
>>>
>>>
>>> On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte <
>>> manu...@wso2.com> wrote:
>>>
 Hi,

 It might be a problem. Then it create the database as
 "USERSTORE_DB_SCHEMA". Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka <
 thusha...@wso2.com> wrote:

> Hi,
>
> Issue was the database name.
> I did the following changes in the setup.conf and now clean.sh is
> working properly.
>
> # export userstore_db_schema="userstore"
> export userstore

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-23 Thread Thushara Ranawaka
Hi Nirmal,
If we can use -n alone with -i will do the job(tested in mac osx).

example:- sed -i -n "s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g" mysql.sql

in the sed manual its stated like this

 -i *extension*

 Edit files in-place, saving backups with the specified
extension.  If a zero-length extension is given, no backup will be saved.
It is not recommended to give a zero-length extension when in-place

 editing files, as you risk corruption or partial content in
situations where disk space is exhausted, etc.

 -n

 By default, each line of input is echoed to the standard
output after all of the commands have been applied to it.  The -n option
suppresses this behavior.


Thanks,

Thushara

On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando  wrote:

> Guys,
>
> One concern; isn't there anyway to avoid this new package installation ?
> Wouldn't sed -n an option in OS X (
> http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
> )
>
> On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka 
> wrote:
>
>> Hi,
>>
>> Thank you Prasanna for the prompt reply and helping to rectifying the
>> issue(using gsed -i instead of sed -i).
>> Finally we were able to start Stratos in our mac books. I would like to
>> merge all the findings together for more clarification.
>>
>> In our review we found that below problems in respective shell scripts.
>>
>> 1) In setup.sh >> line 539 the activemq.xml location is hard coded.
>> 2) sed -i is included in many of the shell scripts.
>> 3) use of illegal group name. (line 580 chown -R *$host_user:$host_user*
>> $stratos_path)
>>
>> As per the work around solution :-
>>
>> 1)We added below lines to the setup.conf eod
>> # activemq.xml path
>> #
>> 
>> export activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml
>>
>> 2)
>> i. Installed homebrew 
>> ruby -e "$(curl -fsSL
>> https://raw.githubusercontent.com/Homebrew/install/master/install)"
>> ii. Installed gnu-sed
>> brew install gnu-sed
>> iii. Changed sed -i to gsed -i in *demo.sh, ec2.sh,openstack.sh,
>> add_entry_zone_file.sh, remove_entry_zone_file.sh, setup.sh and vcloud.sh.*
>> (I uploaded the edit files below and the link
>> 
>>  for
>> g-drive file location)
>>
>> 3) Adding a user group as same as your user name in mac osx (System
>> Preferences -> Users & Groups (Unlock to change) -> new Group as 'suhanr')
>>
>> Hope these simple steps will rectify the issue.
>>
>> Thanks,
>> Thushara.
>>
>>
>> On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya 
>> wrote:
>>
>>> Hi all,
>>>
>>> Adding to Prasanna's comment.
>>>
>>> Following issue,
>>> Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
>>> chown: suhanr: illegal group name
>>> was solved by,
>>> 1. Adding a user group as suhanr in mac osx (System Preferences -> Users
>>> & Groups (Unlock to change) -> new Group as 'suhanr')
>>> 2. > sudo chown -R suhanr:suhanr *
>>>
>>> Thanks,
>>> Suhan
>>>
>>> On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla 
>>> wrote:
>>>
 Hi all,

 Issue was with the sed and database name.

 Fixed those in suhanr's  mac and stratos installed successfully :D .

 Step followed

 1. Installed homerew
 ruby -e "$(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)"
 2. Installed gnu-sed
 brew install gnu-sed
 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
 4. Run setup.sh

 No issues in clean.sh


 On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando 
 wrote:

> Please check the place where it creates this database. Seems like it's
> not properly replaced.
>
> On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka  > wrote:
>
>> Hi Manula,
>> Yes it is.
>>
>>
>> On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte <
>> manu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> It might be a problem. Then it create the database as
>>> "USERSTORE_DB_SCHEMA". Isn't it ?
>>>
>>> On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka <
>>> thusha...@wso2.com> wrote:
>>>
 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is
 working properly.

 # export userstore_db_schema="userstore"
 export userstore_db_schema="USERSTORE_DB_SCHEMA" # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka <
 thusha...@wso2.com> wrote:

> Hi Manula,
>
> FYI
>
> In mac when we run mysql -u $mysq

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-23 Thread Nirmal Fernando
Guys,

One concern; isn't there anyway to avoid this new package installation ?
Wouldn't sed -n an option in OS X (
http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
)

On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka 
wrote:

> Hi,
>
> Thank you Prasanna for the prompt reply and helping to rectifying the
> issue(using gsed -i instead of sed -i).
> Finally we were able to start Stratos in our mac books. I would like to
> merge all the findings together for more clarification.
>
> In our review we found that below problems in respective shell scripts.
>
> 1) In setup.sh >> line 539 the activemq.xml location is hard coded.
> 2) sed -i is included in many of the shell scripts.
> 3) use of illegal group name. (line 580 chown -R *$host_user:$host_user*
> $stratos_path)
>
> As per the work around solution :-
>
> 1)We added below lines to the setup.conf eod
> # activemq.xml path
> #
> 
> export activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml
>
> 2)
> i. Installed homebrew 
> ruby -e "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/master/install)"
> ii. Installed gnu-sed
> brew install gnu-sed
> iii. Changed sed -i to gsed -i in *demo.sh, ec2.sh,openstack.sh,
> add_entry_zone_file.sh, remove_entry_zone_file.sh, setup.sh and vcloud.sh.*
> (I uploaded the edit files below and the link
> 
>  for
> g-drive file location)
>
> 3) Adding a user group as same as your user name in mac osx (System
> Preferences -> Users & Groups (Unlock to change) -> new Group as 'suhanr')
>
> Hope these simple steps will rectify the issue.
>
> Thanks,
> Thushara.
>
>
> On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya 
> wrote:
>
>> Hi all,
>>
>> Adding to Prasanna's comment.
>>
>> Following issue,
>> Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
>> chown: suhanr: illegal group name
>> was solved by,
>> 1. Adding a user group as suhanr in mac osx (System Preferences -> Users
>> & Groups (Unlock to change) -> new Group as 'suhanr')
>> 2. > sudo chown -R suhanr:suhanr *
>>
>> Thanks,
>> Suhan
>>
>> On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla 
>> wrote:
>>
>>> Hi all,
>>>
>>> Issue was with the sed and database name.
>>>
>>> Fixed those in suhanr's  mac and stratos installed successfully :D .
>>>
>>> Step followed
>>>
>>> 1. Installed homerew
>>> ruby -e "$(curl -fsSL
>>> https://raw.githubusercontent.com/Homebrew/install/master/install)"
>>> 2. Installed gnu-sed
>>> brew install gnu-sed
>>> 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
>>> 4. Run setup.sh
>>>
>>> No issues in clean.sh
>>>
>>>
>>> On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando 
>>> wrote:
>>>
 Please check the place where it creates this database. Seems like it's
 not properly replaced.

 On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka 
 wrote:

> Hi Manula,
> Yes it is.
>
>
> On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte <
> manu...@wso2.com> wrote:
>
>> Hi,
>>
>> It might be a problem. Then it create the database as
>> "USERSTORE_DB_SCHEMA". Isn't it ?
>>
>> On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka <
>> thusha...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Issue was the database name.
>>> I did the following changes in the setup.conf and now clean.sh is
>>> working properly.
>>>
>>> # export userstore_db_schema="userstore"
>>> export userstore_db_schema="USERSTORE_DB_SCHEMA" # for mac osx
>>>
>>> Is there any issue or conflict in above setup?
>>>
>>> Thanks,
>>> Thushara
>>>
>>> On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka <
>>> thusha...@wso2.com> wrote:
>>>
 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e "DROP
 DATABASE IF EXISTS $userstore_db_schema;"  it works without any
 issue. we will debug the shell script and let you know.

 mysql> show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql> exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e "DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;"

 Warning: Using a password on the command line interface can be
 insecure.

 Th

Re: [Dev] Cluster Message issue

2014-09-23 Thread Godwin Amila Shrimal
Hi Isuru,

Thanks and got the point.

On Tue, Sep 23, 2014 at 11:39 PM, Isuru Perera  wrote:

> We do not recommend to use getCurrentContext() method and the way it is
> executed leads to a recursive loop. That's why you are getting a
> StackOverflowError.
>
> Carbon Team,
>
> We need to deprecate getCurrentContext() method in next release.
>
> On Tue, Sep 23, 2014 at 5:41 PM, Godwin Amila Shrimal 
> wrote:
>
>> Hi Gayashan,
>>
>> Thanks a lot, it worked properly, BTW do u know any reason to give a
>> Stackoverflow on previous scenario ?
>>
>> On Tue, Sep 23, 2014 at 5:08 PM, Gayashan Amarasinghe 
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> Please use the getThreadLocalCarbonContext to acquire a
>>> PriviledgedCarbonContext instance.
>>>
>>> Thanks.
>>> /Gayashan
>>>
>>> On Tue, Sep 23, 2014 at 4:49 PM, Godwin Amila Shrimal 
>>> wrote:
>>>
 Hi,

 I am trying to send a Cluster message and get a
 *java.lang.StackOverflowError* error in highlighted line in following
 code.

 public static void cleanTenantMaponWorkernodes(int tenantId)throws
 Exception {

 TenantDeleteClusterMessage clustermessage = new
 TenantDeleteClusterMessage(tenantId);

 *ConfigurationContextService configContextService =
 (ConfigurationContextService) PrivilegedCarbonContext*

 * .getCurrentContext().getOSGiService(*

 * ConfigurationContextService.class);*

 ConfigurationContext configContext = configContextService
 .getServerConfigContext();

 ClusteringAgent agent = configContext.getAxisConfiguration()
 .getClusteringAgent();

 try {

 if (agent != null) {

 agent.sendMessage(clustermessage, true);

 }

 } catch (ClusteringFault e) {

 log.error("Error occured while broadcasting TenantDeleteClusterMessage
 : "

 + e.getMessage());

 }

 }


 *Error Log*

 Caused by: java.lang.StackOverflowError

 at org.apache.catalina.connector.Request.doGetSession(Request.java:2837)

 at org.apache.catalina.connector.Request.getSession(Request.java:2316)

 at
 org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)

 at
 javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)

 at
 org.eclipse.equinox.http.servlet.internal.HttpServletRequestAdaptor.getSession(HttpServletRequestAdaptor.java:146)

 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:533)

 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)

  at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)


 Can anyone help one this to resolve ?


 Thanks
 Godwin


 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila

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


>>>
>>>
>>> --
>>> *Gayashan Amarasinghe*
>>> Software Engineer | Platform TG
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +94718314517
>>> Blog : gayashan-a.blogspot.com
>>>
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help understand ESB sample 1

2014-09-23 Thread Lahiru Chandima
Hi Shani,

Thanks for the help. Seems like I have to read more about axis2 options.

Thanks

On Tue, Sep 23, 2014 at 7:13 PM, Shani Ranasinghe  wrote:

> Hi Lahiru,
>
> in your log you would have noticed the  text " INFO - LogMediator To:
> /services/StockQuote,", this is what it gets filtered by the filter
> mediator. It's an Axis2 option to set WS-Addressing To endpoint. These
> options are not included in the Soap message in this case. For the sample
> execution what is mentioned in the docs is to use -Dtrpurl which is
> specifying the transport URL. If you specify the addurl (-Daddurl together
> with -Dtrpurl) which is the address Url this property will be included
> because of the different ways they are handled.
>
> You can read more on this from the followings.
> [1]
> http://axis.apache.org/axis2/java/core/api/org/apache/axis2/client/Options.html
> [2] https://docs.wso2.com/display/ESB481/Synapse+XPath+Variables
> [3] http://synapse.apache.org/1_0/samples_setup.html - This is an old
> documentation. I could not find any reference to WSO2 documentation
> regarding the smart client mode, dumb client mode and Proxy client mode.
> [4] https://docs.wso2.com/display/ESB481/Filter+Mediator
> [5] http://wso2.com/library/2561/
>
>
>
>
>
> On Tue, Sep 23, 2014 at 5:43 PM, Lahiru Chandima  wrote:
>
>> Hi All,
>>
>> I am running examples provided with WSO2 ESB to get familiar with it.
>>
>> Sample 1 [1
>> ],
>> explains how to use a filter mediator. The filter used is as follows
>>
>> 
>>
>> As per the documentation, this filters the To EPR of the message, that
>> means, the "To" property of the soap header of the message as I understood.
>>
>> But, when I checked the input soap message (I used a log mediator to log
>> the incoming message), the soap header does not have a "To" property. The
>> soap header of the message is given bellow. But, the message somehow gets
>> routed to the Axis2 service.
>>
>> http://www.w3.org/2005/08/addressing";>
>> 
>> urn:uuid:7479f6f7-d302-41f1-a7de-4b35f64ad366
>> urn:getQuote
>>
>>
>>
>> Can somebody please explain how this happens?
>>
>> Thanks.
>>
>> [1]
>> https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages
>> --
>> Lahiru Chandima
>> *Senior Software Engineer*
>> Mobile : +94 (0) 772 253283
>> lahi...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Authenticated user not shown in http_access log file

2014-09-23 Thread Sameera Jayaratna
Hi,

In /repository/conf/tomcat/catalina-server.xml a pattern can be given for
http_access logs as follows.



With this pattern we get the log as follows.

127.0.0.1 - - [24/Sep/2014:09:03:11 +0530] GET /carbon/ HTTP/1.1 302 -
127.0.0.1 - - [24/Sep/2014:09:03:11 +0530] GET /carbon/admin/index.jsp
HTTP/1.1 302 -
127.0.0.1 - - [24/Sep/2014:09:03:12 +0530] GET /carbon/admin/login.jsp
HTTP/1.1 200 3588
127.0.0.1 - - [24/Sep/2014:09:03:12 +0530] GET /carbon/admin/css/global.css
HTTP/1.1 200 5309
127.0.0.1 - - [24/Sep/2014:09:03:12 +0530] GET
/carbon/dialog/css/jqueryui/jqueryui-themeroller.css HTTP/1.1 200 4020

According to [1], %u stands for 'Remote user that was authenticated (if
any), else '-''. But according to the above log the user is not shown. What
can be the reason for this?

Thank you,
Sameera

[1]http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

-- 



*Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

*lean . enterprise . middleware |  http://wso2.com  *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Debugging ESB - Required components for ESB

2014-09-23 Thread Chanaka Fernando
Hi Asok,

As a general practice for debugging WSO2 products, follow the steps given
below.

1) Refer to the carbon release matrix page and find the relevant source
code version according to your product version (Ex: ESB 4.8.1)

http://wso2.com/products/carbon/release-matrix/

ESB 4.8.1 is released under chunk07

2) Go to the source repository related to chunk 07

https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/

3) Select the relevant component which you are going to debug (Ex: synapse)
and traverse to that component

https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/dependencies/synapse

4) Find the correct version of the component. You can check the version of
the jar file in the product pack and take that version.

https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/

5) Now you can remote debug the ESB with correct source code of the synapse
component.



Thanks,
Chanaka


On Tue, Sep 23, 2014 at 9:54 PM, Malaka Silva  wrote:

> Hi,
>
> I am assuming you are referring to esb 4.8.1. Source can be found in [1]
>
> [1] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/
>
> On Tue, Sep 23, 2014 at 5:06 PM, Asok Perera  wrote:
>
>> Hi,
>>
>> I'm trying to run the ESB in remote debug mode and could someone point me
>> out the correct components (sources) for ESB ?
>>
>> Regards
>>
>>
>> *Asok Aravinda Perera*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94722241032
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> 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
>
>


-- 
--
Chanaka Fernando
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] wso2 esb integration with greg

2014-09-23 Thread Danushka Fernando
Hi
Depends on your requirement. When you mean two databases I think they are
userstore and registry.
You can share userstore between two clusters. When you do that if you
create some userstore related thing (tenants, users, roles, permissions) in
one cluster it will be available in other too.
And when it comes to registry there are three parts of registry.
Governance, config and local. You can share governance registry among
clusters. That will help you to share data among clusters. But *don't* share
config registry. Its per cluster. And local is per server. Usually we don't
even mount local registry.
I hope this is clear enough.

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Wed, Sep 24, 2014 at 1:59 AM, Aliosha  wrote:

> hi,
> i've already implemented an esb cluster made up on
>
> 1 elb
> 1 manager esb
> 2 worker esb
>
> i've followed the documentation creating the two datadases specified
> inside it.
> Now i want to integrate the greg. Inside the documentation i find the
> procedure to create again the two databases, but what does it happen if
> i've already created them during the clustering? can i point the same
> withouth any consequences ? or have i to create new ones?
> thanks.
> regards
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cluster Message issue

2014-09-23 Thread Isuru Perera
We do not recommend to use getCurrentContext() method and the way it is
executed leads to a recursive loop. That's why you are getting a
StackOverflowError.

Carbon Team,

We need to deprecate getCurrentContext() method in next release.

On Tue, Sep 23, 2014 at 5:41 PM, Godwin Amila Shrimal 
wrote:

> Hi Gayashan,
>
> Thanks a lot, it worked properly, BTW do u know any reason to give a
> Stackoverflow on previous scenario ?
>
> On Tue, Sep 23, 2014 at 5:08 PM, Gayashan Amarasinghe 
> wrote:
>
>> Hi Godwin,
>>
>> Please use the getThreadLocalCarbonContext to acquire a
>> PriviledgedCarbonContext instance.
>>
>> Thanks.
>> /Gayashan
>>
>> On Tue, Sep 23, 2014 at 4:49 PM, Godwin Amila Shrimal 
>> wrote:
>>
>>> Hi,
>>>
>>> I am trying to send a Cluster message and get a
>>> *java.lang.StackOverflowError* error in highlighted line in following
>>> code.
>>>
>>> public static void cleanTenantMaponWorkernodes(int tenantId)throws
>>> Exception {
>>>
>>> TenantDeleteClusterMessage clustermessage = new
>>> TenantDeleteClusterMessage(tenantId);
>>>
>>> *ConfigurationContextService configContextService =
>>> (ConfigurationContextService) PrivilegedCarbonContext*
>>>
>>> * .getCurrentContext().getOSGiService(*
>>>
>>> * ConfigurationContextService.class);*
>>>
>>> ConfigurationContext configContext = configContextService
>>> .getServerConfigContext();
>>>
>>> ClusteringAgent agent = configContext.getAxisConfiguration()
>>> .getClusteringAgent();
>>>
>>> try {
>>>
>>> if (agent != null) {
>>>
>>> agent.sendMessage(clustermessage, true);
>>>
>>> }
>>>
>>> } catch (ClusteringFault e) {
>>>
>>> log.error("Error occured while broadcasting TenantDeleteClusterMessage :
>>> "
>>>
>>> + e.getMessage());
>>>
>>> }
>>>
>>> }
>>>
>>>
>>> *Error Log*
>>>
>>> Caused by: java.lang.StackOverflowError
>>>
>>> at org.apache.catalina.connector.Request.doGetSession(Request.java:2837)
>>>
>>> at org.apache.catalina.connector.Request.getSession(Request.java:2316)
>>>
>>> at
>>> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)
>>>
>>> at
>>> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>>>
>>> at
>>> org.eclipse.equinox.http.servlet.internal.HttpServletRequestAdaptor.getSession(HttpServletRequestAdaptor.java:146)
>>>
>>> at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:533)
>>>
>>> at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>>>
>>>  at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>>>
>>>
>>> Can anyone help one this to resolve ?
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Gayashan Amarasinghe*
>> Software Engineer | Platform TG
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +94718314517
>> Blog : gayashan-a.blogspot.com
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

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


[Dev] RPCMessageReceiver Exception occurred while an unauthorized user tries to access a web application in EAM

2014-09-23 Thread Thilini Shanika
Hi,

RPCMessageReceiver exceptions are occurred in EAM while an unauthorized
user tries to access an webapp from EAM store [1] or browse an webapp
resource from admin console [2]. These exceptions are triggered from
org.wso2.carbon.identity.application.mgt/4.2.1 component and the root cause
for this unexpected behavior is  using 'CarbonContext.getCurrentContext()'
instead of 'CarbonContext.getThreadLocalCarbonContext()', inside some
methods of ApplicationManagementService
and ApplicationManagementOSGIService classes. Can you please provide a fix
for this issue?


[1] - https://wso2.org/jira/browse/APPM-184
[2] - https://wso2.org/jira/browse/APPM-186

Thanks !
-- 
Thilini Shanika
Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Restricting WSO2 Carbon package access with Java Security Manager

2014-09-23 Thread Afkham Azeez
Yes, this needs to be fixed in the proper way.

On Tue, Sep 23, 2014 at 1:59 PM, Isuru Perera  wrote:

> Hi all,
>
> When enabling the Java Security Manager for WSO2 products, we used to have
> a system property named "restricted.packages".
>
> This property accepts comma separated list of packages and sets the  "
> package.access" *System* property [1].
>
> In Carbon 4.2.0, this property is not used anywhere. After discussing with
> Prabath, I found out that the above system property was used in Carbon 3
> [2].
>
> Could anyone please let us know, why the usage of "restricted.packages"
> was removed [3] in latest Carbon?
>
> Also in Carbon 3.2.0 code, the "restricted.packages" system property value
> is directly replacing the "package.access" security property. I think
> that's wrong as "package.access" system property already has predefined set
> of packages.
>
> Shall we fix this properly in Carbon 4.3.0?
>
> Thanks!
>
> Best Regards,
>
> [1]
> http://docs.oracle.com/javase/7/docs/api/java/lang/SecurityManager.html#checkPackageAccess%28java.lang.String%29
> [2]
> https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/core/org.wso2.carbon.server/3.2.2/src/main/java/org/wso2/carbon/server/Main.java
> [3]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.server/4.2.0/src/main/java/org/wso2/carbon/server/Main.java
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] Debugging ESB - Required components for ESB

2014-09-23 Thread Malaka Silva
Hi,

I am assuming you are referring to esb 4.8.1. Source can be found in [1]

[1] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/

On Tue, Sep 23, 2014 at 5:06 PM, Asok Perera  wrote:

> Hi,
>
> I'm trying to run the ESB in remote debug mode and could someone point me
> out the correct components (sources) for ESB ?
>
> Regards
>
>
> *Asok Aravinda Perera*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94722241032
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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


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


[Dev] OSGI not loading the dependency

2014-09-23 Thread Priyadarssini Kishokumar
Hi,

I'm creating a new feature in ESB using java chronicle library. I copied
dependency jars into lib folder.
When I run the ESB, it says a specific class is not found. There are 3 jar
files. Two of them are working fine. I checked with via OSGI console, that
specific class is not there. How to solve this?

-- 
Priya Kishok
Software Engineer
WSO2, Inc : http://wso2.com
Mob : +94774457404
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updated Invitation: Code Review - Integration Tests WSO2 EAM @ Tue Sep 23, 2014 4:30pm - 5:30pm (Dinusha Senanayaka)

2014-09-23 Thread Dinusha Senanayaka
Code review notes:

- If config file is not there read the configs from property file .
(AppManagerIntegrationTest.java -> SP creation )
- JWT token validation -> validate role . Currently it's validating only
claim uri.
- Tags test case need to have UI validation as well. (whether it appears in
Store UI)
- Include applicationCreation() -> publish() -> subscription() .. test
cases in a separate base test class.
- In delete test case -> delete the application and do a get for
application call & check get returns a null , instead of checking response
code of delete API.


ToDo:
Throttling TestCase
Resource Level authorization using role TestCase
Resource level authorization using xacml TestCase

Regards,
Dinusha.

On Tue, Sep 23, 2014 at 3:22 PM, Kasun Dissanayake  wrote:

> This event has been changed.
> more details »
> 
> Code Review - Integration Tests WSO2 EAM
> *When*
> *Changed: *Tue Sep 23, 2014 4:30pm – 5:30pm Colombo
> *Where*
> LK, 3rd Floor Meeting Room (map
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/kasunu
> 
> *Calendar*
> Dinusha Senanayaka
> *Who*
> •
> Kasun Dissanayake - organizer
> •
> Rushmin Fernando
> •
> Rajeeva Uthayasangar
> •
> Waruna Perera
> •
> Jenananthan Yogendran
> •
> dev@wso2.org
> •
> Chathura Dilan
> •
> Ruwan Yatawara
> •
> Thilini Shanika
> •
> Krishantha Samaraweera
> •
> Nuwan Dias
> •
> Dinusha Senanayaka
> •
> Sumedha Rubasinghe
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this email at the account dinu...@wso2.com because you
> are subscribed for updated invitations on calendar Dinusha Senanayaka.
>
> To stop receiving these notifications, please log in to
> https://www.google.com/calendar/ and change your notification settings
> for this calendar.
>



-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Restricting WSO2 Carbon package access with Java Security Manager

2014-09-23 Thread Isuru Perera
Hi all,

I created a JIRA [1] for this.

Thanks!

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

On Tue, Sep 23, 2014 at 1:59 PM, Isuru Perera  wrote:

> Hi all,
>
> When enabling the Java Security Manager for WSO2 products, we used to have
> a system property named "restricted.packages".
>
> This property accepts comma separated list of packages and sets the  "
> package.access" *System* property [1].
>
> In Carbon 4.2.0, this property is not used anywhere. After discussing with
> Prabath, I found out that the above system property was used in Carbon 3
> [2].
>
> Could anyone please let us know, why the usage of "restricted.packages"
> was removed [3] in latest Carbon?
>
> Also in Carbon 3.2.0 code, the "restricted.packages" system property value
> is directly replacing the "package.access" security property. I think
> that's wrong as "package.access" system property already has predefined set
> of packages.
>
> Shall we fix this properly in Carbon 4.3.0?
>
> Thanks!
>
> Best Regards,
>
> [1]
> http://docs.oracle.com/javase/7/docs/api/java/lang/SecurityManager.html#checkPackageAccess%28java.lang.String%29
> [2]
> https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/core/org.wso2.carbon.server/3.2.2/src/main/java/org/wso2/carbon/server/Main.java
> [3]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.server/4.2.0/src/main/java/org/wso2/carbon/server/Main.java
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

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


[Dev] [AF] Stratos git notifys2.groovy script is calling outdated API in AppFactory developer setup

2014-09-23 Thread Amalka Subasinghe
Hi,

The app deployment step fails in developer setup because the s2-gitblit's
notifys2.groovy script calls the out dated API
(org.apache.stratos.cartridge.mgt.ui.RepoNotificationServlet) to notify the
stratos controller.

changed the git hook as follows to fix the issue [1]
def response = ["curl", "-k", "-X", "POST", "-H", "Content-Type:
application/json", "-d", "${json}", "https://${user.username}:${
user.password}@sc.s2.appfactory.private.wso2.com:9463/stratos/admin/reponotification
"].execute().text

[1] https://wso2.org/jira/browse/APPFAC-2514

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


Re: [Dev] Error when building carbon-utils

2014-09-23 Thread Himan Gamage
Hi Aruna,

I changed the JDK to jdk1.6.0_33. After that problem solved. Thanks for
your kind assistance.

On Tue, Sep 23, 2014 at 4:27 PM, Aruna Karunarathna  wrote:

> Hi Himan,
>
> Did you try to build with Java 7 or Java 8?.. try using Java 6
>
> Regards,
> Aruna
>
> On Tue, Sep 23, 2014 at 4:18 PM, Himan Gamage  wrote:
>
>> Hi all,
>>
>> When I was building the carbon-utils, I'm getting the following error.
>> Any help will be greatly appreciated.
>>
>> [INFO] WSO2 Carbon - Tasks Core .. FAILURE
>> [2.148s]
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
>> (default-compile) on project org.wso2.carbon.ntask.core: Compilation failure
>> [ERROR]
>> /home/himangamage/wso2/others/carbon-utils/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/internal/TasksDSComponent.java:[197,24]
>> error: type ServiceReference does not take parameters
>>
>> --
>> Best Regards,
>>
>> Himan Gamage
>> Software Engineer Intern
>> Mobile: *+94714636720*
>> Email: hi...@wso2.com
>> Blog : http://www.himangamage.info/
>> *WSO2, Inc. :** wso2.com *
>> 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
>
>



-- 
Best Regards,

Himan Gamage
Software Engineer Intern
Mobile: *+94714636720*
Email: hi...@wso2.com
Blog : http://www.himangamage.info/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AM 1.8.0 nightly build pack-23-09-2014

2014-09-23 Thread Lalaji Sureshika
Hi,

Please find $subject from [1].

[1] https://svn.wso2.org/repos/wso2/scratch/chunk13-release/23-09-2014/

-- 
Lalaji Sureshika
WSO2, Inc.;  http://wso2.com/
email: lal...@wso2.com;
blog: http://lalajisureshika.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help understand ESB sample 1

2014-09-23 Thread Shani Ranasinghe
Hi Lahiru,

in your log you would have noticed the  text " INFO - LogMediator To:
/services/StockQuote,", this is what it gets filtered by the filter
mediator. It's an Axis2 option to set WS-Addressing To endpoint. These
options are not included in the Soap message in this case. For the sample
execution what is mentioned in the docs is to use -Dtrpurl which is
specifying the transport URL. If you specify the addurl (-Daddurl together
with -Dtrpurl) which is the address Url this property will be included
because of the different ways they are handled.

You can read more on this from the followings.
[1]
http://axis.apache.org/axis2/java/core/api/org/apache/axis2/client/Options.html
[2] https://docs.wso2.com/display/ESB481/Synapse+XPath+Variables
[3] http://synapse.apache.org/1_0/samples_setup.html - This is an old
documentation. I could not find any reference to WSO2 documentation
regarding the smart client mode, dumb client mode and Proxy client mode.
[4] https://docs.wso2.com/display/ESB481/Filter+Mediator
[5] http://wso2.com/library/2561/





On Tue, Sep 23, 2014 at 5:43 PM, Lahiru Chandima  wrote:

> Hi All,
>
> I am running examples provided with WSO2 ESB to get familiar with it.
>
> Sample 1 [1
> ],
> explains how to use a filter mediator. The filter used is as follows
>
> 
>
> As per the documentation, this filters the To EPR of the message, that
> means, the "To" property of the soap header of the message as I understood.
>
> But, when I checked the input soap message (I used a log mediator to log
> the incoming message), the soap header does not have a "To" property. The
> soap header of the message is given bellow. But, the message somehow gets
> routed to the Axis2 service.
>
> http://www.w3.org/2005/08/addressing";>
> 
> urn:uuid:7479f6f7-d302-41f1-a7de-4b35f64ad366
> urn:getQuote
>
>
>
> Can somebody please explain how this happens?
>
> Thanks.
>
> [1]
> https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages
> --
> Lahiru Chandima
> *Senior Software Engineer*
> Mobile : +94 (0) 772 253283
> lahi...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Info about Encrypted data stored in registry in WSO2 products

2014-09-23 Thread Susinda Perera
Thanks prabath for the quick response.
Yes i have to grep both encrypt and encryptAndBase64Encode methods. But
issue i faced was then i have to find the registry.put methods followed by
this. And also i found some wrapper/utility classes written by using CryptoUtil
class. then i have to find their uses and then again find registry
insertions and do so on.
Thats why i thought to get some help from developers who might have some
idea if they have done such coding. Any idea?



On Tue, Sep 23, 2014 at 6:20 PM, Prabath Siriwardena 
wrote:

> I think you need to grep for encrypt() method of CryptoUtil class [1]
>
> [1]:
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/core/org.wso2.carbon.core/4.2.0/src/main/java/org/wso2/carbon/core/util/CryptoUtil.java
>
> Thanks & regards,
> -Prabath
>
> On Tue, Sep 23, 2014 at 5:50 PM, Susinda Perera  wrote:
> >
> > Hi Developers/Product Leads
> >
> > Need your help to figure out the $subject. Could you point out any places
> > that you put encrypted data to registry in the products (ESB, GREG, CEP,
> IS,
> > AS, API MANAGER, BAM) that you are working. I want to know what and where
> > (i.e registry path) such info is saved.
> >
> > I have tried a approach in searching for places of occurrences of [1],
> > however this approach does not seems to be a easy one since i have to do
> > several iterations to find this. Also it is difficult because my
> requirement
> > is to find the registry insertions of such encrypted data. In that case i
> > have to first find the occurrences of [1] and the find the registry.put
> > followed by that.
> >
> > Therefore i think easy way is to contact the developers and get this
> info.
> > Please reply corresponding to your product.
> >
> >
> > [1] CryptoUtil.getDefaultCryptoUtil().encryptAndBase64Encode
> >
> > Thanks
> >
> >
> >
> > --
> > Susinda Perera
> > Software Engineer
> > Mobile:(+94)716049075
> >
> > WSO2 Inc. http://wso2.com/
> > Tel : 94 11 214 5345 Fax :94 11 2145300
> >
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
*Susinda Perera*
Software Engineer
Mobile:(+94)716049075

WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Info about Encrypted data stored in registry in WSO2 products

2014-09-23 Thread Prabath Siriwardena
I think you need to grep for encrypt() method of CryptoUtil class [1]

[1]: 
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/core/org.wso2.carbon.core/4.2.0/src/main/java/org/wso2/carbon/core/util/CryptoUtil.java

Thanks & regards,
-Prabath

On Tue, Sep 23, 2014 at 5:50 PM, Susinda Perera  wrote:
>
> Hi Developers/Product Leads
>
> Need your help to figure out the $subject. Could you point out any places
> that you put encrypted data to registry in the products (ESB, GREG, CEP, IS,
> AS, API MANAGER, BAM) that you are working. I want to know what and where
> (i.e registry path) such info is saved.
>
> I have tried a approach in searching for places of occurrences of [1],
> however this approach does not seems to be a easy one since i have to do
> several iterations to find this. Also it is difficult because my requirement
> is to find the registry insertions of such encrypted data. In that case i
> have to first find the occurrences of [1] and the find the registry.put
> followed by that.
>
> Therefore i think easy way is to contact the developers and get this info.
> Please reply corresponding to your product.
>
>
> [1] CryptoUtil.getDefaultCryptoUtil().encryptAndBase64Encode
>
> Thanks
>
>
>
> --
> Susinda Perera
> Software Engineer
> Mobile:(+94)716049075
>
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] why axis2 async client needs a sleep time?

2014-09-23 Thread Lakshman Udayakantha
Hi all,

I am trying to create a axis2 client to execute a bpel service. I used
below code for that

TenantDeletionProcessStub stub = getAdminserviceprocessStub(
tenantDeleteConfig.getBpelEndpoint());

 TenantDeletionProcessRequest adminserviceprocessRequest = new
TenantDeletionProcessRequest();

 adminserviceprocessRequest.setUrl(tenantDeleteConfig
.getAdminServiceEndpointsArray());

 adminserviceprocessRequest.setInput(tenantdomain);

 stub.startprocess(adminserviceprocessRequest, new
TenantDeletionProcessCustomCallbackHandler());

 Thread.sleep(1000);

the problem is why we need a sleep time after calling the async method in
generated service stub. As I saw, without that sleep time callback handler
will not call. can some one shed light on this?

-- 
Lakshman Udayakantha
Software Engineer, WSO2
Mobile: *0711241005*

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


[Dev] Info about Encrypted data stored in registry in WSO2 products

2014-09-23 Thread Susinda Perera
Hi Developers/Product Leads

Need your help to figure out the $subject. Could you point out any places
that you put encrypted data to registry in the products (ESB, GREG, CEP,
IS, AS, API MANAGER, BAM) that you are working. I want to know what and
where (i.e registry path) such info is saved.

I have tried a approach in searching for places of occurrences of [1], however
this approach does not seems to be a easy one since i have to do several
iterations to find this. Also it is difficult because my requirement is to
find the registry insertions of such encrypted data. In that case i have to
first find the occurrences of [1] and the find the registry.put followed by
that.

Therefore i think easy way is to contact the developers and get this info.
Please reply corresponding to your product.


[1] CryptoUtil.getDefaultCryptoUtil().encryptAndBase64Encode

Thanks



-- 
*Susinda Perera*
Software Engineer
Mobile:(+94)716049075

WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Help understand ESB sample 1

2014-09-23 Thread Lahiru Chandima
Hi All,

I am running examples provided with WSO2 ESB to get familiar with it.

Sample 1 [1
],
explains how to use a filter mediator. The filter used is as follows



As per the documentation, this filters the To EPR of the message, that
means, the "To" property of the soap header of the message as I understood.

But, when I checked the input soap message (I used a log mediator to log
the incoming message), the soap header does not have a "To" property. The
soap header of the message is given bellow. But, the message somehow gets
routed to the Axis2 service.

http://www.w3.org/2005/08/addressing";>

urn:uuid:7479f6f7-d302-41f1-a7de-4b35f64ad366
urn:getQuote



Can somebody please explain how this happens?

Thanks.

[1]
https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages
-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cluster Message issue

2014-09-23 Thread Godwin Amila Shrimal
Hi Gayashan,

Thanks a lot, it worked properly, BTW do u know any reason to give a
Stackoverflow on previous scenario ?

On Tue, Sep 23, 2014 at 5:08 PM, Gayashan Amarasinghe 
wrote:

> Hi Godwin,
>
> Please use the getThreadLocalCarbonContext to acquire a
> PriviledgedCarbonContext instance.
>
> Thanks.
> /Gayashan
>
> On Tue, Sep 23, 2014 at 4:49 PM, Godwin Amila Shrimal 
> wrote:
>
>> Hi,
>>
>> I am trying to send a Cluster message and get a
>> *java.lang.StackOverflowError* error in highlighted line in following
>> code.
>>
>> public static void cleanTenantMaponWorkernodes(int tenantId)throws
>> Exception {
>>
>> TenantDeleteClusterMessage clustermessage = new
>> TenantDeleteClusterMessage(tenantId);
>>
>> *ConfigurationContextService configContextService =
>> (ConfigurationContextService) PrivilegedCarbonContext*
>>
>> * .getCurrentContext().getOSGiService(*
>>
>> * ConfigurationContextService.class);*
>>
>> ConfigurationContext configContext = configContextService
>> .getServerConfigContext();
>>
>> ClusteringAgent agent = configContext.getAxisConfiguration()
>> .getClusteringAgent();
>>
>> try {
>>
>> if (agent != null) {
>>
>> agent.sendMessage(clustermessage, true);
>>
>> }
>>
>> } catch (ClusteringFault e) {
>>
>> log.error("Error occured while broadcasting TenantDeleteClusterMessage : "
>>
>> + e.getMessage());
>>
>> }
>>
>> }
>>
>>
>> *Error Log*
>>
>> Caused by: java.lang.StackOverflowError
>>
>> at org.apache.catalina.connector.Request.doGetSession(Request.java:2837)
>>
>> at org.apache.catalina.connector.Request.getSession(Request.java:2316)
>>
>> at
>> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)
>>
>> at
>> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.HttpServletRequestAdaptor.getSession(HttpServletRequestAdaptor.java:146)
>>
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:533)
>>
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>>
>>  at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>>
>>
>> Can anyone help one this to resolve ?
>>
>>
>> Thanks
>> Godwin
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Gayashan Amarasinghe*
> Software Engineer | Platform TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +94718314517
> Blog : gayashan-a.blogspot.com
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Support for Auto-Login of fresh registered users with SAML

2014-09-23 Thread Hasintha Indrajee
Hi all,

The apporach i used while implementing $subject was implementing a cache
within authentication framework. This cache is being shared by few other
components including the following components.

org.wso2.carbon.identity.oauth.endpoint
org.wso2.carbon.identity.sso.saml
org.wso2.carbon.identity.sts.passive.ui
org.wso2.carbon.identity.provider

Before sending a request to authentication framework, The relevant
component removes all query parameters and headers of the request. All
those information is stored within the shared cache
(AuthenticationRequestCache) and only the session data key is sent as a
query parameter (session data key is also used as the cache key for
AuthenticationRequestCache).

At the authentication framework, on request arrival, it checks whether a
request cache entry is available for the particular session data key. If
available the request is wrapped with a new HttpServletRequestWrapper. This
wrapper will wrap the original request with all the information in relevant
cache entry. On that point onward the wrapped request is used as
the HttpServletRequest.

Even though with new implementation, the call to authentication framework
does not contain any query params (including sensitive information such
encoded usernames and passwords which were there in request path
authentication previously) the request to authentication endpoint may still
contain those information as query params.

As a solution, When building query parameters from the wrapped
HttpServeletRequest, assential parameter names are read from a
configuration. This configuration is added to
application-authentication.xml. Therefore only configured parameters will
be sent to Authentication endpoint web app. The reason behind not using
shared cache within Authentication endpoint web app is, it should be a
standalone web app which can be hosted somewhere else.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cluster Message issue

2014-09-23 Thread Gayashan Amarasinghe
Hi Godwin,

Please use the getThreadLocalCarbonContext to acquire a
PriviledgedCarbonContext instance.

Thanks.
/Gayashan

On Tue, Sep 23, 2014 at 4:49 PM, Godwin Amila Shrimal 
wrote:

> Hi,
>
> I am trying to send a Cluster message and get a
> *java.lang.StackOverflowError* error in highlighted line in following
> code.
>
> public static void cleanTenantMaponWorkernodes(int tenantId)throws
> Exception {
>
> TenantDeleteClusterMessage clustermessage = new TenantDeleteClusterMessage(
> tenantId);
>
> *ConfigurationContextService configContextService =
> (ConfigurationContextService) PrivilegedCarbonContext*
>
> * .getCurrentContext().getOSGiService(*
>
> * ConfigurationContextService.class);*
>
> ConfigurationContext configContext = configContextService
> .getServerConfigContext();
>
> ClusteringAgent agent = configContext.getAxisConfiguration()
> .getClusteringAgent();
>
> try {
>
> if (agent != null) {
>
> agent.sendMessage(clustermessage, true);
>
> }
>
> } catch (ClusteringFault e) {
>
> log.error("Error occured while broadcasting TenantDeleteClusterMessage : "
>
> + e.getMessage());
>
> }
>
> }
>
>
> *Error Log*
>
> Caused by: java.lang.StackOverflowError
>
> at org.apache.catalina.connector.Request.doGetSession(Request.java:2837)
>
> at org.apache.catalina.connector.Request.getSession(Request.java:2316)
>
> at
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)
>
> at
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>
> at
> org.eclipse.equinox.http.servlet.internal.HttpServletRequestAdaptor.getSession(HttpServletRequestAdaptor.java:146)
>
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:533)
>
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>
>  at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>
>
> Can anyone help one this to resolve ?
>
>
> Thanks
> Godwin
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] Exceptions Handling In Carbon

2014-09-23 Thread Afkham Azeez
Then let's throw a RuntimeException and document it as part of the JavaDoc
comments.

On Tue, Sep 23, 2014 at 4:58 PM, Aruna Karunarathna  wrote:

>
>
> On Tue, Sep 23, 2014 at 4:52 PM, Afkham Azeez  wrote:
>
>>
>>
>> On Tue, Sep 23, 2014 at 4:48 PM, Pubudu Dissanayake 
>> wrote:
>>
>>> Hi folks,
>>>
>>> I'm in a process of implementing a fix for the CarbonContext.java
>>> 
>>>  [1]
>>> and I found several concerns. Observations as follows,
>>>
>>>- Empty Catch blocks
>>>
>>>   if (tenantId != MultitenantConstants.INVALID_TENANT_ID) {
>>>
>>> try {
>>> registry =
>>> dataHolder.getRegistryService().getConfigUserRegistry(getUsername(),
>>> tenantId);
>>> return registry;
>>> } catch (Exception e) {
>>> // If we can't obtain an instance of the
>>> registry, we'll simply return null. The
>>> // errors that lead to this situation will be
>>> logged by the Registry Kernel.
>>> }
>>> return null;
>>> }
>>>
>>
>> Throw a relevant exception
>>
>
> If we throw an Exception there will be an API change for getRegistry
> method.. Right?..
>
>>
>>>- Ignoring of documenting of potential exceptions thrown by methods
>>>
>>>  try {
>>>
>>> return
>>> CarbonContextDataHolder.getDiscoveryServiceProvider().probe(null, scopes,
>>> null,
>>> getCarbonContextDataHolder().getTenantId());
>>> } catch (Exception ignored) {
>>> // If an exception occurs, simply return no endpoints. The
>>> discovery component will
>>> // be responsible of reporting any errors.
>>> return new String[0];
>>> }
>>>
>>
>> We don't use WS-Discovery anymore, right? If so, we can get rid of this
>> method.
>>
>>>
>>> What we normally tend to do is, either log, or throw. Catching the
>>> exception just to log it doesn't make much sense. If we can gather some
>>> additional context, create a new exception with new info and wrap the
>>> cause, and throw it. Also, if we log, and throw, and then the client
>>> catches it, logs, rethrows, and so on,what will happen is we will get the
>>> stack trace with the same exception multiple times.
>>>
>>> Please advice as to how I should go about handling this.
>>>
>>> Thanks
>>> - Pubudu
>>> ​
>>> ​[1]
>>> https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java​
>>>
>>> --
>>> *Pubudu Dissanayake*
>>>  Software Engineer
>>>
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Mob: + 94 775 503 304
>>>
>>> Blog: http://geekdetected.wordpress.com/
>>> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
>>> 
>>> Flickr : https://www.flickr.com/photos/pubudufx/
>>> Twitter: https://twitter.com/GeekInAction
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
>
> *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
>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] Debugging ESB - Required components for ESB

2014-09-23 Thread Asok Perera
Hi,

I'm trying to run the ESB in remote debug mode and could someone point me
out the correct components (sources) for ESB ?

Regards


*Asok Aravinda Perera*
Software Engineer
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

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


[Dev] Remove MyOpenID login from IS travelocity.com sample

2014-09-23 Thread KasunG Gajasinghe
Hi,

FYI:
MyOpenId service is shutdown now. [1] So, I guess the sample need to be
updated to reflect that.

http://thenextweb.com/insider/2013/09/04/myopenid-to-shut-down/

Regards,
KasunG

-- 

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


Re: [Dev] Exceptions Handling In Carbon

2014-09-23 Thread Aruna Karunarathna
On Tue, Sep 23, 2014 at 4:52 PM, Afkham Azeez  wrote:

>
>
> On Tue, Sep 23, 2014 at 4:48 PM, Pubudu Dissanayake 
> wrote:
>
>> Hi folks,
>>
>> I'm in a process of implementing a fix for the CarbonContext.java
>> 
>>  [1]
>> and I found several concerns. Observations as follows,
>>
>>- Empty Catch blocks
>>
>>   if (tenantId != MultitenantConstants.INVALID_TENANT_ID) {
>>
>> try {
>> registry =
>> dataHolder.getRegistryService().getConfigUserRegistry(getUsername(),
>> tenantId);
>> return registry;
>> } catch (Exception e) {
>> // If we can't obtain an instance of the
>> registry, we'll simply return null. The
>> // errors that lead to this situation will be
>> logged by the Registry Kernel.
>> }
>> return null;
>> }
>>
>
> Throw a relevant exception
>

If we throw an Exception there will be an API change for getRegistry
method.. Right?..

>
>>- Ignoring of documenting of potential exceptions thrown by methods
>>
>>  try {
>>
>> return
>> CarbonContextDataHolder.getDiscoveryServiceProvider().probe(null, scopes,
>> null,
>> getCarbonContextDataHolder().getTenantId());
>> } catch (Exception ignored) {
>> // If an exception occurs, simply return no endpoints. The
>> discovery component will
>> // be responsible of reporting any errors.
>> return new String[0];
>> }
>>
>
> We don't use WS-Discovery anymore, right? If so, we can get rid of this
> method.
>
>>
>> What we normally tend to do is, either log, or throw. Catching the
>> exception just to log it doesn't make much sense. If we can gather some
>> additional context, create a new exception with new info and wrap the
>> cause, and throw it. Also, if we log, and throw, and then the client
>> catches it, logs, rethrows, and so on,what will happen is we will get the
>> stack trace with the same exception multiple times.
>>
>> Please advice as to how I should go about handling this.
>>
>> Thanks
>> - Pubudu
>> ​
>> ​[1]
>> https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java​
>>
>> --
>> *Pubudu Dissanayake*
>>  Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Mob: + 94 775 503 304
>>
>> Blog: http://geekdetected.wordpress.com/
>> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
>> 
>> Flickr : https://www.flickr.com/photos/pubudufx/
>> Twitter: https://twitter.com/GeekInAction
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 

*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] Exceptions Handling In Carbon

2014-09-23 Thread Afkham Azeez
On Tue, Sep 23, 2014 at 4:48 PM, Pubudu Dissanayake 
wrote:

> Hi folks,
>
> I'm in a process of implementing a fix for the CarbonContext.java
> 
>  [1]
> and I found several concerns. Observations as follows,
>
>- Empty Catch blocks
>
>   if (tenantId != MultitenantConstants.INVALID_TENANT_ID) {
>
> try {
> registry =
> dataHolder.getRegistryService().getConfigUserRegistry(getUsername(),
> tenantId);
> return registry;
> } catch (Exception e) {
> // If we can't obtain an instance of the registry,
> we'll simply return null. The
> // errors that lead to this situation will be
> logged by the Registry Kernel.
> }
> return null;
> }
>

Throw a relevant exception

>
>- Ignoring of documenting of potential exceptions thrown by methods
>
>  try {
>
> return
> CarbonContextDataHolder.getDiscoveryServiceProvider().probe(null, scopes,
> null,
> getCarbonContextDataHolder().getTenantId());
> } catch (Exception ignored) {
> // If an exception occurs, simply return no endpoints. The
> discovery component will
> // be responsible of reporting any errors.
> return new String[0];
> }
>

We don't use WS-Discovery anymore, right? If so, we can get rid of this
method.

>
> What we normally tend to do is, either log, or throw. Catching the
> exception just to log it doesn't make much sense. If we can gather some
> additional context, create a new exception with new info and wrap the
> cause, and throw it. Also, if we log, and throw, and then the client
> catches it, logs, rethrows, and so on,what will happen is we will get the
> stack trace with the same exception multiple times.
>
> Please advice as to how I should go about handling this.
>
> Thanks
> - Pubudu
> ​
> ​[1]
> https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java​
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mob: + 94 775 503 304
>
> Blog: http://geekdetected.wordpress.com/
> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
> 
> Flickr : https://www.flickr.com/photos/pubudufx/
> Twitter: https://twitter.com/GeekInAction
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] Cluster Message issue

2014-09-23 Thread Godwin Amila Shrimal
Hi,

I am trying to send a Cluster message and get a
*java.lang.StackOverflowError* error in highlighted line in following code.

public static void cleanTenantMaponWorkernodes(int tenantId)throws
Exception {

TenantDeleteClusterMessage clustermessage = new TenantDeleteClusterMessage(
tenantId);

*ConfigurationContextService configContextService =
(ConfigurationContextService) PrivilegedCarbonContext*

* .getCurrentContext().getOSGiService(*

* ConfigurationContextService.class);*

ConfigurationContext configContext = configContextService
.getServerConfigContext();

ClusteringAgent agent = configContext.getAxisConfiguration()
.getClusteringAgent();

try {

if (agent != null) {

agent.sendMessage(clustermessage, true);

}

} catch (ClusteringFault e) {

log.error("Error occured while broadcasting TenantDeleteClusterMessage : "

+ e.getMessage());

}

}


*Error Log*

Caused by: java.lang.StackOverflowError

at org.apache.catalina.connector.Request.doGetSession(Request.java:2837)

at org.apache.catalina.connector.Request.getSession(Request.java:2316)

at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)

at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)

at
org.eclipse.equinox.http.servlet.internal.HttpServletRequestAdaptor.getSession(HttpServletRequestAdaptor.java:146)

at
org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:533)

at
org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)

 at
org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)


Can anyone help one this to resolve ?


Thanks
Godwin


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Exceptions Handling In Carbon

2014-09-23 Thread Pubudu Dissanayake
Hi folks,

I'm in a process of implementing a fix for the CarbonContext.java

[1]
and I found several concerns. Observations as follows,

   - Empty Catch blocks

  if (tenantId != MultitenantConstants.INVALID_TENANT_ID) {

try {
registry =
dataHolder.getRegistryService().getConfigUserRegistry(getUsername(),
tenantId);
return registry;
} catch (Exception e) {
// If we can't obtain an instance of the registry,
we'll simply return null. The
// errors that lead to this situation will be
logged by the Registry Kernel.
}
return null;
}

   - Ignoring of documenting of potential exceptions thrown by methods

 try {

return
CarbonContextDataHolder.getDiscoveryServiceProvider().probe(null, scopes,
null,
getCarbonContextDataHolder().getTenantId());
} catch (Exception ignored) {
// If an exception occurs, simply return no endpoints. The
discovery component will
// be responsible of reporting any errors.
return new String[0];
}

What we normally tend to do is, either log, or throw. Catching the
exception just to log it doesn't make much sense. If we can gather some
additional context, create a new exception with new info and wrap the
cause, and throw it. Also, if we log, and throw, and then the client
catches it, logs, rethrows, and so on,what will happen is we will get the
stack trace with the same exception multiple times.

Please advice as to how I should go about handling this.

Thanks
- Pubudu
​
​[1]
https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java​

-- 
*Pubudu Dissanayake*
 Software Engineer

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Mob: + 94 775 503 304

Blog: http://geekdetected.wordpress.com/
Linkedin: *http://lk.linkedin.com/in/pubududissanayake*

Flickr : https://www.flickr.com/photos/pubudufx/
Twitter: https://twitter.com/GeekInAction
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building carbon-utils

2014-09-23 Thread Aruna Karunarathna
Hi Himan,

Did you try to build with Java 7 or Java 8?.. try using Java 6

Regards,
Aruna

On Tue, Sep 23, 2014 at 4:18 PM, Himan Gamage  wrote:

> Hi all,
>
> When I was building the carbon-utils, I'm getting the following error. Any
> help will be greatly appreciated.
>
> [INFO] WSO2 Carbon - Tasks Core .. FAILURE [2.148s]
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project org.wso2.carbon.ntask.core: Compilation failure
> [ERROR]
> /home/himangamage/wso2/others/carbon-utils/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/internal/TasksDSComponent.java:[197,24]
> error: type ServiceReference does not take parameters
>
> --
> Best Regards,
>
> Himan Gamage
> Software Engineer Intern
> Mobile: *+94714636720*
> Email: hi...@wso2.com
> Blog : http://www.himangamage.info/
> *WSO2, Inc. :** wso2.com *
> 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


[Dev] Error when building carbon-utils

2014-09-23 Thread Himan Gamage
Hi all,

When I was building the carbon-utils, I'm getting the following error. Any
help will be greatly appreciated.

[INFO] WSO2 Carbon - Tasks Core .. FAILURE [2.148s]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project org.wso2.carbon.ntask.core: Compilation failure
[ERROR]
/home/himangamage/wso2/others/carbon-utils/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/internal/TasksDSComponent.java:[197,24]
error: type ServiceReference does not take parameters

-- 
Best Regards,

Himan Gamage
Software Engineer Intern
Mobile: *+94714636720*
Email: hi...@wso2.com
Blog : http://www.himangamage.info/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge ESB Integration test commit#60 pull request

2014-09-23 Thread Malaka Silva
done

On Tue, Sep 23, 2014 at 2:50 PM, Nuwan Wimalasekara  wrote:

> Hi ESB Team,
> Please merge the pull request
> https://github.com/wso2-dev/product-esb/pull/60 to fix the JMS test
> case(JMSOutOnlyTestCase) failure.
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 

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/


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] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Pavithra Madurangi
On Tue, Sep 23, 2014 at 3:44 PM, Ruwan Yatawara  wrote:

> Hi Pavithra,
>
> You can use the puppet scripts Thilina constituted for AM 1.7 release.
> They are available at the [1]. The requirement I believe is identical to
> yours.
> 2 KMs, 1GW Manager, 2 GW Workers, Publisher and Store.
>
> One thing to note is that you would require 1 machine for each node, to
> get this script to work. Note that you may need to add additional
> configurations. But in any case Thilina's scripts might be a good place to
> start.
> ​
>
Noted..

Thanks,
Pavithra​​

> ​
>
>
> [1] - https://svn.wso2.com/wso2/svn/people/thilinap/puppet3/apim_test/
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Senior Software Engineer,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://thoughts.ruwan-ace.com/
> www: :http://wso2.com
>
>
> On Tue, Sep 23, 2014 at 3:19 PM, Sumedha Rubasinghe 
> wrote:
>
>> Pavithra,
>> Is this a continuation of what was done beginning of this year? We had
>> completed set of puppet scripts (which did not get used due to hardware not
>> being available)
>>
>> Talk to Thilina.
>>
>> On Tue, Sep 23, 2014 at 3:50 AM, Pavithra Madurangi 
>> wrote:
>>
>>> Hi Yasassri,
>>>
>>> Please find updated config files at the same location [1]. Appreciate if
>>> you can update the puppet scripts accordingly.
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/apimanager/1.8.0/am-cluster/
>>>
>>> Regards,
>>> Pavithra
>>>
>>> On Wed, Sep 17, 2014 at 1:29 PM, Yasassri Ratnayake 
>>> wrote:
>>>
 Hi,

 Please find the Puppet Scripts from location-[1]. Scripts need some
 fine tuning with the configurations.

 In-order to run the scripts. Clone the repo and do the necessary
 parameter changes in the params class and execute the scripts.


 [1]  - https://github.com/ycrnet/Puppet-Scripts

 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 <%2B94715933168>*
 *Blog : http://yasassriratnayake.blogspot.com/
 *

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


>>>
>>>
>>> --
>>> *Pavithra Madurangi*
>>> Associate Technical Lead - QA.
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94777207357 / +94773814110
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> /sumedha
>> m: +94 773017743
>> b :  bit.ly/sumedha
>>
>
>


-- 
*Pavithra Madurangi*
Associate Technical Lead - QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94777207357 / +94773814110
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Ruwan Yatawara
Hi Pavithra,

You can use the puppet scripts Thilina constituted for AM 1.7 release. They
are available at the [1]. The requirement I believe is identical to yours.
2 KMs, 1GW Manager, 2 GW Workers, Publisher and Store.

One thing to note is that you would require 1 machine for each node, to get
this script to work. Note that you may need to add additional
configurations. But in any case Thilina's scripts might be a good place to
start.


[1] - https://svn.wso2.com/wso2/svn/people/thilinap/puppet3/apim_test/

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com


On Tue, Sep 23, 2014 at 3:19 PM, Sumedha Rubasinghe 
wrote:

> Pavithra,
> Is this a continuation of what was done beginning of this year? We had
> completed set of puppet scripts (which did not get used due to hardware not
> being available)
>
> Talk to Thilina.
>
> On Tue, Sep 23, 2014 at 3:50 AM, Pavithra Madurangi 
> wrote:
>
>> Hi Yasassri,
>>
>> Please find updated config files at the same location [1]. Appreciate if
>> you can update the puppet scripts accordingly.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/apimanager/1.8.0/am-cluster/
>>
>> Regards,
>> Pavithra
>>
>> On Wed, Sep 17, 2014 at 1:29 PM, Yasassri Ratnayake 
>> wrote:
>>
>>> Hi,
>>>
>>> Please find the Puppet Scripts from location-[1]. Scripts need some fine
>>> tuning with the configurations.
>>>
>>> In-order to run the scripts. Clone the repo and do the necessary
>>> parameter changes in the params class and execute the scripts.
>>>
>>>
>>> [1]  - https://github.com/ycrnet/Puppet-Scripts
>>>
>>> --
>>> Yasassri Ratnayake
>>> Software Engineer - QA
>>> WSO2 Inc ; http://wso2.com
>>> lean.enterprise.middleware
>>> *Mobile : +94715933168 <%2B94715933168>*
>>> *Blog : http://yasassriratnayake.blogspot.com/
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pavithra Madurangi*
>> Associate Technical Lead - QA.
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94777207357 / +94773814110
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Pavithra Madurangi
Hi Sumedha,

Currently we are testing few deployments (not the basic API-M 4 node
deployement) and to ease and speed up the process, created these
scripts...I guess API-M team have scripts only for basic deployment.

Apart from that we created this for latest version (1.8.0) and going to
maintain for next versions too...

Regards,
Pavithra

On Tue, Sep 23, 2014 at 3:19 PM, Sumedha Rubasinghe 
wrote:

> Pavithra,
> Is this a continuation of what was done beginning of this year? We had
> completed set of puppet scripts (which did not get used due to hardware not
> being available)
>
> Talk to Thilina.
>
> On Tue, Sep 23, 2014 at 3:50 AM, Pavithra Madurangi 
> wrote:
>
>> Hi Yasassri,
>>
>> Please find updated config files at the same location [1]. Appreciate if
>> you can update the puppet scripts accordingly.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/apimanager/1.8.0/am-cluster/
>>
>> Regards,
>> Pavithra
>>
>> On Wed, Sep 17, 2014 at 1:29 PM, Yasassri Ratnayake 
>> wrote:
>>
>>> Hi,
>>>
>>> Please find the Puppet Scripts from location-[1]. Scripts need some fine
>>> tuning with the configurations.
>>>
>>> In-order to run the scripts. Clone the repo and do the necessary
>>> parameter changes in the params class and execute the scripts.
>>>
>>>
>>> [1]  - https://github.com/ycrnet/Puppet-Scripts
>>>
>>> --
>>> Yasassri Ratnayake
>>> Software Engineer - QA
>>> WSO2 Inc ; http://wso2.com
>>> lean.enterprise.middleware
>>> *Mobile : +94715933168 <%2B94715933168>*
>>> *Blog : http://yasassriratnayake.blogspot.com/
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pavithra Madurangi*
>> Associate Technical Lead - QA.
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94777207357 / +94773814110
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



-- 
*Pavithra Madurangi*
Associate Technical Lead - QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94777207357 / +94773814110
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Updated Invitation: Code Review - Integration Tests WSO2 EAM @ Tue Sep 23, 2014 4:30pm - 5:30pm (Kasun Dissanayake)

2014-09-23 Thread kas...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140923T11Z
DTEND:20140923T12Z
DTSTAMP:20140923T095256Z
ORGANIZER;CN=Kasun Dissanayake:mailto:kas...@wso2.com
UID:r866f27rrnvls1hl7vhicvk...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeeva Uthayasangar;X-NUM-GUESTS=0:mailto:raje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jenananthan Yogendran;X-NUM-GUESTS=0:mailto:jenanant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Waruna Perera;X-NUM-GUESTS=0:mailto:waru...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rushmin Fernando;X-NUM-GUESTS=0:mailto:rush...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilini Shanika;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Kasun Dissanayake;X-NUM-GUESTS=0:mailto:kas...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Krishantha Samaraweera;X-NUM-GUESTS=0:mailto:krishan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chathura Dilan;X-NUM-GUESTS=0:mailto:chathu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Dias;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
CREATED:20140923T040031Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEW&eid=cjg2NmYyN3JybnZsczFobDd2aGljdmtyZzggZGV2QHdzbzIub3Jn&tok=MTUja2Fz
 dW51QHdzbzIuY29tMDcxMmNlY2E5ZDJhOTk1ZDJlMzMwODZlMzJkMWEwMDczZmUyZjJlNA&ctz=
 Asia/Colombo&hl=en.
LAST-MODIFIED:20140923T095256Z
LOCATION:LK\, 3rd Floor Meeting Room
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:Code Review - Integration Tests WSO2 EAM
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Sumedha Rubasinghe
Pavithra,
Is this a continuation of what was done beginning of this year? We had
completed set of puppet scripts (which did not get used due to hardware not
being available)

Talk to Thilina.

On Tue, Sep 23, 2014 at 3:50 AM, Pavithra Madurangi 
wrote:

> Hi Yasassri,
>
> Please find updated config files at the same location [1]. Appreciate if
> you can update the puppet scripts accordingly.
>
> [1]
> https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/apimanager/1.8.0/am-cluster/
>
> Regards,
> Pavithra
>
> On Wed, Sep 17, 2014 at 1:29 PM, Yasassri Ratnayake 
> wrote:
>
>> Hi,
>>
>> Please find the Puppet Scripts from location-[1]. Scripts need some fine
>> tuning with the configurations.
>>
>> In-order to run the scripts. Clone the repo and do the necessary
>> parameter changes in the params class and execute the scripts.
>>
>>
>> [1]  - https://github.com/ycrnet/Puppet-Scripts
>>
>> --
>> Yasassri Ratnayake
>> Software Engineer - QA
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>> *Mobile : +94715933168 <%2B94715933168>*
>> *Blog : http://yasassriratnayake.blogspot.com/
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pavithra Madurangi*
> Associate Technical Lead - QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94777207357 / +94773814110
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Supun Malinga
Hi Ramindu,

What's you purpose in building orbit ?. 4.0.0 is not the latest..

thanks,

On Tue, Sep 23, 2014 at 3:14 PM, Ramindu De Silva  wrote:

> Hi all,
>
> According to the link(
> http://stackoverflow.com/questions/17929756/how-to-build-wso2-4-x-from-source)
>  shared
> by Awanthika, I checked out the "
> https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0"; and the
> carbon orbit was built successfully. Thank you for all the quick replies. :)
>
> Regards.
>
> On Tue, Sep 23, 2014 at 2:52 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Ramindu,
>>
>> Your Rabbit-MQ AMPQ bundle is skipping because it can't find Tribes
>> bundle as your Tribes bundle has encountered a buld failure. Can you please
>> share the error logs relevant to Tribes failure?
>>
>> On Tue, Sep 23, 2014 at 2:46 PM, Ramindu De Silva 
>> wrote:
>>
>>> Hi Lahiru,
>>> Yes I'm already using the versions you mentioned. :/
>>>
>>>
>>> Hi Awanthika,
>>> Than you. ill look into that
>>>
>>> Regards.
>>>
>>> On Tue, Sep 23, 2014 at 2:24 PM, Lahiru Cooray  wrote:
>>>
 Hi Ramindu,

 Please check your JDK/ Maven versions.
 I faced the same issue and managed to solve it after downgrading the
 Maven to 3.0.5 and JDK 1.6
 (Previously I used JDK 1.7 and Maven 3.2.2)



 On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva 
 wrote:

> Hi all,
>
> [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS
> [0.182s]
> [INFO] WSO2 Carbon Orbit - Tribes  FAILURE
> [1.653s]
>
> The includes the above as well.
>
> Regards.
>
> On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva 
> wrote:
>
>> Hi all,
>>
>> When I was building the "Carbon Orbit", I'm getting the following
>> error. Any help will be greatly appreciated.
>>
>> [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle
>>  SKIPPED
>>
>> [ERROR] Failed to execute goal
>> org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
>> project tribes: Internal error in maven-bundle-plugin:
>> /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
>> file or directory)
>>
>>
>> Regards.
>> --
>> *Ramindu De Silva*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94772339350
>> mob: +94782731766
>>
>
>
>
> --
> *Ramindu De Silva*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94772339350
> mob: +94782731766
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Lahiru Cooray*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware

 Mobile: +94 715 654154

>>>
>>>
>>>
>>> --
>>> *Ramindu De Silva*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: ramin...@wso2.com 
>>> mob: +94772339350
>>> mob: +94782731766
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> *Ramindu De Silva*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94772339350
> mob: +94782731766
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

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


Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi all,

According to the link(
http://stackoverflow.com/questions/17929756/how-to-build-wso2-4-x-from-source)
shared
by Awanthika, I checked out the "
https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0"; and the carbon
orbit was built successfully. Thank you for all the quick replies. :)

Regards.

On Tue, Sep 23, 2014 at 2:52 PM, Tishan Dahanayakage 
wrote:

> Hi Ramindu,
>
> Your Rabbit-MQ AMPQ bundle is skipping because it can't find Tribes bundle
> as your Tribes bundle has encountered a buld failure. Can you please share
> the error logs relevant to Tribes failure?
>
> On Tue, Sep 23, 2014 at 2:46 PM, Ramindu De Silva 
> wrote:
>
>> Hi Lahiru,
>> Yes I'm already using the versions you mentioned. :/
>>
>>
>> Hi Awanthika,
>> Than you. ill look into that
>>
>> Regards.
>>
>> On Tue, Sep 23, 2014 at 2:24 PM, Lahiru Cooray  wrote:
>>
>>> Hi Ramindu,
>>>
>>> Please check your JDK/ Maven versions.
>>> I faced the same issue and managed to solve it after downgrading the
>>> Maven to 3.0.5 and JDK 1.6
>>> (Previously I used JDK 1.7 and Maven 3.2.2)
>>>
>>>
>>>
>>> On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva 
>>> wrote:
>>>
 Hi all,

 [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS
 [0.182s]
 [INFO] WSO2 Carbon Orbit - Tribes  FAILURE
 [1.653s]

 The includes the above as well.

 Regards.

 On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva 
 wrote:

> Hi all,
>
> When I was building the "Carbon Orbit", I'm getting the following
> error. Any help will be greatly appreciated.
>
> [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle
>  SKIPPED
>
> [ERROR] Failed to execute goal
> org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
> project tribes: Internal error in maven-bundle-plugin:
> /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
> file or directory)
>
>
> Regards.
> --
> *Ramindu De Silva*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94772339350
> mob: +94782731766
>



 --
 *Ramindu De Silva*
 Software Engineering Intern
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 email: ramin...@wso2.com 
 mob: +94772339350
 mob: +94782731766

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


>>>
>>>
>>> --
>>> *Lahiru Cooray*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 715 654154
>>>
>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94772339350
>> mob: +94782731766
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 
*Ramindu De Silva*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94772339350
mob: +94782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fault String Returned Instead of the Filtered Content

2014-09-23 Thread Rajith Vitharana
Hi All,

Regarding the jira [1].
In DSS when using json output mapping we can filter out the output fields
according to the person's role who invokes the service. If he have
permission, those fields will be visible to them. If he doesn't have
permission, only other fields will be visible to him. This is explained in
[2]

But as the jira says, this feature doesn't work in standalone pack.
In wsdl file of the data service, these fields are marked as optional by
adding 'minOccurs="0"' attribute. But the "GsonXMLStreamWriter.java" class
in "axis2-json" module doesn't consider this "minOccurs" attribute when
converting the xml output to json. This causes the error mentioned in the
jira [1].
I have changed the source to avoid this situation and consider the
"minOccurs" attribute when doing the conversion part. Is this the better
way of resolving this problem? If so please review the code and commit to
kernel patch 009.

[1] - https://wso2.org/jira/browse/DS-963
[2] - https://docs.wso2.com/display/DSS321/JSON+Mapping

Thanks

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
Index: src/org/apache/axis2/json/gson/GsonXMLStreamWriter.java
===
--- src/org/apache/axis2/json/gson/GsonXMLStreamWriter.java (revision 
207496)
+++ src/org/apache/axis2/json/gson/GsonXMLStreamWriter.java (working copy)
@@ -208,6 +208,11 @@
 if (miniStack.isEmpty()) {
 if (!queue.isEmpty()) {
 JsonObject queObj = queue.peek();
+if (!queObj.getName().equals(localName) && 
queObj.getMinOccurs() == 0
+&& (stack.isEmpty() || 
!stack.peek().getName().equals(localName))){
+queue.poll();
+queObj = queue.peek();
+}
 if (queObj.getName().equals(localName)) {
 if (flushObject != null) {
 if (topNestedArrayObj != null && 
flushObject.getType() == JSONType.NESTED_ARRAY
Index: src/org/apache/axis2/json/gson/factory/JsonObject.java
===
--- src/org/apache/axis2/json/gson/factory/JsonObject.java  (revision 
207496)
+++ src/org/apache/axis2/json/gson/factory/JsonObject.java  (working copy)
@@ -25,6 +25,7 @@
 private JSONType type;
 private String valueType;
 private String namespaceUri;
+private long minOccurs;
 
 public JsonObject(String name, JSONType type, String valueType , String 
namespaceUri) {
 this.name = name;
@@ -48,4 +49,12 @@
 public String getNamespaceUri() {
 return namespaceUri;
 }
+
+public void setMinOccurs(long minOccurs) {
+this.minOccurs = minOccurs;
+}
+
+public long getMinOccurs() {
+return minOccurs;
+}
 }
Index: src/org/apache/axis2/json/gson/factory/XmlNode.java
===
--- src/org/apache/axis2/json/gson/factory/XmlNode.java (revision 207496)
+++ src/org/apache/axis2/json/gson/factory/XmlNode.java (working copy)
@@ -30,6 +30,7 @@
 private List childrenList = new ArrayList();
 private String valueType;
 private String namespaceUri;
+private long minOccurs;
 
 public XmlNode(String name,String namespaceUri, boolean attribute, boolean 
array , String valueType) {
 this.name = name;
@@ -68,4 +69,12 @@
 public String getNamespaceUri() {
 return namespaceUri;
 }
+
+public void setMinOccurs(long minOccurs) {
+this.minOccurs = minOccurs;
+}
+
+public long getMinOccurs() {
+return minOccurs;
+}
 }
Index: src/org/apache/axis2/json/gson/factory/XmlNodeGenerator.java
===
--- src/org/apache/axis2/json/gson/factory/XmlNodeGenerator.java
(revision 207496)
+++ src/org/apache/axis2/json/gson/factory/XmlNodeGenerator.java
(working copy)
@@ -90,6 +90,7 @@
 QName refName = element.getRefName();
 if (schemaTypeName != null) {
 xmlNode = new XmlNode(element.getName(), targetNamespace, false, 
(element.getMaxOccurs() != 1), schemaTypeName.getLocalPart());
+xmlNode.setMinOccurs(element.getMinOccurs());
 parentNode.addChildToList(xmlNode);
 if 
(("http://www.w3.org/2001/XMLSchema";).equals(schemaTypeName.getNamespaceURI())) 
{
 } else {
@@ -106,6 +107,7 @@
 }
 }else if (schemaType != null) {
 xmlNode = new XmlNode(element.getName(), targetNamespace, false, 
(element.getMaxOccurs() != 1), schemaType.getQName().getLocalPart());
+xmlNode.setMinOccurs(element.getMinOccurs());
 parentNode.addChildToList(xmlNode);
 processSchemaType(schemaType, xmlNode, schema);
 }else if (refNam

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Tishan Dahanayakage
Hi Ramindu,

Your Rabbit-MQ AMPQ bundle is skipping because it can't find Tribes bundle
as your Tribes bundle has encountered a buld failure. Can you please share
the error logs relevant to Tribes failure?

On Tue, Sep 23, 2014 at 2:46 PM, Ramindu De Silva  wrote:

> Hi Lahiru,
> Yes I'm already using the versions you mentioned. :/
>
>
> Hi Awanthika,
> Than you. ill look into that
>
> Regards.
>
> On Tue, Sep 23, 2014 at 2:24 PM, Lahiru Cooray  wrote:
>
>> Hi Ramindu,
>>
>> Please check your JDK/ Maven versions.
>> I faced the same issue and managed to solve it after downgrading the
>> Maven to 3.0.5 and JDK 1.6
>> (Previously I used JDK 1.7 and Maven 3.2.2)
>>
>>
>>
>> On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva 
>> wrote:
>>
>>> Hi all,
>>>
>>> [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS
>>> [0.182s]
>>> [INFO] WSO2 Carbon Orbit - Tribes  FAILURE
>>> [1.653s]
>>>
>>> The includes the above as well.
>>>
>>> Regards.
>>>
>>> On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva 
>>> wrote:
>>>
 Hi all,

 When I was building the "Carbon Orbit", I'm getting the following
 error. Any help will be greatly appreciated.

 [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle
  SKIPPED

 [ERROR] Failed to execute goal
 org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
 project tribes: Internal error in maven-bundle-plugin:
 /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
 file or directory)


 Regards.
 --
 *Ramindu De Silva*
 Software Engineering Intern
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 email: ramin...@wso2.com 
 mob: +94772339350
 mob: +94782731766

>>>
>>>
>>>
>>> --
>>> *Ramindu De Silva*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: ramin...@wso2.com 
>>> mob: +94772339350
>>> mob: +94782731766
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>
>
>
> --
> *Ramindu De Silva*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94772339350
> mob: +94782731766
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
re-transmit, disseminate, or otherwise use the information contained in
this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge ESB Integration test commit#60 pull request

2014-09-23 Thread Nuwan Wimalasekara
Hi ESB Team,
Please merge the pull request
https://github.com/wso2-dev/product-esb/pull/60 to fix the JMS test
case(JMSOutOnlyTestCase) failure.

Thanks,
Nuwanw

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

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


Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi Lahiru,
Yes I'm already using the versions you mentioned. :/


Hi Awanthika,
Than you. ill look into that

Regards.

On Tue, Sep 23, 2014 at 2:24 PM, Lahiru Cooray  wrote:

> Hi Ramindu,
>
> Please check your JDK/ Maven versions.
> I faced the same issue and managed to solve it after downgrading the Maven
> to 3.0.5 and JDK 1.6
> (Previously I used JDK 1.7 and Maven 3.2.2)
>
>
>
> On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva 
> wrote:
>
>> Hi all,
>>
>> [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS
>> [0.182s]
>> [INFO] WSO2 Carbon Orbit - Tribes  FAILURE
>> [1.653s]
>>
>> The includes the above as well.
>>
>> Regards.
>>
>> On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva 
>> wrote:
>>
>>> Hi all,
>>>
>>> When I was building the "Carbon Orbit", I'm getting the following error.
>>> Any help will be greatly appreciated.
>>>
>>> [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle
>>>  SKIPPED
>>>
>>> [ERROR] Failed to execute goal
>>> org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
>>> project tribes: Internal error in maven-bundle-plugin:
>>> /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
>>> file or directory)
>>>
>>>
>>> Regards.
>>> --
>>> *Ramindu De Silva*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: ramin...@wso2.com 
>>> mob: +94772339350
>>> mob: +94782731766
>>>
>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94772339350
>> mob: +94782731766
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lahiru Cooray*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
>
> Mobile: +94 715 654154
>



-- 
*Ramindu De Silva*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94772339350
mob: +94782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Awanthika Senarath
Hi Ramindu,

Yes you need to have JDK 1.6 to build carbon. Also have a look at [1]



[1]
http://stackoverflow.com/questions/17929756/how-to-build-wso2-4-x-from-source

On Tue, Sep 23, 2014 at 2:24 PM, Lahiru Cooray  wrote:

> Hi Ramindu,
>
> Please check your JDK/ Maven versions.
> I faced the same issue and managed to solve it after downgrading the Maven
> to 3.0.5 and JDK 1.6
> (Previously I used JDK 1.7 and Maven 3.2.2)
>
>
>
> On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva 
> wrote:
>
>> Hi all,
>>
>> [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS
>> [0.182s]
>> [INFO] WSO2 Carbon Orbit - Tribes  FAILURE
>> [1.653s]
>>
>> The includes the above as well.
>>
>> Regards.
>>
>> On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva 
>> wrote:
>>
>>> Hi all,
>>>
>>> When I was building the "Carbon Orbit", I'm getting the following error.
>>> Any help will be greatly appreciated.
>>>
>>> [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle
>>>  SKIPPED
>>>
>>> [ERROR] Failed to execute goal
>>> org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
>>> project tribes: Internal error in maven-bundle-plugin:
>>> /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
>>> file or directory)
>>>
>>>
>>> Regards.
>>> --
>>> *Ramindu De Silva*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: ramin...@wso2.com 
>>> mob: +94772339350
>>> mob: +94782731766
>>>
>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94772339350
>> mob: +94782731766
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lahiru Cooray*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
>
> Mobile: +94 715 654154
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Lahiru Cooray
Hi Ramindu,

Please check your JDK/ Maven versions.
I faced the same issue and managed to solve it after downgrading the Maven
to 3.0.5 and JDK 1.6
(Previously I used JDK 1.7 and Maven 3.2.2)



On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva  wrote:

> Hi all,
>
> [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS [0.182s]
> [INFO] WSO2 Carbon Orbit - Tribes  FAILURE [1.653s]
>
> The includes the above as well.
>
> Regards.
>
> On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva 
> wrote:
>
>> Hi all,
>>
>> When I was building the "Carbon Orbit", I'm getting the following error.
>> Any help will be greatly appreciated.
>>
>> [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle
>>  SKIPPED
>>
>> [ERROR] Failed to execute goal
>> org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
>> project tribes: Internal error in maven-bundle-plugin:
>> /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
>> file or directory)
>>
>>
>> Regards.
>> --
>> *Ramindu De Silva*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94772339350
>> mob: +94782731766
>>
>
>
>
> --
> *Ramindu De Silva*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94772339350
> mob: +94782731766
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lahiru Cooray*
Software Engineer
WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware

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


Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Pavithra Madurangi
Hi Yasassri,

Please find updated config files at the same location [1]. Appreciate if
you can update the puppet scripts accordingly.

[1]
https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/apimanager/1.8.0/am-cluster/

Regards,
Pavithra

On Wed, Sep 17, 2014 at 1:29 PM, Yasassri Ratnayake 
wrote:

> Hi,
>
> Please find the Puppet Scripts from location-[1]. Scripts need some fine
> tuning with the configurations.
>
> In-order to run the scripts. Clone the repo and do the necessary parameter
> changes in the params class and execute the scripts.
>
>
> [1]  - https://github.com/ycrnet/Puppet-Scripts
>
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.blogspot.com/
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pavithra Madurangi*
Associate Technical Lead - QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94777207357 / +94773814110
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi all,

[INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS [0.182s]
[INFO] WSO2 Carbon Orbit - Tribes  FAILURE [1.653s]

The includes the above as well.

Regards.

On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva  wrote:

> Hi all,
>
> When I was building the "Carbon Orbit", I'm getting the following error.
> Any help will be greatly appreciated.
>
> [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle  SKIPPED
>
> [ERROR] Failed to execute goal
> org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
> project tribes: Internal error in maven-bundle-plugin:
> /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
> file or directory)
>
>
> Regards.
> --
> *Ramindu De Silva*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94772339350
> mob: +94782731766
>



-- 
*Ramindu De Silva*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94772339350
mob: +94782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Web Session Clustering / Session Replication using Hazelcast

2014-09-23 Thread Pubudu Dissanayake
On Mon, Sep 22, 2014 at 11:03 AM, Afkham Azeez  wrote:

> Can you simply get this working using a Tomcat valve rather than a filter?
> Call into the Hazelcast APIs the filter calls. Take that code and make it a
> valve.
> ​
>
​Hazelcast enterprise version has native web session clustering build in to
Apache Tomcat. I presume they are talking about Tomcat Valves. I'll look in
to what you have suggested as well. Yep, It will be a solid implementation
if we use Tomcat Valves rather than filters.

Thanks for the feedback ​

> ​
>
> Azeez
>
> ​
>
-- 
*Pubudu Dissanayake*
 Software Engineer

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Mob: + 94 775 503 304

Blog: http://geekdetected.wordpress.com/
Linkedin: *http://lk.linkedin.com/in/pubududissanayake*

Flickr : https://www.flickr.com/photos/pubudufx/
Twitter: https://twitter.com/GeekInAction
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi all,

When I was building the "Carbon Orbit", I'm getting the following error.
Any help will be greatly appreciated.

[INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle  SKIPPED

[ERROR] Failed to execute goal
org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on
project tribes: Internal error in maven-bundle-plugin:
/opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such
file or directory)


Regards.
-- 
*Ramindu De Silva*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94772339350
mob: +94782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Restricting WSO2 Carbon package access with Java Security Manager

2014-09-23 Thread Isuru Perera
Hi all,

When enabling the Java Security Manager for WSO2 products, we used to have
a system property named "restricted.packages".

This property accepts comma separated list of packages and sets the  "
package.access" *System* property [1].

In Carbon 4.2.0, this property is not used anywhere. After discussing with
Prabath, I found out that the above system property was used in Carbon 3
[2].

Could anyone please let us know, why the usage of "restricted.packages" was
removed [3] in latest Carbon?

Also in Carbon 3.2.0 code, the "restricted.packages" system property value
is directly replacing the "package.access" security property. I think
that's wrong as "package.access" system property already has predefined set
of packages.

Shall we fix this properly in Carbon 4.3.0?

Thanks!

Best Regards,

[1]
http://docs.oracle.com/javase/7/docs/api/java/lang/SecurityManager.html#checkPackageAccess%28java.lang.String%29
[2]
https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/core/org.wso2.carbon.server/3.2.2/src/main/java/org/wso2/carbon/server/Main.java
[3]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.server/4.2.0/src/main/java/org/wso2/carbon/server/Main.java

-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

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


Re: [Dev] Change of method signature for adddatasources in RSS manager core

2014-09-23 Thread Bhathiya Jayasekara
Hi Poshitha,

On Tue, Sep 23, 2014 at 1:37 PM, Poshitha Dabare  wrote:

> HI
>
> " A change in the API should be made for following requirement.
>
> Currently when a datasource is created from RSS it is name after the
> database. But it is created from attached database users page and each
> database user can create datasource from the same database, this might
> create some conflict since the datasource may mean also the datauser too.
> this can be eliminated by providing way to name the datasource as in
> ndatasource component
>
> But the current *addCarbonDatasource* method in RSSadmin class does not
> take parameter to datasource name. Therefore the method signature should be
> changed so that it can take a new parameter called "dataSourceName"
>
> Else is there any way to invoke ndatasource ui with the datasource name
> alread in  "
> ---
>
> Currently the signature is
>
> public void addCarbonDataSource(String environmentName,
> UserDatabaseEntryInfo entry)
>
> need to change to something like
>
> public void addCarbonDataSource(String environmentName,String
> dataSourceName, UserDatabaseEntryInfo entry)
>

+1. Please go ahead and make the change.

Thanks,
Bhathiya


>
> Any suggestions.
>
>
> Thanks
>
>
>
>
> On Mon, Sep 22, 2014 at 2:51 PM, Harsha Kumara  wrote:
>
>> I think giving the option to select the data source name is ideal. I
>> don't think navigate to ndatasource ui is a good option.
>>
>> On Mon, Sep 22, 2014 at 2:44 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> What is the current signature?
>>>
>>> On Mon, Sep 22, 2014 at 2:42 PM, Poshitha Dabare 
>>> wrote:
>>>
 Hi

 A change in the API should be made for following requirement.

 Currently when a datasource is created from RSS it is name after the
 database. But it is created from attached database users page and each
 database user can create datasource from the same database, this might
 create some conflict since the datasource may mean also the datauser too.
 this can be eliminated by providing way to name the datasource as in
 ndatasource component

 But the current *addCarbonDatasource* method in RSSadmin class does
 not take parameter to datasource name. Therefore the method signature
 should be changed so that it can take a new parameter called
 "dataSourceName"

 Else is there any way to invoke ndatasource ui with the datasource name
 alread in

 Any suggestions.

 Thanks

 --
 Poshitha Dabare
 Software Engineer

 Mob: 075 536 8005

>>>
>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
> Poshitha Dabare
> Software Engineer
>
> Mob: 075 536 8005
>



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

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


[Dev] Please merge pull request #49 for andes

2014-09-23 Thread Asanka Abeyweera
Hi,

Can you please review and merge the pull request [1] done for MB-761 [2]?

Thank you,

[1]. https://github.com/wso2-dev/andes/pull/49
[2]. https://wso2.org/jira/browse/MB-761

-- 
Asanka Abeyweera
Software Engineer
WSO2 Inc.

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


[Dev] [AF] .NET Support

2014-09-23 Thread Kasun De Silva
Hi All,

Currently I have been working on enabling Jenkins build for .NET apps.
Jenkins was able to build the .NET app with a separate windows slave with
MSBuild installed. But the problem was the deployable artifact was not
created. Following is Jenkins job template that I have used



v4.0
app2.sln

false
false
false




This is a default configuration in Jenkins for build .NET apps but need
some additional configs to make deployable artifact and get back the
artifact from to slave to master.

  

  v4.0
  app2.sln
  /p:Configuration=Release
/p:DeployOnBuild=true
  false
  false
  false

  
  

  app2/obj/Debug/Package/*.zip
  false
  false

  


Thanks,
Kasun






*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : kas...@wso2.com
mobile : +94 77 794 4260
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev