Re: [Dev] [PPaaS] Unable to build Released Docker base image Pack

2015-11-11 Thread Reka Thirunavukkarasu
Thanks Gayan for the confirmation. That would be good..

Thanks,
Reka

On Wed, Nov 11, 2015 at 10:41 AM, Gayan Gunarathne <gay...@wso2.com> wrote:

> Hi Reka,
>
> On Wed, Nov 11, 2015 at 10:28 AM, Reka Thirunavukkarasu <r...@wso2.com>
> wrote:
>
>> Hi
>>
>> Due to the docker base image pack[1] is referred to relative path from
>> the product distribution for such as configurator and etc, we can't build
>> and get the docker base image.
>>
>
>
>> Can we fix this for 4.1.2 cartridges release? Also, it would be better,
>> if the docker image could be built even without phython agent as in
>> standalone, python agent is not needed. So, it is an additional step to
>> download python agent and locate it in the docker image for a standalone
>> docker image user. WDYT?
>>
>> [1]
>> http://product-dist.wso2.com/downloads/private-paas/4.1.0/cartridges/common/wso2ppaas-cartridges-docker-base-image-4.1.1.zip
>>
>
> In 4.1.2 , user need to put the configurator in the packages folder. If
> user needs to build it from the already build one from the same repo, he
> needs to pass additional input parameter -b.[1]
>
> [1]
> https://github.com/wso2/private-paas-cartridges/tree/master/common/docker/base-image
>
> Thanks,
> Gayan
>
>
>>
>>
>> Thanks,
>> Reka
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [PPaaS] Unable to build Released Docker base image Pack

2015-11-10 Thread Reka Thirunavukkarasu
Hi

Due to the docker base image pack[1] is referred to relative path from the
product distribution for such as configurator and etc, we can't build and
get the docker base image.

Can we fix this for 4.1.2 cartridges release? Also, it would be better, if
the docker image could be built even without phython agent as in
standalone, python agent is not needed. So, it is an additional step to
download python agent and locate it in the docker image for a standalone
docker image user. WDYT?

[1]
http://product-dist.wso2.com/downloads/private-paas/4.1.0/cartridges/common/wso2ppaas-cartridges-docker-base-image-4.1.1.zip

Thanks,
Reka

-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Docker base image creation scirpt

2015-11-09 Thread Reka Thirunavukkarasu
Hi Pubudu,
<https://docs.docker.com/mac/step_one/>

On Mon, Nov 9, 2015 at 11:00 PM, Pubudu Gunatilaka <pubu...@wso2.com> wrote:

> Hi Gayan,
>
> It is not referring the base image pom file but the pom file in common
> directory. This works fine for me. But if you check the distribution we may
> need to fix this properly as we try to build configurator which is not
> included in the distribution itself.
>
> @Reka: We added sudo permission as most of the users may need it when
> working with docker.
> Are you trying to terminate docker containers? If so you can use following
> command with sudo permission.
>
> docker stop $(docker ps -a -q)
>
> Once you stop the docker containers you can use following to remove
> stopped containers.
>
> docker rm `docker ps --no-trunc -aq`
>

Sorry..That was a typo issue. I couldn't execute any docker command as sudo
as the "Docker Quickstart Terminal" in Mac starts the docker process
terminal as normal user rather than the root. I'm not using Boot2Docker. I
have used the latest Docker[1] which seems to have the support for Mac as
well. I could execute any docker commands only as the normal user.

[1] https://docs.docker.com/mac/step_one/

>
> Thank you!
>
> On Mon, Nov 9, 2015 at 10:30 PM, Reka Thirunavukkarasu <r...@wso2.com>
> wrote:
>
>> Hi Gayan,
>>
>> Another issue was in Mac is that i was unable to build the docker image
>> with sudo permission. Does anyone aware of how to execute docker
>> termination from Docker Quickstart Terminal with sudo permission?
>>
>> Thanks,
>> Reka
>>
>> On Mon, Nov 9, 2015 at 8:05 PM, Gayan Gunarathne <gay...@wso2.com> wrote:
>>
>>> The command that we used to retrieve the configurator_version is not
>>> working as we don't have a pom in the base-image.May be we get
>>> the configurator_version from parent pom and but seems that command is not
>>> working when we point to the parent pom.We may not need to read
>>> this configurator_version from the pom?
>>>
>>> [1]
>>> https://github.com/wso2/private-paas-cartridges/blob/master/common/docker/base-image/build.sh#L25
>>>
>>> Thanks,
>>> Gayan
>>>
>>> --
>>>
>>> Gayan Gunarathne
>>> Technical Lead, WSO2 Inc. (http://wso2.com)
>>> Committer & PMC Member, Apache Stratos
>>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>>
>>>
>>>
>>
>>
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049 <%2B94772207163>
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Docker base image creation scirpt

2015-11-09 Thread Reka Thirunavukkarasu
Hi

On Tue, Nov 10, 2015 at 8:07 AM, Akila Ravihansa Perera <raviha...@wso2.com>
wrote:

> More importantly [2] explains why root permission is needed and how sudo
>> can be avoided by adding the user to docker group (not sudoers group).
>>
>> *The docker daemon always runs as the root user, and since Docker version
>> 0.5.2, the docker daemon binds to a Unix socket instead of a TCP port. By
>> default that Unix socket is owned by the user root, and so, by default, you
>> can access it with sudo.*
>>
>> *Starting in version 0.5.3, if you (or your Docker installer) create a
>> Unix group called docker and add users to it, then the docker daemon will
>> make the ownership of the Unix socket read/writable by the docker group
>> when the daemon starts. The docker daemon must always run as the root user,
>> but if you run the docker client as a user in the docker group then you
>> don't need to add sudo to all the client commands. As of 0.9.0, you can
>> specify that a group other than docker should own the Unix socket with the
>> -G option.*
>>
>>
+1 to remove sudo from docker commands. Thanks for sharing the details
Imesh..!!

Thanks,
Reka

>
> +1
> Let's remove sudo from docker commands. Perhaps check whether docker
> command is accessible or else print a warning message.
>
> Thanks Imesh for pointing this out :)
>
>

>
>>
>> [1]
>> http://askubuntu.com/questions/425754/how-do-i-run-sudo-command-inside-a-script/425990#425990
>> [2]
>> http://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo
>>
>> Thanks
>>
>>
>>>  Thanks.
>>>
>>>
>>>>
>>>>> Does anyone aware of how to execute docker termination from Docker
>>>>> Quickstart Terminal with sudo permission?
>>>>>
>>>>> Try to do a sudo docker ps
>>>> sudo docker ps
>>>> sudo docker rm -f [container id]
>>>>
>>>> Thanks
>>>>
>>>>
>>>>> Thanks,
>>>>> Reka
>>>>>
>>>>> On Mon, Nov 9, 2015 at 8:05 PM, Gayan Gunarathne <gay...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> The command that we used to retrieve the configurator_version is not
>>>>>> working as we don't have a pom in the base-image.May be we get
>>>>>> the configurator_version from parent pom and but seems that command is 
>>>>>> not
>>>>>> working when we point to the parent pom.We may not need to read
>>>>>> this configurator_version from the pom?
>>>>>>
>>>>>> [1]
>>>>>> https://github.com/wso2/private-paas-cartridges/blob/master/common/docker/base-image/build.sh#L25
>>>>>>
>>>>>> Thanks,
>>>>>> Gayan
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Gayan Gunarathne
>>>>>> Technical Lead, WSO2 Inc. (http://wso2.com)
>>>>>> Committer & PMC Member, Apache Stratos
>>>>>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Reka Thirunavukkarasu
>>>>> Senior Software Engineer,
>>>>> WSO2, Inc.:http://wso2.com,
>>>>> Mobile: +94776442007
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Imesh Gunaratne*
>>>> Senior Technical Lead
>>>> WSO2 Inc: http://wso2.com
>>>> T: +94 11 214 5345 M: +94 77 374 2057
>>>> W: http://imesh.gunaratne.org
>>>> Lean . Enterprise . Middleware
>>>>
>>>>
>>>
>>>
>>> --
>>> Akila Ravihansa Perera
>>> WSO2 Inc.;  http://wso2.com/
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Docker base image creation scirpt

2015-11-09 Thread Reka Thirunavukkarasu
Hi Gayan,

Another issue was in Mac is that i was unable to build the docker image
with sudo permission. Does anyone aware of how to execute docker
termination from Docker Quickstart Terminal with sudo permission?

Thanks,
Reka

On Mon, Nov 9, 2015 at 8:05 PM, Gayan Gunarathne <gay...@wso2.com> wrote:

> The command that we used to retrieve the configurator_version is not
> working as we don't have a pom in the base-image.May be we get
> the configurator_version from parent pom and but seems that command is not
> working when we point to the parent pom.We may not need to read
> this configurator_version from the pom?
>
> [1]
> https://github.com/wso2/private-paas-cartridges/blob/master/common/docker/base-image/build.sh#L25
>
> Thanks,
> Gayan
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Python data publisher in PPAAS

2015-11-09 Thread Reka Thirunavukkarasu
Hi Malith,

Chamila has implemented python data publisher in PPaaS. Hope he can help
you with it.

Thanks,
Reka

On Mon, Nov 9, 2015 at 4:38 PM, Malith Dhanushka <mal...@wso2.com> wrote:

> Hi Folks,
>
> We have a requirement for a python data publisher for DAS and got to know
> that this has already implemented in PPAAS. Could you please provide some
> details on what extent that was done in terms of functionality.  (i.e -
> authentication, even bundling, message queuing..)
>
> Thanks
> Malith
> --
> Malith Dhanushka
> Senior Software Engineer - Data Technologies
> *WSO2, Inc. : wso2.com <http://wso2.com/>*
> *Mobile*  : +94 716 506 693
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private PaaS] Moving Nginx Extension Changes Upstream

2015-10-05 Thread Reka Thirunavukkarasu
Hi Imesh,

I have added all the changes to Stratos-4.1.x branch now..

Thanks,
Reka

On Mon, Oct 5, 2015 at 10:20 AM, Imesh Gunaratne <im...@wso2.com> wrote:

> Thanks Reka!
>
> On Mon, Oct 5, 2015 at 8:20 AM, Reka Thirunavukkarasu <r...@wso2.com>
> wrote:
>
>> Hi
>>
>> Thanks Imesh..Sure..I will Integrate those changes to Stratos 4.1.x
>> branch..
>>
>> Thanks,
>> Reka
>>
>> On Mon, Oct 5, 2015 at 12:02 AM, Imesh Gunaratne <im...@wso2.com> wrote:
>>
>>> Hi Reka,
>>>
>>> I removed nginx extension source from Private PaaS repository to be
>>> added to Stratos 4.1.x branch [1]. This is to make sure that we do not
>>> release nginx extension with Private PaaS 4.1.0-Beta/GA rather it to be
>>> taken from corresponding Stratos release.
>>>
>>> Would you mind sending these changes to Stratos 4.1.x branch? I did not
>>> do this because it contains few great improvements you did recently and
>>> wanted you to commit them.
>>>
>>> [1]
>>> https://github.com/wso2/product-private-paas/commit/1402f40a9199f39ab0fe72f27dfa14f6510be08f
>>>
>>> Thanks
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private PaaS] Moving Nginx Extension Changes Upstream

2015-10-04 Thread Reka Thirunavukkarasu
Hi

Thanks Imesh..Sure..I will Integrate those changes to Stratos 4.1.x branch..

Thanks,
Reka

On Mon, Oct 5, 2015 at 12:02 AM, Imesh Gunaratne <im...@wso2.com> wrote:

> Hi Reka,
>
> I removed nginx extension source from Private PaaS repository to be added
> to Stratos 4.1.x branch [1]. This is to make sure that we do not release
> nginx extension with Private PaaS 4.1.0-Beta/GA rather it to be taken from
> corresponding Stratos release.
>
> Would you mind sending these changes to Stratos 4.1.x branch? I did not do
> this because it contains few great improvements you did recently and wanted
> you to commit them.
>
> [1]
> https://github.com/wso2/product-private-paas/commit/1402f40a9199f39ab0fe72f27dfa14f6510be08f
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Reka Thirunavukkarasu
Hi Gayan

On Thu, Oct 1, 2015 at 6:16 PM, Gayan Gunarathne <gay...@wso2.com> wrote:

>
>
> On Thu, Oct 1, 2015 at 6:06 PM, Reka Thirunavukkarasu <r...@wso2.com>
> wrote:
>
>> Hi
>>
>> Shall we maintain an installer as well(specially for VM cartridges) in
>> this repository to quickly create specific cartridges in puppet? What this
>> installer could do is,
>>
>> User has to provide the packs and set of values for the environment
>> variables.
>>
>> - Install puppet master
>> - Locate the relevant cartridges puppet modules
>> - Place the packs, template modules and plugins to right location
>> - Export all the user given environment variables
>> - Execute configurator to configure the samples
>>
>> WDYT?
>>
>
> Good thought reka. As our offline chat , we can plan to have two
> installers for ppaas and ppaas cartridges.We can have the ppaas installer
> to set up the ppaas related stuff while ppaas cartridge installer to set up
> the cartridge specific installations.
>
+1. We can check whether we can modify the stratos-installer and use it as
a ppaas-installer rather writing it from the scratch.

Thanks,
Reka

>
>> Thanks,
>> Reka
>>
>> On Thu, Oct 1, 2015 at 2:01 PM, Gayan Gunarathne <gay...@wso2.com> wrote:
>>
>>> Hi Akila,
>>>
>>> Common folder has all the common stuff related to the cartridges.So if
>>> someone can navigate to the common folder and get the stuff shared among
>>> the cartridges.
>>>
>>> I think it is meaningful to have those common stuff at a one place, then
>>> someone new to this repository also have a feeling those stuff will be
>>> common for all the cartridges.Common PCA plugins and utils also we can have
>>> inside the common folder
>>>
>>> Thanks,
>>> Gayan
>>>
>>> On Thu, Oct 1, 2015 at 12:52 PM, Akila Ravihansa Perera <
>>> raviha...@wso2.com> wrote:
>>>
>>>> Hi Gayan,
>>>>
>>>> Wouldn't it be easier to navigate if we move those common folders to
>>>> root folder?
>>>>
>>>> We can create a common folder under /plugins/ folder to keep common PCA
>>>> plugins and util files.
>>>>
>>>> Just a thought...wdyt?
>>>>
>>>> Thanks.
>>>>
>>>> On Thu, Oct 1, 2015 at 10:29 AM, Gayan Gunarathne <gay...@wso2.com>
>>>> wrote:
>>>>
>>>>> Adding to the Dev list
>>>>>
>>>>>
>>>>> On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne <im...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Shall we move this discussion to Dev?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne <gay...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> As puppet,init-scripts,base image are common for all the
>>>>>>> cartridges,shall we group them under common?
>>>>>>> Also what about the configurator?I can see two options
>>>>>>> One option will be move the configurator to the private-paas
>>>>>>> repository and release it with the private paas.Other option will be we 
>>>>>>> can
>>>>>>> do the separate release for the configurator.Seems it is better to have 
>>>>>>> a
>>>>>>> separate release for the configurator. WDYT?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Gayan
>>>>>>>
>>>>>>> On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne <gay...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
>>>>>>>> raviha...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> +1 for having a simple folder structure. I think we can move the
>>>>>>>>> contents in /common/ folder to root folder. One can easily identify 
>>>>>>>>> the
>>>>>>>>> important files available and easy to navigate as well.
>>>>>>>>>
>>>>>>>>> What should be the Maven groupId for this repo? How about
>>>>>>>>> "org

Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Reka Thirunavukkarasu
Hi

Shall we maintain an installer as well(specially for VM cartridges) in this
repository to quickly create specific cartridges in puppet? What this
installer could do is,

User has to provide the packs and set of values for the environment
variables.

- Install puppet master
- Locate the relevant cartridges puppet modules
- Place the packs, template modules and plugins to right location
- Export all the user given environment variables
- Execute configurator to configure the samples

WDYT?

Thanks,
Reka

On Thu, Oct 1, 2015 at 2:01 PM, Gayan Gunarathne <gay...@wso2.com> wrote:

> Hi Akila,
>
> Common folder has all the common stuff related to the cartridges.So if
> someone can navigate to the common folder and get the stuff shared among
> the cartridges.
>
> I think it is meaningful to have those common stuff at a one place, then
> someone new to this repository also have a feeling those stuff will be
> common for all the cartridges.Common PCA plugins and utils also we can have
> inside the common folder
>
> Thanks,
> Gayan
>
> On Thu, Oct 1, 2015 at 12:52 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi Gayan,
>>
>> Wouldn't it be easier to navigate if we move those common folders to root
>> folder?
>>
>> We can create a common folder under /plugins/ folder to keep common PCA
>> plugins and util files.
>>
>> Just a thought...wdyt?
>>
>> Thanks.
>>
>> On Thu, Oct 1, 2015 at 10:29 AM, Gayan Gunarathne <gay...@wso2.com>
>> wrote:
>>
>>> Adding to the Dev list
>>>
>>>
>>> On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne <im...@wso2.com> wrote:
>>>
>>>> Shall we move this discussion to Dev?
>>>>
>>>> Thanks
>>>>
>>>> On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne <gay...@wso2.com>
>>>> wrote:
>>>>
>>>>> As puppet,init-scripts,base image are common for all the
>>>>> cartridges,shall we group them under common?
>>>>> Also what about the configurator?I can see two options
>>>>> One option will be move the configurator to the private-paas
>>>>> repository and release it with the private paas.Other option will be we 
>>>>> can
>>>>> do the separate release for the configurator.Seems it is better to have a
>>>>> separate release for the configurator. WDYT?
>>>>>
>>>>> Thanks,
>>>>> Gayan
>>>>>
>>>>> On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne <gay...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
>>>>>> raviha...@wso2.com> wrote:
>>>>>>
>>>>>>> +1 for having a simple folder structure. I think we can move the
>>>>>>> contents in /common/ folder to root folder. One can easily identify the
>>>>>>> important files available and easy to navigate as well.
>>>>>>>
>>>>>>> What should be the Maven groupId for this repo? How about
>>>>>>> "org.wso2.ppaas.cartridges" or "org.wso2.cartridges" ?
>>>>>>>
>>>>>> We can use org.wso2.ppaas.cartridges as groupId
>>>>>>
>>>>>> Thanks,
>>>>>> Gayan
>>>>>>
>>>>>>
>>>>>>>
>>>>>>
>>>>>>> On Wed, Sep 30, 2015 at 9:24 PM, Imesh Gunaratne <im...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>>  I would like to reduce the complexity of the folder structure and
>>>>>>>> make it much simple. Shall we have some thing like below:
>>>>>>>>
>>>>>>>> private-paas-cartridges/
>>>>>>>> |--/common/
>>>>>>>>|--/configurator/
>>>>>>>>|--/puppet/
>>>>>>>>   |--/wso2-installer/
>>>>>>>>|--/scripts/
>>>>>>>>   |---/ec2/init.sh
>>>>>>>>   |---/openstack/init.sh
>>>>>>>>
>>>>>>>> |--/wso2esb/4.9.0/
>&g

[Dev] [PPAAS] Samples refactored to use Configurator to replace the place holders

2015-09-18 Thread Reka Thirunavukkarasu
Hi

I have refactored the samples as templates with variables instead of having
the place holders to set the IaaS related details and the relevant
properties Eg: puppet ip, hostnames, mysql ip, port and database
credentials.

Now that [1] can be placed into the configurator by configuring [2]. Then
the relevant cartridges and network partitions will be generated to samples
folder [3] as with relevant configurations.

We will automate this with ppaas-installer. So that parameter can be
exported as system variables and configurator will pick that up to replace
it accordingly. Please follow [4] for more information.

Credits goes to Anuruddha for implementing the Configurator. It is really
nice to work with it.

[1]
https://github.com/wso2/product-private-paas/tree/master/samples/template-modules

[2]
https://github.com/wso2/product-private-paas/blob/master/samples/template-modules/module.ini

[3] https://github.com/wso2/product-private-paas/tree/master/samples/

[4]
https://github.com/wso2/product-private-paas/blob/master/samples/template-modules/README.md

Thanks,
Reka

-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Strange Error in WSO2 Private Paas 4.1.2

2015-09-17 Thread Reka Thirunavukkarasu
at
>>>>>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>>>>>>> at
>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>>>>>>> at
>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>>>>>> at
>>>>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>>>>>> at
>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>>>>>> at
>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>>>>>>> at
>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>>>>> at
>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>>>>>> at
>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>>>>>>
>>>>>>>
>>>>>>> and i'm not able to add any cartridge, including simple php.
>>>>>>>
>>>>>>> I triple checked all IaaS settings in cloud-controller.xml and in
>>>>>>> cartridge definitions and they are correct.
>>>>>>>
>>>>>>> Any throught?
>>>>>>>
>>>>>>> Tanks
>>>>>>>
>>>>>>> Marco
>>>>>>> --
>>>>>>> *Da:* Anuruddha Liyanarachchi [anurudd...@wso2.com]
>>>>>>> *Inviato:* martedì 8 settembre 2015 15.46
>>>>>>> *A:* Monaco Marco; WSO2 Developers' List
>>>>>>> *Cc:* im...@wso2.com
>>>>>>> *Oggetto:* Re: Strange Error in WSO2 Private Paas 4.1.2
>>>>>>>
>>>>>>> [Removing stratos dev and adding wso2dev ]
>>>>>>>
>>>>>>> Hi Marco,
>>>>>>>
>>>>>>> We have fixed this in the master branch with commit [1]. Please take
>>>>>>> a pull from master branch or download the alpha release pack from [2].
>>>>>>>
>>>>>>> [1]
>>>>>>> https://github.com/wso2/product-private-paas/commit/54a77e9d85538a20ace00c57ec9e8aed410fb773
>>>>>>> [2]
>>>>>>> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.0-ALPHA/
>>>>>>>
>>>>>>> On Tue, Sep 8, 2015 at 7:06 PM, Monaco Marco <ma.mon...@almaviva.it>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> We have successfully installed WSO2 PPaaS 4.1.2 on our Openstack
>>>>>>>> IaaS Environment.
>>>>>>>>
>>>>>>>> After following this procedure (
>>>>>>>> https://docs.wso2.com/display/PP410/Deploy+Private+PaaS+in+OpenStack)
>>>>>>>> we are able to open the Private PaaS console and configure Network
>>>>>>>> Partitions, Autoscale Policies, Deployment, Cartridge, ecc..
>>>>>>>>
>>>>>>>> We have problems trying to deploy applications. We tested both PHP
>>>>>>>> and WSO2ESB applications, also using Mock IaaS, but we receive always 
>>>>>>>> the
>>>>>>>> same error:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>

Re: [Dev] [Private PaaS] API Manager template module seems be messed up

2015-09-07 Thread Reka Thirunavukkarasu
Hi Raj,

Yah..Seems some old reference is there in the
master-datasources.xml.template which will not affect the configurations,
if the parameters are defined correctly in the cartridge definition. Please
ignore the section with CONFIG_PARAM_CONFIG_DB_APIM_URL.

Please refer [1] for the sample configuration. We will clean this in the
immediate next release(beta)..

[1]
https://github.com/wso2/product-private-paas/blob/master/samples/cartridges/ec2/wso2am-190/wso2am-190-gw-manager.json

Thanks,
Reka

On Mon, Sep 7, 2015 at 6:19 PM, Rajkumar Rajaratnam <rajkum...@wso2.com>
wrote:

> Hi,
>
> I think API Manager's master-datasources.xml.template is messed up. For
> example, same db username/password parameter is used for all the databases
> and jdbc/WSO2REG_DB is defined twice with two different if-checks, why?
>
> Please check and fix [1]. Please check other modules also.
>
> [1]
> https://github.com/wso2/product-private-paas/blob/master/cartridges/templates-modules/wso2am-1.9.0/templates/repository/conf/datasources/master-datasources.xml.template
>
> Thanks,
> Raj.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
> ​​
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module

2015-09-06 Thread Reka Thirunavukkarasu
dd...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Raj,
>>>>>>>
>>>>>>> Thanks for pointing this out. I have now added the jinja2 dependency
>>>>>>> to configurator module and removed from PCA. [1]
>>>>>>>
>>>>>>> [1]
>>>>>>> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32
>>>>>>>
>>>>>>> On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam <
>>>>>>> rajkum...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I think python-pip & jinja2 should be installed by configurator
>>>>>>>> puppet module, not by python agent.
>>>>>>>>
>>>>>>>> I am using vagrant, puppet and configurator to setup my development
>>>>>>>> environment, but I am not using python agent. Since $subject is not 
>>>>>>>> done, I
>>>>>>>> had to modify configurator puppet module.
>>>>>>>>
>>>>>>>> It would be better if we do the $subject.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Raj.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Rajkumar Rajaratnam
>>>>>>>> Committer & PMC Member, Apache Stratos
>>>>>>>> Software Engineer, WSO2
>>>>>>>>
>>>>>>>> Mobile : +94777568639
>>>>>>>> Blog : rajkumarr.com
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Thanks and Regards,*
>>>>>>> Anuruddha Lanka Liyanarachchi
>>>>>>> Software Engineer - WSO2
>>>>>>> Mobile : +94 (0) 712762611
>>>>>>> Tel  : +94 112 145 345
>>>>>>> a <thili...@wso2.com>nurudd...@wso2.com
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Akila Ravihansa Perera
>>>>>> WSO2 Inc.;  http://wso2.com/
>>>>>>
>>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Rajkumar Rajaratnam
>>>>> Committer & PMC Member, Apache Stratos
>>>>> Software Engineer, WSO2
>>>>>
>>>>> Mobile : +94777568639
>>>>> Blog : rajkumarr.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Akila Ravihansa Perera
>>>> WSO2 Inc.;  http://wso2.com/
>>>>
>>>> Blog: http://ravihansa3000.blogspot.com
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Gayan Gunarathne
>>> Technical Lead, WSO2 Inc. (http://wso2.com)
>>> Committer & PMC Member, Apache Stratos
>>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel  : +94 112 145 345
>> a <thili...@wso2.com>nurudd...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Nginx extension is available in Private PaaS 4.1.0

2015-09-04 Thread Reka Thirunavukkarasu
Thanks Imesh..!

In addition to above configurations, when using api store and publisher
fronted by nginx, we will need to install the certificate to client trust
store of api maanger with below command. Then only we will be able to login
to publisher or store.

keytool -import -file server.cert  -keystore
../repository/resources/security/client-truststore.jks -alias "nginx"

Thanks,
Reka

On Thu, Sep 3, 2015 at 9:58 PM, Imesh Gunaratne <im...@wso2.com> wrote:

> Great work Reka on fixing the SSL configuration!!
>
> On Tue, Sep 1, 2015 at 3:17 PM, Reka Thirunavukkarasu <r...@wso2.com>
> wrote:
>
>> Please find the missing section as below:
>>
>> - Update /bin/nginx-extension.sh with below
>> parameters
>> -Dnginx.cert.path=/etc/nginx/ssl/server.cert
>> -Dnginx.key.path=/etc/nginx/ssl/server.key
>> -Dnginx.server.names.hash.bucket.size=128
>> -Dconf.file.path=/etc/nginx/nginx.conf
>>
>> - Start /bin/nginx-extension.sh
>>
>> Extension will auto configure the nginx.conf with the members found from
>> the Topology and it will start the nginx server.
>>
>> Thanks,
>> Reka
>>
>>
>> On Tue, Sep 1, 2015 at 3:13 PM, Reka Thirunavukkarasu <r...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Nginx extension has been tested with SSL and made the necessary
>>> configuration to be available with the default nginx extension. Please
>>> follow below steps to configure nginx extension with PPaaS.
>>>
>>> - Install nginx with SSL module
>>> - Build the niginx extension from [1].
>>> - Deploy the built niginx extension
>>> apache-stratos-nginx-extension-4.1.0-SNAPSHOT.zip to the machine where
>>> nginx is installed to a preferred place
>>> - unzip the extension
>>> - Setup java
>>> - Update /conf/jndi.properties with the activemq
>>> ip which is used by PPaaS server
>>> - Update /bin/nginx-extension.sh with below
>>> parameters
>>>
>>>
>>>
>>> [1]
>>> https://github.com/wso2/product-private-paas/tree/master/extensions/load-balancer/nginx-extension
>>>
>>> --
>>> Reka Thirunavukkarasu
>>> Senior Software Engineer,
>>> WSO2, Inc.:http://wso2.com,
>>> Mobile: +94776442007
>>>
>>>
>>>
>>
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [PPaaS] Nginx extension is available in Private PaaS 4.1.0

2015-09-01 Thread Reka Thirunavukkarasu
Hi All,

Nginx extension has been tested with SSL and made the necessary
configuration to be available with the default nginx extension. Please
follow below steps to configure nginx extension with PPaaS.

- Install nginx with SSL module
- Build the niginx extension from [1].
- Deploy the built niginx extension
apache-stratos-nginx-extension-4.1.0-SNAPSHOT.zip to the machine where
nginx is installed to a preferred place
- unzip the extension
- Setup java
- Update /conf/jndi.properties with the activemq ip
which is used by PPaaS server
- Update /bin/nginx-extension.sh with below parameters



[1]
https://github.com/wso2/product-private-paas/tree/master/extensions/load-balancer/nginx-extension

-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Nginx extension is available in Private PaaS 4.1.0

2015-09-01 Thread Reka Thirunavukkarasu
Please find the missing section as below:

- Update /bin/nginx-extension.sh with below parameters
-Dnginx.cert.path=/etc/nginx/ssl/server.cert
-Dnginx.key.path=/etc/nginx/ssl/server.key
-Dnginx.server.names.hash.bucket.size=128
-Dconf.file.path=/etc/nginx/nginx.conf

- Start /bin/nginx-extension.sh

Extension will auto configure the nginx.conf with the members found from
the Topology and it will start the nginx server.

Thanks,
Reka


On Tue, Sep 1, 2015 at 3:13 PM, Reka Thirunavukkarasu <r...@wso2.com> wrote:

> Hi All,
>
> Nginx extension has been tested with SSL and made the necessary
> configuration to be available with the default nginx extension. Please
> follow below steps to configure nginx extension with PPaaS.
>
> - Install nginx with SSL module
> - Build the niginx extension from [1].
> - Deploy the built niginx extension
> apache-stratos-nginx-extension-4.1.0-SNAPSHOT.zip to the machine where
> nginx is installed to a preferred place
> - unzip the extension
> - Setup java
> - Update /conf/jndi.properties with the activemq ip
> which is used by PPaaS server
> - Update /bin/nginx-extension.sh with below
> parameters
>
>
>
> [1]
> https://github.com/wso2/product-private-paas/tree/master/extensions/load-balancer/nginx-extension
>
> --
> Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
> Mobile: +94776442007
>
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Please review and merge the PR

2015-07-14 Thread Reka Thirunavukkarasu
Hi Pubudu,

The configurations and template modules look good..I have now merged the
pull request..

Thanks,
RekaThe

On Tue, Jul 14, 2015 at 6:31 PM, Pubudu Gunatilaka pubu...@wso2.com wrote:

 Hi,

 Please note $subject.
 PR[1] contains Apache Hadoop docker cartridge and template module.

 [1] - https://github.com/wso2/product-private-paas/pull/103


 Thank you!
 --

 *Pubudu Gunatilaka*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 77 4078049

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




-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private Pass] Configurator component (bash) for configuring a given Carbon server

2015-05-05 Thread Reka Thirunavukkarasu
Hi Anuriddha,

Good work in getting the Configurator also with template model. As you have
mentioned, now we can process only few files. If we are to add new files,
just writing *.jinja file is enough or do we need to configure something
about this file somewhere like in puppet we mentioned in the manifests?

Thanks,
Reka

On Tue, May 5, 2015 at 5:43 PM, Anuruddha Liyanarachchi anurudd...@wso2.com
 wrote:

 Hi Devs,

 I have created the $subject using python and Jinja2. Configurator is now
 capable of generating axis2.xml, Carbon.xml and catalina-server.xml based
 on clustering configurations. Following structure was used to create the
 configurator. Currently these configurations are read from a file.

 I will update the thread as I move on.
 .
 ├── Configurator.iml
 ├── Constants.py
 ├── Constants.pyc
 ├── Main.py
 ├── Output
  |   ├── axis2.xml
  |   ├── carbon.xml
  |   └── catalina-server.xml
 └── Templates
 └── AppServer
 └── conf
 ├── axis2.jinja
 ├── carbon.jinja
 └── catalina-server.jinja


 On Thu, Apr 30, 2015 at 12:05 PM, Anuruddha Liyanarachchi 
 anurudd...@wso2.com wrote:

 Hi ,

 I am working on $subject. I am trying create a shell script which
 generate carbon server configuration based on parameters provided by
 different run times.

 Configurator is basically configuring perviously used puppet templates
 using shell.
 Please refer mail thread subject as [PPaaS] Private PaaS 4.1.0 Release
 Plan for more info.

 I will provide more information as I progress.

 --
 *Thanks and Regards,*
 Anuruddha Lanka Liyanarachchi
 Software Engineer - WSO2
 Mobile : +94 (0) 712762611
 Tel  : +94 112 145 345
 a thili...@wso2.comnurudd...@wso2.com




 --
 *Thanks and Regards,*
 Anuruddha Lanka Liyanarachchi
 Software Engineer - WSO2
 Mobile : +94 (0) 712762611
 Tel  : +94 112 145 345
 a thili...@wso2.comnurudd...@wso2.com

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




-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Reka Thirunavukkarasu
Congratz Sewwandi..!!!

Thanks,
Reka

On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage hesh...@wso2.com wrote:

 Congratulations Sewwandi!

 Regards,
 Heshani

 On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer sha...@wso2.com wrote:

 Congrats!!!

 Shazni Nazeer

 Senior Software Engineer

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

 On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851


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




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

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

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




 --
 *Hasitha Abeykoon*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com


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



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




 --
 Heshani Gamage
 Software Engineer, WSO2, Inc.
 email : hesh...@wso2.com

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




-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP][stratos] Stratos single jvm cep aggregate functions issue

2014-08-18 Thread Reka Thirunavukkarasu
Hi Asiri,

If you are using stratos 4.0.0-RC4, then the concat operation in CEP might
be missing. CEP 3.1.0 supports the concat where CEP 3.0.0 doesn't support
it. We have added a extension to support concat with CEP 3.0.0 in Private
PaaS. You can find the sample extension in [1]. Can you add this extension
to Stratos 4.0.0-rc4 and try the same?

You will need to add the class to
STRATOS_HOME/repository/conf/siddhi/siddi.extesion as [2].

[1]
https://github.com/wso2/private-paas/blob/master/source/extensions/cep/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/ConcatWindowProcessor.java

[2]
https://github.com/wso2/private-paas/blob/master/source/products/stratos/modules/distribution/src/main/conf/siddhi/siddhi.extension

Thanks,
Reka


On Mon, Aug 18, 2014 at 12:10 PM, Lasantha Fernando lasan...@wso2.com
wrote:

 Hi Asiri,

 From the queries listed, it seems that you are using partitioned queries.
 If so, the aggregate will be given for each partition.

 Can you attach the relevant trace logs when the above issue occurs? The
 trace logs might help understand more what is happening underneath.

 Also, I think stratos uses CEP 3.0.0 instead of CEP 3.1.0. Therefore can
 you check with a CEP 3.0.0 standalone pack as well? However, no major
 changes were done to Siddhi when moving from CEP 3.0.0 to CEP 3.1.0. So
 Siddhi should behave exactly the same in both versions.

 Thanks,
 Lasantha


 On 17 August 2014 11:54, Asiri Liyana Arachchi asiriw...@gmail.com
 wrote:

 Hi all,

 I'm using this [1] execution plan inside stratos single jvm installation.

 select cluster_id,network_partition_id,avg(active_instances_count) as
 instances_count, avg(in_flight_request_count) as count , 
 *sum(served_request_count)
 as served_count*
  insert into average_in_flight_requests 

 *sum*  doesn't  give expected output. I've checked the same query with a
 standalone cep 3.1.0 and it gave desired results.
 for an example : served_request_count =10 sent for four times to CEP
 within a minute then the out put(served_count) is 80 (most of the time) or
 60 where it should be 40.

 I'm using stratos pack  4.0.0-rc4 (release )

 Can't figure out why this is happening. Any ideas?

 Thanks in advance.

 Regards,
 Asiri



 [1] : from avg_rif_stat
 select cluster_id, network_partition_id,active_instances_count,
 in_flight_request_count,served_request_count,
  stratos:concat(cluster_id, '-' , network_partition_id) as
 avg_rif_cluster_network
 insert into avg_rif_concat;
  define partition avg_rif_cluster_partition by
  avg_rif_concat.avg_rif_cluster_network;
 from avg_rif_concat#window.timeBatch(1 min)
  select cluster_id,network_partition_id,avg(active_instances_count) as
 instances_count, avg(in_flight_request_count) as count ,
 sum(served_request_count) as served_count
  insert into average_in_flight_requests
 partition by avg_rif_cluster_partition;
  from average_in_flight_requests
  select cluster_id, network_partition_id,instances_count,
 served_count,
  stratos:divider(served_count , instances_count) as
 requests_per_instance
  insert into served_requests_per_instance;
 from served_requests_per_instance#window.timeBatch(10 min)
 select cluster_id,network_partition_id, avg(requests_per_instance) as
 average_served_count
  insert into average_served_request_count;

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Private PaaS- error while subscribing to a ESB cartridge

2014-05-28 Thread Reka Thirunavukkarasu
 {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
 TID: [0] [STRATOS] [2014-05-28 15:08:13,561]  INFO
 {org.apache.stratos.cloud.controller.iaases.AWSEC2Iaas} -

 --

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

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




 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* http://wso2.com/*



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




-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Private PaaS- error while subscribing to a ESB cartridge

2014-05-28 Thread Reka Thirunavukkarasu
Hi Udara,

It can be found in [1]. Could you please verify?

[1]
https://github.com/wso2/private-paas/commit/c033cb4e7c7d9ace3e95f3dabc8e42e70e202f8a

Thanks,
Reka


On Wed, May 28, 2014 at 8:58 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi Reka

 I built the packs today evening.



 On Wed, May 28, 2014 at 8:55 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 The jaggery error is already fixed. Can you take an update?

 Thanks,
 Reka


 On Wed, May 28, 2014 at 8:49 PM, Isuru Haththotuwa isu...@wso2.comwrote:

 In MT scenario, you need to wait till the instances are active to
 subscribe.


 On Wed, May 28, 2014 at 8:42 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I got the fallowing error when subscribing to a ESB cartridge.


 nt.output.adaptor.jms.internal.util.JMSConnectionFactory}
 TID: [0] [STRATOS] [2014-05-28 15:07:25,261]  INFO
 {controller.cartridgeSubscribeSubmit} -
  :[{activeInstances : 0, cartridgeAlias : -,
 cartridgeType : esbmgt, description : ESB Manager Cartridge,
 displayName : ESB Manager, hostName : mgt.esb.wso2.com,
 loadBalancer : false, multiTenant : true, persistance : false,
 provider : wso2, serviceGroup : esbgroup, version : 4.8.1},
 {activeInstances : 0, cartridgeAlias : -, cartridgeType :
 esbworker, description : ESB Worker Cartridge, displayName : ESB
 Worker, hostName : esb.wso2.com, loadBalancer : false,
 multiTenant : true, persistance : false, provider : wso2,
 serviceGroup : esbgroup, version : 4.8.1}]
 {controller.cartridgeSubscribeSubmit}
 TID: [0] [STRATOS] [2014-05-28 15:07:25,333] ERROR
 {org.apache.stratos.manager.manager.CartridgeSubscriptionManager} -  No
 active instances are found for cartridge [esbmgt]
 {org.apache.stratos.manager.manager.CartridgeSubscriptionManager}
 TID: [0] [STRATOS] [2014-05-28 15:07:25,338]  INFO
 {controller.cartridgeSubscribeSubmit} -  :{alias :
 udaraalias4045, repoURL : 
 https://github.com/udaraliyanage/esbArtifacts.git;, privateRepo :
 false, autoscalePolicy : economy, deploymentPolicy : deployp,
 size : null, persistanceRequired : false, commitsEnabled : false,
 removeOnTermination : false, cartridgeType : esbmgt}
  
 *{Error : {errorCode :  400, errorMessage :  No active
 instances are found for cartridge *[esbmgt]}}
 {controller.cartridgeSubscribeSubmit}
 TID: [0] [STRATOS] [2014-05-28 15:07:25,344] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
  org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: TypeError: Cannot read property
 repositoryURL from undefined
 (/console/controllers/cartridgeSubscribeSubmit.jag#108)
 (/console/controllers/router.jag#118)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: *TypeError: Cannot read property
 repositoryURL from *undefined
 (/console/controllers/cartridgeSubscribeSubmit.jag#108)
 (/console/controllers/router.jag#118)
  at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
  at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
  at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
  at
 org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
  at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
 org.wso2

Re: [Dev] [PPaaS] Clustering WSO2 applications across multiple network partitions on Apache Stratos

2014-05-24 Thread Reka Thirunavukkarasu
Hi

On Sat, May 24, 2014 at 11:06 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Akila,

 It's the instances in a cluster that resides in one hazelcast domain not
 all the cartridge instances.

 And in a multi-region deployment, we should use public IPs of members as
 well-known addresses. That's all we have to do.


In the multi region deployment, we are having LBs also per region. So that
the instances of a cluster are joining to only one LB. Please correct me,
if I'm wrong.

When we access host name through one LB, do we still expect other LB's
cartridge instances should have the necessary artifacts or cache loaded? Or
Do we have to use another LB fronted by these LBs which got spawn across
the regions?

Thanks,
Reka



 On Sat, May 24, 2014 at 8:52 PM, Akila Ravihansa Perera 
 raviha...@wso2.com wrote:

 Hi,

 In Private PaaS we have different Apache Stratos clusters created for
 each WSO2 service (for eg - AS, ESB, IS, APIM). If clustering is
 enabled at the service deployment, each instance in the same cluster
 will update its axis2.xml with well known members' IP addresses in
 that cluster. Basically they are in the same Hazelcast domain. For now
 we have only considered service deployments in a single network
 partition on Stratos.

 Can someone explain how this should be handled when multiple network
 partitions are deployed in Stratos?

 In multiple network partitions scenario, the same Stratos cluster will
 span across different network partitions (perhaps in different
 IaaS'es). Should we consider all instances (in different network
 partitions) to be in the same Hazelcast domain?

 Thanks.

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

 Phone: +94 77 64 154 38
 Blog: http://ravihansa3000.blogspot.com




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Clustering WSO2 applications across multiple network partitions on Apache Stratos

2014-05-24 Thread Reka Thirunavukkarasu
As i had offline discussion with Nirmal, got it cleared..We are using an
AWS LB to front the LBs which got spawn across multiple regions. In that
case, we will use the same hostname to access the cluster through AWS LB
(it will use Round Robin to choose one of our LB). So, we will need to make
same cluster's cartridge instances being in the same hazelcast cluster
domain.

Thanks,
Reka


On Sat, May 24, 2014 at 11:26 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Reka,

 Sorry, your question is not much clear to me. But as you know, we do not
 use hazelcast clustering to join with LBs.


 On Sat, May 24, 2014 at 11:23 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 On Sat, May 24, 2014 at 11:06 PM, Nirmal Fernando nir...@wso2.comwrote:

 Hi Akila,

 It's the instances in a cluster that resides in one hazelcast domain not
 all the cartridge instances.

 And in a multi-region deployment, we should use public IPs of members as
 well-known addresses. That's all we have to do.


 In the multi region deployment, we are having LBs also per region. So
 that the instances of a cluster are joining to only one LB. Please correct
 me, if I'm wrong.

 When we access host name through one LB, do we still expect other LB's
 cartridge instances should have the necessary artifacts or cache loaded? Or
 Do we have to use another LB fronted by these LBs which got spawn across
 the regions?

 Thanks,
 Reka



 On Sat, May 24, 2014 at 8:52 PM, Akila Ravihansa Perera 
 raviha...@wso2.com wrote:

 Hi,

 In Private PaaS we have different Apache Stratos clusters created for
 each WSO2 service (for eg - AS, ESB, IS, APIM). If clustering is
 enabled at the service deployment, each instance in the same cluster
 will update its axis2.xml with well known members' IP addresses in
 that cluster. Basically they are in the same Hazelcast domain. For now
 we have only considered service deployments in a single network
 partition on Stratos.

 Can someone explain how this should be handled when multiple network
 partitions are deployed in Stratos?

 In multiple network partitions scenario, the same Stratos cluster will
 span across different network partitions (perhaps in different
 IaaS'es). Should we consider all instances (in different network
 partitions) to be in the same Hazelcast domain?

 Thanks.

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

 Phone: +94 77 64 154 38
 Blog: http://ravihansa3000.blogspot.com




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 Reka Thirunavukkarasu
 Senior Software Engineer,
 WSO2, Inc.:http://wso2.com,
 Mobile: +94776442007





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cloud URL Mapper Story

2014-04-24 Thread Reka Thirunavukkarasu
Hi


On Thu, Apr 24, 2014 at 3:12 PM, Amani Soysa am...@wso2.com wrote:




 On Thu, Apr 24, 2014 at 1:27 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Amani,


 On Thu, Apr 24, 2014 at 12:29 PM, Amani Soysa am...@wso2.com wrote:

 Hi,

 We (Sagara,AmilaM and Amani) had an offline discussion on having URL
 Mapper functionality in Appserver, and these are the things we discussed.

 Since AF need the feature to do url mapping for web app's we have done
 some modifications to the old URL Mapper Component and we are going to make
 URL Mapper available for Appserver. We will not ship URL Mapper feature by
 default with Appserver as there will be a major performance hit if we check
 URL mapping for every request. Therefore, we decided to have URL Mapper as
 a separate feature and install it as we need. Also we need to add this
 feature in our Appserver test plan and documentation.


 Could we ship this by default and make it active only by configuration?


 Yes we can do it .. we can have a configuration property in Carbon.xml to
 enable/disable URL Mapper and make sure there will not be any performance
 hit when URL Mapper is disabled.


We already had the validation in the relevant Tomcat valves not to affect
the standalone AS with the url-mapper . But not sure, anything got changed
over the time. We have to verify it..

Thanks,
Reka


 thanks,
 dimuthu


 At the moment we are ONLY supporting URL Mapper functionality to webapps
 (JSP apps and jaggery Apps) we do not support for Services,JaxRS and JAXWS
 ect. So when implementing URL Mapper functionality from Appfactory side we
 have to make sure we block it for other apps.


 Amila, Sagara please add anything if I have missed.

 Regards,
 Amani


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




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




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

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cloud URL Mapper Story

2014-04-24 Thread Reka Thirunavukkarasu
Hi


On Thu, Apr 24, 2014 at 3:49 PM, Amani Soysa am...@wso2.com wrote:




 On Thu, Apr 24, 2014 at 3:33 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi


 On Thu, Apr 24, 2014 at 3:12 PM, Amani Soysa am...@wso2.com wrote:




 On Thu, Apr 24, 2014 at 1:27 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Amani,


 On Thu, Apr 24, 2014 at 12:29 PM, Amani Soysa am...@wso2.com wrote:

 Hi,

 We (Sagara,AmilaM and Amani) had an offline discussion on having URL
 Mapper functionality in Appserver, and these are the things we discussed.

 Since AF need the feature to do url mapping for web app's we have done
 some modifications to the old URL Mapper Component and we are going to 
 make
 URL Mapper available for Appserver. We will not ship URL Mapper feature by
 default with Appserver as there will be a major performance hit if we 
 check
 URL mapping for every request. Therefore, we decided to have URL Mapper as
 a separate feature and install it as we need. Also we need to add this
 feature in our Appserver test plan and documentation.


 Could we ship this by default and make it active only by configuration?


 Yes we can do it .. we can have a configuration property in Carbon.xml
 to enable/disable URL Mapper and make sure there will not be any
 performance hit when URL Mapper is disabled.


 We already had the validation in the relevant Tomcat valves not to affect
 the standalone AS with the url-mapper . But not sure, anything got changed
 over the time. We have to verify it..


 Hi Reka,

 Well according to TenantLazyLoaderValve.java[1] we have two checks to get
 from cache and also we check whether it's a virtual host request. This can
 have a performance hit.

  //getting actual uri when accessing a virtual host through url mapping
 from the Map
 String uriOfVirtualHost =
 URLMappingHolder.getInstance().getApplicationFromUrlMapping(requestedHostName);
 //getting the host name of first request from registry if  only
 if the request contains url-mapper suffix
 if(TomcatUtil.isVirtualHostRequest(requestedHostName) 
 uriOfVirtualHost == null) {
 uriOfVirtualHost = DataHolder.getHotUpdateService().
 getApplicationContextForHost(requestedHostName);
 }

 if(uriOfVirtualHost != null) {
 requestURI = uriOfVirtualHost;
 }


Yah..That's true. This needs to be fixed with the lazy loading in the
tenant mode, as it will affect the performance of tenant requests.

Thanks,
Reka


 [1] -
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/webapp-mgt/org.wso2.carbon.webapp.mgt/4.2.0/src/main/java/org/wso2/carbon/webapp/mgt/TenantLazyLoaderValve.java

 Regards,
 Amani


 Thanks,
 Reka


 thanks,
 dimuthu


 At the moment we are ONLY supporting URL Mapper functionality to
 webapps (JSP apps and jaggery Apps) we do not support for Services,JaxRS
 and JAXWS ect. So when implementing URL Mapper functionality from
 Appfactory side we have to make sure we block it for other apps.


 Amila, Sagara please add anything if I have missed.

 Regards,
 Amani


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




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




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

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




 --
 Reka Thirunavukkarasu
 Software Engineer,
 WSO2, Inc.:http://wso2.com,
 Mobile: +94776442007





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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] org.apache.axis2.engine.AxisConfiguration, notifyObservers(AxisEvent event, AxisService service) method runs twice on single deploy

2013-09-13 Thread Reka Thirunavukkarasu
Hi

Do you have any customized log4j.properties in your BPS pack? Sometimes,
improper configuration of log4j.properties would also cause the same issue.

Thanks,
Reka


On Mon, Sep 2, 2013 at 11:58 AM, Amal Gunatilake am...@wso2.com wrote:

 Please have a look.

 org.apache.axis2.engine.AxisConfiguration, notifyObservers(AxisEvent
 event, AxisService service) *method inside the kernel runs twice on
 single deploy which repeats the same log twice*.

 This issue was found when tracking the JIRA issue

 https://wso2.org/jira/browse/BPS-215 - Two error log message are showing
 when return a one error message

 When tracking as a BPS issue, it was discovered that it's a common issue
 for system logs which produces in kernel.

 Thanks  Regards,
 Amal.

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Specifying sslProtocol parameter in Transport Listener of ESB

2013-08-30 Thread Reka Thirunavukkarasu
Hi


On Mon, Jul 29, 2013 at 5:12 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 To get SSL context when making an HTTPS connection you need to do this.

 javax.net.ssl.SSLContext sslcontext =
 javax.net.ssl.SSLContext.getInstance(TLS);

 This depends on the JVM. For example on IBM JVM, it should be
 SSLContext.getInstance(SSL_TLS); [1]


For the oracle jdk, how do we specify the SSLv3 in the NIO transport? As
mentioned by Isuru, we need to pass ciphers as well in order to disable
weak and medium cipher strength.

After configuring the SSLv3 with ciphers, servlet transport is working
fine. So how can we do the same in NIO transport for oracle JDK?

Thanks,
Reka


 [1]
 http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm.java.security.component.doc%2Fsecurity-component%2Fjsse2Docs%2Fsslcontext.html


 On Fri, Jul 26, 2013 at 11:06 AM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 When comparing with Tomcat configuration options for SSL [1], it seems
 that the SSL transports for ESB lacks support for many important
 configurations.

 AFAIK, the option to specify SSL protocol only introduced in ESB 4.7.0.

 On Wed, Jul 24, 2013 at 10:53 AM, Isuru Perera isu...@wso2.com wrote:


 Hi,

  On Tue, Jul 23, 2013 at 12:54 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 So now whats the purpose of HttpsProtocols which is also configured
 in axis2.xml (for esb) ?

 Could someone from ESB team please give an answer for this?

 This configuration is to specify SSL protocol for HTTP transport of
 Synapse. What we specify in tomcat configuration is for the sevlet
 transport.


 I think we really need to revisit the SSL transport configurations and
 properly document those.

 [1] http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support



 On Tue, Jul 23, 2013 at 12:14 PM, Isuru Perera isu...@wso2.com wrote:

 Hi all,

 Thanks Miyuru and Ramith for the information.

 This is fixed in ESB 4.7.0 with ESBJAVA-2029 [1].

 The change is to add a parameter as follows. (I couldn't find about
 this in ESB Docs!)

 parameter name=SSLProtocol.../parameter

 I still have a doubt whether this can be used to achieve StackOverflow
 user's requirement as there is no place to specify ciphers parameter.

 Appreciate any guidance on this.

 Thanks!

 [1] https://wso2.org/jira/browse/ESBJAVA-2029


 On Tue, Jul 23, 2013 at 9:10 AM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 This is regarding StackOverflow question [1].

 Basically the user needs to configure sslProtocol + other parameters
 as defined in Tomcat connector [2].

 I gave a quick answer by looking at the docs. I informed that those
 parameters can be specified in HTTPS Servlet Transport since it is based 
 on
 the Tomcat connector.

 Please let me know how to achieve similar SSL configuration in NHTTP
 or PassThrough transport.

 Thanks!

 [1]
 http://stackoverflow.com/questions/17752636/wso2-esb-4-0-3-how-to-specify-sslprotocol-parameter-for-transport-listner-http
 [2] http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

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

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




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

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671




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

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




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

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




 --
 Jeewantha Dharmaparakrama

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

 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Failed to re-name log file error on Windows (https://wso2.org/jira/browse/CARBON-13800)

2013-08-26 Thread Reka Thirunavukkarasu
Hi


On Sun, Aug 25, 2013 at 10:21 AM, Sameera Jayasoma same...@wso2.com wrote:

 Hi Thayalan,

 Can you please verify this issue?

 Reka, I suppose we fixed sometime back. Please confirm.

Yah..It is already fixed according to
https://wso2.org/jira/browse/ESBJAVA-1614

Thanks,
Reka


 Thanks,
 Sameera.

 --
 Sameera Jayasoma,
 Architect,

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

 Lean . Enterprise . Middleware




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Bamboo-Build] WSO2 Carbon 4.1.x Products 4.1.1 #208 has FAILED (2 tests failed, no failures were new). Change made by 9 authors.

2013-05-12 Thread Reka Thirunavukkarasu
Hi


On Sun, May 12, 2013 at 9:36 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 These failures raise questions about how the 4.1.1 team built for the
 release. Seems like they haven't build with tests. Failure of stratos
 manager is an integration test which fails because the name was changed to
 stratos controller.


In the stratos2 beta release, we missed to address integration test
failures in stratos controller. Sorry about that. I have already created L1
[1] to fix this in the next stratos2 release (beta3 or GA).

[1]. https://wso2.org/jira/browse/SPI-230

Thanks,
Reka



 On Saturday, May 11, 2013, Maheshika Goonetilleke wrote:

 HI Amila,


 Both build for 4.1.2  4.1.3 are running along with 4.1.1 version.
 However, I'm trying to get the 4.1.1 build successful.

 However, since it is release we could cancel the 4.1.1 build.


 On Fri, May 10, 2013 at 5:09 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Why are we building 4.1.1 now. It is already released. Now we should be
 building 4.1.2 which is the about to release.


 On Fri, May 10, 2013 at 4:57 PM, Bamboo cbuil...@wso2.org wrote:

[image: Failed]  WSO2 Carbon 
 4.1.xhttp://wso2.org/bamboo/browse/WCB003/› Products
 4.1.1 http://wso2.org/bamboo/browse/WCB003-PRO002/ › 
 #208http://wso2.org/bamboo/browse/WCB003-PRO002-208/
 failed

 Changes by 9 
 peoplehttp://wso2.org/bamboo/browse/WCB003-PRO002-208#changesSummary

 *2/1297* tests failed.
Responsible

 --

 Thanks  Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator
 WSO2 Inc

 www.wso2.com/

 M : 0773 596707



 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446





-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Commits] [Carbon-platform] svn commit r170811 - carbon/platform/branches/4.1.0/patch-releases/4.1.1

2013-05-08 Thread Reka Thirunavukkarasu
Hi,


On Tue, May 7, 2013 at 7:51 PM, Krishantha Samaraweera
krishan...@wso2.comwrote:

 Hi Reka,

 I didn't get you properly. However I don't see any relation with fixing
 test cases and test framework exclusion from root pom.


Sorry for the confusion...I misunderstood the question as product
integration test.


 Test framework was building successfully in 4.1.1 branch and other
 products like API-Manger depends on it. So removing this caused API manger
 build failure.

 Sure..then will add them back to 4.1.1 support branch..

Thanks,
 Krishantha.

 On Tue, May 7, 2013 at 12:41 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 On Mon, May 6, 2013 at 4:36 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Reka,

 What is the reason behind this commit ? Any particular reason to comment
 out auto framework and platform automated test suite from root pom.


 Since we introduced a new product called Stratos Controller from the
 manager, we had to fix few test cases which got failed while building the
 stratos controller. We couldn't fix them in the 4.1.1 release at last.
 That's why, integration test got commented out in this pom which we decided
 to fix in the upcoming release..

 I have created [1] to track this..

 [1] https://wso2.org/jira/browse/SPI-230

 Thanks,
 Reka


 Thanks,
 Krishantha.

 On Mon, Apr 22, 2013 at 6:40 PM, r...@wso2.com wrote:

 Author: r...@wso2.com
 Date: Mon Apr 22 18:40:16 2013
 New Revision: 170811
 URL: http://wso2.org/svn/browse/wso2?view=revrevision=170811

 Log:
 skipping integration tests which will be added to GA

 Modified:
carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml

 Modified: carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml
 URL:
 http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml?rev=170811r1=170810r2=170811view=diff

 ==
 --- carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml
 (original)
 +++ carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml Mon Apr
 22 18:40:16 2013
 @@ -46,10 +46,10 @@
  moduledependencies/module
  moduleservice-stubs/module
  modulecomponents/module
 -
  moduleplatform-integration/test-automation-framework/module
 +
  !--moduleplatform-integration/test-automation-framework/module--
  modulefeatures/module
  moduleproducts/module
 -
  moduleplatform-integration/platform-automated-test-suite/module
 +
  !--moduleplatform-integration/platform-automated-test-suite/module--
  /modules
  /profile
  profile
 ___
 Commits mailing list
 comm...@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/commits





 --
 Reka Thirunavukkarasu
 Software Engineer,
 WSO2, Inc.:http://wso2.com,





-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Commits] [Carbon-platform] svn commit r170811 - carbon/platform/branches/4.1.0/patch-releases/4.1.1

2013-05-07 Thread Reka Thirunavukkarasu
Hi

On Mon, May 6, 2013 at 4:36 AM, Krishantha Samaraweera
krishan...@wso2.comwrote:

 Hi Reka,

 What is the reason behind this commit ? Any particular reason to comment
 out auto framework and platform automated test suite from root pom.


Since we introduced a new product called Stratos Controller from the
manager, we had to fix few test cases which got failed while building the
stratos controller. We couldn't fix them in the 4.1.1 release at last.
That's why, integration test got commented out in this pom which we decided
to fix in the upcoming release..

I have created [1] to track this..

[1] https://wso2.org/jira/browse/SPI-230

Thanks,
Reka


 Thanks,
 Krishantha.

 On Mon, Apr 22, 2013 at 6:40 PM, r...@wso2.com wrote:

 Author: r...@wso2.com
 Date: Mon Apr 22 18:40:16 2013
 New Revision: 170811
 URL: http://wso2.org/svn/browse/wso2?view=revrevision=170811

 Log:
 skipping integration tests which will be added to GA

 Modified:
carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml

 Modified: carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml
 URL:
 http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml?rev=170811r1=170810r2=170811view=diff

 ==
 --- carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml (original)
 +++ carbon/platform/branches/4.1.0/patch-releases/4.1.1/pom.xml Mon Apr
 22 18:40:16 2013
 @@ -46,10 +46,10 @@
  moduledependencies/module
  moduleservice-stubs/module
  modulecomponents/module
 -
  moduleplatform-integration/test-automation-framework/module
 +
  !--moduleplatform-integration/test-automation-framework/module--
  modulefeatures/module
  moduleproducts/module
 -
  moduleplatform-integration/platform-automated-test-suite/module
 +
  !--moduleplatform-integration/platform-automated-test-suite/module--
  /modules
  /profile
  profile
 ___
 Commits mailing list
 comm...@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/commits





-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dependencies for org.wso2.carbon.endpoint.feature not in nexus

2013-05-06 Thread Reka Thirunavukkarasu
Hi

Sorry for the inconvenience about this. I have added the relevant server
feature to nexus.

Thanks,
Reka


On Mon, May 6, 2013 at 6:20 AM, Isuru Wimalasundera isu...@wso2.com wrote:

 Hi

 I think the endpoint.server.feature 4.1.1 should be added to Nexus, but
 has missed it somehow. For the time being I guess you can get this build if
 you build the endpoint.server.feature 4.1.1.


 On Mon, May 6, 2013 at 2:52 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 See my mail with subject 4.1.2 build failure - endpoint.server.feature
 4.1.1 not found. I raised the same issue, but no one replied. At the
 moment there is 4.1.0 and 4.1.1 versions of
 org.wso2.carbon.endpoint.server.feature. Either you should use 4.1.0 or svn
 move the 4.1.1 to 4.1.2 (if there are fixes in 4.1.1).


 On Mon, May 6, 2013 at 2:38 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi all,

 The following dependencies for
 carbon/platform/4.1.0/features/endpoints/org.wso2.carbon.endpoint.feature/4.1.2are
  not there in nexus.

 dependencies
 dependency
 groupIdorg.wso2.carbon/groupId

 artifactIdorg.wso2.carbon.endpoint.server.feature/artifactId
 version4.1.1/version
 typezip/type
 /dependency
 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.endpoint.ui.feature/artifactId
 version4.1.2/version
 typezip/type
 /dependency
 /dependencies


 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.endpoint.server.feature/

 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.endpoint.ui.feature/

 Would changing the versions to 4.1.0 solve the issue?

 Jeewantha.

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

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




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 *Isuru Wimalasundera*
 Software Engineer;  WSO2, Inc.; http://wso2.com,
  mobile: +94 77 920 5641





-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating 4.2.0 branch

2013-04-22 Thread Reka Thirunavukkarasu
Thanks Johann. Will follow it up...




On Mon, Apr 22, 2013 at 2:27 PM, Johann Nallathamby joh...@wso2.com wrote:

 Hi Reka,

 As of now  the plan is to create the 4.2.0 branch somewhere around the end
 of April. I will let you know before a fair amount of time before we do
 this.

 Thanks,
 Johann.


 On Mon, Apr 22, 2013 at 2:21 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi Johann,

 Could you let us know before creating 4.2.0 branch? So that stratos team
 will make sure that we syc with 4.2.0 trunk since we will have to support
 multiple profiling which is available with 4.2.0 trunk as of now.

 Are you having immediate plan to create the 4.2.0 branch?

 Thanks,
 Reka


 On Sun, Apr 14, 2013 at 2:06 PM, Pradeep Fernando prad...@wso2.comwrote:

 Of course. I'm not defending anything.

 --Pradeep
 sent from my phone
 On Apr 14, 2013 1:31 PM, Johann Nallathamby joh...@wso2.com wrote:

 Hi Pradeep,

 On Sat, Apr 13, 2013 at 4:26 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Johann,
 When you are creating the branch, focus only on the identity related
 components. No néed to branch all the components found in trunk.


 Very true. But the trunk should be in buildable state at all times.

 Thanks,
 Johann.


 --Pradeep

 On Saturday, April 13, 2013, Johann Nallathamby wrote:




 On Sat, Apr 13, 2013 at 12:07 PM, Nirmal Fernando nir...@wso2.comwrote:

 Johan,

 AFAIK none of the code in 4.1.0 related to S2 been committed to
 trunk. AFAIK IsuruW planned to synch the stuff, next week.


 That's fine I guess.

 Thanks,
 Johann.



 On Sat, Apr 13, 2013 at 12:01 PM, Johann Nallathamby joh...@wso2.com
  wrote:

  Hi,

 Experiencing compilation failure
 at org.wso2.carbon.databridge.agent.thrift component. This I think is due
 to the fact that the code in the 4.1.0 branch and trunk are not in sync.
 Can someone from the relevant teams look into this please?

 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/lb/ReceiverStateObserver.java:[3,51]
 cannot find symbol
 symbol  : class PublishData
 location: package org.wso2.carbon.databridge.agent.thrift.util
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/lb/ReceiverStateObserver.java:[30,56]
 cannot find symbol
 symbol  : class PublishData
 location: interface
 org.wso2.carbon.databridge.agent.thrift.lb.ReceiverStateObserver
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/lb/ReceiverGroup.java:[10,51]
 cannot find symbol
 symbol  : class PublishData
 location: package org.wso2.carbon.databridge.agent.thrift.util
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/lb/ReceiverGroup.java:[57,38]
 cannot find symbol
 symbol  : class PublishData
 location: class
 org.wso2.carbon.databridge.agent.thrift.lb.ReceiverGroup
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/AsyncDataPublisher.java:[10,51]
 cannot find symbol
 symbol  : class PublishData
 location: package org.wso2.carbon.databridge.agent.thrift.util
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/lb/ReceiverGroup.java:[242,56]
 cannot find symbol
 symbol  : class PublishData
 location: class
 org.wso2.carbon.databridge.agent.thrift.lb.ReceiverGroup
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/AsyncDataPublisher.java:[57,32]
 cannot find symbol
 symbol  : class PublishData
 location: class
 org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/AsyncDataPublisher.java:[544,44]
 cannot find symbol
 symbol  : class PublishData
 location: class
 org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent/thrift/lb/ReceiverGroup.java:[68,69]
 cannot find symbol
 symbol  : class PublishData
 location: class
 org.wso2.carbon.databridge.agent.thrift.lb.ReceiverGroup
 [ERROR]
 /home/johann/carbon/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/src/main/java/org/wso2/carbon/databridge/agent

Re: [Dev] Why stratos is depending on synapse

2013-04-22 Thread Reka Thirunavukkarasu
Hi

Please revert the changes which have been committed to synapse 2.1.1-wso2v4
after the r170093. We have considered 4.1.1 as to be released with r170093.

Thanks,
Reka


On Tue, Apr 23, 2013 at 9:56 AM, Nirmal Fernando nir...@wso2.com wrote:

 Well, on the subject, ELB depends on Synapse and Stratos2 depends on ELB,
 hence S2 depends on Synapse. :-)
 On Apr 23, 2013 9:49 AM, Miyuru Wanninayaka miy...@wso2.com wrote:

 Hi all

 See [1] , Seems synapse 2.1.1-wso2v4 is released with 4.1.1 and still ESB
 team and API-M team committing to it because  it's also in [2]
 I don't see any reason for synapse to release with stratos.

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/patch-releases/4.1.1/dependencies/pom.xml
 [2]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/patch-releases/4.1.2/dependencies/pom.xml

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


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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Commits] [Carbon-platform] svn commit r170429 - carbon/platform/branches/4.1.0/patch-releases/4.1.2/features

2013-04-18 Thread Reka Thirunavukkarasu
[Adding dev]

Hi

We have removed except stratos features from 4.1.1, since only stratos2
beta got released with 4.1.1. So, as discussed offline already, appfactory
will move to new patch release soon. So that all the BPS features which
referred by Appfactory will also get move to new patch release.

@Appfactory, please do the needful...

Thanks,
Reka


On Fri, Apr 19, 2013 at 9:30 AM, Hasitha Aravinda hasi...@wso2.com wrote:

 Hi Sameera,

 Seems like the org.wso2.carbon.humantask.skeleton:4.1.1 service stub is
 removed from patch-releases/4.1.1/service-stubs/pom.xml recently (see
 revision 170564 - After the 4.1.1 patch release).

 It was there, when I was doing the above change. Since 4.1.1
 patch-released is already released, I didn't add above service stub to
 4.1.2.
 Thank you for fixing build error.

 Thanks,
 Hasitha.



 On Fri, Apr 19, 2013 at 5:00 AM, Sameera Jayasoma same...@wso2.comwrote:

 Because of this commit, I am getting the following build failure.

 [ERROR] Failed to execute goal on project org.wso2.carbon.humantask:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.humantask:bundle:4.1.2: Could not find
 artifact org.wso2.carbon:org.wso2.carbon.humantask.skeleton:jar:4.1.1 in
 wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -
 [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.humantask

 You need to add the following line to the service-stubs pom.xml in the
 patch releases directory.


 module../../../service-stubs/org.wso2.carbon.humantask.skeleton/4.1.1/module




 --
 Hasitha Aravinda,
 Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile: +94 71 8 210 200




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Are the 4.1.1 artifacts hosted on nexus?

2013-04-17 Thread Reka Thirunavukkarasu
Hi

4.1.1 artifats have been deployed to nexus.

Thanks,
Reka


On Tue, Apr 16, 2013 at 3:05 PM, Nuwan Dias nuw...@wso2.com wrote:

 Ok, thanks.

 Cheers,
 NuwanD.


 On Tue, Apr 16, 2013 at 2:54 PM, Isuru Wimalasundera isu...@wso2.comwrote:

 Hi Nuwan

 Sorry for the inconvenience, but still we are in the process of adding
 4.1.1 components to nexus. Reka is now working on it.

 Thanks
 Isuruw


 On Tue, Apr 16, 2013 at 2:11 PM, Nuwan Dias nuw...@wso2.com wrote:

 Hi,

 Are the 4.1.1 artifacts hosted on nexus? I am getting the following
 build error when trying to build patch-releases/4.1.2/features. Seems like
 it cannot find the org.wso2.carbon.endpoint.server.feature:zip:4.1.1 in the
 online repo.

 [INFO] WSO2 Carbon - Endpoint Management Feature . FAILURE
 [0.054s]
 [INFO] WSO2 Carbon - Sequences Management UI Feature . SKIPPED
 [INFO] WSO2 Carbon - Sequences Management Feature  SKIPPED
 [INFO] WSO2 Carbon - Rest API Server Feature . SKIPPED
 [INFO] WSO2 Carbon - Rest API UI Feature . SKIPPED
 [INFO] WSO2 Carbon - Rest API Feature  SKIPPED
 [INFO] WSO2 Carbon - Mediation Library Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Mediation Library UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Mediation Library Feature ... SKIPPED
 [INFO] WSO2 Carbon - Mediation Connectors Server Feature . SKIPPED
 [INFO] WSO2 Carbon - All Mediators UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Mediators Feature ... SKIPPED
 [INFO] WSO2 Carbon - Mediation Initializer Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Mediation Initializer Feature ... SKIPPED
 [INFO] WSO2 Carbon - Api management Server Feature ... SKIPPED
 [INFO] WSO2 Carbon - Api management UI Feature ... SKIPPED
 [INFO] WSO2 Carbon - Api management Feature .. SKIPPED
 [INFO] WSO2 Carbon - API Store Feature ... SKIPPED
 [INFO] WSO2 Carbon - API Publisher Feature ... SKIPPED
 [INFO] WSO2 Carbon - Api management Server Lite Feature .. SKIPPED
 [INFO] Identity OAuth UI Feature . SKIPPED
 [INFO] Identity OAuth Server Feature . SKIPPED
 [INFO] Identity OAuth Feature  SKIPPED
 [INFO] WSO2 Carbon - Feature - Andes - Server  SKIPPED
 [INFO] WSO2 Carbon - Feature - Andes - UI  SKIPPED
 [INFO] WSO2 Carbon - Feature - Andes . SKIPPED
 [INFO] WSO2 Carbon - Patch releases - features - Aggregator Module
  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 10.750s
 [INFO] Finished at: Tue Apr 16 01:40:51 PDT 2013
 [INFO] Final Memory: 42M/324M
 [INFO]
 
 [ERROR] Failed to execute goal on project
 org.wso2.carbon.endpoint.feature: Could not resolve dependencies for
 project org.wso2.carbon:org.wso2.carbon.endpoint.feature:pom:4.1.2: Failure
 to find org.wso2.carbon:org.wso2.carbon.endpoint.server.feature:zip:4.1.1
 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached
 in the local repository, resolution will not be reattempted until the
 update interval of wso2-nexus has elapsed or updates are forced - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.


 Thanks,
 NuwanD.
 --
 Nuwan Dias

 Software Engineer - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




 --
 *Isuru Wimalasundera*
 Software Engineer;  WSO2, Inc.; http://wso2.com,
  mobile: +94 77 920 5641





 --
 Nuwan Dias

 Member, Management Committee - Solutions Technology Group

 Software Engineer - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel trunk - p2 profile build error

2013-04-16 Thread Reka Thirunavukkarasu
Hi

I'm trying to reproduce this with clean repo. Update the thread
accordingly..

Thanks,
Reka


On Tue, Apr 16, 2013 at 10:54 AM, Dileepa Jayakody 
dileepajayak...@gmail.com wrote:

 Hi Kishanthan,

 Can you start the server with the osgi console and check the relevant
 carbon bundles are in ACTIVE state?
 Maybe some of the bundles are not added to the distribution during the
 build OR not in active state at run time.
 AFAIK The distribution structure changes with the plugins/bundles
 in relevant profile directories in the new multi-profile distribution
 during the build phase.

 Thanks,
 Dileepa


 On Tue, Apr 16, 2013 at 10:38 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi Reka,

 I cannot start carbon server in current trunk (4.2.0-SNAPSHOT) with a
 clean repo build. It hangs for a long time. Are you missing any more
 commits related to multi-profile support to kernel?

 Kishanthan.



 On Tue, Apr 2, 2013 at 6:55 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 I have fixed it in r169864.

 Thanks,
 Reka


 On Tue, Apr 2, 2013 at 6:45 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi Reka,

 Build failed at
 kernel/trunk/distribution/product/modules/p2-profile-gen.

 Looks like it may be due to the changes on multiple profile in kernel
 distribution. Can you please have a look?


 Installing org.wso2.carbon.styles.feature.group 4.1.0.SNAPSHOT.
 Installation failed.
 An error occurred while installing the items
  session context was:(profile=WSO2CarbonProfile,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null
 -- [R]org.wso2.carbon.styles 4.1.0.SNAPSHOT,
 action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
  Error while loading manipulator.
 Caused by: Application failed, log file location:
 /home/kicha/mvnRepo/m3repo/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1364903487880.log


 *Error trace form the log file*

 !ENTRY org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2013-04-02
 17:21:30.952
 !MESSAGE Error while loading manipulator.
 !STACK 0
 java.lang.IllegalStateException: The framework persistent data location
 (/home/kicha/checkouts/wso2/carbon/kernel/trunk/distribution/kernel/target/WSO2Carbon/WSO2CarbonProfile/configuration)
 is not the same as the framework configuration location
 (/home/kicha/checkouts/wso2/carbon/kernel/trunk/distribution/product/modules/p2-profile-gen/target/wso2carbon-core-4.1.0-SNAPSHOT/repository/components/WSO2CarbonProfile/configuration).
 at
 org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.checkConsistencyOfFwConfigLocAndFwPersistentDataLoc(EquinoxManipulatorImpl.java:65)
 at
 org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:348)


 Thanks,
 Kishanthan.
 --
 *Kishanthan Thangarajah*
 Software Engineer,
 Development Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

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




 --
 Reka Thirunavukkarasu
 Software Engineer,
 WSO2, Inc.:http://wso2.com,




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

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

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





-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel trunk - p2 profile build error

2013-04-02 Thread Reka Thirunavukkarasu
Hi

I have fixed it in r169864.

Thanks,
Reka


On Tue, Apr 2, 2013 at 6:45 PM, Kishanthan Thangarajah
kishant...@wso2.comwrote:

 Hi Reka,

 Build failed at kernel/trunk/distribution/product/modules/p2-profile-gen.

 Looks like it may be due to the changes on multiple profile in kernel
 distribution. Can you please have a look?


 Installing org.wso2.carbon.styles.feature.group 4.1.0.SNAPSHOT.
 Installation failed.
 An error occurred while installing the items
  session context was:(profile=WSO2CarbonProfile,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null
 -- [R]org.wso2.carbon.styles 4.1.0.SNAPSHOT,
 action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
  Error while loading manipulator.
 Caused by: Application failed, log file location:
 /home/kicha/mvnRepo/m3repo/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1364903487880.log


 *Error trace form the log file*

 !ENTRY org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2013-04-02
 17:21:30.952
 !MESSAGE Error while loading manipulator.
 !STACK 0
 java.lang.IllegalStateException: The framework persistent data location
 (/home/kicha/checkouts/wso2/carbon/kernel/trunk/distribution/kernel/target/WSO2Carbon/WSO2CarbonProfile/configuration)
 is not the same as the framework configuration location
 (/home/kicha/checkouts/wso2/carbon/kernel/trunk/distribution/product/modules/p2-profile-gen/target/wso2carbon-core-4.1.0-SNAPSHOT/repository/components/WSO2CarbonProfile/configuration).
 at
 org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.checkConsistencyOfFwConfigLocAndFwPersistentDataLoc(EquinoxManipulatorImpl.java:65)
 at
 org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:348)


 Thanks,
 Kishanthan.
 --
 *Kishanthan Thangarajah*
 Software Engineer,
 Development Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Exception in S2 Agent

2013-04-02 Thread Reka Thirunavukkarasu
Hi

Will update the agent accordingly...

Thanks,
Reka


On Tue, Apr 2, 2013 at 11:19 PM, Nirmal Fernando nir...@wso2.com wrote:

 Seems like S2 Agent is not bundled correctly. You need to add
 mediator-autoscale bundle in S2 Agent's p2 profile.


 On Tue, Apr 2, 2013 at 11:18 PM, Sajith Kariyawasam saj...@wso2.comwrote:

 Any idea of this exception ?

 This is occurred in S2 Agent side ...


 [2013-04-02 17:42:33,468] ERROR
 {org.apache.axis2.clustering.tribes.Axis2GroupChannel} -  Unable to
 deserialize
 message:ClusterData[src=org.apache.catalina.tribes.membership.MemberImpl[tcp://{10,
 68, 202, 233}:4000,{10, 68, 202, 233},4000, alive=1364923740091,
 securePort=-1, UDP Port=-1, id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 },
 payload={35 10 35 84 117 101 32 65 112 ...(61)}, command={}, domain={119
 115 111 50 46 99 97 114 98 ...(21)}, ]; id={-105 13 38 105 73 43 74 45 -89
 94 -73 -65 -66 -101 90 -113 }; sent=2013-04-02 17:42:33.363]
 java.lang.ClassNotFoundException:
 org.wso2.carbon.mediator.autoscale.lbautoscale.replication.RequestTokenReplicationCommand
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
  at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:249)
 at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:601)
  at
 org.apache.catalina.tribes.io.ReplicationStream.resolveClass(ReplicationStream.java:79)
 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1572)
  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  at
 org.apache.catalina.tribes.group.RpcMessage.readExternal(RpcMessage.java:64)
 at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1795)
  at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1754)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at
 org.apache.catalina.tribes.io.XByteBuffer.deserialize(XByteBuffer.java:568)
  at
 org.apache.axis2.clustering.tribes.Axis2GroupChannel.messageReceived(Axis2GroupChannel.java:60)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator.messageReceived(NonBlockingCoordinator.java:512)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor.messageReceived(TcpPingInterceptor.java:162)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:113)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
 at
 org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor.messageReceived(DomainFilterInterceptor.java:45)
  at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
 at
 org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
  at
 org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
 at
 org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
  at
 org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)


 --
 Regards,
 *
 *
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Exception in S2 Agent

2013-04-02 Thread Reka Thirunavukkarasu
Hi

Agent has been fixed. Thanks Nirmal for the quick fix in auto scaler side...

Thanks,
Reka


On Tue, Apr 2, 2013 at 11:26 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 Will update the agent accordingly...

 Thanks,
 Reka


 On Tue, Apr 2, 2013 at 11:19 PM, Nirmal Fernando nir...@wso2.com wrote:

 Seems like S2 Agent is not bundled correctly. You need to add
 mediator-autoscale bundle in S2 Agent's p2 profile.


 On Tue, Apr 2, 2013 at 11:18 PM, Sajith Kariyawasam saj...@wso2.comwrote:

 Any idea of this exception ?

 This is occurred in S2 Agent side ...


 [2013-04-02 17:42:33,468] ERROR
 {org.apache.axis2.clustering.tribes.Axis2GroupChannel} -  Unable to
 deserialize
 message:ClusterData[src=org.apache.catalina.tribes.membership.MemberImpl[tcp://{10,
 68, 202, 233}:4000,{10, 68, 202, 233},4000, alive=1364923740091,
 securePort=-1, UDP Port=-1, id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 },
 payload={35 10 35 84 117 101 32 65 112 ...(61)}, command={}, domain={119
 115 111 50 46 99 97 114 98 ...(21)}, ]; id={-105 13 38 105 73 43 74 45 -89
 94 -73 -65 -66 -101 90 -113 }; sent=2013-04-02 17:42:33.363]
 java.lang.ClassNotFoundException:
 org.wso2.carbon.mediator.autoscale.lbautoscale.replication.RequestTokenReplicationCommand
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
  at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:249)
 at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:601)
  at
 org.apache.catalina.tribes.io.ReplicationStream.resolveClass(ReplicationStream.java:79)
 at
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1572)
  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  at
 org.apache.catalina.tribes.group.RpcMessage.readExternal(RpcMessage.java:64)
 at
 java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1795)
  at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1754)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at
 org.apache.catalina.tribes.io.XByteBuffer.deserialize(XByteBuffer.java:568)
  at
 org.apache.axis2.clustering.tribes.Axis2GroupChannel.messageReceived(Axis2GroupChannel.java:60)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator.messageReceived(NonBlockingCoordinator.java:512)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor.messageReceived(TcpPingInterceptor.java:162)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:113)
 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
  at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
 at
 org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor.messageReceived(DomainFilterInterceptor.java:45)
  at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
 at
 org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
  at
 org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
 at
 org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
  at
 org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)


 --
 Regards,
 *
 *
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --
 Reka Thirunavukkarasu
 Software Engineer,
 WSO2, Inc.:http://wso2.com,




-- 
Reka

Re: [Dev] [Stratos2] Intermittent Error can be seen at back-end of SC

2013-03-22 Thread Reka Thirunavukkarasu
:370)
 at
 org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
 at
 org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:177)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:161)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: java.io.IOException: JSPException while including path
 '/tenant-dashboard/index.jsp'. ServletException while including page.
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
 at
 org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
 at
 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
 ... 61 mor

 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Latest CC pack doesn't have the correct wso2server* script files

2013-03-22 Thread Reka Thirunavukkarasu
Hi

I have attached here with the fixed wso2server.sh for CC.

Thanks,
Reka

On Fri, Mar 22, 2013 at 9:59 AM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 Will check it and update ASAP.


 On Fri, Mar 22, 2013 at 3:50 AM, Nirmal Fernando nir...@wso2.com wrote:

 Please fix.

 root@WSO2-CC:/opt/cc/wso2cc-1.0.0# ./bin/wso2server.sh start
 ./bin/wso2server.sh: 187: ./bin/wso2server.sh:
 /opt/cc/wso2cc-1.0.0/bin/daemon.sh: not found


 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --
 Reka Thirunavukkarasu
 Software Engineer,
 WSO2, Inc.:http://wso2.com,




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,


wso2server.sh
Description: Bourne shell script
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Patch for Cartridge and Service XSDs

2013-03-21 Thread Reka Thirunavukkarasu
Applied in r168776. Please attach to the jira.

On Thu, Mar 21, 2013 at 5:25 PM, Isuru Perera isu...@wso2.com wrote:

 Hi Reka,

 Can you apply the attached patch from
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/features/stratos

 Thanks!

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

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] UI Enhancement

2013-03-21 Thread Reka Thirunavukkarasu
Hi


 On Fri, Mar 15, 2013 at 3:07 AM, Reka Thirunavukkarasu 
 r...@wso2.comwrote:

 Hi

 Is it possible to add an improvement to the UI to have a refresh
 button or a progress update bar of a cartridge instance's state when we
 list down. This will only required when we subscribe to an instance, we
 might need to wait more than 30s  without knowing what is happening at 
 the
 back end. At least if we show the instances which are starting up in a
 separate list with a progress update time to time or with a refresh 
 button.
 I hope that now too we have progress update. But still have to wait to 
 get
 the progress update.


 +1, a very useful feature, if we could add.


 Please create a JIRA and track this enhancement.

 Sure. Will create and track..


 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




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

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Latest CC pack doesn't have the correct wso2server* script files

2013-03-21 Thread Reka Thirunavukkarasu
Hi

Will check it and update ASAP.

On Fri, Mar 22, 2013 at 3:50 AM, Nirmal Fernando nir...@wso2.com wrote:

 Please fix.

 root@WSO2-CC:/opt/cc/wso2cc-1.0.0# ./bin/wso2server.sh start
 ./bin/wso2server.sh: 187: ./bin/wso2server.sh:
 /opt/cc/wso2cc-1.0.0/bin/daemon.sh: not found


 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Latest CC pack doesn't have the folders that it should have

2013-03-21 Thread Reka Thirunavukkarasu
Hi

It has been fixed already. Hopefully with the new packs, you can have it...

Thanks,
Reka

On Fri, Mar 22, 2013 at 3:23 AM, Nirmal Fernando nir...@wso2.com wrote:

 Please fix these urgently, CC pack seems to be broken without these :-(

 repository/deployment/server/cartridges
 repository/deployment/server/services

 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Latest CC pack doesn't have the folders that it should have

2013-03-21 Thread Reka Thirunavukkarasu
Sorry for the inconvenience. That is not even having the changes. Since we
agree to create them by hand for the time being, i didn't give the pack
with the fix...Let us know whether you need a pack...

Thanks,
Reka
On Fri, Mar 22, 2013 at 10:04 AM, Nirmal Fernando nir...@wso2.com wrote:




 On Thu, Mar 21, 2013 at 9:29 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 It has been fixed already. Hopefully with the new packs, you can have
 it...


  I used the packs uploaded to EC2 by IsuruP, yesterday.


 Thanks,
 Reka


 On Fri, Mar 22, 2013 at 3:23 AM, Nirmal Fernando nir...@wso2.com wrote:

 Please fix these urgently, CC pack seems to be broken without these :-(

 repository/deployment/server/cartridges
 repository/deployment/server/services

 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --
 Reka Thirunavukkarasu
 Software Engineer,
 WSO2, Inc.:http://wso2.com,




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos2] Errors in latest wso2scc pack

2013-03-20 Thread Reka Thirunavukkarasu
(CarbonStuckThreadDetectionValve.java:161)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.Exception:
 org.apache.axis2.databinding.ADBException: Unexpected subelement {
 http://dto.mgt.adc.carbon.wso2.org/xsd}dbUserName
 at
 org.wso2.carbon.adc.mgt.dto.xsd.Cartridge$Factory.parse(Cartridge.java:1468)
 at
 org.wso2.carbon.adc.mgt.service.ListAvailableCartridgesResponse$Factory.parse(ListAvailableCartridgesResponse.java:489)
 at
 org.wso2.carbon.adc.mgt.stub.ApplicationManagementServiceStub.fromOM(ApplicationManagementServiceStub.java:5035)
 ... 99 more
 Caused by: org.apache.axis2.databinding.ADBException: Unexpected
 subelement {http://dto.mgt.adc.carbon.wso2.org/xsd}dbUserName
 at
 org.wso2.carbon.adc.mgt.dto.xsd.Cartridge$Factory.parse(Cartridge.java:1462)
 ... 101 more


 [2]

 TID: [0] [scc] [2013-03-20 19:05:38,046]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  '
 ad...@test.com [1]' logged in at [2013-03-20 19:05:38,046-0400]
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
 TID: [0] [scc] [2013-03-20 19:05:38,049]  WARN
 {org.wso2.carbon.activation.module.ActivationHandler} -  Failed attempt to
 access WSO2 Stratos Controller by tenant 1
 {org.wso2.carbon.activation.module.ActivationHandler}



 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --
 Regards,
 *
 *
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in trunk

2013-03-18 Thread Reka Thirunavukkarasu
*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Stratos2] products packs

2013-03-18 Thread Reka Thirunavukkarasu
Hi All,

I have added the stratos2 products such as Stratos controller, Cloud
Controller, agent, elb to the branch 4.1.0. Please take svn up under the
products. The structure will be

products
 elb/2.0.4
 stratos2/stratos_controller/1.0.0
 stratos2/cloud_controller/1.0.0
 stratos2/stratos_agent/1.0.0
 stratos2/pom.xml

If you build from stratos2, you can get all three products and need to
separately build the elb.

Please let me know, if you find with any issues when building or starting
up the products. Can we do a initial quick testing on the packs before we
put into the actual deployment?

Thanks,
Reka




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Multiple p2 profile support in Stratos2

2013-03-12 Thread Reka Thirunavukkarasu
Hi,

I have locally completed $subject in stratos2 according to [1] in order to
build one minimum pack out of AS, manager, ELB, MB, agent and Could
Controller from stratos space and to provide different profiles to start
the servers when it is required.

Multiple profiling requires feature level changes as mentioned in the blog.
We need to change all the p2.inf with the correct relative path and other
relevant changes in order to support multiple profiling in products.

I'm going to start applying the changes done by Dileepa for multiple p2
profile support and feature level fixes as discussed off line with Pradeep
to the trunk. This will impact the feature-manager. We will fix
feature-manager in order to support multiple profile appropriately. The
relevant jira can be found at [2] of multiple p2 profile support in carbon.

After the relevant changes, if any product move to trunk, they can also
support multiple p2 profile if they require or they can even live with the
default profile.

Will update the progress...

[1] http://dileepajayakody.blogspot.com
/2013/03/multiple-p2-profile-support-in-carbon.html

[2] https://wso2.org/jira/browse/CARBON-14064


Thanks,
Reka



-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stratos common server features has old synapse reference (hardcoding) which causes duplicate synapse task reference added to plugins

2013-01-03 Thread Reka Thirunavukkarasu
It is fixed in r152714.

Thanks,
Reka

On Thu, Jan 3, 2013 at 11:42 AM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 Will fix this accordingly.

 Thanks,
 Reka

 On Thu, Jan 3, 2013 at 11:34 AM, Dushan Abeyruwan dus...@wso2.com wrote:



 On Thu, Jan 3, 2013 at 11:30 AM, Dushan Abeyruwan dus...@wso2.comwrote:

 Hi
  Please re-correct this to get from properties files from patch


   Ref :
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/features/stratos/common/org.wso2.carbon.stratos.common.server.feature/2.0.5

 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.task/artifactId
 /dependency
 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.application.upload/artifactId
 /dependency
 dependency
 groupIdorg.apache.synapse/groupId
 artifactIdsynapse-tasks/artifactId
 version2.1.0-wso2v8/version
 /dependency

 cheers,
 Dushan Abeyruwan
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)714408632*




 --
 Dushan Abeyruwan
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)714408632*

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




 --
 Reka Thirunavukkarasu
 Software Engineer,
 WSO2, Inc.:http://wso2.com,




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stratos common server features has old synapse reference (hardcoding) which causes duplicate synapse task reference added to plugins

2013-01-02 Thread Reka Thirunavukkarasu
Hi

Will fix this accordingly.

Thanks,
Reka

On Thu, Jan 3, 2013 at 11:34 AM, Dushan Abeyruwan dus...@wso2.com wrote:



 On Thu, Jan 3, 2013 at 11:30 AM, Dushan Abeyruwan dus...@wso2.com wrote:

 Hi
  Please re-correct this to get from properties files from patch


   Ref :
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/features/stratos/common/org.wso2.carbon.stratos.common.server.feature/2.0.5

 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.task/artifactId
 /dependency
 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.application.upload/artifactId
 /dependency
 dependency
 groupIdorg.apache.synapse/groupId
 artifactIdsynapse-tasks/artifactId
 version2.1.0-wso2v8/version
 /dependency

 cheers,
 Dushan Abeyruwan
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)714408632*




 --
 Dushan Abeyruwan
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)714408632*

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Appserver - Intermittent issue - Userstore become unusable after several tenant logins.

2012-11-28 Thread Reka Thirunavukkarasu
Hi

Can you please try it with new Build packs since url-mapping got removed
from the new packs?

Thanks,
Reka

On Thu, Nov 29, 2012 at 12:23 PM, Lahiru Sandaruwan lahi...@wso2.comwrote:

 Hi all,

 $subject happened in AS 5.0.1. This happens after several logins as
 different tenants.

 It can not even access management console after this. Following error log
 is printed. Any idea?

 [2012-11-29 12:16:07,204] ERROR
 {org.wso2.carbon.tomcat.ext.valves.CompositeValve} -  Could not handle
 request: /carbon/
 java.lang.NullPointerException
 at java.lang.String.endsWith(String.java:1465)
  at
 org.wso2.carbon.webapp.mgt.TomcatUtil.isVirtualHostRequest(TomcatUtil.java:117)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:46)
  at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
  at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)
 ^C[2012-11-29 12:16:12,538]  INFO
 {org.wso2.carbon.core.init.CarbonServerManager} -  Shutdown hook
 triggered


 Thanks.

 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Cloud Team,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

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




-- 
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] 4.0.3 - clean repo build failure in manager

2012-10-31 Thread Reka Thirunavukkarasu
Hi

I'm looking into this...

Thanks,
Reka

On Wed, Oct 31, 2012 at 10:46 PM, Rajika Kumarasiri raj...@wso2.com wrote:

 Installing org.wso2.carbon.rule.service.server.feature.group 4.0.2.
 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Logging Management Feature 4.0.3
 (org.wso2.carbon.logging.mgt.feature.group 4.0.3)
  Missing requirement: org.wso2.carbon.logging.view.ui 4.0.3
 (org.wso2.carbon.logging.view.ui 4.0.3) requires 'package
 org.wso2.carbon.logging.view.stub 4.0.3' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management Feature 4.0.3
 (org.wso2.carbon.logging.mgt.feature.group 4.0.3)
   To: org.wso2.carbon.logging.mgt.ui.feature.group [4.0.3]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management UI Feature 4.0.3
 (org.wso2.carbon.logging.mgt.ui.feature.group 4.0.3)
   To: org.wso2.carbon.logging.view.ui [4.0.3]
 Application failed, log file location:
 /home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1351703158889.log


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


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


Re: [Dev] 4.0.3 - clean repo build failure in manager

2012-10-31 Thread Reka Thirunavukkarasu
Hi

The attached patch here with will solve the build failure. Can someone
please commit this patches?

Thanks,
Reka

On Thu, Nov 1, 2012 at 8:01 AM, Reka Thirunavukkarasu r...@wso2.com wrote:

 Hi

 I'm looking into this...

 Thanks,
 Reka

 On Wed, Oct 31, 2012 at 10:46 PM, Rajika Kumarasiri raj...@wso2.comwrote:

 Installing org.wso2.carbon.rule.service.server.feature.group 4.0.2.
 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Logging Management Feature 4.0.3
 (org.wso2.carbon.logging.mgt.feature.group 4.0.3)
  Missing requirement: org.wso2.carbon.logging.view.ui 4.0.3
 (org.wso2.carbon.logging.view.ui 4.0.3) requires 'package
 org.wso2.carbon.logging.view.stub 4.0.3' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management Feature 4.0.3
 (org.wso2.carbon.logging.mgt.feature.group 4.0.3)
   To: org.wso2.carbon.logging.mgt.ui.feature.group [4.0.3]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management UI Feature 4.0.3
 (org.wso2.carbon.logging.mgt.ui.feature.group 4.0.3)
   To: org.wso2.carbon.logging.view.ui [4.0.3]
 Application failed, log file location:
 /home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1351703158889.log


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





logging-UI.patch
Description: Binary data


logging-feature-UI.patch
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] 4.0.3 - clean repo build failure in manager

2012-10-31 Thread Reka Thirunavukkarasu
Thanks..!

Reka

On Thu, Nov 1, 2012 at 10:44 AM, Rajika Kumarasiri raj...@wso2.com wrote:

 Patches were applied in r147047.

 Rajika


 On Thu, Nov 1, 2012 at 9:04 AM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 The attached patch here with will solve the build failure. Can someone
 please commit this patches?

 Thanks,
 Reka


 On Thu, Nov 1, 2012 at 8:01 AM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 I'm looking into this...

 Thanks,
 Reka

 On Wed, Oct 31, 2012 at 10:46 PM, Rajika Kumarasiri raj...@wso2.comwrote:

 Installing org.wso2.carbon.rule.service.server.feature.group 4.0.2.
 Installation failed.
 Cannot complete the install because one or more required items could
 not be found.
  Software being installed: WSO2 Carbon - Logging Management Feature
 4.0.3 (org.wso2.carbon.logging.mgt.feature.group 4.0.3)
  Missing requirement: org.wso2.carbon.logging.view.ui 4.0.3
 (org.wso2.carbon.logging.view.ui 4.0.3) requires 'package
 org.wso2.carbon.logging.view.stub 4.0.3' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management Feature 4.0.3
 (org.wso2.carbon.logging.mgt.feature.group 4.0.3)
   To: org.wso2.carbon.logging.mgt.ui.feature.group [4.0.3]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management UI Feature 4.0.3
 (org.wso2.carbon.logging.mgt.ui.feature.group 4.0.3)
   To: org.wso2.carbon.logging.view.ui [4.0.3]
 Application failed, log file location:
 /home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1351703158889.log


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





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


[Dev] Hive Query is not executing in BAM 2.0.1 which worked fine in BAM 2.0.0

2012-10-16 Thread Reka Thirunavukkarasu
Hi

The following hive query which works fine in BAM 2.0.0 is not working now
in BAM 2.0.1. Could you please have a look on this?
jira: https://wso2.org/jira/browse/CARBON-13943

set logs_column_family = log_1_AS_2012_10_14;
set file_path =
/media/Entertainment/stratos/BAM_LOGS/archive-logs/tmpLogs/1/AS/2012_10_14;
drop table LogStats;
set mapred.output.compress=true;
set hive.exec.compress.output=true;
set
mapred.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec;
set io.compression.codecs=org.apache.hadoop.io.compress.GzipCodec;

CREATE EXTERNAL TABLE IF NOT EXISTS LogStats (key STRING,
payload_tenantID STRING,payload_serverName STRING,
payload_appName STRING,payload_message STRING,
payload_stacktrace STRING,
payload_logger STRING,
payload_priority STRING,payload_logTime BIGINT)
STORED BY
'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'
WITH SERDEPROPERTIES ( cassandra.host = localhost,
cassandra.port =9160,cassandra.ks.name = EVENT_KS,
cassandra.ks.username = admin,cassandra.ks.password =admin,
cassandra.cf.name = ${hiveconf:logs_column_family},
cassandra.columns.mapping =
:key,payload_tenantID,
payload_serverName,payload_appName,payload_message,
payload_stacktrace,payload_logger,payload_priority,
payload_logTime );
INSERT OVERWRITE LOCAL DIRECTORY 'file:///${hiveconf:file_path}'
select
concat('TID[',payload_tenantID, ']\t',
'Server[',payload_serverName,']\t',
'Application[',payload_appName,']\t',
'Message[',payload_message,']\t',
'Stacktrace ',payload_stacktrace,'\t',
'Logger{',payload_logger,'}\t',
'Priority[',payload_priority,']\t'),
concat('LogTime[',
(from_unixtime(cast(payload_logTime/1000 as BIGINT),'-MM-dd
HH:mm:ss.SSS' )),']\n') as LogTime from LogStats
ORDER BY LogTime;

The exception trace is as following:

Hive history file=/tmp/reka/hive_job_log_reka_201210161416_1379462536.txt
Hive history file=/tmp/reka/hive_job_log_reka_201210161416_844839482.txt
[2012-10-16 14:16:03,180] ERROR {hive.ql.metadata.Hive} -
NoSuchObjectException(message:default.LogStats table not found)
at
org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler$16.run(MultitenantMetaStoreHandler.java:1194)
at
org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler$16.run(MultitenantMetaStoreHandler.java:1189)
at
org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler.executeWithRetry(MultitenantMetaStoreHandler.java:324)
at
org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler.get_table(MultitenantMetaStoreHandler.java:1189)
at
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:735)
at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:901)
at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:843)
at org.apache.hadoop.hive.ql.exec.DDLTask.dropTable(DDLTask.java:3127)
at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:250)
at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:133)
at
org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1334)
at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1125)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:933)
at
org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:201)
at
org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:187)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:324)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:225)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

OK
FAILED: Parse Error: line 1:536 mismatched input '$' expecting
StringLiteral near '=' in specifying key/value property

[2012-10-16 14:16:03,186] ERROR {org.apache.hadoop.hive.ql.Driver} -
FAILED: Parse Error: line 1:536 mismatched input '$' expecting
StringLiteral near '=' in specifying key/value property

org.apache.hadoop.hive.ql.parse.ParseException: line 1:536 mismatched input
'$' expecting StringLiteral near '=' in specifying key/value property

at
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:438)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:419)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:339)
at 

Re: [Dev] Hive Query is not executing in BAM 2.0.1 which worked fine in BAM 2.0.0

2012-10-16 Thread Reka Thirunavukkarasu
Thanks for looking into this issue.

Reka

On Tue, Oct 16, 2012 at 9:35 PM, Kasun Weranga kas...@wso2.com wrote:

 This issue has been fixed. Thanks Buddhika for providing the fix.

 On Tue, Oct 16, 2012 at 2:31 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 The following hive query which works fine in BAM 2.0.0 is not working now
 in BAM 2.0.1. Could you please have a look on this?
 jira: https://wso2.org/jira/browse/CARBON-13943

 set logs_column_family = log_1_AS_2012_10_14;
 set file_path =
 /media/Entertainment/stratos/BAM_LOGS/archive-logs/tmpLogs/1/AS/2012_10_14;
 drop table LogStats;
 set mapred.output.compress=true;
 set hive.exec.compress.output=true;
 set
 mapred.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec;
 set io.compression.codecs=org.apache.hadoop.io.compress.GzipCodec;

 CREATE EXTERNAL TABLE IF NOT EXISTS LogStats (key STRING,
 payload_tenantID STRING,payload_serverName STRING,
 payload_appName STRING,payload_message STRING,
 payload_stacktrace STRING,
 payload_logger STRING,
 payload_priority STRING,payload_logTime BIGINT)
 STORED BY
 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'
 WITH SERDEPROPERTIES ( cassandra.host = localhost,
 cassandra.port =9160,cassandra.ks.name = EVENT_KS,
 cassandra.ks.username = admin,cassandra.ks.password
 =admin,
 cassandra.cf.name = ${hiveconf:logs_column_family},
 cassandra.columns.mapping =
 :key,payload_tenantID,
 payload_serverName,payload_appName,payload_message,
 payload_stacktrace,payload_logger,payload_priority,
 payload_logTime );
 INSERT OVERWRITE LOCAL DIRECTORY 'file:///${hiveconf:file_path}'
 select
 concat('TID[',payload_tenantID, ']\t',
 'Server[',payload_serverName,']\t',
 'Application[',payload_appName,']\t',
 'Message[',payload_message,']\t',
 'Stacktrace ',payload_stacktrace,'\t',
 'Logger{',payload_logger,'}\t',
 'Priority[',payload_priority,']\t'),
 concat('LogTime[',
 (from_unixtime(cast(payload_logTime/1000 as BIGINT),'-MM-dd
 HH:mm:ss.SSS' )),']\n') as LogTime from LogStats
 ORDER BY LogTime;

 The exception trace is as following:

 Hive history file=/tmp/reka/hive_job_log_reka_201210161416_1379462536.txt
 Hive history file=/tmp/reka/hive_job_log_reka_201210161416_844839482.txt
 [2012-10-16 14:16:03,180] ERROR {hive.ql.metadata.Hive} -
 NoSuchObjectException(message:default.LogStats table not found)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler$16.run(MultitenantMetaStoreHandler.java:1194)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler$16.run(MultitenantMetaStoreHandler.java:1189)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler.executeWithRetry(MultitenantMetaStoreHandler.java:324)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler.get_table(MultitenantMetaStoreHandler.java:1189)
 at
 org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:735)
 at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:901)
 at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:843)
 at org.apache.hadoop.hive.ql.exec.DDLTask.dropTable(DDLTask.java:3127)
 at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:250)
 at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:133)
 at
 org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
 at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1334)
 at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1125)
 at org.apache.hadoop.hive.ql.Driver.run(Driver.java:933)
 at
 org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:201)
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:187)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:324)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:225)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)

 OK
 FAILED: Parse Error: line 1:536 mismatched input '$' expecting
 StringLiteral near '=' in specifying key/value property

 [2012-10-16 14:16:03,186] ERROR {org.apache.hadoop.hive.ql.Driver} -
 FAILED: Parse Error: line 1:536 mismatched input '$' expecting
 StringLiteral near '=' in specifying key/value property

 org.apache.hadoop.hive.ql.parse.ParseException: line

Re: [Dev] Hive Query is not executing in BAM 2.0.1 which worked fine in BAM 2.0.0

2012-10-16 Thread Reka Thirunavukkarasu
Sure. Will include relevant tests for summarizer into BAM.
jira: https://wso2.org/jira/browse/BAM-934

Thanks,
Reka

On Tue, Oct 16, 2012 at 10:05 PM, Tharindu Mathew thari...@wso2.com wrote:

 Reka,

 Please include an integration test for BAM. This should have been detected
 much earlier.

 On Tue, Oct 16, 2012 at 9:32 AM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Thanks for looking into this issue.

 Reka


 On Tue, Oct 16, 2012 at 9:35 PM, Kasun Weranga kas...@wso2.com wrote:

 This issue has been fixed. Thanks Buddhika for providing the fix.

 On Tue, Oct 16, 2012 at 2:31 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 The following hive query which works fine in BAM 2.0.0 is not working
 now in BAM 2.0.1. Could you please have a look on this?
 jira: https://wso2.org/jira/browse/CARBON-13943

 set logs_column_family = log_1_AS_2012_10_14;
 set file_path =
 /media/Entertainment/stratos/BAM_LOGS/archive-logs/tmpLogs/1/AS/2012_10_14;
 drop table LogStats;
 set mapred.output.compress=true;
 set hive.exec.compress.output=true;
 set
 mapred.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec;
 set io.compression.codecs=org.apache.hadoop.io.compress.GzipCodec;

 CREATE EXTERNAL TABLE IF NOT EXISTS LogStats (key STRING,
 payload_tenantID STRING,payload_serverName STRING,
 payload_appName STRING,payload_message STRING,
 payload_stacktrace STRING,
 payload_logger STRING,
 payload_priority STRING,payload_logTime BIGINT)
 STORED BY
 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'
 WITH SERDEPROPERTIES ( cassandra.host = localhost,
 cassandra.port =9160,cassandra.ks.name = EVENT_KS,
 cassandra.ks.username = admin,cassandra.ks.password
 =admin,
 cassandra.cf.name = ${hiveconf:logs_column_family},
 cassandra.columns.mapping =
 :key,payload_tenantID,
 payload_serverName,payload_appName,payload_message,
 payload_stacktrace,payload_logger,payload_priority,
 payload_logTime );
 INSERT OVERWRITE LOCAL DIRECTORY 'file:///${hiveconf:file_path}'
 select
 concat('TID[',payload_tenantID, ']\t',
 'Server[',payload_serverName,']\t',
 'Application[',payload_appName,']\t',
 'Message[',payload_message,']\t',
 'Stacktrace ',payload_stacktrace,'\t',
 'Logger{',payload_logger,'}\t',
 'Priority[',payload_priority,']\t'),
 concat('LogTime[',
 (from_unixtime(cast(payload_logTime/1000 as BIGINT),'-MM-dd
 HH:mm:ss.SSS' )),']\n') as LogTime from LogStats
 ORDER BY LogTime;

 The exception trace is as following:

 Hive history
 file=/tmp/reka/hive_job_log_reka_201210161416_1379462536.txt
 Hive history file=/tmp/reka/hive_job_log_reka_201210161416_844839482.txt
 [2012-10-16 14:16:03,180] ERROR {hive.ql.metadata.Hive} -
 NoSuchObjectException(message:default.LogStats table not found)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler$16.run(MultitenantMetaStoreHandler.java:1194)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler$16.run(MultitenantMetaStoreHandler.java:1189)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler.executeWithRetry(MultitenantMetaStoreHandler.java:324)
 at
 org.apache.hadoop.hive.metastore.MultitenantMetaStoreHandler.get_table(MultitenantMetaStoreHandler.java:1189)
 at
 org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:735)
 at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:901)
 at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:843)
 at
 org.apache.hadoop.hive.ql.exec.DDLTask.dropTable(DDLTask.java:3127)
 at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:250)
 at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:133)
 at
 org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
 at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1334)
 at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1125)
 at org.apache.hadoop.hive.ql.Driver.run(Driver.java:933)
 at
 org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:201)
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:187)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:324)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:225)
 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java

[Dev] Couldn't build ESB 4.5.1

2012-10-12 Thread Reka Thirunavukkarasu
Hi

I'm getting following error while building ESB 4.5.1.

INFO] WSO2 ESB - P2 Profile Generation .. FAILURE [33.299s]
[INFO] WSO2 ESB - Distribution ... SKIPPED
[INFO] WSO2 ESB - Integration Parent . SKIPPED
[INFO] WSO2 ESB Integration Test Core  SKIPPED
[INFO] Endpoint Integration Tests  SKIPPED
[INFO] ESB Sample Scenarios .. SKIPPED
[INFO] Local Entry Integration Tests . SKIPPED
[INFO] WSO2 ESB NHTTP Transport Integration Tests  SKIPPED
[INFO] Priority Executors Module . SKIPPED
[INFO] Proxy Services Integration Tests .. SKIPPED
[INFO] Sequence Module ... SKIPPED
[INFO] WSO2 ESB HTTP Servlet Transport Integration Tests . SKIPPED
[INFO] ESB test Module ... SKIPPED
[INFO] WS-Discovery Integration Tests  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 59.229s
[INFO] Finished at: Fri Oct 12 12:13:08 IST 2012
[INFO] Final Memory: 45M/569M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5:p2-repo-gen (2-p2-repo-generation) on
project wso2esb-p2-profile: ERROR: Could not find artifact
org.wso2.carbon:org.wso2.carbon.sequences.feature:zip:4.0.2 in wso2-nexus (
http://maven.wso2.org/nexus/content/groups/wso2-public/)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.sequences.feature -Dversion=4.0.2
-Dpackaging=zip -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the
file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.sequences.feature -Dversion=4.0.2
-Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.wso2.carbon:org.wso2.carbon.sequences.feature:zip:4.0.2
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
[ERROR] central (http://repo1.maven.org/maven2, releases=true,
snapshots=false)
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :wso2esb-p2-profile

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


Re: [Dev] CEP P2 gen failing

2012-10-11 Thread Reka Thirunavukkarasu
It is fixed now: https://wso2.org/jira/browse/CARBON-13929

Thanks,
Reka

On Thu, Oct 11, 2012 at 3:31 PM, Samisa Abeysinghe sam...@wso2.com wrote:

 Already reported and folks are working on this...

 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Logging Management Feature 4.0.2
 (org.wso2.carbon.logging.mgt.feature.group 4.0.2)
  Missing requirement: hector-core 1.1.0.wso2v1 (hector-core 1.1.0.wso2v1)
 requires 'package org.apache.thrift [0.7.0.wso2v1,0.8.0.wso2v1)' but it
 could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management Feature 4.0.2
 (org.wso2.carbon.logging.mgt.feature.group 4.0.2)
   To: org.wso2.carbon.logging.mgt.server.feature.group [4.0.2]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Logging Management Core Feature 4.0.2
 (org.wso2.carbon.logging.mgt.server.feature.group 4.0.2)
   To: hector-core [1.1.0.wso2v1]

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org


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


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


Re: [Dev] New logging Framework performance test

2012-10-02 Thread Reka Thirunavukkarasu
Sure..Will confirm with BAM on the count.

On Wed, Oct 3, 2012 at 7:04 AM, Srinath Perera srin...@wso2.com wrote:

 BAM guys get about 3 events/ sec on their new tests. Please talk to
 them and compare


 On Sat, Sep 29, 2012 at 10:52 AM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 I'll talk with BAM team in order to make it more accuracy.


 On Fri, Sep 28, 2012 at 6:25 PM, Afkham Azeez az...@wso2.com wrote:

 What I was expecting was a test where you send a service request, and
 the service sends back an echo or something, take note of the latency, then
 make that same log a request with that new appender enabled, and record the
 latency and compare.  This has to be done for about 50k messages for each
 round.


 Sure. I will include this into the testing.

 Thanks,
 Reka

 On Fri, Sep 28, 2012 at 4:59 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi all,

 The following are the results which i have got when doing performance
 test with new logging vs sys-log. Each request got printed with 100 logs.
 So the logs count is all together RequestsCount * 100. I couldn't make it
 to test with much high load since i did the testing on my local machine. I
 have done this testing for ST at the moment.

 New Logging
 ==

 Requests CountThroughput(/sec)-Sys-logLatency(time
 taken to writte logs in BAM after sys-log written down)

 500  40.2
 67s
 100034.8
 147s
 200032.1
 287s

 Sys-Log only
 =

 500 47.6
 1000   46.4
 2000   44.4

 I have attached here with the profile and memory usage of sys-log and
 new logging framework.

 FYI:
 For sys-Log, i haven't noticed much different in memory usage and
 profile different while concurrent request count varies. But with New
 logging memory usage seems to be getting bit high with request count
 increases. The profiles for new logging with all three request attached
 here with.

 I'll update the thread while i'm doing the test for tenant as well as
 for high loads. Also, please suggest if i need to include any other steps..

 Thanks,
 Reka




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*





 --
 
 Srinath Perera, Ph.D.
   Senior Software Architect, WSO2 Inc.
   Visiting Faculty, University of Moratuwa
   Member, Apache Software Foundation
   Research Scientist, Lanka Software Foundation
   Blog: http://srinathsview.blogspot.com/
   Photos: http://www.flickr.com/photos/hemapani/
  Phone: 0772360902

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


Re: [Dev] New logging Framework performance test

2012-09-28 Thread Reka Thirunavukkarasu
Hi

I'll talk with BAM team in order to make it more accuracy.


 On Fri, Sep 28, 2012 at 6:25 PM, Afkham Azeez az...@wso2.com wrote:

 What I was expecting was a test where you send a service request, and the
 service sends back an echo or something, take note of the latency, then
 make that same log a request with that new appender enabled, and record the
 latency and compare.  This has to be done for about 50k messages for each
 round.


Sure. I will include this into the testing.

Thanks,
Reka

On Fri, Sep 28, 2012 at 4:59 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi all,

 The following are the results which i have got when doing performance
 test with new logging vs sys-log. Each request got printed with 100 logs.
 So the logs count is all together RequestsCount * 100. I couldn't make it
 to test with much high load since i did the testing on my local machine. I
 have done this testing for ST at the moment.

 New Logging
 ==

 Requests CountThroughput(/sec)-Sys-logLatency(time taken
 to writte logs in BAM after sys-log written down)

 500  40.2  67s
 100034.8  147s
 200032.1  287s

 Sys-Log only
 =

 500 47.6
 1000   46.4
 2000   44.4

 I have attached here with the profile and memory usage of sys-log and new
 logging framework.

 FYI:
 For sys-Log, i haven't noticed much different in memory usage and profile
 different while concurrent request count varies. But with New logging
 memory usage seems to be getting bit high with request count increases. The
 profiles for new logging with all three request attached here with.

 I'll update the thread while i'm doing the test for tenant as well as for
 high loads. Also, please suggest if i need to include any other steps..

 Thanks,
 Reka




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*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] [Architecture] [New Concept] CarbonContext pool

2012-09-27 Thread Reka Thirunavukkarasu
Sure..Will do..

On Thu, Sep 27, 2012 at 5:10 PM, Afkham Azeez az...@wso2.com wrote:

 Reka,
 Please debug DefaultRealmService.getTenantUserRealm(tenantId) to see
 whether the UserRealm is being picked from the cache.


 On Thu, Sep 27, 2012 at 5:04 PM, Afkham Azeez az...@wso2.com wrote:



 On Thu, Sep 27, 2012 at 4:46 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi,

 We load the tenant UserRealm on the first call. This profile test must
 be done for the first call. What is the result for the second call onwards?
 Is it the same Reka?


 This is a test repeated for 1 messages for ST  tenants. So the
 affects of the first time loading should have evened out.



 thanks,
 dimuthu


 On Thu, Sep 27, 2012 at 4:24 PM, Afkham Azeez az...@wso2.com wrote:

 Dimuthu,
 Clearly, there is something wrong with tenant UserRealm caching. For ST
 it seems to be cached while for other tenants it is not.

 Azeez


 On Thu, Sep 27, 2012 at 4:15 PM, Reka Thirunavukkarasu 
 r...@wso2.comwrote:

 Hi

 I have attached here with the ST and tenant results.

 Thanks,
 Reka

  On Thu, Sep 27, 2012 at 3:53 PM, Afkham Azeez az...@wso2.com wrote:



 On Thu, Sep 27, 2012 at 3:33 PM, Afkham Azeez az...@wso2.com wrote:

 Dimuthu,
 Any idea why DefaultRealmService.getTenantUserRealm is taking quite
 a bit overhead?


 Shouldn't we be getting the Tenant UserRealm from the cache?



 Azeez


 On Thu, Sep 27, 2012 at 2:26 PM, Reka Thirunavukkarasu 
 r...@wso2.com wrote:

 With this improvement, for 1 requests to a webapp, consumed
 load of getTenatDomain is nealy 1% and getAppName was below 1%. I have
 attached the screen shot here with.

 Thanks,
 Reka


 On Thu, Sep 27, 2012 at 2:13 PM, Reka Thirunavukkarasu 
 r...@wso2.com wrote:

 Hi

 Yes. It is fixed in r143911.

 Thanks,
 Reka


 On Thu, Sep 27, 2012 at 2:01 PM, Afkham Azeez az...@wso2.comwrote:



 On Mon, Sep 10, 2012 at 3:47 PM, Reka Thirunavukkarasu 
 r...@wso2.com wrote:

 Hi

 On Mon, Sep 10, 2012 at 3:18 PM, Afkham Azeez az...@wso2.comwrote:

 Amani, Reka,
 Please try to optimize the following code in Utils.
 request.getServerName is somewhat expensive, so we should be doing 
 that
 only if a URL mapped request is coming in. We can check for all 
 general
 cases first, and if all of those fail, finally check for URL 
 mapping;

 public static String getTenantDomain(HttpServletRequest
 request) {
 String requestURI = request.getRequestURI();
  String domain = MultitenantConstants.SUPER_TENANT_DOMAIN_NAME;
 *//if the request is from a url mapping(
 https://apptest.wso2.com/),*
 *// need to get the tenant domain from the map*
 *String serverName = request.getServerName();*
 String appContext =
 ApplicationContext.getCurrentApplicationContext().
 getApplicationFromUrlMapping(serverName);
 if(appContext != null) {
 requestURI = appContext;
 }



 On Mon, Sep 10, 2012 at 3:09 PM, Afkham Azeez 
 az...@wso2.comwrote:

 Take a look at the attached profiler screenshot. Some inner
 classes in CarbonContextHolderBase keep getting instantiated 
 several times
 during a single flow. I think we should be able to avoid that.


 sure. Will optimize it accordingly.


 Was this completed?







 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture





 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*





 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2

Re: [Dev] Build failure - Logging Services

2012-09-27 Thread Reka Thirunavukkarasu
Hi

I believe that you could build it without any issues after getting svn up
since i had already committed the related stuffs.

Thanks,
Reka

On Thu, Sep 27, 2012 at 9:42 PM, Deependra Ariyadewa d...@wso2.com wrote:



 On Thu, Sep 27, 2012 at 9:39 PM, Ajith Vitharana aji...@wso2.com wrote:

  WSO2 Carbon - Logging Services  FAILURE [0.154s]


 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 12:42.869s
 [INFO] Finished at: Thu Sep 27 20:55:37 IST 2012
 [INFO] Final Memory: 1409M/1881M
 [INFO]
 
 [ERROR] Failed to execute goal on project
 org.wso2.carbon.logging.service: Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.logging.service:bundle:4.0.2: Failure to
 find me.prettyprint.wso2:hector-core:jar:0.7.0.23.wso2v2 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced


 Pl update  logging component and  hectoer 1.1.  orbit in dependency.

 Thanks,

 Deependra.


  - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.logging.service

 Thanks
 Ajith


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



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




 --
 Deependra Ariyadewa
 WSO2, Inc. http://wso2.com/ http://wso2.org

 email d...@wso2.com; cell +94 71 403 5996 ;
 Blog http://risenfall.wordpress.com/
 PGP info: KeyID: 'DC627E6F'


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


Re: [Dev] using libthrift 0.7 in hector

2012-09-26 Thread Reka Thirunavukkarasu
Hi

From the offline discussion with Buddhika, since they don't have any
impacts of changing the dependency/hector to use libthrift 0.7, i have
changed it accordingly. please make sure with this change when you are
using dependency/hector.

Thanks,
Reka

On Thu, Sep 27, 2012 at 11:17 AM, Pradeep Fernando prad...@wso2.com wrote:

 Hi Bam folks, Deep,

 AFAIR, we decided to use two versions of hector/libthrift in some
 other mailing thread. Can you guys reply to the rekas' mail please.

 thanks,
 --Pradeep

 On Tue, Sep 25, 2012 at 12:32 PM, Reka Thirunavukkarasu r...@wso2.com
 wrote:
  Hi
 
  This is to have the $subject. We require libthrift 0.7 in order to use
  hector calls to connect to cassandra, since libthrift 0.8 is giving
  exceptions. Can we have our hosted hector to be used in the components
  instead of referring the hector directly from maven site.
 
  AFAIK, CSG is using libthrift 0.8 at the moment. So, we ended up with
 having
  libthrift 0.7 and 0.8 in ESB packs. The direct hector from maven site
  chooses the 0.8 at run time. To avoid such situation, i have modified our
  dependency/orbit/hector to use libthrift 0.7 explicitly.
 
  Is it possible to use our dependency/orbit/hector in the components in
 order
  to avoid issues with logging, BAM and Cassandra Explorer?  Can i proceed
  with this approach, if we don't have any issues?
 
  Thanks,
  Reka
 
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 

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


Re: [Dev] DSS Server Start up error after refactoring CarbonContext

2012-09-18 Thread Reka Thirunavukkarasu
Hi

i'll look into this...

Thanks,
Reka

On Tue, Sep 18, 2012 at 11:57 AM, Lakmali Baminiwatta lakm...@wso2.comwrote:

 Hi all,

 We are getting the following error in DSS startup. It seems that logging
 component can not find
 org.wso2.carbon.utils.multitenancy.CarbonApplicationContextHolder. Isn't
 that need to be refactored?

 ERROR
 {org.wso2.carbon.coordination.core.internal.CoordinationClientDSComponent}
 -  Eror in initializing Coordination component:
 org/wso2/carbon/utils/multitenancy/CarbonApplicationContextHolder
 java.lang.NoClassDefFoundError:
 org/wso2/carbon/utils/multitenancy/CarbonApplicationContextHolder
 at
 org.wso2.carbon.logging.appender.CarbonMemoryAppender.append(CarbonMemoryAppender.java:73)
 at
 org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
 at
 org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
 at org.apache.log4j.Category.callAppenders(Category.java:203)
 at org.apache.log4j.Category.forcedLog(Category.java:388)
 at org.apache.log4j.Category.log(Category.java:853)
 at org.apache.commons.logging.impl.Log4JLogger.info
 (Log4JLogger.java:199)
 at
 org.wso2.carbon.coordination.core.services.impl.ZKCoordinationService.init(ZKCoordinationService.java:96)
 at
 org.wso2.carbon.coordination.core.services.impl.ZKCoordinationService.init(ZKCoordinationService.java:101)
 at
 org.wso2.carbon.coordination.core.internal.CoordinationClientDSComponent.activate(CoordinationClientDSComponent.java:50)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
 at
 org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:441)
 at
 org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:213)
 at
 org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:800)
 at
 org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:767)
 at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
 at
 org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
 Caused by: java.lang.ClassNotFoundException:
 org.wso2.carbon.utils.multitenancy.CarbonApplicationContextHolder
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 ... 25 more


 Thanks,
 Lakmali
 *
 *


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


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


Re: [Dev] DSS Server Start up error after refactoring CarbonContext

2012-09-18 Thread Reka Thirunavukkarasu
It is fixed now.

On Tue, Sep 18, 2012 at 12:03 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 i'll look into this...

 Thanks,
 Reka

 On Tue, Sep 18, 2012 at 11:57 AM, Lakmali Baminiwatta lakm...@wso2.comwrote:

 Hi all,

 We are getting the following error in DSS startup. It seems that logging
 component can not find
 org.wso2.carbon.utils.multitenancy.CarbonApplicationContextHolder. Isn't
 that need to be refactored?

 ERROR
 {org.wso2.carbon.coordination.core.internal.CoordinationClientDSComponent}
 -  Eror in initializing Coordination component:
 org/wso2/carbon/utils/multitenancy/CarbonApplicationContextHolder
 java.lang.NoClassDefFoundError:
 org/wso2/carbon/utils/multitenancy/CarbonApplicationContextHolder
 at
 org.wso2.carbon.logging.appender.CarbonMemoryAppender.append(CarbonMemoryAppender.java:73)
 at
 org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
 at
 org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
 at org.apache.log4j.Category.callAppenders(Category.java:203)
 at org.apache.log4j.Category.forcedLog(Category.java:388)
 at org.apache.log4j.Category.log(Category.java:853)
 at org.apache.commons.logging.impl.Log4JLogger.info
 (Log4JLogger.java:199)
 at
 org.wso2.carbon.coordination.core.services.impl.ZKCoordinationService.init(ZKCoordinationService.java:96)
 at
 org.wso2.carbon.coordination.core.services.impl.ZKCoordinationService.init(ZKCoordinationService.java:101)
 at
 org.wso2.carbon.coordination.core.internal.CoordinationClientDSComponent.activate(CoordinationClientDSComponent.java:50)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
 at
 org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:441)
 at
 org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:213)
 at
 org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:800)
 at
 org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:767)
 at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
 at
 org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
 Caused by: java.lang.ClassNotFoundException:
 org.wso2.carbon.utils.multitenancy.CarbonApplicationContextHolder
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 ... 25 more


 Thanks,
 Lakmali
 *
 *


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



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


Re: [Dev] CarbonContext refactoring hackathon

2012-09-18 Thread Reka Thirunavukkarasu
Hi all,

I'm going to keep the urlMappingOfApplication Map which was part of
ApplicationContext previously to org.wso2.carbon.tomcat.ext in a utils
package as discussed with pradeep offline.

We have to keep this map in kernel level in order to have billing and
metering for url-mapping request and also to get the Application specific
logs for URL-mappings request.

Please provide suggestions if any concerns with this approach.

Thanks,
Reka

On Fri, Sep 14, 2012 at 1:42 PM, Pradeep Fernando prad...@wso2.com wrote:

 yes, it is backward compatible.

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

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


Re: [Dev] CarbonContext refactoring hackathon

2012-09-18 Thread Reka Thirunavukkarasu
Hi

I have refactored the class as mentioned above approach.

Thanks,
Reka

On Tue, Sep 18, 2012 at 2:47 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi all,

 I'm going to keep the urlMappingOfApplication Map which was part of
 ApplicationContext previously to org.wso2.carbon.tomcat.ext in a utils
 package as discussed with pradeep offline.

 We have to keep this map in kernel level in order to have billing and
 metering for url-mapping request and also to get the Application specific
 logs for URL-mappings request.

 Please provide suggestions if any concerns with this approach.

 Thanks,
 Reka


 On Fri, Sep 14, 2012 at 1:42 PM, Pradeep Fernando prad...@wso2.comwrote:

 yes, it is backward compatible.

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



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


Re: [Dev] Error building ESB on branch ...

2012-08-15 Thread Reka Thirunavukkarasu
Hi

Thanks for informing. It is fixed now. Please update
patch-releases/4.0.1/features.

Thanks,
Reka

On Wed, Aug 15, 2012 at 6:13 PM, Muhammed Shariq sha...@wso2.com wrote:

 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5:p2-repo-gen (2-p2-repo-generation) on
 project wso2esb-p2-profile: ERROR: Could not find artifact
 org.wso2.carbon:org.wso2.carbon.transports.passthru.feature:zip:1.0.1 in
 wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
 [ERROR]
 [ERROR] Try downloading the file manually from the project website.
 [ERROR]
 [ERROR] Then, install it using the command:
 [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.transports.passthru.feature -Dversion=1.0.1
 -Dpackaging=zip -Dfile=/path/to/file
 [ERROR]
 [ERROR] Alternatively, if you host your own repository you can deploy the
 file there:
 [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.transports.passthru.feature -Dversion=1.0.1
 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 [ERROR]
 [ERROR]
 [ERROR]
 org.wso2.carbon:org.wso2.carbon.transports.passthru.feature:zip:1.0.1
 [ERROR]
 [ERROR] from the specified remote repositories:
 [ERROR] wso2-nexus (
 http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
 snapshots=true),
 [ERROR] central (http://repo1.maven.org/maven2, releases=true,
 snapshots=false)
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


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


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


Re: [Dev] Build failure at web app mgt

2012-08-09 Thread Reka Thirunavukkarasu
Hi

Locally, it builds fine for me. Could you please update
compoenents/url-mapper?

Thanks,
Reka


On Thu, Aug 9, 2012 at 6:11 PM, Tharindu Mathew thari...@wso2.com wrote:

 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 45.903s
 [INFO] Finished at: Thu Aug 09 18:09:09 IST 2012
 [INFO] Final Memory: 57M/168M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.webapp.mgt: Compilation failure
 [ERROR]
 /Users/mackie/source-checkouts/carbon/platform/branches/4.0.0/components/webapp-mgt/org.wso2.carbon.webapp.mgt/4.0.1/src/main/java/org/wso2/carbon/webapp/mgt/TomcatUtil.java:[114,68]
 cannot find symbol
  [ERROR] symbol  : method getSuffixOfHost()
 [ERROR] location: interface org.wso2.carbon.url.mapper.HotUpdateService
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.webapp.mgt

 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908


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


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


Re: [Dev] Url mapper with DepSync and GD enabled for webapps

2012-08-02 Thread Reka Thirunavukkarasu
On Thu, Aug 2, 2012 at 2:37 PM, Kishanthan Thangarajah
kishant...@wso2.comwrote:

 I made some fixes to GD related to exploded mode of webapps. So please
 verify this again to be sure.

 I followed these steps.
 Start the server with GD and DepSync enabled.
 Deploy some webapps.
 Restart the server again and try to access one of the webapp.(this is
 where i got this error)


Sure. will check on it.


 On Tue, Jul 31, 2012 at 9:45 AM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 It is working fine with my local setup. So that i couldn't reproduce the
 issue that you have faced. Can you elaborate the steps for me to reproduce
 the issue?

 I faced some issues with Ghost deployer when tenant's cleanup and tenant
 lazy loading. I have fixed cleanup issues. Will commit it once verify.

 Virtual host is not got loaded with tenant lazy loading. This is because
 Ghost deployer deploys Ghost webapps instead of actual webapps when virtual
 host request hits. This similar case happens for services as well.


 If the artifacts were loaded at-least once before, then
 the subsequent tenant loading will load them into ghost form.


 Is it possible to make changes in Ghost deployer to deploy actual webapps
 and actual services whenever a virtual host request hits the valve?


 Why do you need to deploy the actual artifacts in this scenario here?


To access a webapp, Ghost Deployer should deploy actual webapp instead of
ghost webapp. This is verified from the requested URL (
https://localhost:9443/t/tenant.com/webapps/example). In my case virtual
host request should also invoke the webapp which is already deployed in
AS(/t/tenant.com/webapps/example). Since the Ghost deployer is not aware of
vritual host requested URL (https://appid.localhost:9443), it won't deploy
the webapp rather it will keep the webapp in ghost form. So, virtual host
request couldn't get the resources.

If a virtual host request hits, then it should lazy load the host and it
should deploy the webapp. This is can be done by checking whether requested
ServerName is available in the URL mappings Map and if it is available then
changing the request URI to actual webapp. So that Ghost deployer can see
the URI and deploy the webapp.

FYI: Here we are not having webapps per virtual host. If something happen
to actual webapp, that will reflect in virtual host as well. In order to
access the webapp with root(https://appid.localhost:9443/), just having the
mapping (appid.localhost) to a virtual host.


 Thanks,
 Kishanthan.


 Thanks,
 Reka


 On Mon, Jul 30, 2012 at 1:00 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 I'll look into this.

 Thanks,
 Reka


 On Mon, Jul 30, 2012 at 12:42 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi,
 Please test $subject for webapps. I encountered some issues while
 testing some webapps on AS with both DepSync and GD enabled. Looks like
 some issues with getting virtual host info from registry.

 [2012-07-30 11:26:46,572]  INFO
 {org.wso2.carbon.webapp.mgt.utils.GhostWebappDeployerUtils} -  Removing
 Ghost webapp and loading actual webapp : example.war
 [2012-07-30 11:26:46,937]  INFO
 {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example]
 [2012-07-30 11:26:49,588] ERROR
 {org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO} -  Failed to check
 the existence of the resource /_system/governance/hostinfo. Timeout trying
 to lock table REG_RESOURCE; SQL statement:
 SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME=?
 AND REG_TENANT_ID=? [50200-140]
 org.h2.jdbc.JdbcSQLException: Timeout trying to lock table
 REG_RESOURCE; SQL statement:
 SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME=?
 AND REG_TENANT_ID=? [50200-140]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
  at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
  at org.h2.table.RegularTable.doLock(RegularTable.java:466)
 at org.h2.table.RegularTable.lock(RegularTable.java:404)
  at org.h2.table.TableFilter.lock(TableFilter.java:139)
 at org.h2.command.dml.Select.queryWithoutCache(Select.java:554)
  at org.h2.command.dml.Query.query(Query.java:241)
 at org.h2.command.CommandContainer.query(CommandContainer.java:80)
  at org.h2.command.Command.executeQuery(Command.java:132)
 at
 org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
  at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getVersion(JDBCResourceDAO.java:197)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:147)
  at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:156)
 at
 org.wso2.carbon.registry.core.jdbc.Repository.resourceExists(Repository.java:159)
  at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.resourceExists(EmbeddedRegistry.java:644

Re: [Dev] Are we supposed to ship URLMapper with standalone products?

2012-07-30 Thread Reka Thirunavukkarasu
On Mon, Jul 30, 2012 at 11:26 AM, Afkham Azeez az...@wso2.com wrote:


 Hi



 How will this work? Do you expect http://foo.localhost:9763 to reach the
 AppServer?


Yes. This will happen only for standalone products when user uses without
setting the HostName. But when user sets a HostName in the carbon.xml, then
we can take that as a suffix or we can ask the user to set the suffix.






 Thanks,
 Reka




 --Srinath

 On Mon, Jul 30, 2012 at 9:31 AM, Samisa Abeysinghe sam...@wso2.com
 wrote:
 
 
  On Sun, Jul 29, 2012 at 9:58 PM, Reka Thirunavukkarasu r...@wso2.com
 
  wrote:
 
  Hi
 
  On Sun, Jul 29, 2012 at 9:24 PM, Sagara Gunathunga sag...@wso2.com
  wrote:
 
  I encountered same issue as WSAS-912 and few other concerns with URL
  Mapper, specially AS docs mislead URLMapper as URL shorten service.
 We
  planed to have a chat on this Monday/Tuesday will inform you exact
 time.
 
  Sure. We'll correct the issues with docs.
 
 
  Thanks !
 
  On Sun, Jul 29, 2012 at 8:48 PM, Samisa Abeysinghe sam...@wso2.com
 
  wrote:
 
  It does not look like we have thought about the standalone product
 case
  with the URLMapper component.
 
  What is our design philosophy here?
 
 
  The mapping prefix (wso2.com) can be configurable through
  ../repository/conf/etc/url-mapping-config.xml. Sorry for not
 updating the
  docs with the current implementation. We will update it in early
 next week.
 
 
  If this is configurable, it should be localhost by default in
 product
  packs.
 
  Thanks,
  Samisa...
 
  Samisa Abeysinghe
  VP Engineering
  WSO2 Inc.
  http://wso2.com
  http://wso2.org



 --
 
 Srinath Perera, Ph.D.
   Senior Software Architect, WSO2 Inc.
   Visiting Faculty, University of Moratuwa
   Member, Apache Software Foundation
   Research Scientist, Lanka Software Foundation
   Blog: http://srinathsview.blogspot.com/
   Photos: http://www.flickr.com/photos/hemapani/
  Phone: 0772360902




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*





 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*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] Url mapper with DepSync and GD enabled for webapps

2012-07-30 Thread Reka Thirunavukkarasu
Hi

I'll look into this.

Thanks,
Reka

On Mon, Jul 30, 2012 at 12:42 PM, Kishanthan Thangarajah 
kishant...@wso2.com wrote:

 Hi,
 Please test $subject for webapps. I encountered some issues while testing
 some webapps on AS with both DepSync and GD enabled. Looks like some issues
 with getting virtual host info from registry.

 [2012-07-30 11:26:46,572]  INFO
 {org.wso2.carbon.webapp.mgt.utils.GhostWebappDeployerUtils} -  Removing
 Ghost webapp and loading actual webapp : example.war
 [2012-07-30 11:26:46,937]  INFO
 {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example]
 [2012-07-30 11:26:49,588] ERROR
 {org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO} -  Failed to check
 the existence of the resource /_system/governance/hostinfo. Timeout trying
 to lock table REG_RESOURCE; SQL statement:
 SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME=?
 AND REG_TENANT_ID=? [50200-140]
 org.h2.jdbc.JdbcSQLException: Timeout trying to lock table REG_RESOURCE;
 SQL statement:
 SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME=?
 AND REG_TENANT_ID=? [50200-140]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
  at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
  at org.h2.table.RegularTable.doLock(RegularTable.java:466)
 at org.h2.table.RegularTable.lock(RegularTable.java:404)
  at org.h2.table.TableFilter.lock(TableFilter.java:139)
 at org.h2.command.dml.Select.queryWithoutCache(Select.java:554)
  at org.h2.command.dml.Query.query(Query.java:241)
 at org.h2.command.CommandContainer.query(CommandContainer.java:80)
  at org.h2.command.Command.executeQuery(Command.java:132)
 at
 org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
  at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getVersion(JDBCResourceDAO.java:197)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:147)
  at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:156)
 at
 org.wso2.carbon.registry.core.jdbc.Repository.resourceExists(Repository.java:159)
  at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.resourceExists(EmbeddedRegistry.java:644)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:201)
  at
 org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:624)
 at
 org.wso2.carbon.url.mapper.internal.registry.RegistryManager.getHostsFromRegistry(RegistryManager.java:278)
  at
 org.wso2.carbon.url.mapper.internal.registry.RegistryManager.getAllMappingsFromRegistry(RegistryManager.java:246)
 at
 org.wso2.carbon.url.mapper.internal.util.HostUtil.getAllMappingsFromRegistry(HostUtil.java:172)
  at
 org.wso2.carbon.url.mapper.internal.util.HostUtil.getMappingsPerWebApp(HostUtil.java:66)
 at
 org.wso2.carbon.url.mapper.internal.HotUpdateManager.getMappigsPerWebapp(HotUpdateManager.java:37)
  at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:230)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:181)
  at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:151)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:115)
  at
 org.wso2.carbon.webapp.mgt.utils.GhostWebappDeployerUtils.deployActualWebApp(GhostWebappDeployerUtils.java:146)
 at
 org.wso2.carbon.webapp.mgt.GhostWebappDeployerValve.handleWebapp(GhostWebappDeployerValve.java:139)
  at
 org.wso2.carbon.webapp.mgt.GhostWebappDeployerValve.invoke(GhostWebappDeployerValve.java:89)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
  at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:129)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
  at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:49)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
  at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
  at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at
 

Re: [Dev] Url mapper with DepSync and GD enabled for webapps

2012-07-30 Thread Reka Thirunavukkarasu
Hi

It is working fine with my local setup. So that i couldn't reproduce the
issue that you have faced. Can you elaborate the steps for me to reproduce
the issue?

I faced some issues with Ghost deployer when tenant's cleanup and tenant
lazy loading. I have fixed cleanup issues. Will commit it once verify.

Virtual host is not got loaded with tenant lazy loading. This is because
Ghost deployer deploys Ghost webapps instead of actual webapps when virtual
host request hits. This similar case happens for services as well.

Is it possible to make changes in Ghost deployer to deploy actual webapps
and actual services whenever a virtual host request hits the valve?

Thanks,
Reka


On Mon, Jul 30, 2012 at 1:00 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi

 I'll look into this.

 Thanks,
 Reka


 On Mon, Jul 30, 2012 at 12:42 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi,
 Please test $subject for webapps. I encountered some issues while testing
 some webapps on AS with both DepSync and GD enabled. Looks like some issues
 with getting virtual host info from registry.

 [2012-07-30 11:26:46,572]  INFO
 {org.wso2.carbon.webapp.mgt.utils.GhostWebappDeployerUtils} -  Removing
 Ghost webapp and loading actual webapp : example.war
 [2012-07-30 11:26:46,937]  INFO
 {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example]
 [2012-07-30 11:26:49,588] ERROR
 {org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO} -  Failed to check
 the existence of the resource /_system/governance/hostinfo. Timeout trying
 to lock table REG_RESOURCE; SQL statement:
 SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME=?
 AND REG_TENANT_ID=? [50200-140]
 org.h2.jdbc.JdbcSQLException: Timeout trying to lock table
 REG_RESOURCE; SQL statement:
 SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME=?
 AND REG_TENANT_ID=? [50200-140]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
  at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
  at org.h2.table.RegularTable.doLock(RegularTable.java:466)
 at org.h2.table.RegularTable.lock(RegularTable.java:404)
  at org.h2.table.TableFilter.lock(TableFilter.java:139)
 at org.h2.command.dml.Select.queryWithoutCache(Select.java:554)
  at org.h2.command.dml.Query.query(Query.java:241)
 at org.h2.command.CommandContainer.query(CommandContainer.java:80)
  at org.h2.command.Command.executeQuery(Command.java:132)
 at
 org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
  at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getVersion(JDBCResourceDAO.java:197)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:147)
  at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:156)
 at
 org.wso2.carbon.registry.core.jdbc.Repository.resourceExists(Repository.java:159)
  at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.resourceExists(EmbeddedRegistry.java:644)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:201)
  at
 org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:624)
 at
 org.wso2.carbon.url.mapper.internal.registry.RegistryManager.getHostsFromRegistry(RegistryManager.java:278)
  at
 org.wso2.carbon.url.mapper.internal.registry.RegistryManager.getAllMappingsFromRegistry(RegistryManager.java:246)
 at
 org.wso2.carbon.url.mapper.internal.util.HostUtil.getAllMappingsFromRegistry(HostUtil.java:172)
  at
 org.wso2.carbon.url.mapper.internal.util.HostUtil.getMappingsPerWebApp(HostUtil.java:66)
 at
 org.wso2.carbon.url.mapper.internal.HotUpdateManager.getMappigsPerWebapp(HotUpdateManager.java:37)
  at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:230)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:181)
  at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:151)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:115)
  at
 org.wso2.carbon.webapp.mgt.utils.GhostWebappDeployerUtils.deployActualWebApp(GhostWebappDeployerUtils.java:146)
 at
 org.wso2.carbon.webapp.mgt.GhostWebappDeployerValve.handleWebapp(GhostWebappDeployerValve.java:139)
  at
 org.wso2.carbon.webapp.mgt.GhostWebappDeployerValve.invoke(GhostWebappDeployerValve.java:89)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
  at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:129)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156

Re: [Dev] NPE in AppServer Integration tests for TenantLazyLoaderValve

2012-07-26 Thread Reka Thirunavukkarasu
Hi

I'm looking into this.

Thanks,
Reka

On Thu, Jul 26, 2012 at 8:05 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi,

 I'm getting the following NPE when running the integration tests of
 AppServer latest pack in branch. Confirmed the issue with Madhuka.
 This is a blocker for the AppServer RC1 release.
 Was there any recent changes to the TenantLazyLoaderValve? I have the
 appserver pack with me if anyone want.

 Appreciate a quick response.


 [2012-07-26 19:59:05,864]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 [2012-07-26 19:59:05,863] ERROR
 {org.wso2.carbon.tomcat.ext.valves.CompositeValve} -  Could not handle
 request: /services/AuthenticationAdmin
 [2012-07-26 19:59:05,864]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 java.lang.NullPointerException
 [2012-07-26 19:59:05,864]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.wso2.carbon.utils.multitenancy.MultitenantUtils.getTenantDomainFromRequestURL(MultitenantUtils.java:80)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:55)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:129)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:49)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 [2012-07-26 19:59:05,865]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -
 at java.lang.Thread.run(Thread.java:662)
 [2012-07-26 19:59:05,898]  INFO {org.apache.axis2.builder.BuilderUtil}
 -  OMException in getSOAPBuilder
 org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException:
 Unexpected EOF in prolog
  at [row,col {unknown-source}]: [1,0]
 at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPModelBuilder.java:154)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPModelBuilder.java:140)
 at
 org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:688)
 at
 org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197)
 at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)
 at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108)
 at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
 at
 

[Dev] Getting Sample Build Failure in As

2012-07-26 Thread Reka Thirunavukkarasu
Hi

I'm getting following Build failure when building AS in trunk. Could you
please advice on this whether it is local to me or something i have to
configure?

Results :

Failed tests:
securityScenariosTestCase(org.wso2.appserver.integration.tests.HelloWorldSampleTestCase):
Error in encryption

reliableMessagingTestCase(org.wso2.appserver.integration.tests.HelloWorldSampleTestCase):
The onComplete in HelloServiceCallbackHandler didn't get invoked within 60
seconds

Tests run: 114, Failures: 2, Errors: 0, Skipped: 0

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 AppServer - Parent ... SUCCESS [0.267s]
[INFO] WSO2 AppServer - Styles Parent  SUCCESS [0.013s]
[INFO] WSO2 AppServer - UI styles  SUCCESS [2.690s]
[INFO] WSO2 Stratos  AppServer - UI styles ... SUCCESS [0.679s]
[INFO] WSO2 AppServer - Samples Parent ... SUCCESS [0.006s]
[INFO] Samples ... SUCCESS [0.051s]
[INFO] Sample/Chad ... SUCCESS [1.455s]
[INFO] Sample/CommodityQuote . SUCCESS [6.164s]
[INFO] Sample/TinyURL  SUCCESS [0.996s]
[INFO] Sample/Trader . SUCCESS [6.754s]
[INFO] Sample/FlickrClient ... SUCCESS [9.308s]
[INFO] Sample/MEX  SUCCESS [0.613s]
[INFO] Sample/MTOM ... SUCCESS [2.749s]
[INFO] Sample/xfer ... SUCCESS [0.575s]
[INFO] Sample/STS  SUCCESS [0.848s]
[INFO] Samples/JAXWS-JAXRS ... SUCCESS [0.041s]
[INFO] Java First demo using JAX-WS APIs . SUCCESS [1.427s]
[INFO] JAX-RS Basic Demo . SUCCESS [0.785s]
[INFO] JAX-RS Demo - Sample 02 ... SUCCESS [0.798s]
[INFO] JAX-RS Content Negotiation Sample . FAILURE [0.549s]
[INFO] WSDL First Sample . SUCCESS [3.792s]
[INFO] Asynchronous JAX-WS Sample  SUCCESS [2.455s]
[INFO] JAX-WS Handler Sample . SUCCESS [1.774s]
[INFO] JAX-WS MTOM Sample  SUCCESS [1.291s]
[INFO] Samples/JAXWS-JAXRS Security .. SUCCESS [0.003s]
[INFO] Username Token JAX-WS Sample .. SUCCESS [1.678s]
[INFO] Sign and Encrypt JAX-WS Security Sample ... SUCCESS [2.009s]
[INFO] Sample/JSON ... SUCCESS [0.604s]
[INFO] Sample/JIBX ... SUCCESS [2.448s]
[INFO] Sample/HelloWorld . SUCCESS [0.727s]
[INFO] Sample/Client API . SUCCESS [0.970s]
[INFO] Sample/Mail Transport . SUCCESS [0.547s]
[INFO] Sample/HelloWorldWebapp ... SUCCESS [0.600s]
[INFO] Sample/VirtualDirectoryListing  SUCCESS [0.729s]
[INFO] Sample/EJBLibrary . SUCCESS [0.005s]
[INFO] Library EJB module  SUCCESS [0.788s]
[INFO] Library EAR Archive ... SUCCESS [0.263s]
[INFO] Sample/GenericJavaBean  SUCCESS [0.469s]
[INFO] Sample/JDBCDataSource . SUCCESS [0.525s]
[INFO] Samples/LogModule . SUCCESS [1.081s]
[INFO] WSO2 Stratos  AppServer - Samples . SUCCESS [0.005s]
[INFO] WSO2 AS - Sample SimpleStockQuoteService .. SUCCESS [0.695s]
[INFO] WSO2 Stratos AppServer - Sample Installer . SUCCESS [1.278s]
[INFO] WSO2 AS - Example webapp .. SUCCESS [1.988s]
[INFO] WSO2 AppServer - Features Parent .. SUCCESS [0.004s]
[INFO] WSO2 AppServer - Features Aggregator Module ... SUCCESS [0.005s]
[INFO] WSO2 AppServer - Style Features ... SUCCESS [0.267s]
[INFO] WSO2 AppServer - Utils Features ... SUCCESS [0.458s]
[INFO] WSO2 Stratos  AppServer - Features Aggregator Module  SUCCESS
[0.011s]
[INFO] WSO2 Stratos  AppServer - Style Features .. SUCCESS [0.119s]
[INFO] WSO2 Stratos  AppServer - Utils Features .. SUCCESS [0.500s]
[INFO] WSO2 Stratos  AppServer - Dashboard UI  SUCCESS [0.529s]
[INFO] WSO2 Stratos  AppServer - Dashboard UI Features ... SUCCESS [0.117s]
[INFO] WSO2 Stratos  AppServer - Dashboard UI Features ... SUCCESS [0.049s]
[INFO] WSO2 AS - Login User Interface  SUCCESS [0.511s]
[INFO] WSO2 Stratos  AppServer - Deployment Features . SUCCESS [0.060s]
[INFO] WSO2 AppServer - AppServer Profile Generation . SUCCESS
[20:50.867s]
[INFO] WSO2 AppServer - 

Re: [Dev] [Bamboo-Build] Carbon Snapshot Kernel #401 has FAILED. Change made by reka.

2012-07-23 Thread Reka Thirunavukkarasu
hi

I'm looking into this..

Thanks,
Reka

On Mon, Jul 23, 2012 at 6:07 PM, Bamboo cbuil...@wso2.org wrote:

  [image: Failed]  Carbon 
 Snapshothttp://wso2.org/bamboo/browse/WSO2CARBON/›
 Kernel http://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD/›
 #401 http://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-401/
 failed

 Code has been updated by reka http://wso2.org/bamboo/browse/author/reka.

 *0/3917* tests failed.
Failing 
 Jobshttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-401/
 Job
 Duration Tests[image: Failed]  Default 
 Jobhttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-JOB1-401/ 
 (Default
 Stage)  118 minutes  3917 passed  
 Logshttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-JOB1-401/log|
 Artifactshttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-JOB1-401/artifact
  Code
 Changeshttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-401/commit/
   View
 full change 
 detailshttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-401/commit/
 reka http://wso2.org/bamboo/browse/author/reka
 CARBON-13660http://wso2.org/bamboo/project/jiraRedirect.action?jiraIssueKey=CARBON-13660bambooProjectKey=WSO2CARBON
 134233 View 
 Onlinehttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-401
 | Add 
 Commentshttp://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-401?commentMode=true

 This message was sent by Atlassian Bamboo http://wso2.org/bamboo.

 If you wish to stop receiving these emails edit your user 
 profilehttp://wso2.org/bamboo/profile/userNotifications.actionor notify
 your administrator http://wso2.org/bamboo/viewAdministrators.action.

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


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


Re: [Dev] Error occurred while deploying webapp in AS

2012-07-17 Thread Reka Thirunavukkarasu
Hi

It is working fine for me with yesterday's build. Is this issue coming
to you with current AS or earlier?

Thanks,
Reka

On Tue, Jul 17, 2012 at 6:01 PM, Andun Gunawardena an...@wso2.com wrote:
 Hi all,

 Getting this error while replacing a exsiting webapp in the deployment
 folder with a new one.

 Thanks
 AndunSLG

 [2012-07-18 18:04:18,284] ERROR
 {org.wso2.carbon.webapp.deployer.WebappDeployer} -  Error occurred while
 deploying webapp
 /media/Studies/My_Works/WSO2_Carbon_Trunk/platform/trunk/products/as/modules/distribution/target/wso2as-5.0.0-SNAPSHOT/repository/deployment/server/webapps/TestWeb-1.0.war
 org.wso2.carbon.CarbonException: exploded Webapp directory
 /media/Studies/My_Works/WSO2_Carbon_Trunk/platform/trunk/products/as/modules/distribution/target/wso2as-5.0.0-SNAPSHOT/repository/deployment/server/webapps/TestWeb-1.0
 deletion failed
 at
 org.wso2.carbon.webapp.mgt.WebApplication.undeploy(WebApplication.java:261)
 at
 org.wso2.carbon.webapp.mgt.WebApplicationsHolder.undeployWebapp(WebApplicationsHolder.java:81)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.undeploy(TomcatGenericWebappsDeployer.java:412)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotUpdate(TomcatGenericWebappsDeployer.java:316)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:118)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.deployThisWebApp(WebappDeployer.java:140)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.deploy(WebappDeployer.java:94)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:810)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:77)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 [2012-07-18 18:04:18,285]  INFO
 {org.apache.axis2.deployment.DeploymentEngine} -
 org.apache.axis2.deployment.DeploymentException: Error occurred while
 deploying webapp
 /media/Studies/My_Works/WSO2_Carbon_Trunk/platform/trunk/products/as/modules/distribution/target/wso2as-5.0.0-SNAPSHOT/repository/deployment/server/webapps/TestWeb-1.0.war



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

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


Re: [Dev] AS startup warn: Error occurred while activating the UrlMapperServiceComponent

2012-07-16 Thread Reka Thirunavukkarasu
Hi

It is fixed in r133175.

Thanks,
Reka

On Mon, Jul 16, 2012 at 7:37 PM, Supun Malinga sup...@wso2.com wrote:
 $subject,
 Full log,

 [2012-07-16 19:32:56,488]  WARN
 {org.wso2.carbon.url.mapper.internal.UrlMapperServiceComponent} -  Error
 occurred while activating the UrlMapperServiceComponent
 java.lang.NullPointerException
 at
 org.wso2.carbon.url.mapper.internal.UrlMapperServiceComponent.addMappingToApplicationContext(UrlMapperServiceComponent.java:183)
 at
 org.wso2.carbon.url.mapper.internal.UrlMapperServiceComponent.activate(UrlMapperServiceComponent.java:100)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.registerServices(DataSourceServiceComponent.java:102)
 at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initAllTenantUserDataSources(DataSourceServiceComponent.java:199)
 at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:183)
 at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setRegistryService(DataSourceServiceComponent.java:133)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:367)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:415)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:319)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 

Re: [Dev] Failed to deploy jaggery app after adding virtual host through url mapping in AS

2012-07-10 Thread Reka Thirunavukkarasu
Hi

It is fixed in r132402.

Thanks,
Reka
On Tue, Jul 10, 2012 at 10:58 AM, Reka Thirunavukkarasu r...@wso2.com wrote:
 Hi

 Can we do the needful in order to get resolve this issue?

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


[Dev] Failed to deploy jaggery app after adding virtual host through url mapping in AS

2012-07-09 Thread Reka Thirunavukkarasu
FWD
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Failed to deploy jaggery app after adding virtual host through url mapping in AS

2012-07-09 Thread Reka Thirunavukkarasu
Hi

Can we do the needful in order to get resolve this issue?

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


Re: [Dev] AS directory based webapp deployment broken

2012-07-08 Thread Reka Thirunavukkarasu
Hi

I'm looking into this issue. sure. i'll do the needful accordingly.
Sorry about the mistake. I should have properly updated with the
changes done in webapp-mgt.

Thanks,
Reka

On Sat, Jul 7, 2012 at 10:27 PM, Supun Malinga sup...@wso2.com wrote:
 Hi Reka,

 looks like changes in r131754 causing this. You can't always assume that
 webapp is a war. So substring to the last index of '.war' gives this error
 when a directory based webapp is deployed. Also same error occurs in webapp
 unloading as well. Please fix this accordingly.

 thanks,

 On Sat, Jul 7, 2012 at 3:25 PM, Supun Malinga sup...@wso2.com wrote:

 Getting following error when a directory based webapp is deploying.

 [2012-07-07 15:23:08,816]  INFO
 {org.apache.axis2.deployment.DeploymentEngine} -
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 [2012-07-07 15:23:08,817] ERROR
 {org.wso2.carbon.webapp.deployer.WebappDeployer} -  Error occurred while
 deploying webapp
 /home/disk1/carbon_builds/newTrunk/platform/trunk/products/as/modules/distribution/target/wso2as-5.0.0-SNAPSHOT/repository/deployment/server/webapps/
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 at java.lang.String.substring(String.java:1937)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:101)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.deployThisWebApp(WebappDeployer.java:140)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.deploy(WebappDeployer.java:94)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:810)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:77)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 [2012-07-07 15:23:08,817]  INFO
 {org.apache.axis2.deployment.DeploymentEngine} -
 org.apache.axis2.deployment.DeploymentException: Error occurred while
 deploying webapp
 /home/disk1/carbon_builds/newTrunk/platform/trunk/products/as/modules/distribution/target/wso2as-5.0.0-SNAPSHOT/repository/deployment/server/webapps/

 thanks,
 --
 Supun Malinga,

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




 --
 Supun Malinga,

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

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


Re: [Dev] Error shutting down AS : Error while stopping tomcat

2012-07-08 Thread Reka Thirunavukkarasu
Hi

It is fixed in r132175.

Thanks,
Reka

On Mon, Jul 9, 2012 at 12:10 AM, Kishanthan Thangarajah
kishant...@wso2.com wrote:
 I believe this is again due to r131754. Because the error starting to appear
 when unloading exploded webapps. which in-turn causing failure to stop
 tomcat.

 [2012-07-08 23:59:54,424]  INFO {org.wso2.carbon.webapp.mgt.WebApplication}
 -  Unloaded webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example]
 [2012-07-09 00:00:37,791] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 at java.lang.String.substring(String.java:1937)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.lazyUnload(TomcatGenericWebappsDeployer.java:372)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.cleanup(WebappDeployer.java:193)
 at
 org.apache.axis2.deployment.DeploymentEngine.cleanup(DeploymentEngine.java:1386)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.cleanup(CarbonAxisConfigurator.java:447)
 at
 org.wso2.carbon.core.ServerManagement.waitForDeploymentThreadCompletion(ServerManagement.java:109)
 at
 org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:93)
 at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:856)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:871)
 [2012-07-09 00:00:37,793]  INFO
 {org.wso2.carbon.core.init.CarbonServerManager} -  Shutting down Application
 Server...
 [2012-07-09 00:00:37,796]  INFO
 {org.apache.axis2.transport.tcp.TCPTransportSender} -  TCP Sender Shutdown
 [2012-07-09 00:00:56,116] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Exception occurred while
 shutting down listeners
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 at java.lang.String.substring(String.java:1937)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.lazyUnload(TomcatGenericWebappsDeployer.java:372)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.cleanup(WebappDeployer.java:193)
 at
 org.apache.axis2.deployment.DeploymentEngine.cleanup(DeploymentEngine.java:1386)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.cleanup(CarbonAxisConfigurator.java:447)
 at
 org.apache.axis2.engine.AxisConfiguration.cleanup(AxisConfiguration.java:1438)
 at
 org.apache.axis2.context.ConfigurationContext.terminate(ConfigurationContext.java:788)
 at
 org.wso2.carbon.core.init.CarbonServerManager.stopListenerManager(CarbonServerManager.java:666)
 at
 org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:825)
 at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:861)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:871)
 [2012-07-09 00:00:56,117]  INFO
 {org.wso2.carbon.core.init.CarbonServerManager} -  Shutting down OSGi
 framework...
 [2012-07-09 00:00:56,396]  INFO
 {org.wso2.carbon.core.init.CarbonServerManager} -  Stopping
 CarbonServerManager...
 [2012-07-09 00:00:58,985] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Failed to Un-register
 Servlets



 On Sun, Jul 8, 2012 at 9:59 PM, Supun Malinga sup...@wso2.com wrote:

 Guess this should be in carbon core too.

 thanks,


 On Sun, Jul 8, 2012 at 9:58 PM, Supun Malinga sup...@wso2.com wrote:

 [2012-07-08 21:57:15,873]  [0] [Application Server]ERROR
 {org.wso2.carbon.tomcat.internal.ServerManager} -  Error while stopping
 tomcat
 org.apache.catalina.LifecycleException: Failed to stop component
 [StandardServer[8005]]
 at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
 at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:345)
 at
 org.wso2.carbon.tomcat.internal.ServerManager.stop(ServerManager.java:89)
 at
 org.wso2.carbon.tomcat.internal.TomcatBundleActivator.stop(TomcatBundleActivator.java:65)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
 at
 org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1160)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
 at
 org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
 at
 

Re: [Dev] AS directory based webapp deployment broken

2012-07-08 Thread Reka Thirunavukkarasu
Hi

This issue is fixed in r132175.

Thanks,
Reka

On Sun, Jul 8, 2012 at 5:36 PM, Reka Thirunavukkarasu r...@wso2.com wrote:
 Hi

 I'm looking into this issue. sure. i'll do the needful accordingly.
 Sorry about the mistake. I should have properly updated with the
 changes done in webapp-mgt.

 Thanks,
 Reka

 On Sat, Jul 7, 2012 at 10:27 PM, Supun Malinga sup...@wso2.com wrote:
 Hi Reka,

 looks like changes in r131754 causing this. You can't always assume that
 webapp is a war. So substring to the last index of '.war' gives this error
 when a directory based webapp is deployed. Also same error occurs in webapp
 unloading as well. Please fix this accordingly.

 thanks,

 On Sat, Jul 7, 2012 at 3:25 PM, Supun Malinga sup...@wso2.com wrote:

 Getting following error when a directory based webapp is deploying.

 [2012-07-07 15:23:08,816]  INFO
 {org.apache.axis2.deployment.DeploymentEngine} -
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 [2012-07-07 15:23:08,817] ERROR
 {org.wso2.carbon.webapp.deployer.WebappDeployer} -  Error occurred while
 deploying webapp
 /home/disk1/carbon_builds/newTrunk/platform/trunk/products/as/modules/distribution/target/wso2as-5.0.0-SNAPSHOT/repository/deployment/server/webapps/
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 at java.lang.String.substring(String.java:1937)
 at
 org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:101)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.deployThisWebApp(WebappDeployer.java:140)
 at
 org.wso2.carbon.webapp.deployer.WebappDeployer.deploy(WebappDeployer.java:94)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:810)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:77)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 [2012-07-07 15:23:08,817]  INFO
 {org.apache.axis2.deployment.DeploymentEngine} -
 org.apache.axis2.deployment.DeploymentException: Error occurred while
 deploying webapp
 /home/disk1/carbon_builds/newTrunk/platform/trunk/products/as/modules/distribution/target/wso2as-5.0.0-SNAPSHOT/repository/deployment/server/webapps/

 thanks,
 --
 Supun Malinga,

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




 --
 Supun Malinga,

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

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


[Dev] Updated Invitation: Url Mapper Review @ Wed Jul 4 2:30pm - 3:30pm (dev@wso2.org)

2012-07-02 Thread Reka Thirunavukkarasu
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20120704T09Z
DTEND:20120704T10Z
DTSTAMP:20120702T080445Z
ORGANIZER;CN=Reka Thirunavukkarasu:mailto:r...@wso2.com
UID:4kob3mlr00su0u0ok1se6l2...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Selvaratnam Uthaiyashankar;X-NUM-GUESTS=0:mailto:shan...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK #59 2nd Floor Room;X-NUM-GUESTS=0:mailto:wso2.com_3832343234393438
 393...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Pradeep Fernando;X-NUM-GUESTS=0:mailto:prad...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Afkham Azeez;X-NUM-GUESTS=0:mailto:az...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sanjeewa Malalgoda;X-NUM-GUESTS=0:mailto:sanje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Reka Thirunavukkarasu;X-NUM-GUESTS=0:mailto:r...@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=NEEDS-ACTION;RSVP=
 TRUE;CN=Amani Soysa;X-NUM-GUESTS=0:mailto:am...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilina Buddhika;X-NUM-GUESTS=0:mailto:thili...@wso2.com
CREATED:20120622T064927Z
DESCRIPTION:Review the functionality of  context mapping for webapps and se
 rvices in AS with fronting LB.\nView your event at http://www.google.com/ca
 lendar/event?action=VIEWeid=NGtvYjNtbHIwMHN1MHUwb2sxc2U2bDI2YWMgZGV2QHdzbz
 Iub3Jntok=MTMjcmVrYUB3c28yLmNvbTNjODZkYWYzNjk3YWExMTE0YmQ3N2YxNmQ1Mjg1NDkw
 Yjc0Y2Y3OTcctz=Asia/Colombohl=en.
LAST-MODIFIED:20120702T080445Z
LOCATION:LK #59 2nd Floor Room
SEQUENCE:2
STATUS:CONFIRMED
SUMMARY:Url Mapper Review
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] NPE when accessing server URL

2012-07-01 Thread Reka Thirunavukkarasu
Hi

Thanks for pointing it. I have fixed it in r131470.

Reka

On Mon, Jul 2, 2012 at 12:13 AM, Kishanthan Thangarajah
kishant...@wso2.com wrote:
 I'm getting $subject when trying to access https://localhost:9443/. It
 should be redirected to https://localhost:9443/carbon/admin/login.jsp. Look
 like there is recent commit r131446 in CompositeValve related to this issue.
 Please look into this ASAP.

 [2012-07-01 23:55:01,141] ERROR
 {org.wso2.carbon.tomcat.ext.valves.CompositeValve} -  Could not handle
 request: /
 java.lang.NullPointerException
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:132)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:49)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1620)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)

 Thanks,
 Kishanthan.

 --
 Kishanthan Thangarajah
 Software Engineer,
 Development Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

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

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


[Dev] Failed to deploy jaggery app after adding virtual host through url mapping in AS

2012-06-28 Thread Reka Thirunavukkarasu
Hi

I'm getting following exception in deploying jaggery apps when i'm
having more than one virtual host in AS.

[2012-06-28 12:32:56,425] ERROR
{org.wso2.carbon.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -
Error while deploying webapp:
StandardContext[docs].File[/media/WSO2/Servers/as_packs/merged/21-06/deploymet_syn/wso2as-5.0.0-SNAPSHOT_jaggery/repository/deployment/server/jaggeryapps/docs]
java.lang.NullPointerException
at org.apache.catalina.startup.Tomcat.addServlet(Tomcat.java:273)
at org.apache.catalina.startup.Tomcat.addServlet(Tomcat.java:259)
at 
org.wso2.carbon.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.initJaggeryappDefaults(TomcatJaggeryWebappsDeployer.java:434)
at 
org.wso2.carbon.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:422)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at 
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:258)
at 
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:201)
at 
org.wso2.carbon.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:367)
at 
org.wso2.carbon.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleExplodedWebappDeployment(TomcatJaggeryWebappsDeployer.java:243)
at 
org.wso2.carbon.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleHotDeployment(TomcatJaggeryWebappsDeployer.java:156)
at 
org.wso2.carbon.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:118)
at 
org.wso2.carbon.jaggery.deployer.JaggeryDeployer.doDeploy(JaggeryDeployer.java:139)
at 
org.wso2.carbon.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:85)
at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:810)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at 
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:139)
at 
org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:462)
at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at 
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at 
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:395)
at 
org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:288)
at 
org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

The reason for this seems to be the getHost() in CarbonTomcat returns
wrong virtual host instead of returning localhost. Can gethost() in
CarbonTomcat modify in order return localhost or defaulthost?
Would that be a proper way of solving this issue or please share if
any other exists?

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


[Dev] Updated Invitation: url mapper review @ Mon Jul 2 2:30pm - 3:30pm (dev@wso2.org)

2012-06-25 Thread Reka Thirunavukkarasu
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20120702T09Z
DTEND:20120702T10Z
DTSTAMP:20120625T091408Z
ORGANIZER;CN=Reka Thirunavukkarasu:mailto:r...@wso2.com
UID:4kob3mlr00su0u0ok1se6l2...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Selvaratnam Uthaiyashankar;X-NUM-GUESTS=0:mailto:shan...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK #59 2nd Floor Room;X-NUM-GUESTS=0:mailto:wso2.com_3832343234393438
 393...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Pradeep Fernando;X-NUM-GUESTS=0:mailto:prad...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Afkham Azeez;X-NUM-GUESTS=0:mailto:az...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sanjeewa Malalgoda;X-NUM-GUESTS=0:mailto:sanje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Reka Thirunavukkarasu;X-NUM-GUESTS=0:mailto:r...@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=NEEDS-ACTION;RSVP=
 TRUE;CN=Amani Soysa;X-NUM-GUESTS=0:mailto:am...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilina Buddhika;X-NUM-GUESTS=0:mailto:thili...@wso2.com
CREATED:20120622T064927Z
DESCRIPTION:Review the functionality of  context mapping for webapps and se
 rvices in AS with fronting LB.\nView your event at http://www.google.com/ca
 lendar/event?action=VIEWeid=NGtvYjNtbHIwMHN1MHUwb2sxc2U2bDI2YWMgZGV2QHdzbz
 Iub3Jntok=MTMjcmVrYUB3c28yLmNvbTNjODZkYWYzNjk3YWExMTE0YmQ3N2YxNmQ1Mjg1NDkw
 Yjc0Y2Y3OTcctz=Asia/Colombohl=en.
LAST-MODIFIED:20120625T091407Z
LOCATION:LK #59 2nd Floor Room
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:url mapper review
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


[Dev] Invitation: url mapper review @ Mon Jun 25 2:30pm - 3:30pm (dev@wso2.org)

2012-06-22 Thread Reka Thirunavukkarasu
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20120625T09Z
DTEND:20120625T10Z
DTSTAMP:20120622T064927Z
ORGANIZER;CN=Reka Thirunavukkarasu:mailto:r...@wso2.com
UID:4kob3mlr00su0u0ok1se6l2...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Selvaratnam Uthaiyashankar;X-NUM-GUESTS=0:mailto:shan...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK #59 2nd Floor Room;X-NUM-GUESTS=0:mailto:wso2.com_3832343234393438
 393...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Pradeep Fernando;X-NUM-GUESTS=0:mailto:prad...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Afkham Azeez;X-NUM-GUESTS=0:mailto:az...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sanjeewa Malalgoda;X-NUM-GUESTS=0:mailto:sanje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Reka Thirunavukkarasu;X-NUM-GUESTS=0:mailto:r...@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=NEEDS-ACTION;RSVP=
 TRUE;CN=Amani Soysa;X-NUM-GUESTS=0:mailto:am...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
CREATED:20120622T064927Z
DESCRIPTION:Review the functionality of  context mapping for webapps and se
 rvices in AS with fronting LB.\nView your event at http://www.google.com/ca
 lendar/event?action=VIEWeid=NGtvYjNtbHIwMHN1MHUwb2sxc2U2bDI2YWMgZGV2QHdzbz
 Iub3Jntok=MTMjcmVrYUB3c28yLmNvbTNjODZkYWYzNjk3YWExMTE0YmQ3N2YxNmQ1Mjg1NDkw
 Yjc0Y2Y3OTcctz=Asia/Colombohl=en.
LAST-MODIFIED:20120622T064927Z
LOCATION:LK #59 2nd Floor Room
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:url mapper review
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] Nio and pass through transports are blocker to access virtual host in LB

2012-06-18 Thread Reka Thirunavukkarasu
Hi

I have verified the patch with my local setup. After a small
modification according to my scenario to the patch, it worked fine. I
have attached it here with.
But, is there any possibility to programatically adding the host name
to axis2 MessageContext from Synapse's MessageContext?

Since we are having dynamic virtual host addition, we need to
dynamically handle this instead of adding host name in the config
file.

Thanks,
Reka.


On Mon, Jun 18, 2012 at 9:29 AM, Reka Thirunavukkarasu r...@wso2.com wrote:
 Hi

 Sure. I'll verify with the patch and update the thread.

 Thanks,
 Reka

 On Fri, Jun 15, 2012 at 8:10 PM, Kasun Indrasiri ka...@wso2.com wrote:
 Hi Reka,

 Could you please verify your scenario with the attached patch. (I've tested
 it locally using tcpdump.)
 In the ESB config you have to use the following property.

 property name=REQUEST_HOST_HEADER value=www.example.org scope=axis2/


 On Tue, Jun 12, 2012 at 11:52 AM, Kasun Indrasiri ka...@wso2.com wrote:

 I have debugged in RequestTargetHost interceptor which is responsible for
 adding the host header.

 And the header is not overridden as  the following condition is not
 satisfied.
       if (!request.containsHeader(HTTP.TARGET_HOST)) {
 So, the host header is overridden in some other place down the flow.( I've
 started a thread on httpcore regarding this issue)


 On Tue, Jun 12, 2012 at 10:50 AM, Hiranya Jayathilaka hira...@wso2.com
 wrote:

 Synapse doesn't have much control over this. Host header is set by HTTP
 Core protocol handlers, as it's a HTTP protocol requirement. We should 
 debug
 into the equestTargetHost
 (http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/protocol/RequestTargetHost.html)
 and see what's going on there.

 Thanks,
 Hiranya


 On Tue, Jun 12, 2012 at 10:01 AM, Kasun Indrasiri ka...@wso2.com wrote:

 I did the fix from synapse level, but still the value written as the
 host is overridden from http-core. I'm investigating on this and will
 provide a solution today,


 On Mon, Jun 11, 2012 at 11:34 AM, Reka Thirunavukkarasu r...@wso2.com
 wrote:

 Hi Kasun,

 Can we get some update regarding the issue, since we are highly
 depending on the virtual host in AS? Does it require more underlying
 change?

 Thanks,
 Reka

 On Fri, Jun 1, 2012 at 10:34 AM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:
  Any way we cant use passthrogh transport for LB because
  it has other bug which was discussed on a separate thread.
  And dushan is currently looking onto it. so we have to focus
  on nhttp at the moment.
 
  Thanks.
 
  On Fri, Jun 1, 2012 at 10:27 AM, Kasun Indrasiri ka...@wso2.com
  wrote:
 
  Hi Reka,
 
  I'm working on a fix for this issue.
 
 
  On Fri, Jun 1, 2012 at 10:25 AM, Reka Thirunavukkarasu
  r...@wso2.com
  wrote:
 
  Hi,
 
  We have configured LB with AS in order to check the context mapping
  to
  webapps. Since the context mapping is done through virtual host in
  AS,
  we should be able to access virtual host (say testapp.wso2.com)
  from
  browser with the url: https://testapp.wso2.com:9443/ where 9443 is
  the
  AS-https port.
 
  So, when we have LB in front of AS, let's say 8280 is LB-https
  port,
  then we can access the virtual host from LB like
  https://testapp.wso2.com:8280/. But this falis, and redirecting to
  carbon management consloe, since the Host header is overwritten
  with
  host name from url (Eg: loacalhost) instead of actual host
  information.
 
  But when we checked this with LB, after few modification in
  synapse,
  Http host header is properly added. Even after that also, AS didn't
  receive the actual host. Also, we experienced the same issue with
  Nio
  and pass through transport as well. Since the host header is
  available
  at LB level, this needs further invstigation in tranport level.
 
  We need to resolve it, since it is a blocker for accessing virtual
  host.
 
  So, the jira has been created:
  https://wso2.org/jira/browse/CARBON-13377
 
  Thanks,
  Reka
 
 
 
 
  --
  Kasun Indrasiri
  Associate Technical Lead
  WSO2, Inc.; http://wso2.com
  lean.enterprise.middleware
 
  cell: +94 71 536 4128
  Blog : http://kasunpanorama.blogspot.com/
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Sanjeewa Malalgoda
  mobile : +94 713068779
  blog :http://sanjeewamalalgoda.blogspot.com/




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 Hiranya Jayathilaka
 Senior Technical Lead;
 WSO2 Inc.;  http://wso2.org
 E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
 Blog: http://techfeast-hiranya.blogspot.com




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com

Re: [Dev] Nio and pass through transports are blocker to access virtual host in LB

2012-06-18 Thread Reka Thirunavukkarasu
Hi

Thanks kasun for resolving it up. I have fixed it by setting host
header to axis2 MessageContext in synapse. So that without using the
config, now we can dynamically add the property.

Thanks,
Reka.

On Mon, Jun 18, 2012 at 3:43 PM, Reka Thirunavukkarasu r...@wso2.com wrote:
 Hi

 I have verified the patch with my local setup. After a small
 modification according to my scenario to the patch, it worked fine. I
 have attached it here with.
 But, is there any possibility to programatically adding the host name
 to axis2 MessageContext from Synapse's MessageContext?

 Since we are having dynamic virtual host addition, we need to
 dynamically handle this instead of adding host name in the config
 file.

 Thanks,
 Reka.


 On Mon, Jun 18, 2012 at 9:29 AM, Reka Thirunavukkarasu r...@wso2.com wrote:
 Hi

 Sure. I'll verify with the patch and update the thread.

 Thanks,
 Reka

 On Fri, Jun 15, 2012 at 8:10 PM, Kasun Indrasiri ka...@wso2.com wrote:
 Hi Reka,

 Could you please verify your scenario with the attached patch. (I've tested
 it locally using tcpdump.)
 In the ESB config you have to use the following property.

 property name=REQUEST_HOST_HEADER value=www.example.org scope=axis2/


 On Tue, Jun 12, 2012 at 11:52 AM, Kasun Indrasiri ka...@wso2.com wrote:

 I have debugged in RequestTargetHost interceptor which is responsible for
 adding the host header.

 And the header is not overridden as  the following condition is not
 satisfied.
       if (!request.containsHeader(HTTP.TARGET_HOST)) {
 So, the host header is overridden in some other place down the flow.( I've
 started a thread on httpcore regarding this issue)


 On Tue, Jun 12, 2012 at 10:50 AM, Hiranya Jayathilaka hira...@wso2.com
 wrote:

 Synapse doesn't have much control over this. Host header is set by HTTP
 Core protocol handlers, as it's a HTTP protocol requirement. We should 
 debug
 into the equestTargetHost
 (http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/protocol/RequestTargetHost.html)
 and see what's going on there.

 Thanks,
 Hiranya


 On Tue, Jun 12, 2012 at 10:01 AM, Kasun Indrasiri ka...@wso2.com wrote:

 I did the fix from synapse level, but still the value written as the
 host is overridden from http-core. I'm investigating on this and will
 provide a solution today,


 On Mon, Jun 11, 2012 at 11:34 AM, Reka Thirunavukkarasu r...@wso2.com
 wrote:

 Hi Kasun,

 Can we get some update regarding the issue, since we are highly
 depending on the virtual host in AS? Does it require more underlying
 change?

 Thanks,
 Reka

 On Fri, Jun 1, 2012 at 10:34 AM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:
  Any way we cant use passthrogh transport for LB because
  it has other bug which was discussed on a separate thread.
  And dushan is currently looking onto it. so we have to focus
  on nhttp at the moment.
 
  Thanks.
 
  On Fri, Jun 1, 2012 at 10:27 AM, Kasun Indrasiri ka...@wso2.com
  wrote:
 
  Hi Reka,
 
  I'm working on a fix for this issue.
 
 
  On Fri, Jun 1, 2012 at 10:25 AM, Reka Thirunavukkarasu
  r...@wso2.com
  wrote:
 
  Hi,
 
  We have configured LB with AS in order to check the context mapping
  to
  webapps. Since the context mapping is done through virtual host in
  AS,
  we should be able to access virtual host (say testapp.wso2.com)
  from
  browser with the url: https://testapp.wso2.com:9443/ where 9443 is
  the
  AS-https port.
 
  So, when we have LB in front of AS, let's say 8280 is LB-https
  port,
  then we can access the virtual host from LB like
  https://testapp.wso2.com:8280/. But this falis, and redirecting to
  carbon management consloe, since the Host header is overwritten
  with
  host name from url (Eg: loacalhost) instead of actual host
  information.
 
  But when we checked this with LB, after few modification in
  synapse,
  Http host header is properly added. Even after that also, AS didn't
  receive the actual host. Also, we experienced the same issue with
  Nio
  and pass through transport as well. Since the host header is
  available
  at LB level, this needs further invstigation in tranport level.
 
  We need to resolve it, since it is a blocker for accessing virtual
  host.
 
  So, the jira has been created:
  https://wso2.org/jira/browse/CARBON-13377
 
  Thanks,
  Reka
 
 
 
 
  --
  Kasun Indrasiri
  Associate Technical Lead
  WSO2, Inc.; http://wso2.com
  lean.enterprise.middleware
 
  cell: +94 71 536 4128
  Blog : http://kasunpanorama.blogspot.com/
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Sanjeewa Malalgoda
  mobile : +94 713068779
  blog :http://sanjeewamalalgoda.blogspot.com/




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi

Re: [Dev] Nio and pass through transports are blocker to access virtual host in LB

2012-06-18 Thread Reka Thirunavukkarasu
 Cool. Alternatively, you can set it by using, $trp:Host as the property
 expression.

Thanks. I'll try that too..


 Thanks,
 Reka.

 On Mon, Jun 18, 2012 at 3:43 PM, Reka Thirunavukkarasu r...@wso2.com
 wrote:
  Hi
 
  I have verified the patch with my local setup. After a small
  modification according to my scenario to the patch, it worked fine. I
  have attached it here with.
  But, is there any possibility to programatically adding the host name
  to axis2 MessageContext from Synapse's MessageContext?
 
  Since we are having dynamic virtual host addition, we need to
  dynamically handle this instead of adding host name in the config
  file.
 
  Thanks,
  Reka.
 
 
  On Mon, Jun 18, 2012 at 9:29 AM, Reka Thirunavukkarasu r...@wso2.com
  wrote:
  Hi
 
  Sure. I'll verify with the patch and update the thread.
 
  Thanks,
  Reka
 
  On Fri, Jun 15, 2012 at 8:10 PM, Kasun Indrasiri ka...@wso2.com
  wrote:
  Hi Reka,
 
  Could you please verify your scenario with the attached patch. (I've
  tested
  it locally using tcpdump.)
  In the ESB config you have to use the following property.
 
  property name=REQUEST_HOST_HEADER value=www.example.org
  scope=axis2/
 
 
  On Tue, Jun 12, 2012 at 11:52 AM, Kasun Indrasiri ka...@wso2.com
  wrote:
 
  I have debugged in RequestTargetHost interceptor which is responsible
  for
  adding the host header.
 
  And the header is not overridden as  the following condition is not
  satisfied.
        if (!request.containsHeader(HTTP.TARGET_HOST)) {
  So, the host header is overridden in some other place down the flow.(
  I've
  started a thread on httpcore regarding this issue)
 
 
  On Tue, Jun 12, 2012 at 10:50 AM, Hiranya Jayathilaka
  hira...@wso2.com
  wrote:
 
  Synapse doesn't have much control over this. Host header is set by
  HTTP
  Core protocol handlers, as it's a HTTP protocol requirement. We
  should debug
  into the equestTargetHost
 
  (http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/protocol/RequestTargetHost.html)
  and see what's going on there.
 
  Thanks,
  Hiranya
 
 
  On Tue, Jun 12, 2012 at 10:01 AM, Kasun Indrasiri ka...@wso2.com
  wrote:
 
  I did the fix from synapse level, but still the value written as
  the
  host is overridden from http-core. I'm investigating on this and
  will
  provide a solution today,
 
 
  On Mon, Jun 11, 2012 at 11:34 AM, Reka Thirunavukkarasu
  r...@wso2.com
  wrote:
 
  Hi Kasun,
 
  Can we get some update regarding the issue, since we are highly
  depending on the virtual host in AS? Does it require more
  underlying
  change?
 
  Thanks,
  Reka
 
  On Fri, Jun 1, 2012 at 10:34 AM, Sanjeewa Malalgoda
  sanje...@wso2.com
  wrote:
   Any way we cant use passthrogh transport for LB because
   it has other bug which was discussed on a separate thread.
   And dushan is currently looking onto it. so we have to focus
   on nhttp at the moment.
  
   Thanks.
  
   On Fri, Jun 1, 2012 at 10:27 AM, Kasun Indrasiri
   ka...@wso2.com
   wrote:
  
   Hi Reka,
  
   I'm working on a fix for this issue.
  
  
   On Fri, Jun 1, 2012 at 10:25 AM, Reka Thirunavukkarasu
   r...@wso2.com
   wrote:
  
   Hi,
  
   We have configured LB with AS in order to check the context
   mapping
   to
   webapps. Since the context mapping is done through virtual
   host in
   AS,
   we should be able to access virtual host (say
   testapp.wso2.com)
   from
   browser with the url: https://testapp.wso2.com:9443/ where
   9443 is
   the
   AS-https port.
  
   So, when we have LB in front of AS, let's say 8280 is LB-https
   port,
   then we can access the virtual host from LB like
   https://testapp.wso2.com:8280/. But this falis, and
   redirecting to
   carbon management consloe, since the Host header is
   overwritten
   with
   host name from url (Eg: loacalhost) instead of actual host
   information.
  
   But when we checked this with LB, after few modification in
   synapse,
   Http host header is properly added. Even after that also, AS
   didn't
   receive the actual host. Also, we experienced the same issue
   with
   Nio
   and pass through transport as well. Since the host header is
   available
   at LB level, this needs further invstigation in tranport
   level.
  
   We need to resolve it, since it is a blocker for accessing
   virtual
   host.
  
   So, the jira has been created:
   https://wso2.org/jira/browse/CARBON-13377
  
   Thanks,
   Reka
  
  
  
  
   --
   Kasun Indrasiri
   Associate Technical Lead
   WSO2, Inc.; http://wso2.com
   lean.enterprise.middleware
  
   cell: +94 71 536 4128
   Blog : http://kasunpanorama.blogspot.com/
  
   ___
   Dev mailing list
   Dev@wso2.org
   http://wso2.org/cgi-bin/mailman/listinfo/dev
  
  
  
  
   --
   Sanjeewa Malalgoda
   mobile : +94 713068779
   blog :http://sanjeewamalalgoda.blogspot.com/
 
 
 
 
  --
  Kasun Indrasiri
  Associate Technical Lead
  WSO2, Inc.; http://wso2.com
  lean.enterprise.middleware

Re: [Dev] Nio and pass through transports are blocker to access virtual host in LB

2012-06-17 Thread Reka Thirunavukkarasu
Hi

Sure. I'll verify with the patch and update the thread.

Thanks,
Reka

On Fri, Jun 15, 2012 at 8:10 PM, Kasun Indrasiri ka...@wso2.com wrote:
 Hi Reka,

 Could you please verify your scenario with the attached patch. (I've tested
 it locally using tcpdump.)
 In the ESB config you have to use the following property.

 property name=REQUEST_HOST_HEADER value=www.example.org scope=axis2/


 On Tue, Jun 12, 2012 at 11:52 AM, Kasun Indrasiri ka...@wso2.com wrote:

 I have debugged in RequestTargetHost interceptor which is responsible for
 adding the host header.

 And the header is not overridden as  the following condition is not
 satisfied.
       if (!request.containsHeader(HTTP.TARGET_HOST)) {
 So, the host header is overridden in some other place down the flow.( I've
 started a thread on httpcore regarding this issue)


 On Tue, Jun 12, 2012 at 10:50 AM, Hiranya Jayathilaka hira...@wso2.com
 wrote:

 Synapse doesn't have much control over this. Host header is set by HTTP
 Core protocol handlers, as it's a HTTP protocol requirement. We should debug
 into the equestTargetHost
 (http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/protocol/RequestTargetHost.html)
 and see what's going on there.

 Thanks,
 Hiranya


 On Tue, Jun 12, 2012 at 10:01 AM, Kasun Indrasiri ka...@wso2.com wrote:

 I did the fix from synapse level, but still the value written as the
 host is overridden from http-core. I'm investigating on this and will
 provide a solution today,


 On Mon, Jun 11, 2012 at 11:34 AM, Reka Thirunavukkarasu r...@wso2.com
 wrote:

 Hi Kasun,

 Can we get some update regarding the issue, since we are highly
 depending on the virtual host in AS? Does it require more underlying
 change?

 Thanks,
 Reka

 On Fri, Jun 1, 2012 at 10:34 AM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:
  Any way we cant use passthrogh transport for LB because
  it has other bug which was discussed on a separate thread.
  And dushan is currently looking onto it. so we have to focus
  on nhttp at the moment.
 
  Thanks.
 
  On Fri, Jun 1, 2012 at 10:27 AM, Kasun Indrasiri ka...@wso2.com
  wrote:
 
  Hi Reka,
 
  I'm working on a fix for this issue.
 
 
  On Fri, Jun 1, 2012 at 10:25 AM, Reka Thirunavukkarasu
  r...@wso2.com
  wrote:
 
  Hi,
 
  We have configured LB with AS in order to check the context mapping
  to
  webapps. Since the context mapping is done through virtual host in
  AS,
  we should be able to access virtual host (say testapp.wso2.com)
  from
  browser with the url: https://testapp.wso2.com:9443/ where 9443 is
  the
  AS-https port.
 
  So, when we have LB in front of AS, let's say 8280 is LB-https
  port,
  then we can access the virtual host from LB like
  https://testapp.wso2.com:8280/. But this falis, and redirecting to
  carbon management consloe, since the Host header is overwritten
  with
  host name from url (Eg: loacalhost) instead of actual host
  information.
 
  But when we checked this with LB, after few modification in
  synapse,
  Http host header is properly added. Even after that also, AS didn't
  receive the actual host. Also, we experienced the same issue with
  Nio
  and pass through transport as well. Since the host header is
  available
  at LB level, this needs further invstigation in tranport level.
 
  We need to resolve it, since it is a blocker for accessing virtual
  host.
 
  So, the jira has been created:
  https://wso2.org/jira/browse/CARBON-13377
 
  Thanks,
  Reka
 
 
 
 
  --
  Kasun Indrasiri
  Associate Technical Lead
  WSO2, Inc.; http://wso2.com
  lean.enterprise.middleware
 
  cell: +94 71 536 4128
  Blog : http://kasunpanorama.blogspot.com/
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Sanjeewa Malalgoda
  mobile : +94 713068779
  blog :http://sanjeewamalalgoda.blogspot.com/




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 Hiranya Jayathilaka
 Senior Technical Lead;
 WSO2 Inc.;  http://wso2.org
 E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
 Blog: http://techfeast-hiranya.blogspot.com




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in UrlMapperAdminService - These are exposed not only on HTTPS

2012-06-12 Thread Reka Thirunavukkarasu
Hi

Sure.I'll look into this and update the thread..

Thanks,
Reka

On Tue, Jun 12, 2012 at 3:52 PM, Kasun Gajasinghe kas...@wso2.com wrote:
 Hi,

 I'm getting the following error when running AppServer integration tests.
 Can anyone have a look at this please?

 Thanks,
 --KasunG


 Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 161.557 sec
  FAILURE!
 verifyAdminServiceSecurity(org.wso2.appserver.integration.tests.SecurityVerificationTestCase)
  Time elapsed: 0.095 sec   FAILURE!
 org.apache.axis2.AxisFault: The following admin services are vulnerable:
 1. UrlMapperAdminService [https,http,]
  .
         at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
         at
 org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)
         at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
         at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
         at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
         at
 org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:475)
         at
 org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:456)
         at
 org.wso2.carbon.integration.framework.SecurityVerificationTest.verifyAdminServiceSecurity(SecurityVerificationTest.java:59)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at
 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
         at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
         at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
         at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
         at
 org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
         at
 org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
         at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
         at org.testng.TestRunner.privateRun(TestRunner.java:757)
         at org.testng.TestRunner.run(TestRunner.java:608)
         at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
         at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
         at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
         at org.testng.SuiteRunner.run(SuiteRunner.java:240)
         at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
         at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
         at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
         at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
         at org.testng.TestNG.run(TestNG.java:999)
         at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:76)
         at
 org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
         at
 org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
         at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


 --
 Kasun Gajasinghe
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com ,
 email: kasung AT spamfree wso2.com cell: +94 (77) 678-0813
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://blog.kasunbg.org
 twitter: http://twitter.com/kasunbg

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


  1   2   >