Re: [Dev] [ESB] JavaScript API for Script mediator

2014-06-02 Thread Ramindu Deshapriya
Hi Dushan,

Thanks. It seems that the functions available via the Rhino JAR are
available within the Script mediator as well.

However, when sending a payload with integer values, the integers seem to be
rewritten in to the payload as float values. 

In the following instance;

if (paymentMethodRef != null  paymentMethodRef !=   paymentMethodRef
!= null) {payload.PaymentMethodRef
= eval((+ paymentMethodRef +));
var numString = 5.0;
var parsedInt = parseInt(numString,10);
print(parsedInt);   
payload.PaymentMethodRef.value = parsedInt; 
}

The print function prints 5 but the payload sent is
PaymentMethodRef:{value:5.0} and the endpoint rejects it.

Is there some other functionality that is causing this? 

Thanks. 



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-JavaScript-API-for-Script-mediator-tp97411p97611.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BAM mediator and streams definitions.

2014-06-02 Thread Sinthuja Ragendran
Hi kishanthan,

In BAM 2.4.0, you can define the stream definition with any
publisher/agent, and then you can add the incremental processing later on
for the existing stream. But in BAM 2.4.1, it has been broken and i
experienced exception as mentioned in [1], this will be resolved during the
restart of the BAM Receiver node.

We'll fix this in the next release.

[1] https://wso2.org/jira/browse/BAM-1643

Thanks,
Sinthuja.


On Sat, May 31, 2014 at 4:38 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 Hi,

 When using BAM mediator, there is little control over how the streams gets
 defined. This will make some inconsistent behavior when we try to use some
 features at BAM side. For example, how to use the incremental analysis
 feature[1] for streams which are created when using BAM mediator?

 The doc mentions about how this feature can be enabled using toolbox
 approach when defining streams. But with BAM mediator, the streams are
 automatically created. As a workaround, what we can do is pre-define the
 stream with toolbox and then start using BAM mediator. But this also leads
 to a situation where you will have to know the exact definition of the
 stream beforehand.

 Do we have a proper workaround for this or can we take this as an
 improvement?

 Thanks,
 Kishanthan.
 [1] https://docs.wso2.org/display/BAM241/Incremental+Analysis

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

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




-- 
*Sinthuja Rajendran*
Senior Software Engineer http://wso2.com/
WSO2, Inc.:http://wso2.com

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


Re: [Dev] Support Tomcat Virtual Hosts in WSO2 AS - issues and progress so far

2014-06-02 Thread Kasun Gajasinghe
I do not think that you should remove the default webapp deployer from
component.xml. Your should be in effect only for the additional virtual
hosts.


On Mon, Jun 2, 2014 at 9:25 AM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is working. This was due to an ip address conflict.

 Thanks,
 Nipuni


 On Sun, Jun 1, 2014 at 3:41 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 I am working on the $subject. According to the current implementation
 users has to put webapps inside repositro/depolment/server/webapss and
 access them via host name localhost only. I have modified
 carbontomcat.java to deploy webapps in a location defined inside appBase of
 virtualhosts. But this needs to add an entry to component.xml to direct the
 name of webapps directory to the relevent WebAppDeployer class. (Adding an
 entry to component.xml each time a new appBase is created is not preferred)

 I have tried following steps when adding deployers to deployment engine
 without reading component.xml file. When reading component.xml file, the
 Axis2DeployerRegistry class adds the deployers and relevant directory names
 to a deploymentEngine. In order to skip reading component.xml, deployment
 engine should be updated using the virtual host appBase values and deployer
 names.

 *Scenario 1*


1. I created a new service component class inside
/org/wso2/carbon/webapp/deployer/internal/ and added following,

  CarbonTomcatService carbonTomcatService
 = DataHolder.getCarbonTomcatService();
  DeploymentEngine deploymentEngine =
 (DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();

  This gave null values to both variables.
 (serverConfigContext and carbonTomcatService variables initialize
 inside service components in /org/wso2/carbon/webapp/mgt/internal. So it
 seems the newly created service component classes executes first)

 *Scenario 2*

1.  I have created a new OSGI bundle which tries to read above two
variables inside its Activator class and service component class. I could
read proper values inside the service component class and update 
 deployment
engine. But according to logs, this executes after starting the wso2
carbon.  But, the following statement does deploy the webapps inside the
appBase.

 deploymentEngine.addDeployer(deployer,
 directory, extension);

 But I am able to access webapps using host name localhost only,  What
 could be the issue here?


 Thanks,

 Nipuni


 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




-- 

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


Re: [Dev] [Architecture] Introducing JSR-223 into Jaggery along with Nashorn Support

2014-06-02 Thread madhuka udantha
Hi, Ruchira

'app.server()' is similar for existing  'application.serve()' in jaggery ,
isn't it regard functionality?

Here[1] is sample for application.serve().

[1]
https://github.com/Madhuka/MadhukaBlogRepo/tree/master/SampleApps/JaggeryApps/service/



On Sun, Jun 1, 2014 at 12:58 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi All,

 We have started the integration of JSR-223 i.e. javax.script API with
 Jaggery. Sorry for the lengthy mail, but this is just to share the status
 and get your all kinds of feedbacks. A Jaggery fork and a distribution with
 the following improvements can be found at [1] and [2] respectively. In
 case you want to try this out before sharing your feedbacks, you can
 download a Jaggery distribution with all the above implementations at [2].
 It consists of 5 demo apps. (At the moment, this has been tested only on
 linux/mac and you will have to run this either on JDK 7 or 8. As JDK 6
 supports only an older version of ECMAScript, this pack will not work. But
 in order to get the support even on JDK 6, we will have to pack the JSR-223
 rhino implementation with a rhino 1.7 version, following a similar way
 described at [7])

 With the integration with JSR-223, we had to and thought to do a few
 changes and improvements to Jaggery which will be detailed below. BUT,
 please note that, every existing Jaggery application will work as it is,
 independent of those improvements. i.e. With a version field in
 jaggery.conf, we internally decide, whether to go with the newer version.

 *Key Decisions*

1. JSR-223 support
   - With this, Jaggery will use Nashorn from JDK8 onwards and will
   fallback to JDK's embeded Rhino version with JDK7 or below.
2. Saying good bye for hostobjects
- Hostobjects are a concept of Rhino and it was needed to follow
   certain conventions when you write your hostobjects. With JSR-223, we
   cannot have it anymore. But, instead of that, you can refactor only the
   hostobject *.java class into *.js file which contains the Java code and
   plug it.
   3. Dropping E4X support
- E4X was an extension to ECMAScripts and usage of E4X is being
   deprecated in many places. Also, AFAIK, there is no support for E4X in
   nashorn. This will be replaced by a Axiom/DOM like modules. i.e. without
   altering the spec.
   4. Except the bare minimal, everything else is separated into
commonjs modules
- This will give much more flexibility and extendability for Jaggery.
   i.e. In order to extend Jaggery, developers don't need to be Java
   developers anymore
   5. Introduction of app.server() method
- In the current version, routing mechanism has been implemented by
   Jaggery core and there is no way to intercept that. This makes it 
 harder to
   write cooler modules for Jaggery, such as express, connect for node. 
 Using
   app.server(), Jaggery core delegates request serving to a single 
 callback.
   But, via that callback, users can call their own routing modules and do
   whatever they want. You can even implement the current *.jag model, on 
 top
   of app.server()[refer demo3]. Also, we have written an express like 
 routing
   framework which can be used to define REST APIs very easily through
   Jaggery. This will be a good alternative for JAX-RS developers too.
   6. Servlet 3.0 Async support
- Another key feature is utilizing Async servlet support. So,
   concurrency will not be restricted by the available thread count 
 anymore.
   7. CommonJS module system
   - At the moment, Jaggery has its own module system. Instead of
   that, we though of going ahead with commonjs module specification. With
   this, commonjs compliant modules will be able to use within Jaggery. 
 i.e.
   Any node module which doesn't depend on node core APIs, can be used in
   Jaggery as well, without doing any change.
   8. Module versioning and nested module support
   - Another improvement is, adding module versioning support for
   Jaggery modules. i.e. x app(or module) can use y1 version of y module,
   while another z app(or module) can use y2 without conflicting each 
 other.
   For this too, we are also using package.json as per the commonjs
   specification
   9. Support for deploying directly on top of tomcat
   - With the above Jaggery core minimisations, a Jaggery app can be
   even deployed on top of tomcat, subjecting to a WEB-INF directory which
   contains jaggery core jars and web.xml
   10. Improved command line tool
   - clamshell-cli based command line tool with history support etc.
   With this, we expect people to write more command line tools such as 
 built
   tools, package managers etc. using Jaggery

 *Demo Apps*

1. https://github.com/ruchiraw/jaggery/tree/master/apps/demo1
- this is the bare minimal with app.server()
   - can be accessed 

Re: [Dev] [Architecture] Introducing JSR-223 into Jaggery along with Nashorn Support

2014-06-02 Thread Ruchira Wageesha
Yes, it is the same, except application object itself is replaced by a
module.


On Mon, Jun 2, 2014 at 12:33 PM, madhuka udantha madhukaudan...@gmail.com
wrote:

 Hi, Ruchira

 'app.server()' is similar for existing  'application.serve()' in jaggery ,
 isn't it regard functionality?

 Here[1] is sample for application.serve().

 [1]
 https://github.com/Madhuka/MadhukaBlogRepo/tree/master/SampleApps/JaggeryApps/service/



 On Sun, Jun 1, 2014 at 12:58 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi All,

 We have started the integration of JSR-223 i.e. javax.script API with
 Jaggery. Sorry for the lengthy mail, but this is just to share the status
 and get your all kinds of feedbacks. A Jaggery fork and a distribution with
 the following improvements can be found at [1] and [2] respectively. In
 case you want to try this out before sharing your feedbacks, you can
 download a Jaggery distribution with all the above implementations at [2].
 It consists of 5 demo apps. (At the moment, this has been tested only on
 linux/mac and you will have to run this either on JDK 7 or 8. As JDK 6
 supports only an older version of ECMAScript, this pack will not work. But
 in order to get the support even on JDK 6, we will have to pack the JSR-223
 rhino implementation with a rhino 1.7 version, following a similar way
 described at [7])

 With the integration with JSR-223, we had to and thought to do a few
 changes and improvements to Jaggery which will be detailed below. BUT,
 please note that, every existing Jaggery application will work as it is,
 independent of those improvements. i.e. With a version field in
 jaggery.conf, we internally decide, whether to go with the newer version.

 *Key Decisions*

1. JSR-223 support
   - With this, Jaggery will use Nashorn from JDK8 onwards and will
   fallback to JDK's embeded Rhino version with JDK7 or below.
2. Saying good bye for hostobjects
- Hostobjects are a concept of Rhino and it was needed to follow
   certain conventions when you write your hostobjects. With JSR-223, we
   cannot have it anymore. But, instead of that, you can refactor only the
   hostobject *.java class into *.js file which contains the Java code and
   plug it.
   3. Dropping E4X support
- E4X was an extension to ECMAScripts and usage of E4X is being
   deprecated in many places. Also, AFAIK, there is no support for E4X in
   nashorn. This will be replaced by a Axiom/DOM like modules. i.e. 
 without
   altering the spec.
   4. Except the bare minimal, everything else is separated into
commonjs modules
- This will give much more flexibility and extendability for Jaggery.
   i.e. In order to extend Jaggery, developers don't need to be Java
   developers anymore
   5. Introduction of app.server() method
- In the current version, routing mechanism has been implemented by
   Jaggery core and there is no way to intercept that. This makes it 
 harder to
   write cooler modules for Jaggery, such as express, connect for node. 
 Using
   app.server(), Jaggery core delegates request serving to a single 
 callback.
   But, via that callback, users can call their own routing modules and do
   whatever they want. You can even implement the current *.jag model, on 
 top
   of app.server()[refer demo3]. Also, we have written an express like 
 routing
   framework which can be used to define REST APIs very easily through
   Jaggery. This will be a good alternative for JAX-RS developers too.
   6. Servlet 3.0 Async support
- Another key feature is utilizing Async servlet support. So,
   concurrency will not be restricted by the available thread count 
 anymore.
   7. CommonJS module system
   - At the moment, Jaggery has its own module system. Instead of
   that, we though of going ahead with commonjs module specification. With
   this, commonjs compliant modules will be able to use within Jaggery. 
 i.e.
   Any node module which doesn't depend on node core APIs, can be used in
   Jaggery as well, without doing any change.
   8. Module versioning and nested module support
   - Another improvement is, adding module versioning support for
   Jaggery modules. i.e. x app(or module) can use y1 version of y module,
   while another z app(or module) can use y2 without conflicting each 
 other.
   For this too, we are also using package.json as per the commonjs
   specification
   9. Support for deploying directly on top of tomcat
   - With the above Jaggery core minimisations, a Jaggery app can be
   even deployed on top of tomcat, subjecting to a WEB-INF directory which
   contains jaggery core jars and web.xml
   10. Improved command line tool
   - clamshell-cli based command line tool with history support etc.
   With this, we expect people to write more command line tools such as 
 built
   tools, package managers 

[Dev] Running script commands after wso2server.sh is executed in a single script file

2014-06-02 Thread Sajini De Silva
Hi,

I want to start the esb server from a script file and execute some check-in
client commands from the same script, but once wso2server.sh is executed in
the script it never return to the next line where other script commands are
placed. Therefore my other script commands are not executed.

Any suggestions on why it is happening?

Thank you,
Sajini.
-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Running script commands after wso2server.sh is executed in a single script file

2014-06-02 Thread Sajini De Silva
Hi,

This is what my script file looks like,

PRG=$0

while [ -h $PRG ]; do
echo $PRG
  ls=`ls -ld $PRG`
  link=`expr $ls : '.*- \(.*\)$'`
  if expr $link : '.*/.*'  /dev/null; then
PRG=$link
  else
PRG=`dirname $PRG`/$link
  fi
done

# Get standard environment variables
PRGDIR=`dirname $PRG`

# - Process the input command
--
CMD=

 CMD=$CMD -Desb.sample=cloud
-Dcarbon.registry.root=../cloud/esb-samples/scloud
#sh $PRGDIR/wso2server.sh$CMD
sh ./wso2server.sh
echo The script exited with status $?
[ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
echo $CARBON_HOME
sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p admin

cp $CARBON_HOME/repository/cloud/profile1 _system/config/bamServerProfiles/
cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
sh ./checkin-client.sh add _system/governance/oidlist.txt
sh ./checkin-client.sh ci -u admin -p admin



On Mon, Jun 2, 2014 at 1:36 PM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 I want to start the esb server from a script file and execute some
 check-in client commands from the same script, but once wso2server.sh is
 executed in the script it never return to the next line where other script
 commands are placed. Therefore my other script commands are not executed.

 Any suggestions on why it is happening?

 Thank you,
 Sajini.
 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva




-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support Tomcat Virtual Hosts in WSO2 AS - issues and progress so far

2014-06-02 Thread Nipuni Perera
I didn't change the default deployer. I only read appBase values of virtual
hosts and added them to the deployment engine. But the webapp deployment
take place just after management console is started.

Thanks,
Nipuni


On Mon, Jun 2, 2014 at 12:28 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 I do not think that you should remove the default webapp deployer from
 component.xml. Your should be in effect only for the additional virtual
 hosts.


 On Mon, Jun 2, 2014 at 9:25 AM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is working. This was due to an ip address conflict.

 Thanks,
 Nipuni


 On Sun, Jun 1, 2014 at 3:41 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 I am working on the $subject. According to the current implementation
 users has to put webapps inside repositro/depolment/server/webapss and
 access them via host name localhost only. I have modified
 carbontomcat.java to deploy webapps in a location defined inside appBase of
 virtualhosts. But this needs to add an entry to component.xml to direct the
 name of webapps directory to the relevent WebAppDeployer class. (Adding an
 entry to component.xml each time a new appBase is created is not preferred)

 I have tried following steps when adding deployers to deployment engine
 without reading component.xml file. When reading component.xml file, the
 Axis2DeployerRegistry class adds the deployers and relevant directory names
 to a deploymentEngine. In order to skip reading component.xml, deployment
 engine should be updated using the virtual host appBase values and deployer
 names.

 *Scenario 1*


1. I created a new service component class inside
/org/wso2/carbon/webapp/deployer/internal/ and added following,

  CarbonTomcatService carbonTomcatService
 = DataHolder.getCarbonTomcatService();
  DeploymentEngine deploymentEngine =
 (DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();

  This gave null values to both variables.
 (serverConfigContext and carbonTomcatService variables initialize
 inside service components in /org/wso2/carbon/webapp/mgt/internal. So it
 seems the newly created service component classes executes first)

 *Scenario 2*

1.  I have created a new OSGI bundle which tries to read above two
variables inside its Activator class and service component class. I could
read proper values inside the service component class and update 
 deployment
engine. But according to logs, this executes after starting the wso2
carbon.  But, the following statement does deploy the webapps inside the
appBase.

 deploymentEngine.addDeployer(deployer,
 directory, extension);

 But I am able to access webapps using host name localhost only,  What
 could be the issue here?


 Thanks,

 Nipuni


 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680
http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Running script commands after wso2server.sh is executed in a single script file

2014-06-02 Thread Sajini De Silva
Hi,

Thank you for the quick reply chirs.

I figured out that this is happening because wso2server.sh command does not
release the terminal. Therefore i edited the code like below and now its
working.

sh ./wso2server.sh 
sleep 20
echo The script exited with status $?
[ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
echo $CARBON_HOME
sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p admin

cp $CARBON_HOME/repository/cloud/profile1 _system/config/bamServerProfiles/
cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
sh ./checkin-client.sh add _system/governance/oidlist.txt
sh ./checkin-client.sh ci -u admin -p admin


Does anyone know another way of doing this without having the sleep command?

Thank you,
Sajini.



On Mon, Jun 2, 2014 at 2:02 PM, chris snow chsnow...@gmail.com wrote:

 What command in the wso2server.sh script failing?  You could use the
 '-x' flag to debug:

 ...
 CMD=$CMD -Desb.sample=cloud
 -Dcarbon.registry.root=../cloud/esb-samples/scloud
 #sh $PRGDIR/wso2server.sh$CMD
 bash -x ./wso2server.sh
 echo The script exited with status $?
 ...



 On Mon, Jun 2, 2014 at 9:13 AM, Sajini De Silva saj...@wso2.com wrote:
  Hi,
 
  This is what my script file looks like,
 
  PRG=$0
 
  while [ -h $PRG ]; do
  echo $PRG
ls=`ls -ld $PRG`
link=`expr $ls : '.*- \(.*\)$'`
if expr $link : '.*/.*'  /dev/null; then
  PRG=$link
else
  PRG=`dirname $PRG`/$link
fi
  done
 
  # Get standard environment variables
  PRGDIR=`dirname $PRG`
 
  # - Process the input command
  --
  CMD=
 
   CMD=$CMD -Desb.sample=cloud
  -Dcarbon.registry.root=../cloud/esb-samples/scloud
  #sh $PRGDIR/wso2server.sh$CMD
  sh ./wso2server.sh
  echo The script exited with status $?
  [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
  echo $CARBON_HOME
  sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
 admin
 
  cp $CARBON_HOME/repository/cloud/profile1
 _system/config/bamServerProfiles/
  cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
  sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
  sh ./checkin-client.sh add _system/governance/oidlist.txt
  sh ./checkin-client.sh ci -u admin -p admin
 
 
 
  On Mon, Jun 2, 2014 at 1:36 PM, Sajini De Silva saj...@wso2.com wrote:
 
  Hi,
 
  I want to start the esb server from a script file and execute some
  check-in client commands from the same script, but once wso2server.sh is
  executed in the script it never return to the next line where other
 script
  commands are placed. Therefore my other script commands are not
 executed.
 
  Any suggestions on why it is happening?
 
  Thank you,
  Sajini.
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
 
 
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 



 --
 Check out my professional profile and connect with me on LinkedIn.
 http://lnkd.in/cw5k69




-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Introducing JSR-223 into Jaggery along with Nashorn Support

2014-06-02 Thread madhuka udantha
On Mon, Jun 2, 2014 at 12:46 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Yes, it is the same, except application object



 itself is replaced by a module.

+1



 On Mon, Jun 2, 2014 at 12:33 PM, madhuka udantha madhukaudan...@gmail.com
  wrote:

 Hi, Ruchira

 'app.server()' is similar for existing  'application.serve()' in jaggery
 , isn't it regard functionality?

 Here[1] is sample for application.serve().

 [1]
 https://github.com/Madhuka/MadhukaBlogRepo/tree/master/SampleApps/JaggeryApps/service/



 On Sun, Jun 1, 2014 at 12:58 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi All,

 We have started the integration of JSR-223 i.e. javax.script API with
 Jaggery. Sorry for the lengthy mail, but this is just to share the status
 and get your all kinds of feedbacks. A Jaggery fork and a distribution with
 the following improvements can be found at [1] and [2] respectively. In
 case you want to try this out before sharing your feedbacks, you can
 download a Jaggery distribution with all the above implementations at [2].
 It consists of 5 demo apps. (At the moment, this has been tested only on
 linux/mac and you will have to run this either on JDK 7 or 8. As JDK 6
 supports only an older version of ECMAScript, this pack will not work. But
 in order to get the support even on JDK 6, we will have to pack the JSR-223
 rhino implementation with a rhino 1.7 version, following a similar way
 described at [7])

 With the integration with JSR-223, we had to and thought to do a few
 changes and improvements to Jaggery which will be detailed below. BUT,
 please note that, every existing Jaggery application will work as it is,
 independent of those improvements. i.e. With a version field in
 jaggery.conf, we internally decide, whether to go with the newer version.

 *Key Decisions*

1. JSR-223 support
   - With this, Jaggery will use Nashorn from JDK8 onwards and will
   fallback to JDK's embeded Rhino version with JDK7 or below.
2. Saying good bye for hostobjects
- Hostobjects are a concept of Rhino and it was needed to follow
   certain conventions when you write your hostobjects. With JSR-223, we
   cannot have it anymore. But, instead of that, you can refactor only 
 the
   hostobject *.java class into *.js file which contains the Java code 
 and
   plug it.
   3. Dropping E4X support
- E4X was an extension to ECMAScripts and usage of E4X is being
   deprecated in many places. Also, AFAIK, there is no support for E4X in
   nashorn. This will be replaced by a Axiom/DOM like modules. i.e. 
 without
   altering the spec.
   4. Except the bare minimal, everything else is separated into
commonjs modules
- This will give much more flexibility and extendability for
   Jaggery. i.e. In order to extend Jaggery, developers don't need to be 
 Java
   developers anymore
   5. Introduction of app.server() method
- In the current version, routing mechanism has been implemented by
   Jaggery core and there is no way to intercept that. This makes it 
 harder to
   write cooler modules for Jaggery, such as express, connect for node. 
 Using
   app.server(), Jaggery core delegates request serving to a single 
 callback.
   But, via that callback, users can call their own routing modules and 
 do
   whatever they want. You can even implement the current *.jag model, 
 on top
   of app.server()[refer demo3]. Also, we have written an express like 
 routing
   framework which can be used to define REST APIs very easily through
   Jaggery. This will be a good alternative for JAX-RS developers too.
   6. Servlet 3.0 Async support
- Another key feature is utilizing Async servlet support. So,
   concurrency will not be restricted by the available thread count 
 anymore.
   7. CommonJS module system
   - At the moment, Jaggery has its own module system. Instead of
   that, we though of going ahead with commonjs module specification. 
 With
   this, commonjs compliant modules will be able to use within Jaggery. 
 i.e.
   Any node module which doesn't depend on node core APIs, can be used in
   Jaggery as well, without doing any change.
   8. Module versioning and nested module support
   - Another improvement is, adding module versioning support for
   Jaggery modules. i.e. x app(or module) can use y1 version of y module,
   while another z app(or module) can use y2 without conflicting each 
 other.
   For this too, we are also using package.json as per the commonjs
   specification
   9. Support for deploying directly on top of tomcat
   - With the above Jaggery core minimisations, a Jaggery app can be
   even deployed on top of tomcat, subjecting to a WEB-INF directory 
 which
   contains jaggery core jars and web.xml
   10. Improved command line tool
   - clamshell-cli based command line tool with history support etc.
   With 

Re: [Dev] Running script commands after wso2server.sh is executed in a single script file

2014-06-02 Thread Krishantha Samaraweera
Hi,

On Mon, Jun 2, 2014 at 2:23 PM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 Thank you for the quick reply chirs.

 I figured out that this is happening because wso2server.sh command does
 not release the terminal. Therefore i edited the code like below and now
 its working.

 sh ./wso2server.sh 
 sleep 20

 echo The script exited with status $?
 [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
 echo $CARBON_HOME
 sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
 admin

 cp $CARBON_HOME/repository/cloud/profile1 _system/config/bamServerProfiles/
 cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
 sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
 sh ./checkin-client.sh add _system/governance/oidlist.txt
 sh ./checkin-client.sh ci -u admin -p admin


 Does anyone know another way of doing this without having the sleep
 command?


Wait for the port to open would help

while ! echo exit | nc localhost 9445; do sleep 10; done

Thanks,
Krishantha.


 Thank you,
 Sajini.



 On Mon, Jun 2, 2014 at 2:02 PM, chris snow chsnow...@gmail.com wrote:

 What command in the wso2server.sh script failing?  You could use the
 '-x' flag to debug:

 ...

 CMD=$CMD -Desb.sample=cloud
 -Dcarbon.registry.root=../cloud/esb-samples/scloud
 #sh $PRGDIR/wso2server.sh$CMD
 bash -x ./wso2server.sh

 echo The script exited with status $?
 ...




 On Mon, Jun 2, 2014 at 9:13 AM, Sajini De Silva saj...@wso2.com wrote:
  Hi,
 
  This is what my script file looks like,
 
  PRG=$0
 
  while [ -h $PRG ]; do
  echo $PRG
ls=`ls -ld $PRG`
link=`expr $ls : '.*- \(.*\)$'`
if expr $link : '.*/.*'  /dev/null; then
  PRG=$link
else
  PRG=`dirname $PRG`/$link
fi
  done
 
  # Get standard environment variables
  PRGDIR=`dirname $PRG`
 
  # - Process the input command
  --
  CMD=
 
   CMD=$CMD -Desb.sample=cloud
  -Dcarbon.registry.root=../cloud/esb-samples/scloud
  #sh $PRGDIR/wso2server.sh$CMD
  sh ./wso2server.sh
  echo The script exited with status $?
  [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
  echo $CARBON_HOME
  sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
 admin
 
  cp $CARBON_HOME/repository/cloud/profile1
 _system/config/bamServerProfiles/
  cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
  sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
  sh ./checkin-client.sh add _system/governance/oidlist.txt
  sh ./checkin-client.sh ci -u admin -p admin
 
 
 
  On Mon, Jun 2, 2014 at 1:36 PM, Sajini De Silva saj...@wso2.com
 wrote:
 
  Hi,
 
  I want to start the esb server from a script file and execute some
  check-in client commands from the same script, but once wso2server.sh
 is
  executed in the script it never return to the next line where other
 script
  commands are placed. Therefore my other script commands are not
 executed.
 
  Any suggestions on why it is happening?
 
  Thank you,
  Sajini.
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
 
 
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 



 --
 Check out my professional profile and connect with me on LinkedIn.
 http://lnkd.in/cw5k69




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva


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




-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support Tomcat Virtual Hosts in WSO2 AS - issues and progress so far

2014-06-02 Thread Kasun Gajasinghe
On Mon, Jun 2, 2014 at 2:05 PM, Nipuni Perera nip...@wso2.com wrote:

 I didn't change the default deployer. I only read appBase values of
 virtual hosts and added them to the deployment engine. But the webapp
 deployment take place just after management console is started.


This happens if the deployers got added after axis2 has started IIRC. So,
we need to make sure of the order. But unfortunately, we do not have a
proper way to force this order currently.

@Sameera, any ideas?


 Thanks,
 Nipuni


 On Mon, Jun 2, 2014 at 12:28 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 I do not think that you should remove the default webapp deployer from
 component.xml. Your should be in effect only for the additional virtual
 hosts.


 On Mon, Jun 2, 2014 at 9:25 AM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is working. This was due to an ip address conflict.

 Thanks,
 Nipuni


 On Sun, Jun 1, 2014 at 3:41 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 I am working on the $subject. According to the current implementation
 users has to put webapps inside repositro/depolment/server/webapss and
 access them via host name localhost only. I have modified
 carbontomcat.java to deploy webapps in a location defined inside appBase of
 virtualhosts. But this needs to add an entry to component.xml to direct the
 name of webapps directory to the relevent WebAppDeployer class. (Adding an
 entry to component.xml each time a new appBase is created is not preferred)

 I have tried following steps when adding deployers to deployment engine
 without reading component.xml file. When reading component.xml file, the
 Axis2DeployerRegistry class adds the deployers and relevant directory names
 to a deploymentEngine. In order to skip reading component.xml, deployment
 engine should be updated using the virtual host appBase values and deployer
 names.

 *Scenario 1*


1. I created a new service component class inside
/org/wso2/carbon/webapp/deployer/internal/ and added following,

  CarbonTomcatService
 carbonTomcatService = DataHolder.getCarbonTomcatService();
  DeploymentEngine deploymentEngine =
 (DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();

  This gave null values to both variables.
 (serverConfigContext and carbonTomcatService variables initialize
 inside service components in /org/wso2/carbon/webapp/mgt/internal. So it
 seems the newly created service component classes executes first)

 *Scenario 2*

1.  I have created a new OSGI bundle which tries to read above two
variables inside its Activator class and service component class. I 
 could
read proper values inside the service component class and update 
 deployment
engine. But according to logs, this executes after starting the wso2
carbon.  But, the following statement does deploy the webapps inside the
appBase.

 deploymentEngine.addDeployer(deployer,
 directory, extension);

 But I am able to access webapps using host name localhost only,  What
 could be the issue here?


 Thanks,

 Nipuni


 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




-- 

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


Re: [Dev] Running script commands after wso2server.sh is executed in a single script file

2014-06-02 Thread Sajini De Silva
Hi,

Thank you. It worked.

Thank you,
Sajini.


On Mon, Jun 2, 2014 at 2:33 PM, Krishantha Samaraweera krishan...@wso2.com
wrote:


 Hi,

 On Mon, Jun 2, 2014 at 2:23 PM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 Thank you for the quick reply chirs.

 I figured out that this is happening because wso2server.sh command does
 not release the terminal. Therefore i edited the code like below and now
 its working.

 sh ./wso2server.sh 
 sleep 20

 echo The script exited with status $?
 [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
 echo $CARBON_HOME
 sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
 admin

 cp $CARBON_HOME/repository/cloud/profile1
 _system/config/bamServerProfiles/
 cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
 sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
 sh ./checkin-client.sh add _system/governance/oidlist.txt
 sh ./checkin-client.sh ci -u admin -p admin


 Does anyone know another way of doing this without having the sleep
 command?


 Wait for the port to open would help

 while ! echo exit | nc localhost 9445; do sleep 10; done

 Thanks,
 Krishantha.


 Thank you,
 Sajini.



 On Mon, Jun 2, 2014 at 2:02 PM, chris snow chsnow...@gmail.com wrote:

 What command in the wso2server.sh script failing?  You could use the
 '-x' flag to debug:

 ...

 CMD=$CMD -Desb.sample=cloud
 -Dcarbon.registry.root=../cloud/esb-samples/scloud
 #sh $PRGDIR/wso2server.sh$CMD
 bash -x ./wso2server.sh

 echo The script exited with status $?
 ...




 On Mon, Jun 2, 2014 at 9:13 AM, Sajini De Silva saj...@wso2.com wrote:
  Hi,
 
  This is what my script file looks like,
 
  PRG=$0
 
  while [ -h $PRG ]; do
  echo $PRG
ls=`ls -ld $PRG`
link=`expr $ls : '.*- \(.*\)$'`
if expr $link : '.*/.*'  /dev/null; then
  PRG=$link
else
  PRG=`dirname $PRG`/$link
fi
  done
 
  # Get standard environment variables
  PRGDIR=`dirname $PRG`
 
  # - Process the input command
  --
  CMD=
 
   CMD=$CMD -Desb.sample=cloud
  -Dcarbon.registry.root=../cloud/esb-samples/scloud
  #sh $PRGDIR/wso2server.sh$CMD
  sh ./wso2server.sh
  echo The script exited with status $?
  [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
  echo $CARBON_HOME
  sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
 admin
 
  cp $CARBON_HOME/repository/cloud/profile1
 _system/config/bamServerProfiles/
  cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
  sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
  sh ./checkin-client.sh add _system/governance/oidlist.txt
  sh ./checkin-client.sh ci -u admin -p admin
 
 
 
  On Mon, Jun 2, 2014 at 1:36 PM, Sajini De Silva saj...@wso2.com
 wrote:
 
  Hi,
 
  I want to start the esb server from a script file and execute some
  check-in client commands from the same script, but once wso2server.sh
 is
  executed in the script it never return to the next line where other
 script
  commands are placed. Therefore my other script commands are not
 executed.
 
  Any suggestions on why it is happening?
 
  Thank you,
  Sajini.
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
 
 
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 



 --
 Check out my professional profile and connect with me on LinkedIn.
 http://lnkd.in/cw5k69




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva


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




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Running script commands after wso2server.sh is executed in a single script file

2014-06-02 Thread chris snow
Hi Krishantha.   This is really useful.

Does it guarantee that  the wso2 server has fully started?

On Mon, Jun 2, 2014 at 10:03 AM, Krishantha Samaraweera
krishan...@wso2.com wrote:

 Hi,

 On Mon, Jun 2, 2014 at 2:23 PM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 Thank you for the quick reply chirs.

 I figured out that this is happening because wso2server.sh command does
 not release the terminal. Therefore i edited the code like below and now its
 working.

 sh ./wso2server.sh 
 sleep 20

 echo The script exited with status $?
 [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
 echo $CARBON_HOME
 sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
 admin

 cp $CARBON_HOME/repository/cloud/profile1
 _system/config/bamServerProfiles/
 cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
 sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
 sh ./checkin-client.sh add _system/governance/oidlist.txt
 sh ./checkin-client.sh ci -u admin -p admin


 Does anyone know another way of doing this without having the sleep
 command?


 Wait for the port to open would help

 while ! echo exit | nc localhost 9445; do sleep 10; done

 Thanks,
 Krishantha.


 Thank you,
 Sajini.



 On Mon, Jun 2, 2014 at 2:02 PM, chris snow chsnow...@gmail.com wrote:

 What command in the wso2server.sh script failing?  You could use the
 '-x' flag to debug:

 ...

 CMD=$CMD -Desb.sample=cloud
 -Dcarbon.registry.root=../cloud/esb-samples/scloud
 #sh $PRGDIR/wso2server.sh$CMD
 bash -x ./wso2server.sh

 echo The script exited with status $?
 ...




 On Mon, Jun 2, 2014 at 9:13 AM, Sajini De Silva saj...@wso2.com wrote:
  Hi,
 
  This is what my script file looks like,
 
  PRG=$0
 
  while [ -h $PRG ]; do
  echo $PRG
ls=`ls -ld $PRG`
link=`expr $ls : '.*- \(.*\)$'`
if expr $link : '.*/.*'  /dev/null; then
  PRG=$link
else
  PRG=`dirname $PRG`/$link
fi
  done
 
  # Get standard environment variables
  PRGDIR=`dirname $PRG`
 
  # - Process the input command
  --
  CMD=
 
   CMD=$CMD -Desb.sample=cloud
  -Dcarbon.registry.root=../cloud/esb-samples/scloud
  #sh $PRGDIR/wso2server.sh$CMD
  sh ./wso2server.sh
  echo The script exited with status $?
  [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
  echo $CARBON_HOME
  sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
  admin
 
  cp $CARBON_HOME/repository/cloud/profile1
  _system/config/bamServerProfiles/
  cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
  sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
  sh ./checkin-client.sh add _system/governance/oidlist.txt
  sh ./checkin-client.sh ci -u admin -p admin
 
 
 
  On Mon, Jun 2, 2014 at 1:36 PM, Sajini De Silva saj...@wso2.com
  wrote:
 
  Hi,
 
  I want to start the esb server from a script file and execute some
  check-in client commands from the same script, but once wso2server.sh
  is
  executed in the script it never return to the next line where other
  script
  commands are placed. Therefore my other script commands are not
  executed.
 
  Any suggestions on why it is happening?
 
  Thank you,
  Sajini.
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
 
 
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 



 --
 Check out my professional profile and connect with me on LinkedIn.
 http://lnkd.in/cw5k69




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva


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




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




-- 
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support Tomcat Virtual Hosts in WSO2 AS - issues and progress so far

2014-06-02 Thread Nipuni Perera
Hi,

I am using DataHolder inside org.wso2.carbon.webapp.mgt to get both
ConfigurationContextService and CarbonTomcatService. I am using these
variables to get the following,


   1. get deployment engine from ConfigurationContextService   with   -
   
(DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();
   2. get virtual hosts with  -
   carbonTomcatService.getTomcat().getEngine().findChildren()

These two variables inside DataHolder get initialized via,

   1.  setCarbonTomcatService(...) method of
   WebappDeploymentServiceComponent and
   2.  setConfigurationContextService(...) method of
   WebappManagementServiceComponent classes.

From the above two methods,  setCarbonTomcatService(...) sets its value
first. setConfigurationContextService(...) set its value after Management
console is started. Therefore webapps inside the virtual hosts appBases
gets deployed accordingly.

Thanks,
Nipuni


On Mon, Jun 2, 2014 at 2:43 PM, Kasun Gajasinghe kas...@wso2.com wrote:




 On Mon, Jun 2, 2014 at 2:05 PM, Nipuni Perera nip...@wso2.com wrote:

 I didn't change the default deployer. I only read appBase values of
 virtual hosts and added them to the deployment engine. But the webapp
 deployment take place just after management console is started.


 This happens if the deployers got added after axis2 has started IIRC. So,
 we need to make sure of the order. But unfortunately, we do not have a
 proper way to force this order currently.

 @Sameera, any ideas?


 Thanks,
 Nipuni


 On Mon, Jun 2, 2014 at 12:28 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 I do not think that you should remove the default webapp deployer from
 component.xml. Your should be in effect only for the additional virtual
 hosts.


 On Mon, Jun 2, 2014 at 9:25 AM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is working. This was due to an ip address conflict.

 Thanks,
 Nipuni


 On Sun, Jun 1, 2014 at 3:41 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 I am working on the $subject. According to the current implementation
 users has to put webapps inside repositro/depolment/server/webapss and
 access them via host name localhost only. I have modified
 carbontomcat.java to deploy webapps in a location defined inside appBase 
 of
 virtualhosts. But this needs to add an entry to component.xml to direct 
 the
 name of webapps directory to the relevent WebAppDeployer class. (Adding an
 entry to component.xml each time a new appBase is created is not 
 preferred)

 I have tried following steps when adding deployers to deployment
 engine without reading component.xml file. When reading component.xml 
 file,
 the Axis2DeployerRegistry class adds the deployers and relevant directory
 names to a deploymentEngine. In order to skip reading component.xml,
 deployment engine should be updated using the virtual host appBase values
 and deployer names.

 *Scenario 1*


1. I created a new service component class inside
/org/wso2/carbon/webapp/deployer/internal/ and added following,

  CarbonTomcatService
 carbonTomcatService = DataHolder.getCarbonTomcatService();
  DeploymentEngine deploymentEngine =
 (DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();

  This gave null values to both variables.
 (serverConfigContext and carbonTomcatService variables initialize
 inside service components in /org/wso2/carbon/webapp/mgt/internal. So it
 seems the newly created service component classes executes first)

 *Scenario 2*

1.  I have created a new OSGI bundle which tries to read above two
variables inside its Activator class and service component class. I 
 could
read proper values inside the service component class and update 
 deployment
engine. But according to logs, this executes after starting the wso2
carbon.  But, the following statement does deploy the webapps inside 
 the
appBase.

 deploymentEngine.addDeployer(deployer,
 directory, extension);

 But I am able to access webapps using host name localhost only,
 What could be the issue here?


 Thanks,

 Nipuni


 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --

 *Kasun Gajasinghe*Senior Software Engineer, 

Re: [Dev] Running script commands after wso2server.sh is executed in a single script file

2014-06-02 Thread Krishantha Samaraweera
Hi Chris,

Although the port is open it doesn't guarantee that the server is in full
operational mode. When running automated tests, we do two things to verify
the server is fully started.

1. Wait for port to open.
2. Wait for user login.

As per my observations, there is 4ms delay between port opening and
successful login. So we ignore the fail login attempts withing this 4ms
range and wait for successful login to take place before proceed with any
tests.

Thanks,
Krishantha.


On Mon, Jun 2, 2014 at 2:57 PM, chris snow chsnow...@gmail.com wrote:

 Hi Krishantha.   This is really useful.

 Does it guarantee that  the wso2 server has fully started?

 On Mon, Jun 2, 2014 at 10:03 AM, Krishantha Samaraweera
 krishan...@wso2.com wrote:
 
  Hi,
 
  On Mon, Jun 2, 2014 at 2:23 PM, Sajini De Silva saj...@wso2.com wrote:
 
  Hi,
 
  Thank you for the quick reply chirs.
 
  I figured out that this is happening because wso2server.sh command does
  not release the terminal. Therefore i edited the code like below and
 now its
  working.
 
  sh ./wso2server.sh 
  sleep 20
 
  echo The script exited with status $?
  [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
  echo $CARBON_HOME
  sh ./checkin-client.sh co https://localhost:9445/registry -u admin -p
  admin
 
  cp $CARBON_HOME/repository/cloud/profile1
  _system/config/bamServerProfiles/
  cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
  sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
  sh ./checkin-client.sh add _system/governance/oidlist.txt
  sh ./checkin-client.sh ci -u admin -p admin
 
 
  Does anyone know another way of doing this without having the sleep
  command?
 
 
  Wait for the port to open would help
 
  while ! echo exit | nc localhost 9445; do sleep 10; done
 
  Thanks,
  Krishantha.
 
 
  Thank you,
  Sajini.
 
 
 
  On Mon, Jun 2, 2014 at 2:02 PM, chris snow chsnow...@gmail.com wrote:
 
  What command in the wso2server.sh script failing?  You could use the
  '-x' flag to debug:
 
  ...
 
  CMD=$CMD -Desb.sample=cloud
  -Dcarbon.registry.root=../cloud/esb-samples/scloud
  #sh $PRGDIR/wso2server.sh$CMD
  bash -x ./wso2server.sh
 
  echo The script exited with status $?
  ...
 
 
 
 
  On Mon, Jun 2, 2014 at 9:13 AM, Sajini De Silva saj...@wso2.com
 wrote:
   Hi,
  
   This is what my script file looks like,
  
   PRG=$0
  
   while [ -h $PRG ]; do
   echo $PRG
 ls=`ls -ld $PRG`
 link=`expr $ls : '.*- \(.*\)$'`
 if expr $link : '.*/.*'  /dev/null; then
   PRG=$link
 else
   PRG=`dirname $PRG`/$link
 fi
   done
  
   # Get standard environment variables
   PRGDIR=`dirname $PRG`
  
   # - Process the input command
   --
   CMD=
  
CMD=$CMD -Desb.sample=cloud
   -Dcarbon.registry.root=../cloud/esb-samples/scloud
   #sh $PRGDIR/wso2server.sh$CMD
   sh ./wso2server.sh
   echo The script exited with status $?
   [ -z $CARBON_HOME ]  CARBON_HOME=`cd $PRGDIR/.. ; pwd`
   echo $CARBON_HOME
   sh ./checkin-client.sh co https://localhost:9445/registry -u admin
 -p
   admin
  
   cp $CARBON_HOME/repository/cloud/profile1
   _system/config/bamServerProfiles/
   cp $CARBON_HOME/repository/cloud/oidlist.txt _system/governance/
   sh ./checkin-client.sh add _system/config/bamServerProfiles/profile1
   sh ./checkin-client.sh add _system/governance/oidlist.txt
   sh ./checkin-client.sh ci -u admin -p admin
  
  
  
   On Mon, Jun 2, 2014 at 1:36 PM, Sajini De Silva saj...@wso2.com
   wrote:
  
   Hi,
  
   I want to start the esb server from a script file and execute some
   check-in client commands from the same script, but once
 wso2server.sh
   is
   executed in the script it never return to the next line where other
   script
   commands are placed. Therefore my other script commands are not
   executed.
  
   Any suggestions on why it is happening?
  
   Thank you,
   Sajini.
   --
   Sajini De SIlva
   Software Engineer; WSO2 Inc.; http://wso2.com ,
   Email: saj...@wso2.com
   Blog: http://sajinid.blogspot.com/
   Git hub profile: https://github.com/sajinidesilva
  
  
  
  
   --
   Sajini De SIlva
   Software Engineer; WSO2 Inc.; http://wso2.com ,
   Email: saj...@wso2.com
   Blog: http://sajinid.blogspot.com/
   Git hub profile: https://github.com/sajinidesilva
  
  
   ___
   Dev mailing list
   Dev@wso2.org
   http://wso2.org/cgi-bin/mailman/listinfo/dev
  
 
 
 
  --
  Check out my professional profile and connect with me on LinkedIn.
  http://lnkd.in/cw5k69
 
 
 
 
  --
  Sajini De SIlva
  Software Engineer; WSO2 Inc.; http://wso2.com ,
  Email: saj...@wso2.com
  Blog: http://sajinid.blogspot.com/
  Git hub profile: https://github.com/sajinidesilva
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Krishantha Samaraweera
  Senior Technical Lead - Test Automation
  Mobile: +94 77 7759918
  

[Dev] https://wso2.org/jira/browse/CARBON-14821

2014-06-02 Thread Dhanuka Ranasinghe
Hi,

Can you please review and commit to carbon 4.1.0 branch.

Cheers,
Dhanuka
*Dhanuka Ranasinghe*

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

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


Re: [Dev] GroupManagement node in Non ELB cluster

2014-06-02 Thread Afkham Azeez
It doesn't make sense to make normal cluster nodes group management nodes,
at present.


On Mon, Jun 2, 2014 at 1:58 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 If we don't use the WSO2 ELB for clustering, Is it must to enable some
 other node in the cluster as the GroupManagement node ? If so , that node
 should be a worker or manager ?

 Thanks.
 Ajith



 !--
 Enable the groupManagement entry if you need to run this node as a
 cluster manager.
 Multiple application domains with different GroupManagementAgent
 implementations
 can be defined in this section.
 --
 groupManagement enable=false
 applicationDomain name=wso2.esb.domain
description=ESB group

  
 agent=org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent
subDomain=worker
port=/
 /groupManagement


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




-- 
*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
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] WSO2 Committers += Sohani Weerasinghe

2014-06-02 Thread Sohani Weerasinghe
Thank you everyone 

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine


On Sun, Jun 1, 2014 at 3:10 PM, Dilini Muthumala dil...@wso2.com wrote:

 Congrats, Sohani!


 On Sun, Jun 1, 2014 at 9:31 AM, Rajith Vitharana raji...@wso2.com wrote:

 congrats!!!


 On Sat, May 31, 2014 at 8:58 AM, Tania Mahanama ta...@wso2.com wrote:

 Congrats!!


 On Sat, May 31, 2014 at 7:58 AM, Thanuja Jayasinghe than...@wso2.com
 wrote:

 Congratz!!!
 On 30 May 2014 17:00, Lali Devamanthri l...@wso2.com wrote:

 Congratulations 


 On Fri, May 30, 2014 at 11:06 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome Sohani as a WSO2 Committer.

 Sohani has  been a valuable contributor for WSO2 Developer Studio
 since she joined WSO2. In recognition of her contributions to WSO2, she 
 has
 been voted as a WSO2 Committer.

 Sohani, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha


 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118 0711368118 *

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270

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




 --
 Rajith Vitharana


 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

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


Re: [Dev] GroupManagement node in Non ELB cluster

2014-06-02 Thread Ajith Vitharana
On Mon, Jun 2, 2014 at 3:28 PM, Afkham Azeez az...@wso2.com wrote:

 It doesn't make sense to make normal cluster nodes group management nodes,
 at present.


Thanks Azeez.

-Ajith.




 On Mon, Jun 2, 2014 at 1:58 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 If we don't use the WSO2 ELB for clustering, Is it must to enable some
 other node in the cluster as the GroupManagement node ? If so , that node
 should be a worker or manager ?

 Thanks.
 Ajith



 !--
 Enable the groupManagement entry if you need to run this node as
 a cluster manager.
 Multiple application domains with different GroupManagementAgent
 implementations
 can be defined in this section.
 --
 groupManagement enable=false
 applicationDomain name=wso2.esb.domain
description=ESB group

  
 agent=org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent
subDomain=worker
port=/
 /groupManagement


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




 --
 *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 %2B94%2077%203320919 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
 http://lk.linkedin.com/in/afkhamazeez*

 *Lean . Enterprise . Middleware*




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


[Dev] Fwd: Access HttpServletRequest attributes in Jaggery app

2014-06-02 Thread Jayanga Dissanayake
Hi,

While implementing the security feature in Operations Center (OC), I wanted
to access the certificate details in the request.

But there is no way to access the attributes in the HttpServletRequest in
Jaggery app.
Please implement this feature in Jaggery.

Thanks,
*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sohani Weerasinghe

2014-06-02 Thread Shameera Rathnayaka
Congratulation Shani !!!


On Mon, Jun 2, 2014 at 3:57 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Thank you everyone 

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine


 On Sun, Jun 1, 2014 at 3:10 PM, Dilini Muthumala dil...@wso2.com wrote:

 Congrats, Sohani!


 On Sun, Jun 1, 2014 at 9:31 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 congrats!!!


 On Sat, May 31, 2014 at 8:58 AM, Tania Mahanama ta...@wso2.com wrote:

 Congrats!!


 On Sat, May 31, 2014 at 7:58 AM, Thanuja Jayasinghe than...@wso2.com
 wrote:

 Congratz!!!
 On 30 May 2014 17:00, Lali Devamanthri l...@wso2.com wrote:

 Congratulations 


 On Fri, May 30, 2014 at 11:06 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome Sohani as a WSO2 Committer.

 Sohani has  been a valuable contributor for WSO2 Developer Studio
 since she joined WSO2. In recognition of her contributions to WSO2, she 
 has
 been voted as a WSO2 Committer.

 Sohani, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha


 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118 0711368118 *

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270

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




 --
 Rajith Vitharana


 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

  *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029



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




-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
shame...@apache.org*
*phone:  +9471 922 1454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sohani Weerasinghe

2014-06-02 Thread Malintha Adikari
Congratulations Sohani...


On Mon, Jun 2, 2014 at 4:43 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Congratulation Shani !!!


 On Mon, Jun 2, 2014 at 3:57 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Thank you everyone 

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine


 On Sun, Jun 1, 2014 at 3:10 PM, Dilini Muthumala dil...@wso2.com wrote:

 Congrats, Sohani!


 On Sun, Jun 1, 2014 at 9:31 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 congrats!!!


 On Sat, May 31, 2014 at 8:58 AM, Tania Mahanama ta...@wso2.com wrote:

 Congrats!!


 On Sat, May 31, 2014 at 7:58 AM, Thanuja Jayasinghe than...@wso2.com
 wrote:

 Congratz!!!
 On 30 May 2014 17:00, Lali Devamanthri l...@wso2.com wrote:

 Congratulations 


 On Fri, May 30, 2014 at 11:06 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome Sohani as a WSO2 Committer.

 Sohani has  been a valuable contributor for WSO2 Developer Studio
 since she joined WSO2. In recognition of her contributions to WSO2, 
 she has
 been voted as a WSO2 Committer.

 Sohani, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha


 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118 0711368118 *

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270

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




 --
 Rajith Vitharana


 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

  *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029



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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R

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




-- 
*Malintha Adikari*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sohani Weerasinghe

2014-06-02 Thread Ashansa Perera
Congratulations !!!


On Mon, Jun 2, 2014 at 4:46 PM, Malintha Adikari malin...@wso2.com wrote:

 Congratulations Sohani...


 On Mon, Jun 2, 2014 at 4:43 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Congratulation Shani !!!


 On Mon, Jun 2, 2014 at 3:57 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Thank you everyone 

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine


 On Sun, Jun 1, 2014 at 3:10 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Congrats, Sohani!


 On Sun, Jun 1, 2014 at 9:31 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 congrats!!!


 On Sat, May 31, 2014 at 8:58 AM, Tania Mahanama ta...@wso2.com
 wrote:

 Congrats!!


 On Sat, May 31, 2014 at 7:58 AM, Thanuja Jayasinghe than...@wso2.com
  wrote:

 Congratz!!!
 On 30 May 2014 17:00, Lali Devamanthri l...@wso2.com wrote:

 Congratulations 


 On Fri, May 30, 2014 at 11:06 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome Sohani as a WSO2 Committer.

 Sohani has  been a valuable contributor for WSO2 Developer Studio
 since she joined WSO2. In recognition of her contributions to WSO2, 
 she has
 been voted as a WSO2 Committer.

 Sohani, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha


 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118 0711368118 *

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270

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




 --
 Rajith Vitharana


 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

  *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029



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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R

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




 --
 *Malintha Adikari*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha

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




-- 
Thanks  Regards,

Ashansa Perera
Senior Software Engineer
WSO2, Inc
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Merge conlifict due to wrong pull request in the wrong repo

2014-06-02 Thread Vanjikumaran Sivajothy
Hi manula,

You have send the pull request to synapse in wso2 repository straightway
and it is not acceptable according to protocol on continuous delivery on
GIThub. According to the mail thread Guidelines to move project into
GitHub and Meeting notes : Governance for Git based builds - initial
discussion, You should have forked the repo to your GIT account and send
the pull request to wso2-dev [2]. Once you send the pull request ESB team
will review the change and merge the code in to master repo.

Since you have send pull request and it merged the code in the wso2
repo[3], Currently ESB team's code in wso2-dev giving merge conflicts while
sych with main repo.

Therefore, please remove your code in main repo and send proper pull
request to the wso2-dev[2]

Thank you in advance!


@mahesika
Based on [1], It seems like white list for synapse is not properly
configured.
can you please recheck it again?



[1]
https://github.com/wso2/wso2-synapse/commit/19cd26ce92e438e4dd3bf3688c57594bb54f3400

[2] https://github.com/wso2-dev/wso2-synapse

[3]https://github.com/wso2/wso2-synapse

Best Regards,
vanji
-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com http://wso2.com/*
*Mobile:(+94)777219209*
[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
https://twitter.com/vanjikumaran [image: LinkedIn]
http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
http://www.slideshare.net/vanjikumaran

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


Re: [Dev] WSO2 Committers += Sohani Weerasinghe

2014-06-02 Thread Shameera Rathnayaka
On Mon, Jun 2, 2014 at 4:43 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Congratulation Shani !!!

 ​​It should be Sohani, sorry for mistype :)​​


 On Mon, Jun 2, 2014 at 3:57 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Thank you everyone 

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine


 On Sun, Jun 1, 2014 at 3:10 PM, Dilini Muthumala dil...@wso2.com wrote:

 Congrats, Sohani!


 On Sun, Jun 1, 2014 at 9:31 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 congrats!!!


 On Sat, May 31, 2014 at 8:58 AM, Tania Mahanama ta...@wso2.com wrote:

 Congrats!!


 On Sat, May 31, 2014 at 7:58 AM, Thanuja Jayasinghe than...@wso2.com
 wrote:

 Congratz!!!
 On 30 May 2014 17:00, Lali Devamanthri l...@wso2.com wrote:

 Congratulations 


 On Fri, May 30, 2014 at 11:06 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome Sohani as a WSO2 Committer.

 Sohani has  been a valuable contributor for WSO2 Developer Studio
 since she joined WSO2. In recognition of her contributions to WSO2, 
 she has
 been voted as a WSO2 Committer.

 Sohani, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha


 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118 0711368118 *

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.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




 --
 Tania Mahanama
 Senior Technical Writer

 Contact:
 Mob: +94 077 5129270

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




 --
 Rajith Vitharana


 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

  *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029



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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
shame...@apache.org*
*phone:  +9471 922 1454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge conlifict due to wrong pull request in the wrong repo

2014-06-02 Thread Sagara Gunathunga
I can see two problems here.

1. People sending pull requests to WSO2 account instead of WSO2-dev

This is mentioned in number of mails and I have clearly explained the
procedure during my training last week. We can't control external people
but we should able to educate WSO2 internal people to use proper GitHub
repo.

2. Though someone send a  pull request to WSO2 account PR builder should
not trigger unless the author is white-listed. Here there should be a issue
with job configuration or with feature it self.

Thanks !


On Mon, Jun 2, 2014 at 4:52 PM, Vanjikumaran Sivajothy va...@wso2.com
wrote:

 Hi manula,

 You have send the pull request to synapse in wso2 repository straightway
 and it is not acceptable according to protocol on continuous delivery on
 GIThub. According to the mail thread Guidelines to move project into
 GitHub and Meeting notes : Governance for Git based builds - initial
 discussion, You should have forked the repo to your GIT account and send
 the pull request to wso2-dev [2]. Once you send the pull request ESB team
 will review the change and merge the code in to master repo.

 Since you have send pull request and it merged the code in the wso2
 repo[3], Currently ESB team's code in wso2-dev giving merge conflicts while
 sych with main repo.

 Therefore, please remove your code in main repo and send proper pull
 request to the wso2-dev[2]

 Thank you in advance!


 @mahesika
 Based on [1], It seems like white list for synapse is not properly
 configured.
 can you please recheck it again?



 [1]
 https://github.com/wso2/wso2-synapse/commit/19cd26ce92e438e4dd3bf3688c57594bb54f3400

 [2] https://github.com/wso2-dev/wso2-synapse

 [3]https://github.com/wso2/wso2-synapse

 Best Regards,
 vanji
 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
 https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

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




-- 
Sagara Gunathunga

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


Re: [Dev] Merge conlifict due to wrong pull request in the wrong repo

2014-06-02 Thread Vanjikumaran Sivajothy
I will revert back the code in wso2 repo to continue the synchronization
work with the main repo.



On Mon, Jun 2, 2014 at 5:05 PM, Sagara Gunathunga sag...@wso2.com wrote:



 I can see two problems here.

 1. People sending pull requests to WSO2 account instead of WSO2-dev

 This is mentioned in number of mails and I have clearly explained the
 procedure during my training last week. We can't control external people
 but we should able to educate WSO2 internal people to use proper GitHub
 repo.

 2. Though someone send a  pull request to WSO2 account PR builder should
 not trigger unless the author is white-listed. Here there should be a issue
 with job configuration or with feature it self.

 Thanks !


 On Mon, Jun 2, 2014 at 4:52 PM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:

 Hi manula,

 You have send the pull request to synapse in wso2 repository straightway
 and it is not acceptable according to protocol on continuous delivery on
 GIThub. According to the mail thread Guidelines to move project into
 GitHub and Meeting notes : Governance for Git based builds - initial
 discussion, You should have forked the repo to your GIT account and send
 the pull request to wso2-dev [2]. Once you send the pull request ESB team
 will review the change and merge the code in to master repo.

 Since you have send pull request and it merged the code in the wso2
 repo[3], Currently ESB team's code in wso2-dev giving merge conflicts while
 sych with main repo.

 Therefore, please remove your code in main repo and send proper pull
 request to the wso2-dev[2]

 Thank you in advance!


 @mahesika
 Based on [1], It seems like white list for synapse is not properly
 configured.
 can you please recheck it again?



 [1]
 https://github.com/wso2/wso2-synapse/commit/19cd26ce92e438e4dd3bf3688c57594bb54f3400

 [2] https://github.com/wso2-dev/wso2-synapse

 [3]https://github.com/wso2/wso2-synapse

 Best Regards,
 vanji
 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

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




 --
 Sagara Gunathunga

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




-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com http://wso2.com/*
*Mobile:(+94)777219209*
*Mobile USA:**(+1)812-223-4546*
[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
https://twitter.com/vanjikumaran [image: LinkedIn]
http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
http://www.slideshare.net/vanjikumaran

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


Re: [Dev] Merge conlifict due to wrong pull request in the wrong repo

2014-06-02 Thread Sagara Gunathunga
On Mon, Jun 2, 2014 at 5:05 PM, Sagara Gunathunga sag...@wso2.com wrote:



 I can see two problems here.

 1. People sending pull requests to WSO2 account instead of WSO2-dev

 This is mentioned in number of mails and I have clearly explained the
 procedure during my training last week. We can't control external people
 but we should able to educate WSO2 internal people to use proper GitHub
 repo.

 2. Though someone send a  pull request to WSO2 account PR builder should
 not trigger unless the author is white-listed. Here there should be a issue
 with job configuration or with feature it self.


We tested on AS repos to verify the behaviour and it seems AS jobs are
working properly [ref - https://github.com/wso2/carbon-deployment/pull/10 ]
hence this should be a job configuration issue.

Thanks !



 Thanks !


 On Mon, Jun 2, 2014 at 4:52 PM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:

 Hi manula,

 You have send the pull request to synapse in wso2 repository straightway
 and it is not acceptable according to protocol on continuous delivery on
 GIThub. According to the mail thread Guidelines to move project into
 GitHub and Meeting notes : Governance for Git based builds - initial
 discussion, You should have forked the repo to your GIT account and send
 the pull request to wso2-dev [2]. Once you send the pull request ESB team
 will review the change and merge the code in to master repo.

 Since you have send pull request and it merged the code in the wso2
 repo[3], Currently ESB team's code in wso2-dev giving merge conflicts while
 sych with main repo.

 Therefore, please remove your code in main repo and send proper pull
 request to the wso2-dev[2]

 Thank you in advance!


 @mahesika
 Based on [1], It seems like white list for synapse is not properly
 configured.
 can you please recheck it again?



 [1]
 https://github.com/wso2/wso2-synapse/commit/19cd26ce92e438e4dd3bf3688c57594bb54f3400

 [2] https://github.com/wso2-dev/wso2-synapse

 [3]https://github.com/wso2/wso2-synapse

 Best Regards,
 vanji
 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

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




 --
 Sagara Gunathunga

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




-- 
Sagara Gunathunga

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


Re: [Dev] Support Tomcat Virtual Hosts in WSO2 AS - issues and progress so far

2014-06-02 Thread Sameera Jayasoma
We do no recommend to register deployers programmatically. The recommended
approach is to declare them in the component.xml. This allows Carbon kernel
to read and register deployers before initializing Apache Axis2 engine. If
you register deployers programmatically, Carbon kernel does not have any
control. Your artifacts may get deployed after server has been started.
I.e. after the transports are started.

The above approach perfectly fits if the deployers do not get added or
removed dynamically. But in your case, we cannot predict the number of
deployers. I.e. for every new virtual host, there will be a new webapp
deployer. Therefore we cannot list all the deployers in the component.xml.
Now we need to come up with a solution to support this requirement.

Thanks,
Sameera.



On Mon, Jun 2, 2014 at 2:43 PM, Kasun Gajasinghe kas...@wso2.com wrote:




 On Mon, Jun 2, 2014 at 2:05 PM, Nipuni Perera nip...@wso2.com wrote:

 I didn't change the default deployer. I only read appBase values of
 virtual hosts and added them to the deployment engine. But the webapp
 deployment take place just after management console is started.


 This happens if the deployers got added after axis2 has started IIRC. So,
 we need to make sure of the order. But unfortunately, we do not have a
 proper way to force this order currently.

 @Sameera, any ideas?


 Thanks,
 Nipuni


 On Mon, Jun 2, 2014 at 12:28 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 I do not think that you should remove the default webapp deployer from
 component.xml. Your should be in effect only for the additional virtual
 hosts.


 On Mon, Jun 2, 2014 at 9:25 AM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is working. This was due to an ip address conflict.

 Thanks,
 Nipuni


 On Sun, Jun 1, 2014 at 3:41 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 I am working on the $subject. According to the current implementation
 users has to put webapps inside repositro/depolment/server/webapss and
 access them via host name localhost only. I have modified
 carbontomcat.java to deploy webapps in a location defined inside appBase 
 of
 virtualhosts. But this needs to add an entry to component.xml to direct 
 the
 name of webapps directory to the relevent WebAppDeployer class. (Adding an
 entry to component.xml each time a new appBase is created is not 
 preferred)

 I have tried following steps when adding deployers to deployment
 engine without reading component.xml file. When reading component.xml 
 file,
 the Axis2DeployerRegistry class adds the deployers and relevant directory
 names to a deploymentEngine. In order to skip reading component.xml,
 deployment engine should be updated using the virtual host appBase values
 and deployer names.

 *Scenario 1*


1. I created a new service component class inside
/org/wso2/carbon/webapp/deployer/internal/ and added following,

  CarbonTomcatService
 carbonTomcatService = DataHolder.getCarbonTomcatService();
  DeploymentEngine deploymentEngine =
 (DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();

  This gave null values to both variables.
 (serverConfigContext and carbonTomcatService variables initialize
 inside service components in /org/wso2/carbon/webapp/mgt/internal. So it
 seems the newly created service component classes executes first)

 *Scenario 2*

1.  I have created a new OSGI bundle which tries to read above two
variables inside its Activator class and service component class. I 
 could
read proper values inside the service component class and update 
 deployment
engine. But according to logs, this executes after starting the wso2
carbon.  But, the following statement does deploy the webapps inside 
 the
appBase.

 deploymentEngine.addDeployer(deployer,
 directory, extension);

 But I am able to access webapps using host name localhost only,
 What could be the issue here?


 Thanks,

 Nipuni


 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






-- 
Sameera Jayasoma,
Software 

[Dev] Pull request send for public JIRA - APIMANAGER-2196

2014-06-02 Thread Manula Chathurika Thantriwatte
Hi,

I have send the following pull request[1] to the public JIRA[2]. Please
review and apply.

[1] https://github.com/wso2-dev/wso2-synapse/pull/37
[2] https://wso2.org/jira/browse/APIMANAGER-2196

-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manu...@wso2.com / man...@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request send for public JIRA - APIMANAGER-2196

2014-06-02 Thread Vanjikumaran Sivajothy
Hi Manulla,
Please review again your code, since it showing us some conflicts.

Please upstream your wso2-dev before send the pull request!

Thanks


On Mon, Jun 2, 2014 at 5:59 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi,

 I have send the following pull request[1] to the public JIRA[2]. Please
 review and apply.

 [1] https://github.com/wso2-dev/wso2-synapse/pull/37
 [2] https://wso2.org/jira/browse/APIMANAGER-2196

 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/






-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com http://wso2.com/*
*Mobile:(+94)777219209*
[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
https://twitter.com/vanjikumaran [image: LinkedIn]
http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
http://www.slideshare.net/vanjikumaran

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


Re: [Dev] Support Tomcat Virtual Hosts in WSO2 AS - issues and progress so far

2014-06-02 Thread Sameera Jayasoma
Looks like we have a solution this problem. We simply need to way to
register deployers which cannot be declared in component.xml, because users
should be able add or remove deployers.

Axis2DeployerRegistry.register() method registers all the Deployers
declared in the component.xml files. These are static Deployers. Now we
need to improve the Axis2DeployerRegistry.register() method handle the
other type of deployers. e.g. Webapp deployers for registered virtual
hosts.

In this solution Axis2DeployerRegistry asks the dynamic webapp deployer
list from the webapp-mgt component using an OSGi service registered by the
webapp-mgt component. In order to achieve this we can introduce a generic
interface. Say Axis2DeployerProvider. webapp-mgt component implements this
interface and register an OSGi service. Say
VirtualHostWebappDeployerProvider.

Now Axis2DeployerRegistry.register() method can get all the OSGi services
which implement the Axis2DeployerProvider interface and get the deployer
list and register them. Easy..

I guess Nipuni can implement this and provide a patch to Carbon kernel
4.3.0.

Thanks,
Sameera.

On Mon, Jun 2, 2014 at 5:28 PM, Sameera Jayasoma same...@wso2.com wrote:

 We do no recommend to register deployers programmatically. The recommended
 approach is to declare them in the component.xml. This allows Carbon kernel
 to read and register deployers before initializing Apache Axis2 engine. If
 you register deployers programmatically, Carbon kernel does not have any
 control. Your artifacts may get deployed after server has been started.
 I.e. after the transports are started.

 The above approach perfectly fits if the deployers do not get added or
 removed dynamically. But in your case, we cannot predict the number of
 deployers. I.e. for every new virtual host, there will be a new webapp
 deployer. Therefore we cannot list all the deployers in the component.xml.
 Now we need to come up with a solution to support this requirement.

 Thanks,
 Sameera.



 On Mon, Jun 2, 2014 at 2:43 PM, Kasun Gajasinghe kas...@wso2.com wrote:




 On Mon, Jun 2, 2014 at 2:05 PM, Nipuni Perera nip...@wso2.com wrote:

 I didn't change the default deployer. I only read appBase values of
 virtual hosts and added them to the deployment engine. But the webapp
 deployment take place just after management console is started.


 This happens if the deployers got added after axis2 has started IIRC. So,
 we need to make sure of the order. But unfortunately, we do not have a
 proper way to force this order currently.

 @Sameera, any ideas?


 Thanks,
 Nipuni


 On Mon, Jun 2, 2014 at 12:28 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 I do not think that you should remove the default webapp deployer from
 component.xml. Your should be in effect only for the additional virtual
 hosts.


 On Mon, Jun 2, 2014 at 9:25 AM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is working. This was due to an ip address conflict.

 Thanks,
 Nipuni


 On Sun, Jun 1, 2014 at 3:41 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 I am working on the $subject. According to the current implementation
 users has to put webapps inside repositro/depolment/server/webapss and
 access them via host name localhost only. I have modified
 carbontomcat.java to deploy webapps in a location defined inside appBase 
 of
 virtualhosts. But this needs to add an entry to component.xml to direct 
 the
 name of webapps directory to the relevent WebAppDeployer class. (Adding 
 an
 entry to component.xml each time a new appBase is created is not 
 preferred)

 I have tried following steps when adding deployers to deployment
 engine without reading component.xml file. When reading component.xml 
 file,
 the Axis2DeployerRegistry class adds the deployers and relevant directory
 names to a deploymentEngine. In order to skip reading component.xml,
 deployment engine should be updated using the virtual host appBase values
 and deployer names.

 *Scenario 1*


1. I created a new service component class inside
/org/wso2/carbon/webapp/deployer/internal/ and added following,

  CarbonTomcatService
 carbonTomcatService = DataHolder.getCarbonTomcatService();
  DeploymentEngine deploymentEngine =
 (DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();

  This gave null values to both variables.
 (serverConfigContext and carbonTomcatService variables initialize
 inside service components in /org/wso2/carbon/webapp/mgt/internal. So it
 seems the newly created service component classes executes first)

 *Scenario 2*

1.  I have created a new OSGI bundle which tries to read above
two variables inside its Activator class and service component class. 
 I
could read proper values inside the service component class and update
deployment engine. But according to logs, this executes after 
 starting the
wso2 carbon.  But, the 

Re: [Dev] Pull request send for public JIRA - APIMANAGER-2196

2014-06-02 Thread Manula Chathurika Thantriwatte
Hi,

I have take the pull and create the pull request. I'll do it again and send.


On Mon, Jun 2, 2014 at 6:03 PM, Vanjikumaran Sivajothy va...@wso2.com
wrote:

 Hi Manulla,
 Please review again your code, since it showing us some conflicts.

 Please upstream your wso2-dev before send the pull request!

 Thanks


 On Mon, Jun 2, 2014 at 5:59 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 I have send the following pull request[1] to the public JIRA[2]. Please
 review and apply.

 [1] https://github.com/wso2-dev/wso2-synapse/pull/37
 [2] https://wso2.org/jira/browse/APIMANAGER-2196

 --
  Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/






 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
 https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

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




-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manu...@wso2.com / man...@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request send for public JIRA - APIMANAGER-2196

2014-06-02 Thread Manula Chathurika Thantriwatte
Hi,

Please review and apply the new pull request [1]

[1] https://github.com/wso2-dev/wso2-synapse/pull/38


On Mon, Jun 2, 2014 at 6:17 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi,

 I have take the pull and create the pull request. I'll do it again and
 send.


 On Mon, Jun 2, 2014 at 6:03 PM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:

 Hi Manulla,
 Please review again your code, since it showing us some conflicts.

 Please upstream your wso2-dev before send the pull request!

 Thanks


 On Mon, Jun 2, 2014 at 5:59 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 I have send the following pull request[1] to the public JIRA[2]. Please
 review and apply.

 [1] https://github.com/wso2-dev/wso2-synapse/pull/37
 [2] https://wso2.org/jira/browse/APIMANAGER-2196

 --
  Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/






 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/






-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manu...@wso2.com / man...@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request send for public JIRA - APIMANAGER-2196

2014-06-02 Thread Vanjikumaran Sivajothy
Thank you


On Mon, Jun 2, 2014 at 6:25 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi,

 Please review and apply the new pull request [1]

 [1] https://github.com/wso2-dev/wso2-synapse/pull/38


 On Mon, Jun 2, 2014 at 6:17 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 I have take the pull and create the pull request. I'll do it again and
 send.


 On Mon, Jun 2, 2014 at 6:03 PM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:

 Hi Manulla,
 Please review again your code, since it showing us some conflicts.

  Please upstream your wso2-dev before send the pull request!

 Thanks


 On Mon, Jun 2, 2014 at 5:59 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 I have send the following pull request[1] to the public JIRA[2]. Please
 review and apply.

 [1] https://github.com/wso2-dev/wso2-synapse/pull/37
 [2] https://wso2.org/jira/browse/APIMANAGER-2196

 --
  Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/






 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/






 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/






-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com http://wso2.com/*
*Mobile:(+94)777219209*
[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
https://twitter.com/vanjikumaran [image: LinkedIn]
http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
http://www.slideshare.net/vanjikumaran

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


Re: [Dev] Merge conlifict due to wrong pull request in the wrong repo

2014-06-02 Thread Maheshika Goonetilleke
Hi Vanji

I've added members in the ESB team in GIT (I guess that's how i've missed
you.).

I have added you the synapse build now.


On Mon, Jun 2, 2014 at 4:52 PM, Vanjikumaran Sivajothy va...@wso2.com
wrote:

 Hi manula,

 You have send the pull request to synapse in wso2 repository straightway
 and it is not acceptable according to protocol on continuous delivery on
 GIThub. According to the mail thread Guidelines to move project into
 GitHub and Meeting notes : Governance for Git based builds - initial
 discussion, You should have forked the repo to your GIT account and send
 the pull request to wso2-dev [2]. Once you send the pull request ESB team
 will review the change and merge the code in to master repo.

 Since you have send pull request and it merged the code in the wso2
 repo[3], Currently ESB team's code in wso2-dev giving merge conflicts while
 sych with main repo.

 Therefore, please remove your code in main repo and send proper pull
 request to the wso2-dev[2]

 Thank you in advance!


 @mahesika
 Based on [1], It seems like white list for synapse is not properly
 configured.
 can you please recheck it again?



 [1]
 https://github.com/wso2/wso2-synapse/commit/19cd26ce92e438e4dd3bf3688c57594bb54f3400

 [2] https://github.com/wso2-dev/wso2-synapse

 [3]https://github.com/wso2/wso2-synapse

 Best Regards,
 vanji
 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
 https://twitter.com/vanjikumaran [image: LinkedIn]
 http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
 http://www.slideshare.net/vanjikumaran

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




-- 

Thanks  Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com mahesh...@wso2.com*
*mobile : +94 773 596707*
*www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to extract multiple transport headers with the same key?

2014-06-02 Thread Rasika Hettige
Hi,

The following two headers are returned in the response of an API call. My
requirement is to extract the value of second Set-Cookie header. 

1) Set-Cookie: GDCAuthTT=; path=/gdc; expires=Sat, 03-May-2014 12:59:37 GMT;
secure; HttpOnly
2) Set-Cookie: GDCAuthSST=xx; path=/gdc/account; expires=Wed,
18-Jun-2014 12:59:37 GMT; secure; HttpOnly

However, get-property('transport','Set-Cookie') expression always returns
the value of first Set-Cookie header. If we try to remove one Set-Cookie
header and call the above expression again, it returns null. 

Apparently, this happens due to ESB maintaining the header values in a
hashmap as mentioned in the below thread.
http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-4-0-3-eating-2-3-cookies-td21841.html

Is there a fix or a workaround to this issue(we are currently using the esb
4.8.1)?

Thanks  Regards
Rasika




--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/How-to-extract-multiple-transport-headers-with-the-same-key-tp97658.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Casting Objects which are loaded by two different classloaders

2014-06-02 Thread Rajkumar Rajaratnam
Hi,

According to our offline discussion, we are trying to achieve this casting.

BlockingService blockingService= (BlockingService) *obj*;

But, at the end of the day, we are going to call the following method which
is defined in our BinaryServiceRegistry.

registerService(BlockingService blockingService)

Here, BlockingService is already loaded by a classloader (
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@31887be4
[com.google.protobuf:2.5.0(id=30)])

Hence, registerService() method will only accept a BlockingService instance
which is loaded by the same classloader as above.

So what we should do is to load the *obj* in the same classloader as above.
Otherwise we will not be able to register this *obj* in our
BinaryServiceRegistry.

But we were not able to do so. Because, this *obj* is already loaded by the
WebAppClassLoader.

I tried casting with transloader[1]. Its Reflection cloning is failing. And
we can't use its Serialization cloning because our auto-generated stubs are
not serializable.

Any ideas?

1. https://code.google.com/p/transloader/

Thanks.



On Sun, Jun 1, 2014 at 2:35 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Rajkumar,

 You can get the webapp classloader instance via ServletContext [1]. Then
 you could temporarily set the current thread context classloader just for
 the casting operation [2]. After that, set it back to the previous
 classloader. There might be better ways to do this though!


 [1]
 http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContext.html#getClassLoader()
 [2]
 http://docs.oracle.com/javase/6/docs/api/java/lang/Thread.html#setContextClassLoader(java.lang.ClassLoader)

 Regards,
 KasunG



 On Sun, Jun 1, 2014 at 11:37 AM, Rajkumar Rajaratnam rajkum...@wso2.com
 wrote:

 Hi all,

 We are writing our own Servlet Context Initializer for new
 ProtoBufServices (Binary Services). We have deployed a  ProtoBufService
 (HelloService). When ServletContainerInitializer finds the annotation
 @ProtoBufService, the onStartup() method is triggered. Everything works
 fine except one thing which is explained here.


 @HandlesTypes({ ProtoBufService.class })
 public class ProtoBufServletContextInitializer implements
 ServletContainerInitializer {

 @Override
 public void onStartup(SetClass? classes, ServletContext
 servletContext)


 throws ServletException {

 if (classes == null || classes.size() == 0) {
 return;
 }

 for (Class? clazz : classes) {

 Method myMethod=null;
 try {
 myMethod =
 clazz.getInterfaces()[0].getDeclaringClass().getMethod(newReflectiveBlockingService,
 clazz.getInterfaces()[0]);
 } catch (NoSuchMethodException | SecurityException e) {
 e.printStackTrace();
 }


 // get newReflectiveBlockingService() will return a
 BlockingService object.
 Object blockingServiceObj=null;
 try {
 blockingServiceObj = myMethod.invoke(null,
 clazz.newInstance());
 } catch (IllegalAccessException | IllegalArgumentException
 | InvocationTargetException |
 InstantiationException e) {
 e.printStackTrace();
 }


 BlockingService blockingService = (BlockingService)
 blockingServiceObj;
 /*
  * Casting throws ClassCastException.
  */



 System.out.println(blockingServiceObj.getClass().getClassLoader());
 /*
  * Output :
  *
  * WebappClassLoader
   context: /org.wso2.carbon.binary.sample.hello
   delegate: false
   repositories:
 /WEB-INF/classes/
 -- Parent Classloader:
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@5db01ad1


 [org.wso2.carbon.tomcat.patch:4.3.0.SNAPSHOT(id=365)]
  */




 System.out.println(BlockingService.class.getClassLoader());

 /*
  * Output :
  *
  *
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@31887be4
 [com.google.protobuf:2.5.0(id=30)]
  */

 }
 }

 }


 Now,

 BlockingService blockingService= (BlockingService) obj;

 throws following ClassCastExecption,

 java.lang.ClassCastException:
 org.wso2.carbon.binary.sample.Hello$HelloService$2 cannot be cast to
 com.google.protobuf.BlockingService


 But, HelloService  is type of BlockingService.

 *Reason for this error.*

 BlockingService is coming from an OSGi bundle (protobuf) and it is loaded
 by a classloader,
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@31887be4
 [com.google.protobuf:2.5.0(id=30)]

 obj is obtained at run time within servlet context initializer and it is
 loaded by another 

[Dev] SAML-authenticating an ESB proxy

2014-06-02 Thread Jason Catlin
Hey guys,

I'm trying to create a basic ESB proxy authenticated by SAML.  It seems to
be something the product supports, but that there isnt an documentation for
anywhere.

When I use the gui to configure it, it puts this in my code:
parameter name=disableRESTtrue/parameter
parameter name=ScenarioIDscenario31/parameter
enableSec/
policy
key=conf:/repository/axis2/service-groups/SecureProxy3/services/SecureProxy3/policies/SAML2HoKProtection31/

Do you guys mind explaining to me the meaning of that stuff?  I presume
scenario31 refers to a SAML 2.0 authentication.  What is disableREST?
 And can I get more detais on that policy key thing?

Next, when I set up what seems like a straightforward configuration of
this, I get this error:

org.apache.axis2.AxisFault: Missing wsse:Security header in request
at
org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)


So I'm providing a SAMLResponse token in a POST, but that doesn't seem to
be what it's expecting.  Why isn't that what it's expecting?

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


Re: [Dev] [BAM] BAM Mediator doesn't send events when invoked from a sequence.

2014-06-02 Thread Maninda Edirisooriya
Hi Rajith,

Service field was a useful parameter when BAM mediator is used inside an
API as I remember. And that field has to be there for the backward
compatibility as well IMO.
The problem is handling the NPE with a null check when executing*
msgCtx.getAxisService().getName()*.
There is no other way to prevent that exception other than handling it and
setting an empty string as the service. (I have attached a possible patch
which is not tested at all)
The correct way to handle this issue IMO is by handling the null value from
the Axis2 level.
WDYT?

Thanks.


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda


On Sat, May 31, 2014 at 2:56 AM, Rajith Siriwardena raj...@wso2.com wrote:

 Hi,
 $Subject. From the following code chunks,

  BamMediator.java
 AxisService service = msgCtx.getAxisService();
 if(service == null)

 { return true; }
 // When this is not inside an API theses parameters should be there
 if ((!service.getName().equals(__SynapseService)) 
 (service.getParameter(ADMIN_SERVICE_PARAMETER) != null ||
 service.getParameter(HIDDEN_SERVICE_PARAMETER) != null)) { return true; }

  PayloadDataBuilder.java
 try

 { service = msgCtx.getAxisService().getName(); }

 catch (Exception e)

 { String errorMsg = Error occurred while Service Name is extracted.  +
 e.getMessage(); log.error(errorMsg, e); service = ; }

 --- StreamDefinitionBuilder.java
 attributes.add(new Attribute(BamMediatorConstants.SERVICE_NAME,
 AttributeType.STRING));
 ---


 if the it is invoked from a proxy the value of service = proxy which it
 is invoked and it works. when it is invoked from a sequence service is
 null and it ends there

 as a solution to that I have removed the parts which checks the service
 and dropped it from sending with events. if it isn't violating any use
 case, attached patch to the jira issue can be used as a fix.

 jira issue: https://wso2.org/jira/browse/BAM-1642

 Thanks,
 --Rajith

 --
 *Rajith Siriwardana*
 Software Engineer
 WSO2 Inc. ; http://wso2.com
 *lean. enterprise. middleware*

 *www: **http://people.apache.org/~siriwardana
 http://people.apache.org/~siriwardana*

Index: src/main/java/org/wso2/carbon/mediator/bam/BamMediator.java
===
--- src/main/java/org/wso2/carbon/mediator/bam/BamMediator.java	(revision 204322)
+++ src/main/java/org/wso2/carbon/mediator/bam/BamMediator.java	(working copy)
@@ -16,10 +16,8 @@
 
 package org.wso2.carbon.mediator.bam;
 
-import org.apache.axis2.description.AxisService;
 import org.apache.synapse.MessageContext;
 import org.apache.synapse.SynapseLog;
-import org.apache.synapse.core.axis2.Axis2MessageContext;
 import org.apache.synapse.mediators.AbstractMediator;
 import org.wso2.carbon.mediator.bam.config.BamMediatorException;
 
@@ -56,19 +54,6 @@
 }
 }
 
-org.apache.axis2.context.MessageContext msgCtx = ((Axis2MessageContext) messageContext).getAxis2MessageContext();
-
-AxisService service = msgCtx.getAxisService();
-if(service == null) {
-return true;
-}
-// When this is not inside an API theses parameters should be there
-if ((!service.getName().equals(__SynapseService)) 
-(service.getParameter(ADMIN_SERVICE_PARAMETER) != null ||
- service.getParameter(HIDDEN_SERVICE_PARAMETER) != null)) {
-return true;
-}
-
 try {
 stream.sendEvents(messageContext);
 } catch (BamMediatorException e) {
Index: src/main/java/org/wso2/carbon/mediator/bam/builders/PayloadDataBuilder.java
===
--- src/main/java/org/wso2/carbon/mediator/bam/builders/PayloadDataBuilder.java	(revision 204322)
+++ src/main/java/org/wso2/carbon/mediator/bam/builders/PayloadDataBuilder.java	(working copy)
@@ -48,7 +48,7 @@
  Object[] payloadData) throws BamMediatorException {
 int i = 0;
 boolean direction;
 try{
 try{
 direction = (!messageContext.isResponse()  !messageContext.isFaultResponse());
@@ -57,14 +57,8 @@
 log.error(errorMsg, e);
 direction = true;
 }
 try{
 service = msgCtx.getAxisService().getName();
 } catch (Exception e) {
-String errorMsg = Error occurred while Service Name is extracted.  + e.getMessage();
-log.error(errorMsg, e);
 service = ;
 }
 try{
 operation = msgCtx.getAxisOperation().getName().getLocalPart();
 } catch (Exception e) {
 String errorMsg = Error occurred 

[Dev] Reg Version update of a service

2014-06-02 Thread FIXED-TERM Nishath Arshia (CI/WBI-NA)
Hello,

I want to update the version of a service in Governance Registry .I used 
service.setAttribute(overview_version,value) function for the same but the 
changes are not reflecting in the governance registry.

What could be the issue. Kindly help

Thanks and regards,
Arshia Nishath

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


Re: [Dev] [BAM] BAM Mediator doesn't send events when invoked from a sequence.

2014-06-02 Thread Rajith Siriwardena
Hi Maninda,

Yes if that is the case, setting up an empty String is the best option. but
then isn't it violates the null check we were having in the following code.
(I don't know why it was there btw)

## BamMediator.java
if(service == null) { return true; }


I haven't checked your patch. I'll check it and get back you.

thanks,
--Rajith


On Mon, Jun 2, 2014 at 9:53 PM, Maninda Edirisooriya mani...@wso2.com
wrote:

 Hi Rajith,

 Service field was a useful parameter when BAM mediator is used inside an
 API as I remember. And that field has to be there for the backward
 compatibility as well IMO.
 The problem is handling the NPE with a null check when executing*
 msgCtx.getAxisService().getName()*.
 There is no other way to prevent that exception other than handling it and
 setting an empty string as the service. (I have attached a possible patch
 which is not tested at all)
 The correct way to handle this issue IMO is by handling the null value
 from the Axis2 level.
 WDYT?

 Thanks.


 * Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda


 On Sat, May 31, 2014 at 2:56 AM, Rajith Siriwardena raj...@wso2.com
 wrote:

 Hi,
 $Subject. From the following code chunks,

  BamMediator.java
 AxisService service = msgCtx.getAxisService();
 if(service == null)

 { return true; }
 // When this is not inside an API theses parameters should be there
 if ((!service.getName().equals(__SynapseService)) 
 (service.getParameter(ADMIN_SERVICE_PARAMETER) != null ||
 service.getParameter(HIDDEN_SERVICE_PARAMETER) != null)) { return true; }

  PayloadDataBuilder.java
 try

 { service = msgCtx.getAxisService().getName(); }

 catch (Exception e)

 { String errorMsg = Error occurred while Service Name is extracted.  +
 e.getMessage(); log.error(errorMsg, e); service = ; }

 --- StreamDefinitionBuilder.java
 attributes.add(new Attribute(BamMediatorConstants.SERVICE_NAME,
 AttributeType.STRING));
 ---


 if the it is invoked from a proxy the value of service = proxy which it
 is invoked and it works. when it is invoked from a sequence service is
 null and it ends there

 as a solution to that I have removed the parts which checks the service
 and dropped it from sending with events. if it isn't violating any use
 case, attached patch to the jira issue can be used as a fix.

 jira issue: https://wso2.org/jira/browse/BAM-1642

 Thanks,
 --Rajith

 --
 *Rajith Siriwardana*
 Software Engineer
 WSO2 Inc. ; http://wso2.com
 *lean. enterprise. middleware*

 *www: **http://people.apache.org/~siriwardana
 http://people.apache.org/~siriwardana*





-- 
*Rajith Siriwardana*
Software Engineer
WSO2 Inc. ; http://wso2.com
*lean. enterprise. middleware*

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


Re: [Dev] [BAM] BAM Mediator doesn't send events when invoked from a sequence.

2014-06-02 Thread Rajith Siriwardena
Yes your patch will do the trick, thanks for the clarification.

--Rajith


On Mon, Jun 2, 2014 at 10:30 PM, Rajith Siriwardena raj...@wso2.com wrote:

 Hi Maninda,

 Yes if that is the case, setting up an empty String is the best option.
 but then isn't it violates the null check we were having in the following
 code. (I don't know why it was there btw)

 ## BamMediator.java
 if(service == null) { return true; }


 I haven't checked your patch. I'll check it and get back you.

 thanks,
 --Rajith


 On Mon, Jun 2, 2014 at 9:53 PM, Maninda Edirisooriya mani...@wso2.com
 wrote:

 Hi Rajith,

 Service field was a useful parameter when BAM mediator is used inside an
 API as I remember. And that field has to be there for the backward
 compatibility as well IMO.
 The problem is handling the NPE with a null check when executing*
 msgCtx.getAxisService().getName()*.
 There is no other way to prevent that exception other than handling it
 and setting an empty string as the service. (I have attached a possible
 patch which is not tested at all)
 The correct way to handle this issue IMO is by handling the null value
 from the Axis2 level.
 WDYT?

 Thanks.


 * Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda


 On Sat, May 31, 2014 at 2:56 AM, Rajith Siriwardena raj...@wso2.com
 wrote:

 Hi,
 $Subject. From the following code chunks,

  BamMediator.java
 AxisService service = msgCtx.getAxisService();
 if(service == null)

 { return true; }
 // When this is not inside an API theses parameters should be there
 if ((!service.getName().equals(__SynapseService)) 
 (service.getParameter(ADMIN_SERVICE_PARAMETER) != null ||
 service.getParameter(HIDDEN_SERVICE_PARAMETER) != null)) { return true; }

  PayloadDataBuilder.java
 try

 { service = msgCtx.getAxisService().getName(); }

 catch (Exception e)

 { String errorMsg = Error occurred while Service Name is extracted.  +
 e.getMessage(); log.error(errorMsg, e); service = ; }

 --- StreamDefinitionBuilder.java
 attributes.add(new Attribute(BamMediatorConstants.SERVICE_NAME,
 AttributeType.STRING));
 ---


 if the it is invoked from a proxy the value of service = proxy which it
 is invoked and it works. when it is invoked from a sequence service is
 null and it ends there

 as a solution to that I have removed the parts which checks the service
 and dropped it from sending with events. if it isn't violating any use
 case, attached patch to the jira issue can be used as a fix.

 jira issue: https://wso2.org/jira/browse/BAM-1642

 Thanks,
 --Rajith

 --
 *Rajith Siriwardana*
 Software Engineer
 WSO2 Inc. ; http://wso2.com
 *lean. enterprise. middleware*

 *www: **http://people.apache.org/~siriwardana
 http://people.apache.org/~siriwardana*





 --
 *Rajith Siriwardana*
 Software Engineer
  WSO2 Inc. ; http://wso2.com
 *lean. enterprise. middleware*

 --
 *http://people.apache.org/~siriwardana
 http://people.apache.org/~siriwardana*




-- 
*Rajith Siriwardana*
Software Engineer
WSO2 Inc. ; http://wso2.com
*lean. enterprise. middleware*

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


Re: [Dev] Reg Version update of a service

2014-06-02 Thread Eranda Sooriyabandara
Hi Nishath,
If you want to update the service you need to execute ServiceManager.update
method after modifying the service.

Eg.
service.setAttribute(“overview_version”,”value”);
serviceManager.update(service);


thanks
Eranda


On Mon, Jun 2, 2014 at 10:18 PM, FIXED-TERM Nishath Arshia (CI/WBI-NA) 
fixed-term.arshia.nish...@us.bosch.com wrote:

  Hello,

 I want to update the version of a service in Governance Registry .I used
 service.setAttribute(“overview_version”,”value”) function for the same but
 the changes are not reflecting in the governance registry.

 What could be the issue. Kindly help

 Thanks and regards,
 Arshia Nishath


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




-- 

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

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Why do I get this error at BAM?

2014-06-02 Thread Vijayaratha Vijayasingam
Hi all;
Im getting following error at BAM in the middle  and it throws
continuously..

ava:31)
   at
org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
a:106)
   at
org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
$ServerThread.run(ThriftDataReceiver.java:199)
   at java.lang.Thread.run(Thread.java:744)
aused by: java.net.SocketException: Too many open files
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
98)
   at java.net.ServerSocket.implAccept(ServerSocket.java:530)
   at
sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
17)
   at
org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
a:113)
   ... 5 more
ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
{org.apache.cassandra.thrift.Cust
mTThreadPoolServer} -  Transport error occurred during acceptance of
message. {
rg.apache.cassandra.thrift.CustomTThreadPoolServer}
rg.apache.thrift.transport.TTransportException: java.net.SocketException:
Too m
ny open files
   at
org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
erSocket.java:103)
   at
org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
erSocket.java:39)
   at
org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
ava:31)
   at
org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
dPoolServer.java:100)
   at
org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
Daemon.java:213)
aused by: java.net.SocketException: Too many open files
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
98)
   at java.net.ServerSocket.implAccept(ServerSocket.java:530)
   at java.net.ServerSocket.accept(ServerSocket.java:498)
   at
org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
erSocket.java:97)
   ... 4 more
ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
{org.apache.thrift.server.TThread
oolServer} -  Transport error occurred during acceptance of message.
{org.apach
.thrift.server.TThreadPoolServer}
rg.apache.thrift.transport.TTransportException: java.net.SocketException:
Too m
ny open files
   at
org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
a:118)
   at
org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
a:35)

-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Isuru Perera
The error is Too many open files

Please increase the ulimit. See
https://docs.wso2.org/display/ESB481/Performance+Tuning

Edit /etc/security/limits.conf file and add following to the end.

* soft nofile 4096
* hard nofile 65535



On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam rat...@wso2.com
wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException: java.net.SocketException:
 Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException: java.net.SocketException:
 Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

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


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Vijayaratha Vijayasingam
I sent only 5 requests..but getting this error..Ill try the solution..


On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam rat...@wso2.com
  wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException: java.net.SocketException:
 Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException: java.net.SocketException:
 Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Vijayaratha Vijayasingam
We increased the file limit..
Still getting same issue..


On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 I sent only 5 requests..but getting this error..Ill try the solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Bhathiya Jayasekara
Try the following.

http://www.datastax.com/docs/1.1/troubleshooting/index#toomany


On Mon, Jun 2, 2014 at 2:52 PM, Vijayaratha Vijayasingam rat...@wso2.com
wrote:

 We increased the file limit..
 Still getting same issue..


 On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 I sent only 5 requests..but getting this error..Ill try the solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 -Ratha
 mobile: (+94)755906608




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

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


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Isuru Perera
Did you restart the server?


On Mon, Jun 2, 2014 at 2:52 PM, Vijayaratha Vijayasingam rat...@wso2.com
wrote:

 We increased the file limit..
 Still getting same issue..


 On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 I sent only 5 requests..but getting this error..Ill try the solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 -Ratha
 mobile: (+94)755906608




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

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


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Vijayaratha Vijayasingam
yes..multiple times


On 2 June 2014 15:01, Isuru Perera isu...@wso2.com wrote:

 Did you restart the server?


 On Mon, Jun 2, 2014 at 2:52 PM, Vijayaratha Vijayasingam rat...@wso2.com
 wrote:

 We increased the file limit..
 Still getting same issue..


 On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 I sent only 5 requests..but getting this error..Ill try the solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Supun Malinga
Hi,

Had a chat with Ratha. We checked the file limits with ulimit -n command
and saw that the updated values not being applied. Found that wild card
character was omitted..
Seems the wildcard character (*) mentioned in the doc is misleading as a
bullet point :).
Can we have a second look at modifying that please..

thanks.


On Mon, Jun 2, 2014 at 3:34 PM, Vijayaratha Vijayasingam rat...@wso2.com
wrote:

 yes..multiple times


 On 2 June 2014 15:01, Isuru Perera isu...@wso2.com wrote:

 Did you restart the server?


 On Mon, Jun 2, 2014 at 2:52 PM, Vijayaratha Vijayasingam rat...@wso2.com
  wrote:

 We increased the file limit..
 Still getting same issue..


 On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 I sent only 5 requests..but getting this error..Ill try the solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608

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




-- 
Supun Malinga,

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


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Isuru Perera
On Mon, Jun 2, 2014 at 4:57 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Had a chat with Ratha. We checked the file limits with ulimit -n command
 and saw that the updated values not being applied. Found that wild card
 character was omitted..
 Seems the wildcard character (*) mentioned in the doc is misleading as a
 bullet point :).

Oh! That's why I said add following :)

  Can we have a second look at modifying that please..

 thanks.


 On Mon, Jun 2, 2014 at 3:34 PM, Vijayaratha Vijayasingam rat...@wso2.com
 wrote:

 yes..multiple times


 On 2 June 2014 15:01, Isuru Perera isu...@wso2.com wrote:

 Did you restart the server?


 On Mon, Jun 2, 2014 at 2:52 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 We increased the file limit..
 Still getting same issue..


 On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 I sent only 5 requests..but getting this error..Ill try the solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




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

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


Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Jackie Wheeler
Added (be sure to include the leading * character) to the end of the
sentence before the code example.


On Mon, Jun 2, 2014 at 4:57 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Had a chat with Ratha. We checked the file limits with ulimit -n command
 and saw that the updated values not being applied. Found that wild card
 character was omitted..
 Seems the wildcard character (*) mentioned in the doc is misleading as a
 bullet point :).
 Can we have a second look at modifying that please..

 thanks.


 On Mon, Jun 2, 2014 at 3:34 PM, Vijayaratha Vijayasingam rat...@wso2.com
 wrote:

 yes..multiple times


 On 2 June 2014 15:01, Isuru Perera isu...@wso2.com wrote:

 Did you restart the server?


 On Mon, Jun 2, 2014 at 2:52 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 We increased the file limit..
 Still getting same issue..


 On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 I sent only 5 requests..but getting this error..Ill try the solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance of
 message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of message.
 {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 --
 You received this message because you are subscribed to the Google Groups
 WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.




-- 
*Jackie Wheeler*

Re: [Dev] Why do I get this error at BAM?

2014-06-02 Thread Supun Malinga
thanks Jackie.


On Mon, Jun 2, 2014 at 5:06 PM, Jackie Wheeler jac...@wso2.com wrote:

 Added (be sure to include the leading * character) to the end of the
 sentence before the code example.


 On Mon, Jun 2, 2014 at 4:57 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Had a chat with Ratha. We checked the file limits with ulimit -n command
 and saw that the updated values not being applied. Found that wild card
 character was omitted..
 Seems the wildcard character (*) mentioned in the doc is misleading as a
 bullet point :).
 Can we have a second look at modifying that please..

 thanks.


 On Mon, Jun 2, 2014 at 3:34 PM, Vijayaratha Vijayasingam rat...@wso2.com
  wrote:

 yes..multiple times


 On 2 June 2014 15:01, Isuru Perera isu...@wso2.com wrote:

 Did you restart the server?


 On Mon, Jun 2, 2014 at 2:52 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 We increased the file limit..
 Still getting same issue..


 On 2 June 2014 13:00, Vijayaratha Vijayasingam rat...@wso2.com
 wrote:

 I sent only 5 requests..but getting this error..Ill try the
 solution..


 On 2 June 2014 12:56, Isuru Perera isu...@wso2.com wrote:

 The error is Too many open files

 Please increase the ulimit. See
 https://docs.wso2.org/display/ESB481/Performance+Tuning

 Edit /etc/security/limits.conf file and add following to the end.

 * soft nofile 4096
 * hard nofile 65535



 On Mon, Jun 2, 2014 at 12:34 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Hi all;
 Im getting following error at BAM in the middle  and it throws
 continuously..

 ava:31)
at
 org.apache.thrift.server.TThreadPoolServer.serve(TThreadPoolServer.ja
 a:106)
at
 org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceive
 $ServerThread.run(ThriftDataReceiver.java:199)
at java.lang.Thread.run(Thread.java:744)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at
 sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:
 17)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:113)
... 5 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.cassandra.thrift.Cust
 mTThreadPoolServer} -  Transport error occurred during acceptance
 of message. {
 rg.apache.cassandra.thrift.CustomTThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:103)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:39)
at
 org.apache.thrift.transport.TServerTransport.accept(TServerTransport.
 ava:31)
at
 org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThre
 dPoolServer.java:100)
at
 org.apache.cassandra.thrift.CassandraDaemon$ThriftServer.run(Cassandr
 Daemon.java:213)
 aused by: java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
 java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
 98)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at
 org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomSer
 erSocket.java:97)
... 4 more
 ID: [0] [BAM] [2014-06-02 12:32:30,147]  WARN
 {org.apache.thrift.server.TThread
 oolServer} -  Transport error occurred during acceptance of
 message. {org.apach
 .thrift.server.TThreadPoolServer}
 rg.apache.thrift.transport.TTransportException:
 java.net.SocketException: Too m
 ny open files
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:118)
at
 org.apache.thrift.transport.TServerSocket.acceptImpl(TServerSocket.ja
 a:35)

 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 -Ratha
 mobile: (+94)755906608




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

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 --
 You received this message because you are subscribed to the Google Groups
 WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to documentation+unsubscr...@wso2.com.
 For 

Re: [Dev] [Architecture] Introducing JSR-223 into Jaggery along with Nashorn Support

2014-06-02 Thread Chan
+1 for the Nashorn update. Is it possible for us to follow an API similar
to NodeJS? This will make it easy for JavaScript developers to use Jaggery
runtime. Also would love to get console.log() for logging instead of making
Log objects and logging things (just a thought).

Cheers~


On Mon, Jun 2, 2014 at 2:02 AM, madhuka udantha madhukaudan...@gmail.com
wrote:




 On Mon, Jun 2, 2014 at 12:46 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Yes, it is the same, except application object



 itself is replaced by a module.

 +1



 On Mon, Jun 2, 2014 at 12:33 PM, madhuka udantha 
 madhukaudan...@gmail.com wrote:

 Hi, Ruchira

 'app.server()' is similar for existing  'application.serve()' in jaggery
 , isn't it regard functionality?

 Here[1] is sample for application.serve().

 [1]
 https://github.com/Madhuka/MadhukaBlogRepo/tree/master/SampleApps/JaggeryApps/service/



 On Sun, Jun 1, 2014 at 12:58 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi All,

 We have started the integration of JSR-223 i.e. javax.script API with
 Jaggery. Sorry for the lengthy mail, but this is just to share the status
 and get your all kinds of feedbacks. A Jaggery fork and a distribution with
 the following improvements can be found at [1] and [2] respectively. In
 case you want to try this out before sharing your feedbacks, you can
 download a Jaggery distribution with all the above implementations at [2].
 It consists of 5 demo apps. (At the moment, this has been tested only on
 linux/mac and you will have to run this either on JDK 7 or 8. As JDK 6
 supports only an older version of ECMAScript, this pack will not work. But
 in order to get the support even on JDK 6, we will have to pack the JSR-223
 rhino implementation with a rhino 1.7 version, following a similar way
 described at [7])

 With the integration with JSR-223, we had to and thought to do a few
 changes and improvements to Jaggery which will be detailed below. BUT,
 please note that, every existing Jaggery application will work as it is,
 independent of those improvements. i.e. With a version field in
 jaggery.conf, we internally decide, whether to go with the newer version.

 *Key Decisions*

1. JSR-223 support
   - With this, Jaggery will use Nashorn from JDK8 onwards and will
   fallback to JDK's embeded Rhino version with JDK7 or below.
2. Saying good bye for hostobjects
- Hostobjects are a concept of Rhino and it was needed to follow
   certain conventions when you write your hostobjects. With JSR-223, we
   cannot have it anymore. But, instead of that, you can refactor only 
 the
   hostobject *.java class into *.js file which contains the Java code 
 and
   plug it.
   3. Dropping E4X support
- E4X was an extension to ECMAScripts and usage of E4X is being
   deprecated in many places. Also, AFAIK, there is no support for E4X 
 in
   nashorn. This will be replaced by a Axiom/DOM like modules. i.e. 
 without
   altering the spec.
   4. Except the bare minimal, everything else is separated into
commonjs modules
- This will give much more flexibility and extendability for
   Jaggery. i.e. In order to extend Jaggery, developers don't need to 
 be Java
   developers anymore
   5. Introduction of app.server() method
- In the current version, routing mechanism has been implemented by
   Jaggery core and there is no way to intercept that. This makes it 
 harder to
   write cooler modules for Jaggery, such as express, connect for node. 
 Using
   app.server(), Jaggery core delegates request serving to a single 
 callback.
   But, via that callback, users can call their own routing modules and 
 do
   whatever they want. You can even implement the current *.jag model, 
 on top
   of app.server()[refer demo3]. Also, we have written an express like 
 routing
   framework which can be used to define REST APIs very easily through
   Jaggery. This will be a good alternative for JAX-RS developers too.
   6. Servlet 3.0 Async support
- Another key feature is utilizing Async servlet support. So,
   concurrency will not be restricted by the available thread count 
 anymore.
   7. CommonJS module system
   - At the moment, Jaggery has its own module system. Instead of
   that, we though of going ahead with commonjs module specification. 
 With
   this, commonjs compliant modules will be able to use within Jaggery. 
 i.e.
   Any node module which doesn't depend on node core APIs, can be used 
 in
   Jaggery as well, without doing any change.
   8. Module versioning and nested module support
   - Another improvement is, adding module versioning support for
   Jaggery modules. i.e. x app(or module) can use y1 version of y 
 module,
   while another z app(or module) can use y2 without conflicting each 
 other.
   For this too, we are also using package.json as per the commonjs
   specification
   

Re: [Dev] [AS] Casting Objects which are loaded by two different classloaders

2014-06-02 Thread Rajkumar Rajaratnam
Hi Sagara, KasunG,

Will this approach work?

Lets have a parent classloader for WebAppClassLoader.

We will load the BlockingService using parent classloader.

*obj* will be loaded by WebAppClassLoader.

Since its parent knows about BlockingService, we will be able to cast.

Is this possible to have a meeting today to sort out this issue?

Thanks.


On Mon, Jun 2, 2014 at 7:29 PM, Rajkumar Rajaratnam rajkum...@wso2.com
wrote:

 Hi,

 According to our offline discussion, we are trying to achieve this
 casting.

 BlockingService blockingService= (BlockingService) *obj*;

 But, at the end of the day, we are going to call the following method
 which is defined in our BinaryServiceRegistry.

 registerService(BlockingService blockingService)

 Here, BlockingService is already loaded by a classloader (
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@31887be4
 [com.google.protobuf:2.5.0(id=30)])

 Hence, registerService() method will only accept a BlockingService
 instance which is loaded by the same classloader as above.

 So what we should do is to load the *obj* in the same classloader as
 above. Otherwise we will not be able to register this *obj* in our
 BinaryServiceRegistry.

 But we were not able to do so. Because, this *obj* is already loaded by
 the WebAppClassLoader.

 I tried casting with transloader[1]. Its Reflection cloning is failing.
 And we can't use its Serialization cloning because our auto-generated stubs
 are not serializable.

 Any ideas?

 1. https://code.google.com/p/transloader/

 Thanks.



 On Sun, Jun 1, 2014 at 2:35 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Rajkumar,

 You can get the webapp classloader instance via ServletContext [1]. Then
 you could temporarily set the current thread context classloader just for
 the casting operation [2]. After that, set it back to the previous
 classloader. There might be better ways to do this though!


 [1]
 http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContext.html#getClassLoader()
 [2]
 http://docs.oracle.com/javase/6/docs/api/java/lang/Thread.html#setContextClassLoader(java.lang.ClassLoader)

 Regards,
 KasunG



 On Sun, Jun 1, 2014 at 11:37 AM, Rajkumar Rajaratnam rajkum...@wso2.com
 wrote:

 Hi all,

 We are writing our own Servlet Context Initializer for new
 ProtoBufServices (Binary Services). We have deployed a  ProtoBufService
 (HelloService). When ServletContainerInitializer finds the annotation
 @ProtoBufService, the onStartup() method is triggered. Everything works
 fine except one thing which is explained here.


 @HandlesTypes({ ProtoBufService.class })
 public class ProtoBufServletContextInitializer implements
 ServletContainerInitializer {

 @Override
 public void onStartup(SetClass? classes, ServletContext
 servletContext)


 throws ServletException {

 if (classes == null || classes.size() == 0) {
 return;
 }

 for (Class? clazz : classes) {

 Method myMethod=null;
 try {
 myMethod =
 clazz.getInterfaces()[0].getDeclaringClass().getMethod(newReflectiveBlockingService,
 clazz.getInterfaces()[0]);
 } catch (NoSuchMethodException | SecurityException e) {
 e.printStackTrace();
 }


 // get newReflectiveBlockingService() will return a
 BlockingService object.
 Object blockingServiceObj=null;
 try {
 blockingServiceObj = myMethod.invoke(null,
 clazz.newInstance());
 } catch (IllegalAccessException |
 IllegalArgumentException
 | InvocationTargetException |
 InstantiationException e) {
 e.printStackTrace();
 }


 BlockingService blockingService = (BlockingService)
 blockingServiceObj;
 /*
  * Casting throws ClassCastException.
  */



 System.out.println(blockingServiceObj.getClass().getClassLoader());
 /*
  * Output :
  *
  * WebappClassLoader
   context: /org.wso2.carbon.binary.sample.hello
   delegate: false
   repositories:
 /WEB-INF/classes/
 -- Parent Classloader:
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@5db01ad1


 [org.wso2.carbon.tomcat.patch:4.3.0.SNAPSHOT(id=365)]
  */




 System.out.println(BlockingService.class.getClassLoader());

 /*
  * Output :
  *
  *
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@31887be4
 [com.google.protobuf:2.5.0(id=30)]
  */

 }
 }

 }


 Now,

 BlockingService blockingService= (BlockingService) obj;

 throws following ClassCastExecption,

 java.lang.ClassCastException:
 

Re: [Dev] Support Tomcat Virtual Hosts in WSO2 AS - issues and progress so far

2014-06-02 Thread Nipuni Perera
I will implement and provide a patch.

Thanks,
Nipuni


On Mon, Jun 2, 2014 at 6:14 PM, Sameera Jayasoma same...@wso2.com wrote:

 Looks like we have a solution this problem. We simply need to way to
 register deployers which cannot be declared in component.xml, because users
 should be able add or remove deployers.

 Axis2DeployerRegistry.register() method registers all the Deployers
 declared in the component.xml files. These are static Deployers. Now we
 need to improve the Axis2DeployerRegistry.register() method handle the
 other type of deployers. e.g. Webapp deployers for registered virtual
 hosts.

 In this solution Axis2DeployerRegistry asks the dynamic webapp deployer
 list from the webapp-mgt component using an OSGi service registered by the
 webapp-mgt component. In order to achieve this we can introduce a generic
 interface. Say Axis2DeployerProvider. webapp-mgt component implements this
 interface and register an OSGi service. Say
 VirtualHostWebappDeployerProvider.

 Now Axis2DeployerRegistry.register() method can get all the OSGi services
 which implement the Axis2DeployerProvider interface and get the deployer
 list and register them. Easy..

 I guess Nipuni can implement this and provide a patch to Carbon kernel
 4.3.0.

 Thanks,
 Sameera.

 On Mon, Jun 2, 2014 at 5:28 PM, Sameera Jayasoma same...@wso2.com wrote:

 We do no recommend to register deployers programmatically. The
 recommended approach is to declare them in the component.xml. This allows
 Carbon kernel to read and register deployers before initializing Apache
 Axis2 engine. If you register deployers programmatically, Carbon kernel
 does not have any control. Your artifacts may get deployed after server has
 been started. I.e. after the transports are started.

 The above approach perfectly fits if the deployers do not get added or
 removed dynamically. But in your case, we cannot predict the number of
 deployers. I.e. for every new virtual host, there will be a new webapp
 deployer. Therefore we cannot list all the deployers in the component.xml.
 Now we need to come up with a solution to support this requirement.

 Thanks,
 Sameera.



 On Mon, Jun 2, 2014 at 2:43 PM, Kasun Gajasinghe kas...@wso2.com wrote:




 On Mon, Jun 2, 2014 at 2:05 PM, Nipuni Perera nip...@wso2.com wrote:

 I didn't change the default deployer. I only read appBase values of
 virtual hosts and added them to the deployment engine. But the webapp
 deployment take place just after management console is started.


 This happens if the deployers got added after axis2 has started IIRC.
 So, we need to make sure of the order. But unfortunately, we do not have a
 proper way to force this order currently.

 @Sameera, any ideas?


 Thanks,
 Nipuni


 On Mon, Jun 2, 2014 at 12:28 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 I do not think that you should remove the default webapp deployer from
 component.xml. Your should be in effect only for the additional virtual
 hosts.


 On Mon, Jun 2, 2014 at 9:25 AM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is working. This was due to an ip address conflict.

 Thanks,
 Nipuni


 On Sun, Jun 1, 2014 at 3:41 PM, Nipuni Perera nip...@wso2.com
 wrote:

 Hi,

 I am working on the $subject. According to the current
 implementation users has to put webapps inside
 repositro/depolment/server/webapss and access them via host name
 localhost only. I have modified carbontomcat.java to deploy webapps 
 in a
 location defined inside appBase of virtualhosts. But this needs to add 
 an
 entry to component.xml to direct the name of webapps directory to the
 relevent WebAppDeployer class. (Adding an entry to component.xml each 
 time
 a new appBase is created is not preferred)

 I have tried following steps when adding deployers to deployment
 engine without reading component.xml file. When reading component.xml 
 file,
 the Axis2DeployerRegistry class adds the deployers and relevant 
 directory
 names to a deploymentEngine. In order to skip reading component.xml,
 deployment engine should be updated using the virtual host appBase 
 values
 and deployer names.

 *Scenario 1*


1. I created a new service component class inside
/org/wso2/carbon/webapp/deployer/internal/ and added following,

  CarbonTomcatService
 carbonTomcatService = DataHolder.getCarbonTomcatService();
  DeploymentEngine deploymentEngine =
 (DeploymentEngine)(DataHolder.getServerConfigContext().getAxisConfiguration()).getConfigurator();

  This gave null values to both variables.
 (serverConfigContext and carbonTomcatService variables initialize
 inside service components in /org/wso2/carbon/webapp/mgt/internal. So it
 seems the newly created service component classes executes first)

 *Scenario 2*

1.  I have created a new OSGI bundle which tries to read above
two variables inside its Activator class and service component 
 class. I
could read proper values 

[Dev] [DEV][ESB] Aggregate mediator error in building the OMElement

2014-06-02 Thread Rajith Siriwardena
Hi,

Our requirement is to aggregate similar soap bodies using aggregate
mediator. With the following synapse.xml with *two log mediators in proxy
services it works fine* *and gives the required aggregated (attached:
aggregated.xml) output*. but if I remove the log mediators in proxy
services it gives the following error (attached: error.txt) and it shows
that for the every message from each proxy /ns:HOSTS  parent tag is
appended as a child element to the last ns:HOST element. (attached:
errornous_message.xml)
I have also tried with new ESB pack and done it from the scratch but same
thing happened. I also debugged the class mediators and it gives the
required message.

environment: WSO2 ESB 4.8.1

what causes this behavior? anything i'm doing wrong here?

Thanks
--Rajith
-- 
*Rajith Siriwardana*
Software Engineer
WSO2 Inc. ; http://wso2.com
*lean. enterprise. middleware*

--
*http://people.apache.org/~siriwardana
http://people.apache.org/~siriwardana*
[2014-06-03 09:41:55,992] ERROR - NativeWorkerPool Uncaught exception
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: 
ParseError at [row,col]:[3,66]
Message: XML document structures must start and end within the same entity.
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
at 
org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:722)
at 
org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:298)
at 
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at 
org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:84)
at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:245)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,66]
Message: XML document structures must start and end within the same entity.
at 
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:598)
at 
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
at 
org.apache.axiom.util.stax.dialect.DisallowDoctypeDeclStreamReaderWrapper.next(DisallowDoctypeDeclStreamReaderWrapper.java:34)
at 
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
at 
org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper.next(SJSXPStreamReaderWrapper.java:138)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
... 16 more
?xml version=1.0 encoding=UTF-8?
definitions xmlns=http://ws.apache.org/ns/synapse;
   registry provider=org.wso2.carbon.mediation.registry.WSO2Registry
  parameter name=cachableDuration15000/parameter
   /registry
   proxy name=GangliaProxy
  transports=https http
  startOnLoad=true
  trace=disable
  description/
  target
 inSequence
class name=org.wso2.carbon.cloud.monitor.agent.mediators.ganglia.GangliaAdapter
   property name=port value=8651/
   property name=gmetadHost value=localhost/
   property name=metrics value=CPU_SPEED, disk free,Load_one/
/class
header name=To action=remove/
property name=RESPONSE value=true/
log level=full
   property name=MESSAGE value=#-GANGLIA-#/
/log
send/
 /inSequence
  /target
   /proxy
   proxy name=CloudHBMonProxy
  transports=https http
  startOnLoad=true
  trace=disable
  description/
  target
 inSequence
class 

[Dev] BAM error when ruining hive script

2014-06-02 Thread Dinesh Bandara
Hi ,

When ruining the hive script following error occurred,

TID: [0] [BAM] [2014-06-02 10:56:42,269]  WARN {org.apache.hadoop.mapred.
JobClient} -  Use GenericOptionsParser for parsing the arguments.
Applications should implement Tool for the same.
{org.apache.hadoop.mapred.JobClient}
TID: [0] [BAM] [2014-06-02 10:57:21,125] ERROR
{org.apache.hadoop.hive.ql.exec.Task} -  Ended Job = job_201406021038_0008
with errors {org.apache.hadoop.hive.ql.exec.Task}
TID: [0] [BAM] [2014-06-02 10:57:21,126] ERROR
{org.apache.hadoop.hive.ql.exec.Task} -  Error during job, obtaining
debugging information... {org.apache.hadoop.hive.ql.exec.Task}
TID: [0] [BAM] [2014-06-02 10:57:21,134] ERROR
{org.apache.hadoop.hive.ql.exec.Task} -  Examining task ID:
task_201406021038_0008_m_03 (and more) from job job_201406021038_0008
{org.apache.hadoop.hive.ql.exec.Task}
TID: [0] [BAM] [2014-06-02 10:57:21,136] ERROR
{org.apache.hadoop.hive.ql.exec.Task} -  Unable to find job tracker info
port. {org.apache.hadoop.hive.ql.exec.Task}
TID: [0] [BAM] [2014-06-02 10:57:21,155] ERROR
{org.apache.hadoop.hive.ql.Driver} -  FAILED: Execution Error, return code
2 from org.apache.hadoop.hive.ql.exec.MapRedTask
{org.apache.hadoop.hive.ql.Driver}
TID: [0] [BAM] [2014-06-02 10:57:21,156] ERROR
{org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
while executing Hive script.
Query returned non-zero code: 9, cause: FAILED: Execution Error, return
code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
{org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl}
java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
Execution Error, return code 2 from
org.apache.hadoop.hive.ql.exec.MapRedTask
at
org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:569)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:282)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:189)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
TID: [0] [BAM] [2014-06-02 10:57:21,168] ERROR
{org.wso2.carbon.analytics.hive.ui.client.HiveExecutionClient} -  Error
while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
Execution Error, return code 2 from
org.apache.hadoop.hive.ql.exec.MapRedTask
{org.wso2.carbon.analytics.hive.ui.client.HiveExecutionClient}
org.wso2.carbon.analytics.hive.stub.HiveExecutionServiceHiveExecutionException:
HiveExecutionServiceHiveExecutionException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Any Idea on how to solve this?
Thanks

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


Re: [Dev] BAM error when ruining hive script

2014-06-02 Thread Inosh Goonewardena
Hi Dinesh,

Can you attach your hive script?


On Tue, Jun 3, 2014 at 11:09 AM, Dinesh Bandara dine...@wso2.com wrote:

 Hi ,

 When ruining the hive script following error occurred,

 TID: [0] [BAM] [2014-06-02 10:56:42,269]  WARN {org.apache.hadoop.mapred.
 JobClient} -  Use GenericOptionsParser for parsing the arguments.
 Applications should implement Tool for the same.
 {org.apache.hadoop.mapred.JobClient}
 TID: [0] [BAM] [2014-06-02 10:57:21,125] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Ended Job = job_201406021038_0008
 with errors {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,126] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Error during job, obtaining
 debugging information... {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,134] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Examining task ID:
 task_201406021038_0008_m_03 (and more) from job job_201406021038_0008
 {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,136] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Unable to find job tracker info
 port. {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,155] ERROR
 {org.apache.hadoop.hive.ql.Driver} -  FAILED: Execution Error, return code
 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
 {org.apache.hadoop.hive.ql.Driver}
 TID: [0] [BAM] [2014-06-02 10:57:21,156] ERROR
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
 while executing Hive script.
 Query returned non-zero code: 9, cause: FAILED: Execution Error, return
 code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl}
 java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 2 from
 org.apache.hadoop.hive.ql.exec.MapRedTask
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:569)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:282)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:189)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 TID: [0] [BAM] [2014-06-02 10:57:21,168] ERROR
 {org.wso2.carbon.analytics.hive.ui.client.HiveExecutionClient} -  Error
 while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 2 from
 org.apache.hadoop.hive.ql.exec.MapRedTask
 {org.wso2.carbon.analytics.hive.ui.client.HiveExecutionClient}
 org.wso2.carbon.analytics.hive.stub.HiveExecutionServiceHiveExecutionException:
 HiveExecutionServiceHiveExecutionException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)

 Any Idea on how to solve this?
 Thanks

 --
 *Dinesh Bandara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware


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




-- 
Regards,

Inosh Goonewardena
Associate Technical Lead- WSO2 Inc.
Mobile: +94779966317
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull request on wso2 repo

2014-06-02 Thread Vanjikumaran Sivajothy
Hi bhathiya,

Due to the continuous delivery policy on GIT, you are not liable to send a
pull request directly to the wso2 main repo[1]. Therefore we are closing
your pull request[2] without merging into the main master repo.


Please send a pull request to our development repo [3], thereafter we can
review and merge your code. Furthermore, i have re-opend the relaven public
jira ticket to track this. Once your have send the pull request to dev
repo[3], We can resolve it[4].



[1]https://github.com/wso2/product-esb
[2]https://github.com/wso2/product-esb/pull/1
[3]https://github.com/wso2-dev/product-esb
https://github.com/wso2/product-esb
[4]https://wso2.org/jira/browse/ESBJAVA-3022

-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com http://wso2.com/*
*Mobile:(+94)777219209*
[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
https://twitter.com/vanjikumaran [image: LinkedIn]
http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
http://www.slideshare.net/vanjikumaran

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


Re: [Dev] BAM error when ruining hive script

2014-06-02 Thread Gihan Anuruddha
This might be due to sql error. Please check your sql statement separately.


On Tue, Jun 3, 2014 at 11:19 AM, Inosh Goonewardena in...@wso2.com wrote:

 Hi Dinesh,

 Can you attach your hive script?


 On Tue, Jun 3, 2014 at 11:09 AM, Dinesh Bandara dine...@wso2.com wrote:

 Hi ,

 When ruining the hive script following error occurred,

 TID: [0] [BAM] [2014-06-02 10:56:42,269]  WARN {org.apache.hadoop.mapred.
 JobClient} -  Use GenericOptionsParser for parsing the arguments.
 Applications should implement Tool for the same.
 {org.apache.hadoop.mapred.JobClient}
 TID: [0] [BAM] [2014-06-02 10:57:21,125] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Ended Job = job_201406021038_0008
 with errors {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,126] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Error during job, obtaining
 debugging information... {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,134] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Examining task ID:
 task_201406021038_0008_m_03 (and more) from job job_201406021038_0008
 {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,136] ERROR
 {org.apache.hadoop.hive.ql.exec.Task} -  Unable to find job tracker info
 port. {org.apache.hadoop.hive.ql.exec.Task}
 TID: [0] [BAM] [2014-06-02 10:57:21,155] ERROR
 {org.apache.hadoop.hive.ql.Driver} -  FAILED: Execution Error, return code
 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
 {org.apache.hadoop.hive.ql.Driver}
 TID: [0] [BAM] [2014-06-02 10:57:21,156] ERROR
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
 while executing Hive script.
 Query returned non-zero code: 9, cause: FAILED: Execution Error, return
 code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl}
 java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 2 from
 org.apache.hadoop.hive.ql.exec.MapRedTask
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:569)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:282)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:189)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 TID: [0] [BAM] [2014-06-02 10:57:21,168] ERROR
 {org.wso2.carbon.analytics.hive.ui.client.HiveExecutionClient} -  Error
 while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 2 from
 org.apache.hadoop.hive.ql.exec.MapRedTask
 {org.wso2.carbon.analytics.hive.ui.client.HiveExecutionClient}
 org.wso2.carbon.analytics.hive.stub.HiveExecutionServiceHiveExecutionException:
 HiveExecutionServiceHiveExecutionException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)

 Any Idea on how to solve this?
 Thanks

 --
 *Dinesh Bandara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware


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




 --
 Regards,

 Inosh Goonewardena
 Associate Technical Lead- WSO2 Inc.
 Mobile: +94779966317

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




-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev