Re: [Dev] WSO2 Committers += Asitha Nanayakkara

2014-11-23 Thread Lahiru Chandima
/listinfo/dev



 ___
 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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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




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

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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




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


Re: [Dev] Axis2 deployer doesn't work for tenants

2014-11-17 Thread Lahiru Chandima
Thanks everyone for the help.

Found the error that prevented already existing artifacts in a tenant from
getting deployed when tenant is loaded.

Actually, deploy() method in deployer had been getting called on the tenant
loadup even though I didn't notice.

But, I had used PrivilegedCarbonContext.getCurrentContext().getTenantId()
to get the tenant id. This returns -1234 when the artifacts are deployed
for the first time when the tenant is loaded. So in deploy() method,
created artifact is added to the super tenant.

Found that getCurrentContext() shouldn't be used and
getThreadLocalCarbonContext() should be used instead. When
getThreadLocalCarbonContext() is used, problem got resolved.

Thanks

On Sat, Nov 15, 2014 at 5:52 PM, Afkham Azeez az...@wso2.com wrote:

 Tenants are lazy loaded. Tenants mainly get loaded only if a request for
 that tenant was received, and after 15 minutes of inactivity, the tenant
 will get unloaded again. When a tenant is not loaded, its deployers will
 not get triggered.

 On Sat, Nov 15, 2014 at 12:20 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Frizhan,

 Thanks for the information.

 Is there any way I can automatically re-deploy artifacts for tenants on
 startup? If I log in using a tenant user to ESB, I can see the proxy
 service artifacts that were added earlier, showing that they were somehow
 re-deployed. So I think there should be a way.

 Thanks

 On Sat, Nov 15, 2014 at 10:31 AM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Lahiru,

 Deployer's deploy() method will get trigger only when artifacts are
 being deployed.

 For super-tenant during the server start-up axis2 re-deploys the
 artifacts, thus triggering deploy(). But for tenants nothing happens like
 that unless you do it manually.



 Regards,
 Firzhan

 On Sat, Nov 15, 2014 at 7:33 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Lasantha,

 Thanks for the solution.

 logging in as a tenant user solved the problem. Now new artifacts that
 I add after tenant is loaded get deployed.

 But, the artifacts that were already there in my tenant artifact
 directory neither gets deployed at server startup nor when a tenant user is
 logged in. But these artifacts get deployed if I do some change to them
 after a tenant user logs in.

 What may be the reason for this?

 Thanks


 On Sat, Nov 15, 2014 at 12:08 AM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Hi Lahiru,

 Can you verify whether your tenant is loaded in the server? (If you
 simply login as a tenant user, the tenant should be loaded)

 If your tenant is not loaded, the deployment of artifacts for that
 particular tenant will not happen. AFAIK, this is the expected behaviour
 for a carbon server since we load tenants lazily.

 Thanks,
 Lasantha

 On 14 November 2014 22:58, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Firzhan,

 Thanks for the reply.

 Tried your method and its working for files deployed in
 repository/deployment/server/event-sinks. But still no luck with 
 deploying
 for a tenant (in repository/tenants/1/event-sinks)

 Any idea why?

 Thanks

 On Fri, Nov 14, 2014 at 8:10 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Lahiru,

 Rathern than defining them in axis2.xml, you can define them in
 compnent.xml and pom.xml file which worked for me [1]

 [1]
 http://architects.dzone.com/articles/writing-axis2-custom-deployers

 Regards,
 Firzhan

 On Fri, Nov 14, 2014 at 7:14 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I have created an Axis2 deployer to deploy an xml artifact. I have
 added following to repository/conf/axis2/axis2.xml

 deployer extension=.xml
 class=org.wso2.carbon.event.sink.EventSinkDeployer
 directory=event-sinks/

 And I have created a directory named event-sinks for my new
 artifact type in repository/deployment/server

 When I add a new xml artifact to the event-sinks directory,
 deploy(DeploymentFileData deploymentFileData) in my deployer gets 
 called
 without a problem.

 But, if I deploy an artifact for a tenant (eg: in directory
 repository/tenants/1/event-sinks for tenant 1), deploy() method of my
 deployer doesn't get called.

 What have I done wrong? Have I created event-sinks directory in the
 wrong location for tenant 1?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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

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




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com





 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94

Re: [Dev] Axis2 deployer doesn't work for tenants

2014-11-15 Thread Lahiru Chandima
Thanks Frizhan, Udara, Lasantha for replies.

Hi Lasantha,

I am using ESB 4.8.1, which is the latest available through WSO2 website.

I have attached the axis2.xml and carbon.xml here. And following is git my
deployer class in Github.

https://github.com/lahiruchandima/event-sink/blob/master/org.wso2.carbon.event.sink/4.2.0/src/main/java/org/wso2/carbon/event/sink/EventSinkDeployer.java

Can you please have a look?

Thanks


On Sat, Nov 15, 2014 at 2:54 PM, Lasantha Fernando lasan...@wso2.com
wrote:

 Hi Lahiru,

 On 15 November 2014 14:04, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I don't think manually touching the artifacts is a wise solution.
 As mentioned by Lasantha artifacts are not deployed until tenant is
 loaded. Imagine a production setup with a large number of tenants and each
 tenant has artifacts, then it will takes a long time to deploy all
 artifacts. Delaying artifact deployment is called ghost deployment [1].
 Try sending a request to the not deployed artifacts and check if deploy()
 is get called.

 [1]
 http://blog.afkham.org/2011/11/lazy-loading-deployment-artifacts-in.html?m=1



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Nov 15, 2014 1:49 PM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Lahiru,

 You can get the carbon tenant repository by
 using CarbonUtils.getCarbonTenantsDirPath().

 With in the the tenant repository you can get the array of folder names
 ( tenant ID ).

 There after you can iterate the tenant id array and access the
 event-sinks folder for each tenant.


 Regards,
 Firzhan

 On Sat, Nov 15, 2014 at 1:32 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Thanks Frizhan for the nice solution :)

 Do you know a way to programmatically get deployment directory path of
 a tenant?

 Thanks

 On Sat, Nov 15, 2014 at 1:12 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Lahiru,

 On that case, you can touch(update) the artifacts of tenanat's once
 the bundle get activated :) . This is not an elegant solution.

 There might be other better proper ways to achieve this.

 Regards,
 Firzhan

 On Sat, Nov 15, 2014 at 12:35 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Frizhan,

 Thanks for the information.

 Is there any way I can automatically re-deploy artifacts for tenants
 on startup? If I log in using a tenant user to ESB, I can see the proxy
 service artifacts that were added earlier, showing that they were somehow
 re-deployed. So I think there should be a way.

 Thanks

 On Sat, Nov 15, 2014 at 10:31 AM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Lahiru,

 Deployer's deploy() method will get trigger only when artifacts are
 being deployed.

 For super-tenant during the server start-up axis2 re-deploys the
 artifacts, thus triggering deploy(). But for tenants nothing happens 
 like
 that unless you do it manually.



 Regards,
 Firzhan

 On Sat, Nov 15, 2014 at 7:33 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Lasantha,

 Thanks for the solution.

 logging in as a tenant user solved the problem. Now new artifacts
 that I add after tenant is loaded get deployed.

 But, the artifacts that were already there in my tenant artifact
 directory neither gets deployed at server startup nor when a tenant 
 user is
 logged in. But these artifacts get deployed if I do some change to them
 after a tenant user logs in.

 What may be the reason for this?


 This is actually strange. When ghost deployment is not enabled (which is
 the  default AFAIK), when the tenant is loaded all the related artifacts
 should get deployed (as explained in the blog post by Azeez which was
 suggested by Udara above). I assume you are testing this on a Carbon-4.3.0
 based server (ESB-4.9.0?). I tested this scenario for CEP 4.0.0-SNAPSHOT
 build which is also based on Carbon 4.3.0 and tenant artifacts that were
 previously there in the directory get deployed fine after the tenant is
 loaded.

 Can you share the configs (axis2.xml, carbon.xml) related to your test
 setup? Also, do you have any source location where your deployer code is
 committed? Maybe we can go through that and see if there is any config
 issue or similar.


 Thanks


 On Sat, Nov 15, 2014 at 12:08 AM, Lasantha Fernando 
 lasan...@wso2.com wrote:

 Hi Lahiru,

 Can you verify whether your tenant is loaded in the server? (If
 you simply login as a tenant user, the tenant should be loaded)

 If your tenant is not loaded, the deployment of artifacts for that
 particular tenant will not happen. AFAIK, this is the expected 
 behaviour
 for a carbon server since we load tenants lazily.

 Thanks,
 Lasantha

 On 14 November 2014 22:58, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Firzhan,

 Thanks for the reply.

 Tried your method and its working for files deployed in
 repository/deployment/server/event-sinks. But still no luck with 
 deploying
 for a tenant (in repository/tenants/1/event-sinks)

 Any idea why?

 Thanks

 On Fri, Nov 14, 2014 at 8:10 PM, Firzhan Naqash firz...@wso2.com
  wrote:

 Hi Lahiru

[Dev] Axis2 deployer doesn't work for tenants

2014-11-14 Thread Lahiru Chandima
Hi All,

I have created an Axis2 deployer to deploy an xml artifact. I have added
following to repository/conf/axis2/axis2.xml

deployer extension=.xml
class=org.wso2.carbon.event.sink.EventSinkDeployer
directory=event-sinks/

And I have created a directory named event-sinks for my new artifact type
in repository/deployment/server

When I add a new xml artifact to the event-sinks directory,
deploy(DeploymentFileData deploymentFileData) in my deployer gets called
without a problem.

But, if I deploy an artifact for a tenant (eg: in directory
repository/tenants/1/event-sinks for tenant 1), deploy() method of my
deployer doesn't get called.

What have I done wrong? Have I created event-sinks directory in the wrong
location for tenant 1?

Thanks

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


Re: [Dev] Axis2 deployer doesn't work for tenants

2014-11-14 Thread Lahiru Chandima
Hi Firzhan,

Thanks for the reply.

Tried your method and its working for files deployed in
repository/deployment/server/event-sinks. But still no luck with deploying
for a tenant (in repository/tenants/1/event-sinks)

Any idea why?

Thanks

On Fri, Nov 14, 2014 at 8:10 PM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Lahiru,

 Rathern than defining them in axis2.xml, you can define them in
 compnent.xml and pom.xml file which worked for me [1]

 [1] http://architects.dzone.com/articles/writing-axis2-custom-deployers

 Regards,
 Firzhan

 On Fri, Nov 14, 2014 at 7:14 PM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi All,

 I have created an Axis2 deployer to deploy an xml artifact. I have added
 following to repository/conf/axis2/axis2.xml

 deployer extension=.xml
 class=org.wso2.carbon.event.sink.EventSinkDeployer
 directory=event-sinks/

 And I have created a directory named event-sinks for my new artifact type
 in repository/deployment/server

 When I add a new xml artifact to the event-sinks directory,
 deploy(DeploymentFileData deploymentFileData) in my deployer gets called
 without a problem.

 But, if I deploy an artifact for a tenant (eg: in directory
 repository/tenants/1/event-sinks for tenant 1), deploy() method of my
 deployer doesn't get called.

 What have I done wrong? Have I created event-sinks directory in the wrong
 location for tenant 1?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





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


Re: [Dev] Axis2 deployer doesn't work for tenants

2014-11-14 Thread Lahiru Chandima
Hi Lasantha,

Thanks for the solution.

logging in as a tenant user solved the problem. Now new artifacts that I
add after tenant is loaded get deployed.

But, the artifacts that were already there in my tenant artifact directory
neither gets deployed at server startup nor when a tenant user is logged
in. But these artifacts get deployed if I do some change to them after a
tenant user logs in.

What may be the reason for this?

Thanks


On Sat, Nov 15, 2014 at 12:08 AM, Lasantha Fernando lasan...@wso2.com
wrote:

 Hi Lahiru,

 Can you verify whether your tenant is loaded in the server? (If you simply
 login as a tenant user, the tenant should be loaded)

 If your tenant is not loaded, the deployment of artifacts for that
 particular tenant will not happen. AFAIK, this is the expected behaviour
 for a carbon server since we load tenants lazily.

 Thanks,
 Lasantha

 On 14 November 2014 22:58, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Firzhan,

 Thanks for the reply.

 Tried your method and its working for files deployed in
 repository/deployment/server/event-sinks. But still no luck with deploying
 for a tenant (in repository/tenants/1/event-sinks)

 Any idea why?

 Thanks

 On Fri, Nov 14, 2014 at 8:10 PM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Lahiru,

 Rathern than defining them in axis2.xml, you can define them in
 compnent.xml and pom.xml file which worked for me [1]

 [1] http://architects.dzone.com/articles/writing-axis2-custom-deployers

 Regards,
 Firzhan

 On Fri, Nov 14, 2014 at 7:14 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I have created an Axis2 deployer to deploy an xml artifact. I have
 added following to repository/conf/axis2/axis2.xml

 deployer extension=.xml
 class=org.wso2.carbon.event.sink.EventSinkDeployer
 directory=event-sinks/

 And I have created a directory named event-sinks for my new artifact
 type in repository/deployment/server

 When I add a new xml artifact to the event-sinks directory,
 deploy(DeploymentFileData deploymentFileData) in my deployer gets called
 without a problem.

 But, if I deploy an artifact for a tenant (eg: in directory
 repository/tenants/1/event-sinks for tenant 1), deploy() method of my
 deployer doesn't get called.

 What have I done wrong? Have I created event-sinks directory in the
 wrong location for tenant 1?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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

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




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


Re: [Dev] Axis2 deployer doesn't work for tenants

2014-11-14 Thread Lahiru Chandima
Hi Frizhan,

Thanks for the information.

Is there any way I can automatically re-deploy artifacts for tenants on
startup? If I log in using a tenant user to ESB, I can see the proxy
service artifacts that were added earlier, showing that they were somehow
re-deployed. So I think there should be a way.

Thanks

On Sat, Nov 15, 2014 at 10:31 AM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Lahiru,

 Deployer's deploy() method will get trigger only when artifacts are being
 deployed.

 For super-tenant during the server start-up axis2 re-deploys the
 artifacts, thus triggering deploy(). But for tenants nothing happens like
 that unless you do it manually.



 Regards,
 Firzhan

 On Sat, Nov 15, 2014 at 7:33 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Lasantha,

 Thanks for the solution.

 logging in as a tenant user solved the problem. Now new artifacts that I
 add after tenant is loaded get deployed.

 But, the artifacts that were already there in my tenant artifact
 directory neither gets deployed at server startup nor when a tenant user is
 logged in. But these artifacts get deployed if I do some change to them
 after a tenant user logs in.

 What may be the reason for this?

 Thanks


 On Sat, Nov 15, 2014 at 12:08 AM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Hi Lahiru,

 Can you verify whether your tenant is loaded in the server? (If you
 simply login as a tenant user, the tenant should be loaded)

 If your tenant is not loaded, the deployment of artifacts for that
 particular tenant will not happen. AFAIK, this is the expected behaviour
 for a carbon server since we load tenants lazily.

 Thanks,
 Lasantha

 On 14 November 2014 22:58, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Firzhan,

 Thanks for the reply.

 Tried your method and its working for files deployed in
 repository/deployment/server/event-sinks. But still no luck with deploying
 for a tenant (in repository/tenants/1/event-sinks)

 Any idea why?

 Thanks

 On Fri, Nov 14, 2014 at 8:10 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Lahiru,

 Rathern than defining them in axis2.xml, you can define them in
 compnent.xml and pom.xml file which worked for me [1]

 [1]
 http://architects.dzone.com/articles/writing-axis2-custom-deployers

 Regards,
 Firzhan

 On Fri, Nov 14, 2014 at 7:14 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I have created an Axis2 deployer to deploy an xml artifact. I have
 added following to repository/conf/axis2/axis2.xml

 deployer extension=.xml
 class=org.wso2.carbon.event.sink.EventSinkDeployer
 directory=event-sinks/

 And I have created a directory named event-sinks for my new artifact
 type in repository/deployment/server

 When I add a new xml artifact to the event-sinks directory,
 deploy(DeploymentFileData deploymentFileData) in my deployer gets called
 without a problem.

 But, if I deploy an artifact for a tenant (eg: in directory
 repository/tenants/1/event-sinks for tenant 1), deploy() method of my
 deployer doesn't get called.

 What have I done wrong? Have I created event-sinks directory in the
 wrong location for tenant 1?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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

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




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com





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


Re: [Dev] Axis2 deployer doesn't work for tenants

2014-11-14 Thread Lahiru Chandima
Thanks Frizhan for the nice solution :)

Do you know a way to programmatically get deployment directory path of a
tenant?

Thanks

On Sat, Nov 15, 2014 at 1:12 PM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Lahiru,

 On that case, you can touch(update) the artifacts of tenanat's once the
 bundle get activated :) . This is not an elegant solution.

 There might be other better proper ways to achieve this.

 Regards,
 Firzhan

 On Sat, Nov 15, 2014 at 12:35 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Frizhan,

 Thanks for the information.

 Is there any way I can automatically re-deploy artifacts for tenants on
 startup? If I log in using a tenant user to ESB, I can see the proxy
 service artifacts that were added earlier, showing that they were somehow
 re-deployed. So I think there should be a way.

 Thanks

 On Sat, Nov 15, 2014 at 10:31 AM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Lahiru,

 Deployer's deploy() method will get trigger only when artifacts are
 being deployed.

 For super-tenant during the server start-up axis2 re-deploys the
 artifacts, thus triggering deploy(). But for tenants nothing happens like
 that unless you do it manually.



 Regards,
 Firzhan

 On Sat, Nov 15, 2014 at 7:33 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Lasantha,

 Thanks for the solution.

 logging in as a tenant user solved the problem. Now new artifacts that
 I add after tenant is loaded get deployed.

 But, the artifacts that were already there in my tenant artifact
 directory neither gets deployed at server startup nor when a tenant user is
 logged in. But these artifacts get deployed if I do some change to them
 after a tenant user logs in.

 What may be the reason for this?

 Thanks


 On Sat, Nov 15, 2014 at 12:08 AM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Hi Lahiru,

 Can you verify whether your tenant is loaded in the server? (If you
 simply login as a tenant user, the tenant should be loaded)

 If your tenant is not loaded, the deployment of artifacts for that
 particular tenant will not happen. AFAIK, this is the expected behaviour
 for a carbon server since we load tenants lazily.

 Thanks,
 Lasantha

 On 14 November 2014 22:58, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Firzhan,

 Thanks for the reply.

 Tried your method and its working for files deployed in
 repository/deployment/server/event-sinks. But still no luck with 
 deploying
 for a tenant (in repository/tenants/1/event-sinks)

 Any idea why?

 Thanks

 On Fri, Nov 14, 2014 at 8:10 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Lahiru,

 Rathern than defining them in axis2.xml, you can define them in
 compnent.xml and pom.xml file which worked for me [1]

 [1]
 http://architects.dzone.com/articles/writing-axis2-custom-deployers

 Regards,
 Firzhan

 On Fri, Nov 14, 2014 at 7:14 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I have created an Axis2 deployer to deploy an xml artifact. I have
 added following to repository/conf/axis2/axis2.xml

 deployer extension=.xml
 class=org.wso2.carbon.event.sink.EventSinkDeployer
 directory=event-sinks/

 And I have created a directory named event-sinks for my new
 artifact type in repository/deployment/server

 When I add a new xml artifact to the event-sinks directory,
 deploy(DeploymentFileData deploymentFileData) in my deployer gets 
 called
 without a problem.

 But, if I deploy an artifact for a tenant (eg: in directory
 repository/tenants/1/event-sinks for tenant 1), deploy() method of my
 deployer doesn't get called.

 What have I done wrong? Have I created event-sinks directory in the
 wrong location for tenant 1?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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

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




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com





 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com





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


[Dev] wso2:vault-lookup() fails

2014-11-07 Thread Lahiru Chandima
Hi All,

I am trying to store a password in secure vault and access it through an
alias in google spreadsheets ESB connector.

Here are the steps I followed.

1)  Run sh ciphertool.sh -Dconfigure from bin directory
2) Restarted ESB (needed a password to start)
3) Added new security vault password with alias google.spreadsheet.password
through management console (Secure Vault Tool - Manage Passwords)
4) Used following in my sequence

googlespreadsheet.usernameLogin
usernamelahiruchand...@gmail.com/username
password{wso2:vault-lookup('google.spreadsheet.password')}/password
/googlespreadsheet.usernameLogin


But spreadsheet authentication fails with above configuration. I debugged
in synapse source and found that the vault lookup returns an empty string
for the password. (
org.wso2.carbon.mediation.security.vault.RegistrySecretRepository.getSecret()
returns an empty string).

Can someone help me figure out what is going wrong?

Thanks

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


Re: [Dev] What is ESB mediator serializer for?

2014-11-04 Thread Lahiru Chandima
Hi Dilan,

Isn't it createSpecificMediator() that is called to create a mediator from
configuration file?

I searched in the synapse source for usages of createSpecificMediator() and
found that serializeSpecificMediator() is used in deployers mostly for
restoring the XML in error conditions.

Anyway, why I wanted to know when serializeSpecificMediator() is called is
to check the correctness of my serializer. I found
org.apache.synapse.mediators.AbstractTestCase.serialization() method which
can do that. Now I can check the correctness of my serializer using that.

Thanks everyone for help


On Tue, Nov 4, 2014 at 6:48 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Lahiru,

 AFAIK, serializeSpecificMediator() is the method that gets called when we
 are reading the relevant configuration xml for a specific mediator from the
 esb configuration file
 and input that to the mediate() function of the mediator to do the
 corresponding processing.

 Cheers.


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Nov 4, 2014 at 12:45 PM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Maninda,

 I thought the conversion of the mediator to xml and vice versa is done by
 the mediator class in the mediator configuration UI bundle. It has
 serialize() method to convert mediator to XML and build() method to build a
 mediator from XML.

 Anyway, I will check whether serializeSpecificMediator() gets called when
 configuring the mediator in UI when I implement the UI bundle.

 Thanks.

 On Tue, Nov 4, 2014 at 12:34 PM, Maninda Edirisooriya mani...@wso2.com
 wrote:

 Hi Lahiru,

 As earlier said by Isuru, it is used to convert the mediator UI entered
 configuration to generate the mediator XML as I remember. And you may find
 another class to generate the UI from this XML back which does the reverse
 of the serializer. These two classes will be called when you switch between
 UI view and source view of the mediator UI as I remember.


 *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 Tue, Nov 4, 2014 at 12:24 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Isuru,

 Actually the blog post you provided is the one that I am already
 referring to :). It specifies to create a serializer but doesn't mention
 what is the need of a serializer.

 Thanks.

 On Tue, Nov 4, 2014 at 12:18 PM, Isuru Ranawaka isu...@wso2.com
 wrote:

 Hi ,

 Hope following links help you

 http://maninda.blogspot.com/2013/01/writing-custom-mediator-for-wso2-esb.html
 http://wso2.com/library/2936/

 On Tue, Nov 4, 2014 at 12:06 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Waruna,

 My OSGi bundle is active. mediate() method of the mediator gets
 called without a problem. The problem is that serializeSpecificMediator()
 doesn't get called.

 Hi Isuru,

 Isn't  it
 org.wso2.carbon.mediator.service.ui.AbstractMediator.serialize()
 method (which needs to be implemented in UI bundle mediator class) which 
 UI
 bundle uses for serializing the mediator config to XML? I haven't 
 deployed
 a mediator configuration UI bundle yet for this mediator.

 Thanks



 On Tue, Nov 4, 2014 at 11:56 AM, Isuru Ranawaka isu...@wso2.com
 wrote:

 Hi Lahiru,

 Mediator serializer   is for write mediator configuration object to
 XML file which is used when saving configuration from UI to file system.
 Check by saving your configuration from UI.

 Thanks
 isuruR

 On Tue, Nov 4, 2014 at 11:47 AM, Waruna Perera waru...@wso2.com
 wrote:

 Hi Lahiru,

 can you check whether your bundle got activated vi Osgi console?


 Thanks

 On Tue, Nov 4, 2014 at 11:34 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I am writing a new ESB mediator and I cannot figure out the need
 of a mediator serializer (extension of AbstractMediatorSerializer) 
 for a
 mediator.

 Also, in the new mediator I created, if I add a breakpoint in
 serializeSpecificMediator() method in my mediator serializer and 
 debugged,
 the breakpoint never gets hit (during ESB startup or when the mediator
 receives an event to mediate).

 Does anybody know what is the need of a mediator serializer and
 when does the serializeSpecificMediator() method get called?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




 --
 Lahiru

[Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi All,

I am writing a new ESB mediator and I cannot figure out the need of a
mediator serializer (extension of AbstractMediatorSerializer) for a
mediator.

Also, in the new mediator I created, if I add a breakpoint in
serializeSpecificMediator() method in my mediator serializer and debugged,
the breakpoint never gets hit (during ESB startup or when the mediator
receives an event to mediate).

Does anybody know what is the need of a mediator serializer and when does
the serializeSpecificMediator() method get called?

Thanks

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


Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi Waruna,

My OSGi bundle is active. mediate() method of the mediator gets called
without a problem. The problem is that serializeSpecificMediator() doesn't
get called.

Hi Isuru,

Isn't  it org.wso2.carbon.mediator.service.ui.AbstractMediator.serialize()
method (which needs to be implemented in UI bundle mediator class) which UI
bundle uses for serializing the mediator config to XML? I haven't deployed
a mediator configuration UI bundle yet for this mediator.

Thanks



On Tue, Nov 4, 2014 at 11:56 AM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi Lahiru,

 Mediator serializer   is for write mediator configuration object to XML
 file which is used when saving configuration from UI to file system. Check
 by saving your configuration from UI.

 Thanks
 isuruR

 On Tue, Nov 4, 2014 at 11:47 AM, Waruna Perera waru...@wso2.com wrote:

 Hi Lahiru,

 can you check whether your bundle got activated vi Osgi console?


 Thanks

 On Tue, Nov 4, 2014 at 11:34 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I am writing a new ESB mediator and I cannot figure out the need of a
 mediator serializer (extension of AbstractMediatorSerializer) for a
 mediator.

 Also, in the new mediator I created, if I add a breakpoint in
 serializeSpecificMediator() method in my mediator serializer and debugged,
 the breakpoint never gets hit (during ESB startup or when the mediator
 receives an event to mediate).

 Does anybody know what is the need of a mediator serializer and when
 does the serializeSpecificMediator() method get called?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




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


Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi Isuru,

Actually the blog post you provided is the one that I am already referring
to :). It specifies to create a serializer but doesn't mention what is the
need of a serializer.

Thanks.

On Tue, Nov 4, 2014 at 12:18 PM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi ,

 Hope following links help you

 http://maninda.blogspot.com/2013/01/writing-custom-mediator-for-wso2-esb.html
 http://wso2.com/library/2936/

 On Tue, Nov 4, 2014 at 12:06 PM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Waruna,

 My OSGi bundle is active. mediate() method of the mediator gets called
 without a problem. The problem is that serializeSpecificMediator() doesn't
 get called.

 Hi Isuru,

 Isn't  it
 org.wso2.carbon.mediator.service.ui.AbstractMediator.serialize() method
 (which needs to be implemented in UI bundle mediator class) which UI bundle
 uses for serializing the mediator config to XML? I haven't deployed a
 mediator configuration UI bundle yet for this mediator.

 Thanks



 On Tue, Nov 4, 2014 at 11:56 AM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi Lahiru,

 Mediator serializer   is for write mediator configuration object to XML
 file which is used when saving configuration from UI to file system. Check
 by saving your configuration from UI.

 Thanks
 isuruR

 On Tue, Nov 4, 2014 at 11:47 AM, Waruna Perera waru...@wso2.com wrote:

 Hi Lahiru,

 can you check whether your bundle got activated vi Osgi console?


 Thanks

 On Tue, Nov 4, 2014 at 11:34 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I am writing a new ESB mediator and I cannot figure out the need of a
 mediator serializer (extension of AbstractMediatorSerializer) for a
 mediator.

 Also, in the new mediator I created, if I add a breakpoint in
 serializeSpecificMediator() method in my mediator serializer and debugged,
 the breakpoint never gets hit (during ESB startup or when the mediator
 receives an event to mediate).

 Does anybody know what is the need of a mediator serializer and when
 does the serializeSpecificMediator() method get called?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




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


Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi Maninda,

I thought the conversion of the mediator to xml and vice versa is done by
the mediator class in the mediator configuration UI bundle. It has
serialize() method to convert mediator to XML and build() method to build a
mediator from XML.

Anyway, I will check whether serializeSpecificMediator() gets called when
configuring the mediator in UI when I implement the UI bundle.

Thanks.

On Tue, Nov 4, 2014 at 12:34 PM, Maninda Edirisooriya mani...@wso2.com
wrote:

 Hi Lahiru,

 As earlier said by Isuru, it is used to convert the mediator UI entered
 configuration to generate the mediator XML as I remember. And you may find
 another class to generate the UI from this XML back which does the reverse
 of the serializer. These two classes will be called when you switch between
 UI view and source view of the mediator UI as I remember.


 *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 Tue, Nov 4, 2014 at 12:24 PM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Isuru,

 Actually the blog post you provided is the one that I am already
 referring to :). It specifies to create a serializer but doesn't mention
 what is the need of a serializer.

 Thanks.

 On Tue, Nov 4, 2014 at 12:18 PM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi ,

 Hope following links help you

 http://maninda.blogspot.com/2013/01/writing-custom-mediator-for-wso2-esb.html
 http://wso2.com/library/2936/

 On Tue, Nov 4, 2014 at 12:06 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Waruna,

 My OSGi bundle is active. mediate() method of the mediator gets called
 without a problem. The problem is that serializeSpecificMediator() doesn't
 get called.

 Hi Isuru,

 Isn't  it
 org.wso2.carbon.mediator.service.ui.AbstractMediator.serialize()
 method (which needs to be implemented in UI bundle mediator class) which UI
 bundle uses for serializing the mediator config to XML? I haven't deployed
 a mediator configuration UI bundle yet for this mediator.

 Thanks



 On Tue, Nov 4, 2014 at 11:56 AM, Isuru Ranawaka isu...@wso2.com
 wrote:

 Hi Lahiru,

 Mediator serializer   is for write mediator configuration object to
 XML file which is used when saving configuration from UI to file system.
 Check by saving your configuration from UI.

 Thanks
 isuruR

 On Tue, Nov 4, 2014 at 11:47 AM, Waruna Perera waru...@wso2.com
 wrote:

 Hi Lahiru,

 can you check whether your bundle got activated vi Osgi console?


 Thanks

 On Tue, Nov 4, 2014 at 11:34 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I am writing a new ESB mediator and I cannot figure out the need of
 a mediator serializer (extension of AbstractMediatorSerializer) for a
 mediator.

 Also, in the new mediator I created, if I add a breakpoint in
 serializeSpecificMediator() method in my mediator serializer and 
 debugged,
 the breakpoint never gets hit (during ESB startup or when the mediator
 receives an event to mediate).

 Does anybody know what is the need of a mediator serializer and when
 does the serializeSpecificMediator() method get called?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





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


Re: [Dev] How to create a new ESB mediator

2014-10-30 Thread Lahiru Chandima
Hi Udara, Ravindra,

Thanks a lot for your explanations. When I was trying to resolve the issue,
I observed that when the jar is placed in libs directory, another jar was
automatically created in dropins driectory. This should be the conversion
Ravindra has mentioned. Anyway, my jar is actually a OSGi bundle (bundled
using org.apache.felix maven plugin) so it should directly copy the jar
into dropins from libs.



On Thu, Oct 30, 2014 at 9:58 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Lahiru,

 We put OSGi bundles to dropings , so no need to convert it to an OSGi
 again. Non OSGi jars are put in lib folder which are converted to OSGi
 bundles.



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Oct 30, 2014 8:41 AM, Ravindra Ranwala ravin...@wso2.com wrote:

 Hi Lahiru,

 WSO2 Carbon is based on OSGi. To extend the framework you need to drop an
 OSGi bundle. What you are having at the moment is an external jar file.
 Once you place the jar file in to
 $CARBON_HOME/repository/components/dropins directory, the platform converts
 the legacy jar file into an OSGi bundle at run time. Refer this article [1]
 for more details.


 [1]
 http://wso2.com/library/knowledgebase/add-external-jar-libraries-wso2-carbon-based-products/


 Thanks  Regards,

 On Wed, Oct 29, 2014 at 8:27 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 This post might help you.


 http://wso2.com/library/tutorials/2014/03/understanding-the-carbon-component-architecture/



 Touched, not typed. Erroneous words are a feature, not a typo.

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




 --
 Ravindra Ranwala
 Software Engineer
 WSO2, Inc: http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 Mobile: +94714198770




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


Re: [Dev] How to create a new ESB mediator

2014-10-29 Thread Lahiru Chandima
Thanks Waruna.

ESB detected the new mediator when mediator bundle is placed in dropins
directory.

Anyway, can somebody explain why this needs to be placed in dropins? I
created the new mediator by copying the existing BAM mediator and BAM
mediator bundle and all other mediator bundles files are in plugins
directory.

Thanks

On Wed, Oct 29, 2014 at 10:28 AM, Waruna Perera waru...@wso2.com wrote:

 HI Lahiru,

 File path

 ESB_HOME/
 repository/deployment/server/synapse-configs/default/proxy-services

 On Wed, Oct 29, 2014 at 10:02 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Waruna,

 Here is the git repo url

 https://github.com/lahiruchandima/publish_event_mediator

 Here is the Synapse config

 definitions xmlns=http://ws.apache.org/ns/synapse;
 proxy name=StockQuoteProxy
 target
 endpoint
 address uri=
 http://localhost:9000/services/SimpleStockQuoteService/
 /endpoint
 outSequence
 send/
 *publishEvent/*
 /outSequence
 /target
 publishWSDL
 uri=file:repository/samples/resources/proxy/sample_proxy_1.wsdl/
 /proxy
 /definitions


 Thanks



 On Wed, Oct 29, 2014 at 9:49 AM, Waruna Perera waru...@wso2.com wrote:

 HI Lahiru,

 Can you share the code in GitHub? And share your synapse config as well.

 On Wed, Oct 29, 2014 at 9:37 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I am trying to create a new mediator (not a class mediator) for ESB. I
 have encountered several problems so far.

 1. Where does the synapse config of ESB reside? I searched for some
 text in the config (shown in the management console) in the ESB directory
 but couldn't find the location.

 2. So far I have crated a maven project for the mediator and created
 mediator, mediator factory and mediator serializer classes (I haven't
 created the mediator configuration UI module yet). I copied the generated
 jar file to repository/components/plugins directory, added the new mediator
 to a sequence in the synapse config of ESB sample 150[1
 https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services]
 and started ESB with sample 150 config. ESB gives following exception at
 startup.

 [2014-10-29 09:05:48,116]  WARN - SynapseXMLConfigurationFactory Proxy
 Service configuration: StockQuoteProxy cannot be built - Continue in
 fail-safe mode
 java.lang.NullPointerException
 at
 org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:207)
 at
 org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
 at
 org.apache.synapse.config.xml.SequenceMediatorFactory.createAnonymousSequence(SequenceMediatorFactory.java:70)
 at
 org.apache.synapse.config.xml.ProxyServiceFactory.createProxy(ProxyServiceFactory.java:193)
 at
 org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineProxy(SynapseXMLConfigurationFactory.java:142)
 at
 org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:92)


 Looks like ESB cannot find the factory for creating the new mediator
 specified in the synapse config. What should I do for ESB to identify my
 jar as an ESB mediator?

 Can somebody help me on this?

 [1]
 https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services

 Thanks
 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




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


[Dev] How to create a new ESB mediator

2014-10-28 Thread Lahiru Chandima
Hi All,

I am trying to create a new mediator (not a class mediator) for ESB. I have
encountered several problems so far.

1. Where does the synapse config of ESB reside? I searched for some text in
the config (shown in the management console) in the ESB directory but
couldn't find the location.

2. So far I have crated a maven project for the mediator and created
mediator, mediator factory and mediator serializer classes (I haven't
created the mediator configuration UI module yet). I copied the generated
jar file to repository/components/plugins directory, added the new mediator
to a sequence in the synapse config of ESB sample 150[1
https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services]
and started ESB with sample 150 config. ESB gives following exception at
startup.

[2014-10-29 09:05:48,116]  WARN - SynapseXMLConfigurationFactory Proxy
Service configuration: StockQuoteProxy cannot be built - Continue in
fail-safe mode
java.lang.NullPointerException
at
org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:207)
at
org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
at
org.apache.synapse.config.xml.SequenceMediatorFactory.createAnonymousSequence(SequenceMediatorFactory.java:70)
at
org.apache.synapse.config.xml.ProxyServiceFactory.createProxy(ProxyServiceFactory.java:193)
at
org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineProxy(SynapseXMLConfigurationFactory.java:142)
at
org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:92)


Looks like ESB cannot find the factory for creating the new mediator
specified in the synapse config. What should I do for ESB to identify my
jar as an ESB mediator?

Can somebody help me on this?

[1]
https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services

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


Re: [Dev] How to create a new ESB mediator

2014-10-28 Thread Lahiru Chandima
Hi Waruna,

Here is the git repo url

https://github.com/lahiruchandima/publish_event_mediator

Here is the Synapse config

definitions xmlns=http://ws.apache.org/ns/synapse;
proxy name=StockQuoteProxy
target
endpoint
address uri=
http://localhost:9000/services/SimpleStockQuoteService/
/endpoint
outSequence
send/
*publishEvent/*
/outSequence
/target
publishWSDL
uri=file:repository/samples/resources/proxy/sample_proxy_1.wsdl/
/proxy
/definitions


Thanks



On Wed, Oct 29, 2014 at 9:49 AM, Waruna Perera waru...@wso2.com wrote:

 HI Lahiru,

 Can you share the code in GitHub? And share your synapse config as well.

 On Wed, Oct 29, 2014 at 9:37 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi All,

 I am trying to create a new mediator (not a class mediator) for ESB. I
 have encountered several problems so far.

 1. Where does the synapse config of ESB reside? I searched for some text
 in the config (shown in the management console) in the ESB directory but
 couldn't find the location.

 2. So far I have crated a maven project for the mediator and created
 mediator, mediator factory and mediator serializer classes (I haven't
 created the mediator configuration UI module yet). I copied the generated
 jar file to repository/components/plugins directory, added the new mediator
 to a sequence in the synapse config of ESB sample 150[1
 https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services]
 and started ESB with sample 150 config. ESB gives following exception at
 startup.

 [2014-10-29 09:05:48,116]  WARN - SynapseXMLConfigurationFactory Proxy
 Service configuration: StockQuoteProxy cannot be built - Continue in
 fail-safe mode
 java.lang.NullPointerException
 at
 org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:207)
 at
 org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
 at
 org.apache.synapse.config.xml.SequenceMediatorFactory.createAnonymousSequence(SequenceMediatorFactory.java:70)
 at
 org.apache.synapse.config.xml.ProxyServiceFactory.createProxy(ProxyServiceFactory.java:193)
 at
 org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineProxy(SynapseXMLConfigurationFactory.java:142)
 at
 org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:92)


 Looks like ESB cannot find the factory for creating the new mediator
 specified in the synapse config. What should I do for ESB to identify my
 jar as an ESB mediator?

 Can somebody help me on this?

 [1]
 https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services

 Thanks
 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




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


Re: [Dev] WSO2 Committers += Lasindu Charith

2014-10-21 Thread Lahiru Chandima
. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


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




 --
 Gimantha Bandara
 Software Engineer
 WSO2. Inc : http://wso2.com
 Mobile : +94714961919

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




 --
 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548

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




 --
 Cheers,

 Hasitha Amal De Silva
  Software Engineer
 Mobile : 0772037426
 Blog: http://devnutshell.tumblr.com/
 WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )

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




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


Re: [Dev] WSO2 Committers += Tishan Dahanayakage

2014-10-16 Thread Lahiru Chandima
Congratulations Tishan!

On Fri, Oct 17, 2014 at 10:45 AM, Sameera Jayaratna samee...@wso2.com
wrote:

 Congratz Tishan!!

 On Fri, Oct 17, 2014 at 10:45 AM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Congratulations Tishan !!!

 On Fri, Oct 17, 2014 at 10:42 AM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Tishan !

 On Fri, Oct 17, 2014 at 10:41 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:

 Hi all,

 It's our pleasure to welcome Tishan Dahanayakage as a WSO2
 Committer. Tishan has contributed immensely to WSO2 Complex Event Processor
 especially on Siddhi and shown great commitment.
 In recognition of his contribution, he has been voted as a WSO2
 Commiter.

 Welcome aboard and keep up the good work  !

 Regards
 Suho.

 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan 
 http://lk.linkedin.com/in/suhothayan*

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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




 --
 *Ayesha Dissanayaka*
 Software Engineer,
 WSO2, Inc : http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 20, Palmgrove Avenue, Colombo 3
 E-Mail: aye...@wso2.com ayshsa...@gmail.com

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




 --



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

 *lean . enterprise . middleware |  http://wso2.com http://wso2.com *

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




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


[Dev] What exactly is generated when we build a WSO2 product from source?

2014-10-13 Thread Lahiru Chandima
Sorry if I am asking something so obvious but I couldn't figure out what
exactly is generated when we build a product from source.

For an example, this
https://docs.wso2.com/display/ESB481/Building+from+Source documentation
page explains how to build ESB from source.

What I want to know is, when we build from source, does it generate a
package similar to what we download as a binary distribution from product
website? If it does, what is the location of the generated package?

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


Re: [Dev] What exactly is generated when we build a WSO2 product from source?

2014-10-13 Thread Lahiru Chandima
Thanks a lot Manula. Found the built ESB binary package in the mentioned
directory.

On Tue, Oct 14, 2014 at 10:56 AM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi Lahiru,

 You can find the binary distribution under
 the products/Product_Name/modules/distribution/target directory.

 Thanks !

 On Tue, Oct 14, 2014 at 10:53 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Sorry if I am asking something so obvious but I couldn't figure out what
 exactly is generated when we build a product from source.

 For an example, this
 https://docs.wso2.com/display/ESB481/Building+from+Source
 documentation page explains how to build ESB from source.

 What I want to know is, when we build from source, does it generate a
 package similar to what we download as a binary distribution from product
 website? If it does, what is the location of the generated package?

 Thanks
 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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






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


Re: [Dev] ESB build error

2014-10-10 Thread Lahiru Chandima
/


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




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

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




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

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

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






 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com
 Blog: http://techspiro.blogspot.com/


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




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


Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-09 Thread Lahiru Chandima
)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)

 --- The Error ---


 [1] -
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Thanks.


 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

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




 --
 Rajeev Sampath
 Senior Software Engineer
 WSO2, Inc.; http://www.wso2.com.

 Mobile:
 * +94716265766 %2B94716265766*

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




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


[Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Hi All,

I am writing my first carbon component.

I want to achieve something so simple; add a link in a page that links to a
different page in my component. Can somebody tell me how to get the url of
my target page?

Thanks

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


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Hi Supun,

That is exactly what I am trying to do.

Thanks

On Thu, Oct 9, 2014 at 10:43 AM, Supun Muthutantrige sup...@wso2.com
wrote:

 Hi Lahiru,

 DO you want to link two .jsp pages? From one of your .jsp pages to another
 one? is that what you are trying to achieve?

 Regards


 *Supun Rasitha Muthutantrige*




 *supunr WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




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


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Thanks Supun. I will try that.

I thought the actual link may be different because when I visit a certain
page, browser doesn't show my jsp file name of the page in the URL.


On Thu, Oct 9, 2014 at 10:49 AM, Supun Muthutantrige sup...@wso2.com
wrote:

 you can simple add an anchor tag in you jsp file. or you can add a button
 to redirect it into the relevant page

 Anchor tag
 a href=*your_jsp**link text*/a



 *Supun Rasitha Muthutantrige*





 *supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




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


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Oh, I was wrong. It shows my jsp. I was confused because of the following
part that was appended to the URL.

/carbon/order-manager/index.jsp?region=region1item=order_management_menu



On Thu, Oct 9, 2014 at 10:54 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Thanks Supun. I will try that.

 I thought the actual link may be different because when I visit a certain
 page, browser doesn't show my jsp file name of the page in the URL.


 On Thu, Oct 9, 2014 at 10:49 AM, Supun Muthutantrige sup...@wso2.com
 wrote:

 you can simple add an anchor tag in you jsp file. or you can add a button
 to redirect it into the relevant page

 Anchor tag
 a href=*your_jsp**link text*/a



 *Supun Rasitha Muthutantrige*





 *supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com




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


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Yes. Thanks for the help

On Thu, Oct 9, 2014 at 10:59 AM, Supun Muthutantrige sup...@wso2.com
wrote:

 Is your problem solved then?

 Regards


 *Supun Rasitha Muthutantrige*





 *supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




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


Re: [Dev] Why does ESB source consume so much disk space?

2014-10-07 Thread Lahiru Chandima
Already checked. It only consumes 1.6 GB

On Tue, Oct 7, 2014 at 1:35 PM, Darshana Akalanka Pagoda Arachchi 
darsha...@wso2.com wrote:

 Hi Lahiru,

 Also check the hidden .svn folder. It might have consumed some
 considerable amount of space.


 Thanks,

 On Tue, Oct 7, 2014 at 9:08 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Udara,

 I checked my maven repo and it is not that large. So the build artifacts
 does not consume that much space.

 Anyways, if this is the usual disk space consumption of source, let it be.

 Concept of chunks is also another thing I need clarification. Can you
 help me understand it?

  As per the release matrix[1]
 http://wso2.com/products/carbon/release-matrix/ chunk 7 contains
 following.

- Business Process Server 3.2.0
- Enterprise Service Bus 4.8.1


 Does this mean chunk 7 only contains above products or does it contain
 above products plus other products included in the preceding chunks?

 Thanks.

 [1] http://wso2.com/products/carbon/release-matrix/

 On Tue, Oct 7, 2014 at 8:47 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Chunk7 contains not only ESB source right.
 Built artifacts by default are stored in ~/.m2 local repository. Only
 built products packs are in
 products/product-name/modules/distribution/target.



 Touched, not typed. Erroneous words are a feature, not a typo.




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 *Darshana Akalanka Pagoda Arachchi,*
 *Software Engineer*
 *078-4721791*




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


Re: [Dev] Why does ESB source consume so much disk space?

2014-10-07 Thread Lahiru Chandima
Thanks Niranda for suggestion.

Aruna, if it contains only those two products, then isn't there a way to
checkout a source snapshot that contains almost all the wso2 products? As
per the release matrix, most of the chunks only contain 2-4 products. So,
if there's no way to checkout a source with all products, then available
chunks should contain all possible combinations of the products that are
compatible with each other. Isn't it?

Thanks

On Tue, Oct 7, 2014 at 1:45 PM, Aruna Karunarathna ar...@wso2.com wrote:



 On Tue, Oct 7, 2014 at 9:08 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Udara,

 I checked my maven repo and it is not that large. So the build artifacts
 does not consume that much space.

 Anyways, if this is the usual disk space consumption of source, let it be.

 Concept of chunks is also another thing I need clarification. Can you
 help me understand it?

  As per the release matrix[1]
 http://wso2.com/products/carbon/release-matrix/ chunk 7 contains
 following.

- Business Process Server 3.2.0
- Enterprise Service Bus 4.8.1


 Does this mean chunk 7 only contains above products or does it contain
 above products plus other products included in the preceding chunks?


 It contains only those two products.



 Thanks.

 [1] http://wso2.com/products/carbon/release-matrix/

 On Tue, Oct 7, 2014 at 8:47 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Chunk7 contains not only ESB source right.
 Built artifacts by default are stored in ~/.m2 local repository. Only
 built products packs are in
 products/product-name/modules/distribution/target.



 Touched, not typed. Erroneous words are a feature, not a typo.




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --

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





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


[Dev] Why does ESB source consume so much disk space?

2014-10-06 Thread Lahiru Chandima
Hi All,

I checked out the source for ESB from following SVN location several days
ago.

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


When initially checked out, the total size of the checked out source was
around 5 GB as I can remember. But when I checked today, the source
directory size has grown to 14 GB.

It is pretty difficult to find out what exactly is consuming the space
because the size is evenly dispersed among so many directories.

I'm just curious about why the source directory is so large? Also, how did
the size grow to 14 GB from 5GB? Is it because the build artifacts
generated when the source is built? I did a mvn clean but size didn't
significantly reduce.

Thanks

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


Re: [Dev] Why does ESB source consume so much disk space?

2014-10-06 Thread Lahiru Chandima
Hi Udara,

I checked my maven repo and it is not that large. So the build artifacts
does not consume that much space.

Anyways, if this is the usual disk space consumption of source, let it be.

Concept of chunks is also another thing I need clarification. Can you help
me understand it?

 As per the release matrix[1]
http://wso2.com/products/carbon/release-matrix/ chunk 7 contains
following.

   - Business Process Server 3.2.0
   - Enterprise Service Bus 4.8.1


Does this mean chunk 7 only contains above products or does it contain
above products plus other products included in the preceding chunks?

Thanks.

[1] http://wso2.com/products/carbon/release-matrix/

On Tue, Oct 7, 2014 at 8:47 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Chunk7 contains not only ESB source right.
 Built artifacts by default are stored in ~/.m2 local repository. Only
 built products packs are in
 products/product-name/modules/distribution/target.



 Touched, not typed. Erroneous words are a feature, not a typo.




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


Re: [Dev] Jaggery development workflow

2014-10-01 Thread Lahiru Chandima
Thanks Danushka. I will use that method.

On Wed, Oct 1, 2014 at 11:27 AM, Danushka Fernando danush...@wso2.com
wrote:

 You can import the jaggery app deployed in to eclipse.

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

 On Wed, Oct 1, 2014 at 11:25 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Danushka,

 That way is much better but I thought there may be a better way so that I
 can keep the project in the eclipse workspace itself.

 Thanks

 On Wed, Oct 1, 2014 at 10:53 AM, Danushka Fernando danush...@wso2.com
 wrote:

 You edit the app deployed in server. Just edit the file and reload the
 web browser.

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

 On Wed, Oct 1, 2014 at 10:24 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 I just started to develop a jaggery app and what I am currently doing
 is keeping my project on default eclipse workspace directory, packaging the
 project to a zip using maven and upload it to jaggery server using the
 admin console. As you can see, this approach is very time consuming.

 Can you suggest a better way to deploy my app easily? I thought of
 keeping my eclipse project in apps directory of jaggery but that does not
 feel like the best solution.

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com





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


Re: [Dev] Problems running build with auto tests on Mac

2014-09-30 Thread Lahiru Chandima
Hi Samisa,

I also had the same problem and could resolve by adding the following to my
.bash_profile

export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true'

I am not sure whether this affects any other functionality but it resolves
the issue

Thanks.

On Wed, Oct 1, 2014 at 8:42 AM, Samisa Abeysinghe sam...@wso2.com wrote:

 The process focus keep switching to Java icon due to server invocations

 Cannot do any other work while building on mac OS

 Do we have a solution?

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com


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




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


[Dev] Jaggery development workflow

2014-09-30 Thread Lahiru Chandima
Hi All,

I just started to develop a jaggery app and what I am currently doing is
keeping my project on default eclipse workspace directory, packaging the
project to a zip using maven and upload it to jaggery server using the
admin console. As you can see, this approach is very time consuming.

Can you suggest a better way to deploy my app easily? I thought of keeping
my eclipse project in apps directory of jaggery but that does not feel like
the best solution.

Thanks

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


Re: [Dev] Jaggery development workflow

2014-09-30 Thread Lahiru Chandima
Hi Danushka,

That way is much better but I thought there may be a better way so that I
can keep the project in the eclipse workspace itself.

Thanks

On Wed, Oct 1, 2014 at 10:53 AM, Danushka Fernando danush...@wso2.com
wrote:

 You edit the app deployed in server. Just edit the file and reload the web
 browser.

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

 On Wed, Oct 1, 2014 at 10:24 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi All,

 I just started to develop a jaggery app and what I am currently doing is
 keeping my project on default eclipse workspace directory, packaging the
 project to a zip using maven and upload it to jaggery server using the
 admin console. As you can see, this approach is very time consuming.

 Can you suggest a better way to deploy my app easily? I thought of
 keeping my eclipse project in apps directory of jaggery but that does not
 feel like the best solution.

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





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


Re: [Dev] WSO2 Committers += Anuruddha Premalal

2014-09-29 Thread Lahiru Chandima
Congrats Anuruddha!!!

On Mon, Sep 29, 2014 at 1:28 PM, Malintha Adikari malin...@wso2.com wrote:

 Congratulations Anuruddha.!!

 On Mon, Sep 29, 2014 at 1:13 PM, Yasassri Ratnayake yasas...@wso2.com
 wrote:

 Congrats Anuruddha!!

 On Mon, Sep 29, 2014 at 1:11 PM, Vijitha Ekanayake vijit...@wso2.com
 wrote:

 Congratulations Anuruddha ..!!!

 On Mon, Sep 29, 2014 at 12:55 PM, Lasindu Charith lasi...@wso2.com
 wrote:

 Congratulations Anuruddha ..!!!

 On Mon, Sep 29, 2014 at 11:41 AM, Tharindu Edirisinghe 
 tharin...@wso2.com wrote:

 Congratulations Anuruddha 

 On Mon, Sep 29, 2014 at 11:28 AM, Waruna De Silva waru...@wso2.com
 wrote:

 Congratulations Anuruddha.!!

 On Mon, Sep 29, 2014 at 8:53 AM, Dimuthu Leelarathne 
 dimut...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Anuruddha Premalal  as a WSO2 Committer.
 Anuruddha has contributed immensely to WSO2 App Factory and has shown 
 great
 commitment. In recognition of his contribution, he has been voted as a 
 WSO2
 Committer.

 Anuruddha, welcome aboard!

 Regards,
 Amila.

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

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

 Lean . Enterprise . Middleware

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




 --

 --
 Waruna De Silva.
 Director of Engineering ; WSO2, Inc.;  http://wso2.com/
 cell +94 777 316866

 Lean . Enterprise . Middleware


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




 --

 Tharindu Edirisinghe
 Software Engineer | WSO2 Inc
 Identity Server Team
 mobile : +94 775 181586

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




 --
 *Lasindu Charith*
 Software Engineer, WSO2 Inc.
 Mobile: +94714427192
 Web: blog.lasindu.com

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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

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




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

 ___
 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




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


Re: [Dev] Question about securing a service in ESB, providing Integrity

2014-09-29 Thread Lahiru Chandima
Hi Dushan,

I thought the symmetric key used by client is not a pre shared key because
description says using a symmetric key *derived by client*, which implies
that the key is generated at the time the client needs to send the message
to the server. If the symmetric key is pre shared as you describe, there's
no problem.

Thanks

On Sat, Sep 27, 2014 at 8:23 AM, Dushan Abeyruwan dus...@wso2.com wrote:

 Hi
  Read description of again,
  what it says

 signed using symmetric key then encrypt using service public key,  so
 server end only way to verify now decrypt message using service private
 key, and validate signature with symmetric key.

   Now validating integrity : symmetric key is shared only between to
 agreed parties, so they store symmetric keys in their respective key
 stores, and there is almost no chance that intruder can stand in between
 and generate new symmetric key because, symmetric key is a agreement
 between client and service, even if some one generate new symmetric key
 should inform service beforehand (and normally services wont store
 symmetric keys randomly unless verified and authenticated).

 Cheers,
 Dushan

 On Wed, Sep 24, 2014 at 1:21 PM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi All,

 Following is the diagram given by ESB about how it provides integrity for
 a service. (Securing a service using basic scenario No. 3)

 [image: Inline image 1]


 According to the diagram, client uses a generated symmetric key to sign
 the message, encrypts the used key using server's public key and sends
 along with the message.

 But, I cannot understand how this provides integrity. As I see, someone
 can intercept the message sent by the client, alter the message, generate a
 new symmetric key, sign the altered message using this key, encrypt the key
 using server's public key and send along with the message without a
 problem. Since the original message is now altered, there's no integrity.

 Can somebody please explain what I have gotten wrong?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




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


Re: [Dev] Question about securing a service in ESB, providing Integrity

2014-09-29 Thread Lahiru Chandima
Good explanation Chamila. Thanks.

I guess its better if this was mentioned in the above diagram so anyone can
understand how this actually provides security. At least it can be
mentioned that there is a handshaking mechanism between client and the
server to  share a secret symmetric key, prior to sending any payload
message. (or is this a step that is *implied *and I am so ignorant that I
didn't know that?)


On Tue, Sep 30, 2014 at 9:04 AM, Chamila De Alwis chami...@wso2.com wrote:

 The symmetric key is shared between the trusted parties using the
 asymmetric key. The encryption is done with the recipient’s public key, so
 it is not possible for someone in the middle to decrypt the symmetric key
 information without the server's private key. The server's private key
 should be secure of course, that is a key agreement.

 Only when the symmetric key is agreed upon, the payload starts to be
 transferred. This sequence can be observed with WireShark (or Charles Proxy
 if you want to decrypt the PKI encrypted data) during a SSL handshake.


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Tue, Sep 30, 2014 at 8:28 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Dushan,

 I thought the symmetric key used by client is not a pre shared key
 because description says using a symmetric key *derived by client*,
 which implies that the key is generated at the time the client needs to
 send the message to the server. If the symmetric key is pre shared as you
 describe, there's no problem.

 Thanks

 On Sat, Sep 27, 2014 at 8:23 AM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi
  Read description of again,
  what it says

 signed using symmetric key then encrypt using service public key,
  so server end only way to verify now decrypt message using service private
 key, and validate signature with symmetric key.

   Now validating integrity : symmetric key is shared only between to
 agreed parties, so they store symmetric keys in their respective key
 stores, and there is almost no chance that intruder can stand in between
 and generate new symmetric key because, symmetric key is a agreement
 between client and service, even if some one generate new symmetric key
 should inform service beforehand (and normally services wont store
 symmetric keys randomly unless verified and authenticated).

 Cheers,
 Dushan

 On Wed, Sep 24, 2014 at 1:21 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 Following is the diagram given by ESB about how it provides integrity
 for a service. (Securing a service using basic scenario No. 3)

 [image: Inline image 1]


 According to the diagram, client uses a generated symmetric key to sign
 the message, encrypts the used key using server's public key and sends
 along with the message.

 But, I cannot understand how this provides integrity. As I see, someone
 can intercept the message sent by the client, alter the message, generate a
 new symmetric key, sign the altered message using this key, encrypt the key
 using server's public key and send along with the message without a
 problem. Since the original message is now altered, there's no integrity.

 Can somebody please explain what I have gotten wrong?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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





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


Re: [Dev] Question about securing a service in ESB, providing Integrity

2014-09-29 Thread Lahiru Chandima
Hi Darshana,

It is correct that nobody else but the server can decrypt the encrypted
symmetric key. But the problem is, if client didn't use a pre shared key,
somebody else in the middle can intercept the message, read the content
(only the symmetric key used for signing is encrypted, not the content),
alter the content, sign it using a different symmetric key, encrypt the
used symmetric key using server's public key and send to server. Server of
cause can decrypt the encrypted symmetric key and verify the signature, but
it has no way to identify whether the original sender is the one who signed
it.


On Tue, Sep 30, 2014 at 10:36 AM, Darshana Akalanka Pagoda Arachchi 
darsha...@wso2.com wrote:

 Hi Lahiru,

 When it comes to public key and private key cryptography it is asymmetric
 key cryptography. After the client encrypts a symmetric key if it was
 intercepted by a third party there is no way to decrypt it without the
 servers public key and hence the content cannot be accessed and altered
 anyway. I believed this is where the security is provided so that the
 integrity of the message is protected. The symmetric key is not shared by a
 handshake as I understand by the diagram, it is shared with the message
 protected by asymmetric key cryptography.

 On Tue, Sep 30, 2014 at 9:22 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Good explanation Chamila. Thanks.

 I guess its better if this was mentioned in the above diagram so anyone
 can understand how this actually provides security. At least it can be
 mentioned that there is a handshaking mechanism between client and the
 server to  share a secret symmetric key, prior to sending any payload
 message. (or is this a step that is *implied *and I am so ignorant that
 I didn't know that?)


 On Tue, Sep 30, 2014 at 9:04 AM, Chamila De Alwis chami...@wso2.com
 wrote:

 The symmetric key is shared between the trusted parties using the
 asymmetric key. The encryption is done with the recipient’s public key, so
 it is not possible for someone in the middle to decrypt the symmetric key
 information without the server's private key. The server's private key
 should be secure of course, that is a key agreement.

 Only when the symmetric key is agreed upon, the payload starts to be
 transferred. This sequence can be observed with WireShark (or Charles Proxy
 if you want to decrypt the PKI encrypted data) during a SSL handshake.


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Tue, Sep 30, 2014 at 8:28 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi Dushan,

 I thought the symmetric key used by client is not a pre shared key
 because description says using a symmetric key *derived by client*,
 which implies that the key is generated at the time the client needs to
 send the message to the server. If the symmetric key is pre shared as you
 describe, there's no problem.

 Thanks

 On Sat, Sep 27, 2014 at 8:23 AM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi
  Read description of again,
  what it says

 signed using symmetric key then encrypt using service public key,
  so server end only way to verify now decrypt message using service 
 private
 key, and validate signature with symmetric key.

   Now validating integrity : symmetric key is shared only between to
 agreed parties, so they store symmetric keys in their respective key
 stores, and there is almost no chance that intruder can stand in between
 and generate new symmetric key because, symmetric key is a agreement
 between client and service, even if some one generate new symmetric key
 should inform service beforehand (and normally services wont store
 symmetric keys randomly unless verified and authenticated).

 Cheers,
 Dushan

 On Wed, Sep 24, 2014 at 1:21 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 Following is the diagram given by ESB about how it provides integrity
 for a service. (Securing a service using basic scenario No. 3)

 [image: Inline image 1]


 According to the diagram, client uses a generated symmetric key to
 sign the message, encrypts the used key using server's public key and 
 sends
 along with the message.

 But, I cannot understand how this provides integrity. As I see,
 someone can intercept the message sent by the client, alter the message,
 generate a new symmetric key, sign the altered message using this key,
 encrypt the key using server's public key and send along with the message
 without a problem. Since the original message is now altered, there's no
 integrity.

 Can somebody please explain what I have gotten wrong?

 Thanks

 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




 --
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http

[Dev] JMS client fails when running ESB sample 250

2014-09-25 Thread Lahiru Chandima
Hi All,

When I try to run jms client in WSO2 ESB sample 250 [1
https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports],
I get following error.

jmsclient:
 [java] Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
 [java] SLF4J: Class path contains multiple SLF4J bindings.
 [java] SLF4J: Found binding in
[jar:file:/software/wso2esb-4.8.1/repository/components/plugins/quickfixj_1.4.0.wso2v2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
 [java] SLF4J: Found binding in
[jar:file:/software/wso2esb-4.8.1/repository/components/plugins/slf4j.log4j12_1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
 [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
for an explanation.


Can somebody tell me how to fix this?

Thanks

[1]
https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JMS client fails when running ESB sample 250

2014-09-25 Thread Lahiru Chandima
Hi,

Seems like I was too quick to send previous mail. I think the problem is
not with JMS client. Even though JMS client prints the error mentioned
earlier, message gets successfully sent. I checked the ActiveMQ admin
console and it shows that it has received the messages I sent from JMS
client.

But I don’t get the output mentioned in the example. I think the problem
should be with ESB because it has printed following error at startup. Looks
like it has failed to enable JMS transport.


[2014-09-25 11:48:00,521] ERROR - JMSListener Unexpected error when
configuring service StockQuoteProxy for the JMS transport. It will be
disabled for this transport and marked as faulty.
java.lang.NoClassDefFoundError: org/apache/activeio/util/FactoryFinder
at
org.apache.activemq.transport.TransportFactory.clinit(TransportFactory.java:49)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:223)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:211)
at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:158)
at
org.apache.axis2.transport.jms.JMSUtils.createConnection(JMSUtils.java:629)
at
org.apache.axis2.transport.jms.JMSListener.checkJMSConnection(JMSListener.java:148)
at
org.apache.axis2.transport.jms.JMSListener.startEndpoint(JMSListener.java:94)
at
org.apache.axis2.transport.jms.JMSListener.startEndpoint(JMSListener.java:53)


Does anyone know how to fix this error?

Thanks

On Thu, Sep 25, 2014 at 11:46 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi All,

 When I try to run jms client in WSO2 ESB sample 250 [1
 https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports],
 I get following error.

 jmsclient:
  [java] Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
  [java] SLF4J: Class path contains multiple SLF4J bindings.
  [java] SLF4J: Found binding in
 [jar:file:/software/wso2esb-4.8.1/repository/components/plugins/quickfixj_1.4.0.wso2v2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  [java] SLF4J: Found binding in
 [jar:file:/software/wso2esb-4.8.1/repository/components/plugins/slf4j.log4j12_1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
 for an explanation.


 Can somebody tell me how to fix this?

 Thanks

 [1]
 https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com




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


Re: [Dev] JMS client fails when running ESB sample 250

2014-09-25 Thread Lahiru Chandima
Hi Godwin,

Yes I did copy the files. Without copying them, JMS client doesn't work at
all.

On Thu, Sep 25, 2014 at 1:08 PM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Hi Lahiru,

 Have you copied 5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar,
 and geronimo-jms_1.1_spec-1.1.1.jar from ActiveMQ_HOME/lib to
 ESB_HOME/repository/components/lib ?





 On Thu, Sep 25, 2014 at 12:51 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi,

 Seems like I was too quick to send previous mail. I think the problem is
 not with JMS client. Even though JMS client prints the error mentioned
 earlier, message gets successfully sent. I checked the ActiveMQ admin
 console and it shows that it has received the messages I sent from JMS
 client.

 But I don’t get the output mentioned in the example. I think the problem
 should be with ESB because it has printed following error at startup. Looks
 like it has failed to enable JMS transport.


 [2014-09-25 11:48:00,521] ERROR - JMSListener Unexpected error when
 configuring service StockQuoteProxy for the JMS transport. It will be
 disabled for this transport and marked as faulty.
 java.lang.NoClassDefFoundError: org/apache/activeio/util/FactoryFinder
 at
 org.apache.activemq.transport.TransportFactory.clinit(TransportFactory.java:49)
 at
 org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:223)
 at
 org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:211)
 at
 org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:158)
 at
 org.apache.axis2.transport.jms.JMSUtils.createConnection(JMSUtils.java:629)
 at
 org.apache.axis2.transport.jms.JMSListener.checkJMSConnection(JMSListener.java:148)
 at
 org.apache.axis2.transport.jms.JMSListener.startEndpoint(JMSListener.java:94)
 at
 org.apache.axis2.transport.jms.JMSListener.startEndpoint(JMSListener.java:53)


 Does anyone know how to fix this error?

 Thanks

 On Thu, Sep 25, 2014 at 11:46 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 When I try to run jms client in WSO2 ESB sample 250 [1
 https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports],
 I get following error.

 jmsclient:
  [java] Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
  [java] SLF4J: Class path contains multiple SLF4J bindings.
  [java] SLF4J: Found binding in
 [jar:file:/software/wso2esb-4.8.1/repository/components/plugins/quickfixj_1.4.0.wso2v2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  [java] SLF4J: Found binding in
 [jar:file:/software/wso2esb-4.8.1/repository/components/plugins/slf4j.log4j12_1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
 for an explanation.


 Can somebody tell me how to fix this?

 Thanks

 [1]
 https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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

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




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


Re: [Dev] JMS client fails when running ESB sample 250

2014-09-25 Thread Lahiru Chandima
Yes I did. As mentioned in the sample, I uncommented the transport sender
and receiver configs in axis2.xml. Following is the JMS transport sender
and receiver configs in my axis2.xml.

!--Uncomment this and configure as appropriate for JMS transport support,
after setting up your JMS environment (e.g. ActiveMQ) --
transportReceiver name=jms
class=org.apache.axis2.transport.jms.JMSListener
parameter name=myTopicConnectionFactory locked=false
parameter name=java.naming.factory.initial
locked=falseorg.apache.activemq.jndi.ActiveMQInitialContextFactory/parameter
parameter name=java.naming.provider.url
locked=falsetcp://localhost:61616/parameter
parameter name=transport.jms.ConnectionFactoryJNDIName
locked=falseTopicConnectionFactory/parameter
parameter name=transport.jms.ConnectionFactoryType
locked=falsetopic/parameter
/parameter

parameter name=myQueueConnectionFactory locked=false
parameter name=java.naming.factory.initial
locked=falseorg.apache.activemq.jndi.ActiveMQInitialContextFactory/parameter
parameter name=java.naming.provider.url
locked=falsetcp://localhost:61616/parameter
parameter name=transport.jms.ConnectionFactoryJNDIName
locked=falseQueueConnectionFactory/parameter
parameter name=transport.jms.ConnectionFactoryType
locked=falsequeue/parameter
/parameter

parameter name=default locked=false
parameter name=java.naming.factory.initial
locked=falseorg.apache.activemq.jndi.ActiveMQInitialContextFactory/parameter
parameter name=java.naming.provider.url
locked=falsetcp://localhost:61616/parameter
parameter name=transport.jms.ConnectionFactoryJNDIName
locked=falseQueueConnectionFactory/parameter
parameter name=transport.jms.ConnectionFactoryType
locked=falsequeue/parameter
/parameter
/transportReceiver




transportSender name=jms
class=org.apache.axis2.transport.jms.JMSSender/




On Thu, Sep 25, 2014 at 5:19 PM, Priyadarssini Kishokumar 
priyadarss...@wso2.com wrote:

 Hi Lahiru,

 Have you set the transport sender  receiver in the axis2.xml?

 On Thu, Sep 25, 2014 at 1:15 PM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Godwin,

 Yes I did copy the files. Without copying them, JMS client doesn't work
 at all.

 On Thu, Sep 25, 2014 at 1:08 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi Lahiru,

 Have you copied 5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar,
 and geronimo-jms_1.1_spec-1.1.1.jar from ActiveMQ_HOME/lib to
 ESB_HOME/repository/components/lib ?





 On Thu, Sep 25, 2014 at 12:51 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi,

 Seems like I was too quick to send previous mail. I think the problem
 is not with JMS client. Even though JMS client prints the error mentioned
 earlier, message gets successfully sent. I checked the ActiveMQ admin
 console and it shows that it has received the messages I sent from JMS
 client.

 But I don’t get the output mentioned in the example. I think the
 problem should be with ESB because it has printed following error at
 startup. Looks like it has failed to enable JMS transport.


 [2014-09-25 11:48:00,521] ERROR - JMSListener Unexpected error when
 configuring service StockQuoteProxy for the JMS transport. It will be
 disabled for this transport and marked as faulty.
 java.lang.NoClassDefFoundError: org/apache/activeio/util/FactoryFinder
 at
 org.apache.activemq.transport.TransportFactory.clinit(TransportFactory.java:49)
 at
 org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:223)
 at
 org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:211)
 at
 org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:158)
 at
 org.apache.axis2.transport.jms.JMSUtils.createConnection(JMSUtils.java:629)
 at
 org.apache.axis2.transport.jms.JMSListener.checkJMSConnection(JMSListener.java:148)
 at
 org.apache.axis2.transport.jms.JMSListener.startEndpoint(JMSListener.java:94)
 at
 org.apache.axis2.transport.jms.JMSListener.startEndpoint(JMSListener.java:53)


 Does anyone know how to fix this error?

 Thanks

 On Thu, Sep 25, 2014 at 11:46 AM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 When I try to run jms client in WSO2 ESB sample 250 [1
 https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports],
 I get following error.

 jmsclient:
  [java] Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
  [java] SLF4J: Class path contains multiple SLF4J bindings.
  [java] SLF4J: Found binding in
 [jar:file:/software/wso2esb-4.8.1/repository/components/plugins/quickfixj_1.4.0.wso2v2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  [java] SLF4J: Found binding in
 [jar:file:/software

[Dev] Question about securing a service in ESB, providing Integrity

2014-09-24 Thread Lahiru Chandima
Hi All,

Following is the diagram given by ESB about how it provides integrity for a
service. (Securing a service using basic scenario No. 3)

[image: Inline image 1]


According to the diagram, client uses a generated symmetric key to sign the
message, encrypts the used key using server's public key and sends along
with the message.

But, I cannot understand how this provides integrity. As I see, someone can
intercept the message sent by the client, alter the message, generate a new
symmetric key, sign the altered message using this key, encrypt the key
using server's public key and send along with the message without a
problem. Since the original message is now altered, there's no integrity.

Can somebody please explain what I have gotten wrong?

Thanks

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


[Dev] Help understand ESB sample 1

2014-09-23 Thread Lahiru Chandima
Hi All,

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

Sample 1 [1
https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages],
explains how to use a filter mediator. The filter used is as follows

filter source=get-property('To') regex=.*/StockQuote.*

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

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

soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing;

wsa:MessageIDurn:uuid:7479f6f7-d302-41f1-a7de-4b35f64ad366/wsa:MessageID
wsa:Actionurn:getQuote/wsa:Action/soapenv:Header



Can somebody please explain how this happens?

Thanks.

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


Re: [Dev] Help understand ESB sample 1

2014-09-23 Thread Lahiru Chandima
Hi Shani,

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

Thanks

On Tue, Sep 23, 2014 at 7:13 PM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi Lahiru,

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

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





 On Tue, Sep 23, 2014 at 5:43 PM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi All,

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

 Sample 1 [1
 https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages],
 explains how to use a filter mediator. The filter used is as follows

 filter source=get-property('To') regex=.*/StockQuote.*

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

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

 soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing;
 
 wsa:MessageIDurn:uuid:7479f6f7-d302-41f1-a7de-4b35f64ad366/wsa:MessageID
 wsa:Actionurn:getQuote/wsa:Action/soapenv:Header



 Can somebody please explain how this happens?

 Thanks.

 [1]
 https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages
 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab




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


[Dev] ESB create custom proxy page is blank

2014-09-19 Thread Lahiru Chandima
Hi All,

When I try to create a custom proxy service in WSO2 ESB through the
management console, I get a blank page. And the server prints some
exception details to the terminal. Below is a part of the error printed.

[2014-09-19 13:06:54,909] ERROR - ApplicationDispatcher Servlet.service()
for servlet bridgeservlet threw exception
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for
JSP

PWC6197: An error occurred at line: 109 in the jsp file:
/proxyservices/index.jsp
PWC6199: Generated servlet error:
The type java.lang.CharSequence cannot be resolved. It is indirectly
referenced from required .class files

PWC6197: An error occurred at line: 109 in the jsp file:
/proxyservices/index.jsp
PWC6199: Generated servlet error:
The method replace(char, char) in the type String is not applicable for the
arguments (String, String)


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)



Can somebody tell me what is wrong with my ESB?

I am using jdk1.8. Can this be a problem?

Thanks.


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


Re: [Dev] ESB create custom proxy page is blank

2014-09-19 Thread Lahiru Chandima
Thanks for the replies.

I used java 1.7 and now its working fine.

On Fri, Sep 19, 2014 at 2:40 PM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 HI lahiru,
 Its better to use java 1.6

 Thank you.

 On Fri, Sep 19, 2014 at 2:35 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi Lahiru,

 Change java version to 1.6 or 1.7 and check.

 Thanks

 On Fri, Sep 19, 2014 at 1:35 PM, Lahiru Chandima lahi...@wso2.com
 wrote:

 Hi All,

 When I try to create a custom proxy service in WSO2 ESB through the
 management console, I get a blank page. And the server prints some
 exception details to the terminal. Below is a part of the error printed.

 [2014-09-19 13:06:54,909] ERROR - ApplicationDispatcher
 Servlet.service() for servlet bridgeservlet threw exception
 org.apache.jasper.JasperException: PWC6033: Error in Javac compilation
 for JSP

 PWC6197: An error occurred at line: 109 in the jsp file:
 /proxyservices/index.jsp
 PWC6199: Generated servlet error:
 The type java.lang.CharSequence cannot be resolved. It is indirectly
 referenced from required .class files

 PWC6197: An error occurred at line: 109 in the jsp file:
 /proxyservices/index.jsp
 PWC6199: Generated servlet error:
 The method replace(char, char) in the type String is not applicable for
 the arguments (String, String)


 at
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)
 at
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299)
 at
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
 at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)



 Can somebody tell me what is wrong with my ESB?

 I am using jdk1.8. Can this be a problem?

 Thanks.


 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com

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




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

 cell: +94 777 55 80 30 | +94 718 11 27 51
 twitter: @prasa77

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




 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792




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