[Dev] BAM Gadget server - can't display XML in a table

2014-08-29 Thread Sandamal Weerasinghe
Hi,

I'm trying to display a SOAP body and its header inside a table.

e.g.
soapenv:Body 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;ns:getVersionResponse
xmlns:ns=http://version.services.core.carbon.wso2.org;returnWSO2
Enterprise Service Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body


Even though UI the gets an XML message, only the content inside the xml
tags are displayed in the table

e.g.
WSO2 Enterprise Service Bus-4.8.1

Is there a way to overcome this?


Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BAM Gadget server - can't display XML in a table

2014-09-02 Thread Sandamal Weerasinghe
Fixed the issue by adding xmp tags inside the .jag file for the
respective gadget.

e.g.

function createTableJSON(result) {
var len = result.length;
var rows = [];
var columnNames = []
for (var i = 0; i  len; i++) {
var obj = result[i];
var row = []
for(var k in obj) {
if ({}.hasOwnProperty.call(obj, k)) {
if (i == 0) {
columnNames.push(k);
}

var str  = js.vkbeautify.prototype.xml(obj[k]);
row.push(xmp+str+/xmp);
}
}
rows.push(row);
}
return {Rows: rows, ColumnNames : columnNames};
}

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd


On Fri, Aug 29, 2014 at 6:51 PM, Senduran Balasubramaniyam 
sendu...@wso2.com wrote:

 Hi Sandamal,
 I think even when the soap message is coming to the UI, the soapenv:Body
 or ns:getVersionResponse tags are not recognized by the  browser (you
 can check the raw xml by pressing F12 in Chrome)
 to show the soap message as it is, put the entire message inside a '
 *textarea*' tag.

 eg:
  *textarea *
  soapenv:Body 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;ns:getVersionResponse
 xmlns:ns=http://version.services.core.carbon.wso2.org;returnWSO2
 Enterprise Service Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body
 */textarea*

 will show as

 soapenv:Body 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;ns:getVersionResponse
 xmlns:ns=http://version.services.core.carbon.wso2.org;returnWSO2
 Enterprise Service Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body

 (please apply styles to textarea to show in a nicer way)

  Regards
 Senduran


 On Fri, Aug 29, 2014 at 6:48 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Sandamal,
 I think even when the soap message is coming to the UI, the
 soapenv:Body or ns:getVersionResponse tags are not recognized by
 the  browser (you can check the raw xml by pressing F12 in Chrome)
 to show the soap message as it is, put the entire message inside a '
 *textarea*' tag.

 eg:
  *textarea *
  soapenv:Body 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;ns:getVersionResponse
 xmlns:ns=http://version.services.core.carbon.wso2.org;returnWSO2
 Enterprise Service Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body
 */textarea*

 will show as

 soapenv:Body 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;ns:getVersionResponse
 xmlns:ns=http://version.services.core.carbon.wso2.org;returnWSO2
 Enterprise Service Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body

 (please apply styles to textarea to show in a nicer way)

  Regards
 Senduran


 On Fri, Aug 29, 2014 at 6:21 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Sandamal,
 I think even when the soap message is coming to the UI, the
 soapenv:Body or ns:getVersionResponse tags are not recognized by
 the  browser (you can check the raw xml by pressing F12 in Chrome)
 to show the soap message as it is, put the entire message inside a '
 *textarea*' tag.

 eg:
  *textarea *
  soapenv:Body xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 ns:getVersionResponse xmlns:ns=
 http://version.services.core.carbon.wso2.org;returnWSO2 Enterprise
 Service Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body
 */textarea*

 will show as

 soapenv:Body xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 ns:getVersionResponse xmlns:ns=
 http://version.services.core.carbon.wso2.org;returnWSO2 Enterprise
 Service Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body

 (please apply styles to textarea to show in a nicer way)

 Regards
 Senduran


 On Fri, Aug 29, 2014 at 6:01 PM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi,

 I'm trying to display a SOAP body and its header inside a table.

 e.g.
 soapenv:Body 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;ns:getVersionResponse
 xmlns:ns=http://version.services.core.carbon.wso2.org;returnWSO2
 Enterprise Service 
 Bus-4.8.1/return/ns:getVersionResponse/soapenv:Body


 Even though UI the gets an XML message, only the content inside the xml
 tags are displayed in the table

 e.g.
 WSO2 Enterprise Service Bus-4.8.1

 Is there a way to overcome this?


 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 ___
 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




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




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

Re: [Dev] Updated Invitation: Http Inbound Endpoint Code Review @ Fri Oct 17, 2014 4pm - 5pm (Sandamal Weerasinghe)

2014-10-17 Thread Sandamal Weerasinghe
Please find the summary attached.

https://docs.google.com/a/wso2.com/document/d/1xxXssYWESeWVrApnH9oVvuyinFsVUnGrvSWEd9MKY-0/edit?usp=sharing

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

On Fri, Oct 17, 2014 at 1:16 PM, Isuru Ranawaka isu...@wso2.com wrote:

 This event has been changed.
 more details »
 https://www.google.com/calendar/event?action=VIEWeid=cm9nN2Fna2JpMzA1c2V2N3JiN2s1NDMydGMgc2FuZGFtYWxAd3NvMi5jb20tok=MTUjaXN1cnVyQHdzbzIuY29tNzMyMDhjYTI2NTEzODljNGJjYWI2MjI5ZTRkNTg1NDBkOWM4MTk5Mgctz=Asia/Colombohl=en
 Http Inbound Endpoint Code Review
 *When*
 *Changed: *Fri Oct 17, 2014 4pm – 5pm Colombo
 *Where*
 1st Floor Meeting Room (map
 https://maps.google.lk/maps?q=1st+Floor+Meeting+Roomhl=en)
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/http-inbound
 https://plus.google.com/hangouts/_/wso2.com/http-inbound?hceid=aXN1cnVyQHdzbzIuY29t.rog7agkbi305sev7rb7k5432tc
 *Calendar*
 Sandamal Weerasinghe
 *Who*
 •
 Isuru Ranawaka - organizer
 •
 Malaka Silva
 •
 Ishan Jayawardena
 •
 Miyuru Wanninayaka
 •
 Isuru Udana
 •
 Srinath Perera
 •
 Ravi Undupitiya
 •
 Dushan Abeyruwan
 •
 Chanaka Fernando
 •
 Kasun Indrasiri
 •
 Sandamal Weerasinghe
 •
 dev@wso2.org

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=cm9nN2Fna2JpMzA1c2V2N3JiN2s1NDMydGMgc2FuZGFtYWxAd3NvMi5jb20rst=1tok=MTUjaXN1cnVyQHdzbzIuY29tNzMyMDhjYTI2NTEzODljNGJjYWI2MjI5ZTRkNTg1NDBkOWM4MTk5Mgctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=cm9nN2Fna2JpMzA1c2V2N3JiN2s1NDMydGMgc2FuZGFtYWxAd3NvMi5jb20rst=3tok=MTUjaXN1cnVyQHdzbzIuY29tNzMyMDhjYTI2NTEzODljNGJjYWI2MjI5ZTRkNTg1NDBkOWM4MTk5Mgctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=cm9nN2Fna2JpMzA1c2V2N3JiN2s1NDMydGMgc2FuZGFtYWxAd3NvMi5jb20rst=2tok=MTUjaXN1cnVyQHdzbzIuY29tNzMyMDhjYTI2NTEzODljNGJjYWI2MjI5ZTRkNTg1NDBkOWM4MTk5Mgctz=Asia/Colombohl=en*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=cm9nN2Fna2JpMzA1c2V2N3JiN2s1NDMydGMgc2FuZGFtYWxAd3NvMi5jb20tok=MTUjaXN1cnVyQHdzbzIuY29tNzMyMDhjYTI2NTEzODljNGJjYWI2MjI5ZTRkNTg1NDBkOWM4MTk5Mgctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account sanda...@wso2.com because you
 are subscribed for updated invitations on calendar Sandamal Weerasinghe.

 To stop receiving these notifications, please log in to
 https://www.google.com/calendar/ and change your notification settings
 for this calendar.

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


Re: [Dev] Errors in ESB sample 101

2014-07-15 Thread Sandamal Weerasinghe
Hi Amalka,

First you need to deploy the ReliableStockQuoteService in Axis2.

Then in {ESB HOME}/repository/conf/carbon.xml change the configuration file
to axis2_nhttp.xml

COMMENT THIS -
ConfigurationFile${carbon.home}/repository/conf/axis2/axis2.xml/ConfigurationFile
ADD THIS -
ConfigurationFile${carbon.home}/repository/conf/axis2/axis2_nhttp.xml/ConfigurationFile

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd


On Wed, Jul 16, 2014 at 10:24 AM, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 After I execute the ESB sample 101; noticed the following errors in
 consoles, Any idea about this?

 *ESB console*

 [2014-07-16 10:19:17,004] ERROR - AxisEngine The service cannot be found
 for the endpoint reference (EPR)
 http://www.w3.org/2005/08/addressing/anonymous
 org.apache.axis2.AxisFault: The service cannot be found for the endpoint
 reference (EPR) http://www.w3.org/2005/08/addressing/anonymous
 at
 org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:251)
 at
 org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:109)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.sandesha2.workers.SenderWorker.checkForSyncResponses(SenderWorker.java:710)
 at org.apache.sandesha2.workers.SenderWorker.run(SenderWorker.java:410)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)


 *Axis2Server console*

 Wed Jul 16 10:19:11 IST 2014 samples.services.ReliableStockQuoteService ::
 Generating quote for : IBM
 14/07/16 10:20:31 WARN workers.Sender: A WS-Reliable messaging protocol
 message 7 has been waiting for a MakeConnection call. The message will
 continue to wait, but there may be a problem with the client
 configuration.  The sequence ID is
 urn:uuid:6822867B15853194A11405486150546. The internal sequence ID is
 Sandesha2InternalSequence:urn:uuid:964627EF8A91C865E71405486150955.

 Thanks
 Amalka

 --

 Amalka Subasinghe

 Senior Software Engineer
 WSO2 Inc.
 Mobile: +94 77 9401267

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


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


[Dev] Apache CXF based reliable messaging samples/tutorials

2014-07-17 Thread Sandamal Weerasinghe
Hi,

I'm in the process of implementing reliable messaging for the WSO2 ESB
inbound endpoint which is implemented using Netty io. I've trying to find
good reference materials regarding $subject, but so far had little success.
Anyone has prior experience using Apache CXF? It would be great if someone
could point me towards some good reference material.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fastest way to copy the SOAP Body from one Envelope to another

2014-08-05 Thread Sandamal Weerasinghe
Hi,

I need to copy the SOAPBody of one SOAP Envelope and replace the SOAPBody
of another using it. Does anyone know a fast mechanism to achieve this?

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fastest way to copy the SOAP Body from one Envelope to another

2014-08-05 Thread Sandamal Weerasinghe
Hi Gayan,


This is the body of the Soap envelope that I need copied.

?xml version=1.0 encoding=UTF-8?soapenv:Body
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   ns:getQuoteResponse xmlns:ns=http://services.samples;
  ns:return xmlns:ax23=http://services.samples/xsd;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:type=ax23:GetQuoteResponse
 ax23:change-2.6118882540227526/ax23:change
 ax23:earnings12.94566873541299/ax23:earnings
 ax23:high-172.3778889138847/ax23:high
 ax23:last175.8553311594652/ax23:last
 ax23:lastTradeTimestampTue Aug 05 14:43:06 IST
2014/ax23:lastTradeTimestamp
 ax23:low182.9590055156625/ax23:low
 ax23:marketCap4.899401067021363E7/ax23:marketCap
 ax23:nameIBM Company/ax23:name
 ax23:open-175.20550902687447/ax23:open
 ax23:peRatio-17.11558033436292/ax23:peRatio
 ax23:percentageChange1.5254260629340552/ax23:percentageChange
 ax23:prevClose-171.22352354456038/ax23:prevClose
 ax23:symbolIBM/ax23:symbol
 ax23:volume7888/ax23:volume
  /ns:return
   /ns:getQuoteResponse/soapenv:Body



This is the SOAP body that needs to be replaced.


?xml version=1.0 encoding=UTF-8?soap:Body
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; /


Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd


On Tue, Aug 5, 2014 at 1:49 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi Sandamal,

 You can use org.apache.synapse.util.PayloadHelper class for all such
 utility methods. Following is an example for your case.

 PayloadHelper.setXMLPayload(envelope2,
 envelope1.getBody().getFirstElement().cloneOMElement());

 Hope this helps. Thanks,


 On Tue, Aug 5, 2014 at 12:08 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi,

 I need to copy the SOAPBody of one SOAP Envelope and replace the SOAPBody
 of another using it. Does anyone know a fast mechanism to achieve this?

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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


Re: [Dev] Fastest way to copy the SOAP Body from one Envelope to another

2014-08-05 Thread Sandamal Weerasinghe
Hi Gayan,

Thanks for the help, this solved my problem.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd


On Tue, Aug 5, 2014 at 4:57 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi Sandamal,

 According to the offline chat I had with you, this should already be
 solved right? Given solution should perfectly work for the given case.

 Thanks,


 On Tue, Aug 5, 2014 at 2:47 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi Gayan,


 This is the body of the Soap envelope that I need copied.


 ?xml version=1.0 encoding=UTF-8?soapenv:Body 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
ns:getQuoteResponse xmlns:ns=http://services.samples;
   ns:return xmlns:ax23=http://services.samples/xsd; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=ax23:GetQuoteResponse
  ax23:change-2.6118882540227526/ax23:change
  ax23:earnings12.94566873541299/ax23:earnings
  ax23:high-172.3778889138847/ax23:high
  ax23:last175.8553311594652/ax23:last
  ax23:lastTradeTimestampTue Aug 05 14:43:06 IST 
 2014/ax23:lastTradeTimestamp
  ax23:low182.9590055156625/ax23:low
  ax23:marketCap4.899401067021363E7/ax23:marketCap
  ax23:nameIBM Company/ax23:name
  ax23:open-175.20550902687447/ax23:open
  ax23:peRatio-17.11558033436292/ax23:peRatio
  ax23:percentageChange1.5254260629340552/ax23:percentageChange
  ax23:prevClose-171.22352354456038/ax23:prevClose
  ax23:symbolIBM/ax23:symbol
  ax23:volume7888/ax23:volume
   /ns:return
/ns:getQuoteResponse/soapenv:Body



 This is the SOAP body that needs to be replaced.



 ?xml version=1.0 encoding=UTF-8?soap:Body 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; /


 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd


 On Tue, Aug 5, 2014 at 1:49 PM, Gayan Yalpathwala gay...@wso2.com
 wrote:

 Hi Sandamal,

 You can use org.apache.synapse.util.PayloadHelper class for all such
 utility methods. Following is an example for your case.

 PayloadHelper.setXMLPayload(envelope2,
 envelope1.getBody().getFirstElement().cloneOMElement());

 Hope this helps. Thanks,


 On Tue, Aug 5, 2014 at 12:08 PM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi,

 I need to copy the SOAPBody of one SOAP Envelope and replace the
 SOAPBody of another using it. Does anyone know a fast mechanism to achieve
 this?

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/





 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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


[Dev] Convention for static constant variable values in Java?

2014-08-11 Thread Sandamal Weerasinghe
Hi,

Are there any conventions or best practices when using constant String
variables in Java?. I'm referring to the variable values, not the names.

Some examples I found are

public static final java.lang.String HTTP_RESPONSE_STATE =
axis2.http.response.state;
public static final java.lang.String HTTP_BASIC_AUTH_REALM =
axis2.authentication.realm;

public static final java.lang.String SERVICE_OBJECT_SUPPLIER =
ServiceObjectSupplier;
public static final java.lang.String REQUEST_PARAMETER_MAP =
requestParameterMap;

The first two appear to follow some convention, but the latter two seem to
be mere names.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] wso2-synapse 2.1.2-wso2v2 SynapseCommodityServiceTest test case failure

2014-08-12 Thread Sandamal Weerasinghe
Hi,

I'm getting a FileNotFoundException in the above test case. Has this been
encountered before?


java.io.FileNotFoundException: ./../../repository/conf/axis2_pt_server.xml
(No such file or directory)


Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2-synapse 2.1.2-wso2v2 SynapseCommodityServiceTest test case failure

2014-08-13 Thread Sandamal Weerasinghe
Problem was solved after building with a clean m2 repo.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd


On Wed, Aug 13, 2014 at 10:14 AM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi,

 I'm getting a FileNotFoundException in the above test case. Has this been
 encountered before?


 java.io.FileNotFoundException: ./../../repository/conf/axis2_pt_server.xml
 (No such file or directory)


 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


[Dev] Calling an Admin Services without authentication

2014-11-25 Thread Sandamal Weerasinghe
Hi all,

I need to get a list of the un-deployed car files in WSO2 ESB, which can be
done using the following class
https://github.com/wso2-dev/carbon-commons/blob/master/components/application-mgt/org.wso2.carbon.application.mgt/src/main/java/org/wso2/carbon/application/mgt/ApplicationAdmin.java.
Is there a way to do this without using the AuthenticationAdminStub?
Basically what I want to do is, call an Admin Service without using the
usename and pw inside the Java class.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


Re: [Dev] Calling an Admin Services without authentication

2014-11-26 Thread Sandamal Weerasinghe
Hi all,

I was able to do it using the method Aruna suggested. Thanks for the help.

Cheers.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Wed, Nov 26, 2014 at 1:00 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Sandamal,

 If you are accessing from a external client the you need to authenticate
 and get the adminCookie since these services are secured. If you are using
 them on Carbon level always use the exposed OSGI service.

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Wed, Nov 26, 2014 at 12:55 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Hi Sandamal,

 If it's a carbon component, you can use the ApplicationManagerService
 OSGI service to get the capp list.

 /**
  * @scr.component name=application.mgt.dscomponent immediate=true
  * @scr.reference name=application.manager
 interface=org.wso2.carbon.application.deployer.service.ApplicationManagerService
  * cardinality=1..1 policy=dynamic bind=setAppManager
 unbind=unsetAppManager
  */

 Regards,
 Aruna

 On Wed, Nov 26, 2014 at 12:44 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Where do you intend to have the code which needs to get the list of
 CApps ?. More context would be helpful.
 If its within a carbon component you don't need to authenticate.
 Otherwise you need to authenticate.

 thanks,

 On Wed, Nov 26, 2014 at 12:23 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi all,

 I need to get a list of the un-deployed car files in WSO2 ESB, which
 can be done using the following class
 https://github.com/wso2-dev/carbon-commons/blob/master/components/application-mgt/org.wso2.carbon.application.mgt/src/main/java/org/wso2/carbon/application/mgt/ApplicationAdmin.java.
 Is there a way to do this without using the AuthenticationAdminStub?
 Basically what I want to do is, call an Admin Service without using the
 usename and pw inside the Java class.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

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




 --
 Supun Malinga,

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

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




 --

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


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



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


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


[Dev] Stopping and starting an ESB instance from a test case

2014-12-17 Thread Sandamal Weerasinghe
Hi all,

In a test case that I'm working on, I need to copy several files to
CARBON_HOME.

axis2.xml
carbon.xml
cipher-text.properties
master-datasources.xml
password-tmp
secret-conf.properties
wso2carbon.jks
wso2server.sh - has -Dkey.password=true environment variable

After copying these files I need to shut down the ESB instance and start it
again. (gracefully restarting won't work because of the wso2server.sh).

I tried the following to start a new ESB instance on a different port

MapString, String startupParameterMap = new HashMapString, String();
startupParameterMap.put(-DportOffset, 10);
CarbonTestServerManager carbonTestServerManager = new
CarbonTestServerManager(System.getProperty(carbon.zip),
startupParameterMap);

carbonHome = carbonTestServerManager.startServer();
carbonTestServerManager.stopServer();

//copy files..

ServerUtils serverUtils = new ServerUtils();
serverUtils.startServerUsingCarbonHome(carbonHome,
FrameworkFactory.getFrameworkProperties(ESB), startupParameterMap);

This part is working fine. But now I'm facing the following problems,

   1. When the server is shutting down, it tries to generate an emma
   coverage report, is there a way to skip that?
   2. How can I initialize an AdminServiceClient to work on the new ESB
   instance?

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


Re: [Dev] Stopping and starting an ESB instance from a test case

2014-12-17 Thread Sandamal Weerasinghe
The reason why I wanted to disable emma test coverage is because it throws
the following error. But I can leave that as it is. I will use the above
solution for (2) to access the adminServiceClients.

Thanks.

com.vladium.emma.EMMARuntimeException: [CLASS_STAMP_MISMATCH] runtime
version of class
[org.wso2.carbon.core.services.util.CarbonAuthenticationUtil] in the
coverage data is not consistent with the version of this class in the
metadata, possibly because stale metadata is being used for report
generation.
at com.vladium.emma.report.ReportDataModel.getView(ReportDataModel.java:95)
at
com.vladium.emma.report.AbstractReportGenerator.initialize(AbstractReportGenerator.java:210)
at
com.vladium.emma.report.html.ReportGenerator.process(ReportGenerator.java:85)
at com.vladium.emma.report.ReportProcessor._run(ReportProcessor.java:255)
at com.vladium.emma.Processor.run(Processor.java:88)
at com.vladium.emma.report.reportCommand.run(reportCommand.java:139)
at
org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils.generateReports(CodeCoverageUtils.java:310)
at
org.wso2.carbon.automation.core.utils.serverutils.ServerUtils.shutdown(ServerUtils.java:214)
at
org.wso2.carbon.automation.core.TestServerManager.stopServer(TestServerManager.java:113)
at
org.wso2.carbon.automation.core.tests.utils.CarbonTestServerManager.stopServer(CarbonTestServerManager.java:46)
at
org.wso2.carbon.esb.security.basic.ESBJAVA3424TestCase.init(ESBJAVA3424TestCase.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
at
org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
at org.testng.TestRunner.privateRun(TestRunner.java:757)
at org.testng.TestRunner.run(TestRunner.java:608)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
at org.testng.TestNG.run(TestNG.java:999)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
[2014-12-18 11:39:44,149]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -  Emma
report generation completed


Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Wed, Dec 17, 2014 at 11:07 PM, Nuwan Wimalasekara nuw...@wso2.com
wrote:



 On Wed, Dec 17, 2014 at 10:56 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Sandamal,

 On Wed, Dec 17, 2014 at 7:07 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi all,

 In a test case that I'm working on, I need to copy several files to
 CARBON_HOME.

 axis2.xml
 carbon.xml
 cipher-text.properties
 master-datasources.xml
 password-tmp
 secret-conf.properties
 wso2carbon.jks
 wso2server.sh - has -Dkey.password=true environment variable

 After copying these files I need to shut down the ESB instance and start
 it again. (gracefully restarting won't work because of the wso2server.sh).

 I tried the following to start a new ESB instance on a different port

 MapString, String startupParameterMap = new HashMapString, String();
 startupParameterMap.put

Re: [Dev] Stopping and starting an ESB instance from a test case

2014-12-18 Thread Sandamal Weerasinghe
Hi all,

That error is present even without my test case.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Dec 18, 2014 at 12:32 PM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 Hi Sandamal,

 On Thu, Dec 18, 2014 at 11:43 AM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 The reason why I wanted to disable emma test coverage is because it
 throws the following error. But I can leave that as it is. I will use the
 above solution for (2) to access the adminServiceClients.

 Thanks.

 com.vladium.emma.EMMARuntimeException: [CLASS_STAMP_MISMATCH] runtime
 version of class
 [org.wso2.carbon.core.services.util.CarbonAuthenticationUtil] in the
 coverage data is not consistent with the version of this class in the
 metadata, possibly because stale metadata is being used for report
 generation.
 at
 com.vladium.emma.report.ReportDataModel.getView(ReportDataModel.java:95)
 at
 com.vladium.emma.report.AbstractReportGenerator.initialize(AbstractReportGenerator.java:210)
 at
 com.vladium.emma.report.html.ReportGenerator.process(ReportGenerator.java:85)
 at com.vladium.emma.report.ReportProcessor._run(ReportProcessor.java:255)
 at com.vladium.emma.Processor.run(Processor.java:88)
 at com.vladium.emma.report.reportCommand.run(reportCommand.java:139)
 at
 org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils.generateReports(CodeCoverageUtils.java:310)
 at
 org.wso2.carbon.automation.core.utils.serverutils.ServerUtils.shutdown(ServerUtils.java:214)
 at
 org.wso2.carbon.automation.core.TestServerManager.stopServer(TestServerManager.java:113)
 at
 org.wso2.carbon.automation.core.tests.utils.CarbonTestServerManager.stopServer(CarbonTestServerManager.java:46)
 at
 org.wso2.carbon.esb.security.basic.ESBJAVA3424TestCase.init(ESBJAVA3424TestCase.java:90)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
 at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
 at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
 at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
 at
 org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173)
 at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
 at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
 at org.testng.TestRunner.privateRun(TestRunner.java:757)
 at org.testng.TestRunner.run(TestRunner.java:608)
 at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
 at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
 at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
 at org.testng.SuiteRunner.run(SuiteRunner.java:240)
 at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
 at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
 at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
 at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
 at org.testng.TestNG.run(TestNG.java:999)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
 at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
 [2014-12-18 11:39:44,149]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -  Emma
 report generation completed



 I've seen this error when there are multiple jar versions in plugins dir.
 Can you please check.


 Thanks,
 Krishantha.



 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Wed, Dec 17, 2014 at 11:07 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:



 On Wed, Dec 17, 2014 at 10:56 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Sandamal,

 On Wed, Dec 17, 2014 at 7:07 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi all,

 In a test case that I'm working

Re: [Dev] Stopping and starting an ESB instance from a test case

2014-12-18 Thread Sandamal Weerasinghe
Hi,

Let me get back to you on that one.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Dec 18, 2014 at 4:54 PM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Please disable coverage and go ahead. Issue is related to test
 configurations which will take bit of effort to debug. Anyway we didn't get
 this coverage error when doing public release. So changes done in the
 support branch probably causing this.

 Can you confirm whether there are any duplicate jar files in plugins dir ?

 Thanks,
 Krishantha.


 On Thu, Dec 18, 2014 at 3:23 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi all,

 That error is present even without my test case.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Dec 18, 2014 at 12:32 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Sandamal,

 On Thu, Dec 18, 2014 at 11:43 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 The reason why I wanted to disable emma test coverage is because it
 throws the following error. But I can leave that as it is. I will use the
 above solution for (2) to access the adminServiceClients.

 Thanks.

 com.vladium.emma.EMMARuntimeException: [CLASS_STAMP_MISMATCH] runtime
 version of class
 [org.wso2.carbon.core.services.util.CarbonAuthenticationUtil] in the
 coverage data is not consistent with the version of this class in the
 metadata, possibly because stale metadata is being used for report
 generation.
 at
 com.vladium.emma.report.ReportDataModel.getView(ReportDataModel.java:95)
 at
 com.vladium.emma.report.AbstractReportGenerator.initialize(AbstractReportGenerator.java:210)
 at
 com.vladium.emma.report.html.ReportGenerator.process(ReportGenerator.java:85)
 at
 com.vladium.emma.report.ReportProcessor._run(ReportProcessor.java:255)
 at com.vladium.emma.Processor.run(Processor.java:88)
 at com.vladium.emma.report.reportCommand.run(reportCommand.java:139)
 at
 org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils.generateReports(CodeCoverageUtils.java:310)
 at
 org.wso2.carbon.automation.core.utils.serverutils.ServerUtils.shutdown(ServerUtils.java:214)
 at
 org.wso2.carbon.automation.core.TestServerManager.stopServer(TestServerManager.java:113)
 at
 org.wso2.carbon.automation.core.tests.utils.CarbonTestServerManager.stopServer(CarbonTestServerManager.java:46)
 at
 org.wso2.carbon.esb.security.basic.ESBJAVA3424TestCase.init(ESBJAVA3424TestCase.java:90)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
 at
 org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
 at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
 at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
 at
 org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173)
 at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
 at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
 at org.testng.TestRunner.privateRun(TestRunner.java:757)
 at org.testng.TestRunner.run(TestRunner.java:608)
 at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
 at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
 at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
 at org.testng.SuiteRunner.run(SuiteRunner.java:240)
 at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
 at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
 at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
 at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
 at org.testng.TestNG.run(TestNG.java:999)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
 at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75

Re: [Dev] Upgrading jcifs and JSch to the latest versions

2015-01-15 Thread Sandamal Weerasinghe
Hi Carbon Team,

Please merge the pull request [1]

[1] https://github.com/wso2/orbit/pull/54

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Wed, Jan 14, 2015 at 2:42 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi all,

 Currently we are using jcifs_0.8.3 (released with Carbon 3.1.0)
 and jsch_0.1.49 (released with Carbon 4.1.0). I am in the process of
 upgrading them to the latest versions available on Maven.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

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


Re: [Dev] Upgrading jcifs and JSch to the latest versions

2015-01-20 Thread Sandamal Weerasinghe
Hi Manoj,

Changed the pull request according the comments.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Tue, Jan 20, 2015 at 12:29 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Sandamal,

 I have added some comments please update the pull requests accordingly.


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Tue, Jan 20, 2015 at 12:28 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Manoj, can you review this and merge?

 On Mon, Jan 19, 2015 at 11:39 AM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi,

 Please merge the above when possible.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Fri, Jan 16, 2015 at 10:50 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi Carbon Team,

 Please merge the pull request [1]

 [1] https://github.com/wso2/orbit/pull/54

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Wed, Jan 14, 2015 at 2:42 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi all,

 Currently we are using jcifs_0.8.3 (released with Carbon 3.1.0)
 and jsch_0.1.49 (released with Carbon 4.1.0). I am in the process of
 upgrading them to the latest versions available on Maven.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640






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

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



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


Re: [Dev] Upgrading jcifs and JSch to the latest versions

2015-01-20 Thread Sandamal Weerasinghe
Hi Manoj,

Did the modifications mentioned by KasunG.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Tue, Jan 20, 2015 at 1:44 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi Manoj,

 Changed the pull request according the comments.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Tue, Jan 20, 2015 at 12:29 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Sandamal,

 I have added some comments please update the pull requests accordingly.


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Tue, Jan 20, 2015 at 12:28 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Manoj, can you review this and merge?

 On Mon, Jan 19, 2015 at 11:39 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi,

 Please merge the above when possible.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Fri, Jan 16, 2015 at 10:50 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi Carbon Team,

 Please merge the pull request [1]

 [1] https://github.com/wso2/orbit/pull/54

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Wed, Jan 14, 2015 at 2:42 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi all,

 Currently we are using jcifs_0.8.3 (released with Carbon 3.1.0)
 and jsch_0.1.49 (released with Carbon 4.1.0). I am in the process of
 upgrading them to the latest versions available on Maven.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640






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

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




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


[Dev] Port binding error when restarting the ESB from the test framework

2015-01-29 Thread Sandamal Weerasinghe
Hi all,

In order to run nhttp test cases in the ESB, I want to change the axis2.xml
and restart it. I used the following code to do that.

AutomationContext autoCtx = new AutomationContext(ESB, TestUserMode.
SUPER_TENANT_ADMIN);

serverConfigurationManager = new ServerConfigurationManager(autoCtx);

serverConfigurationManager.applyConfiguration(new File...);

The problem is, when the ESB restarts a port binding error occurs. To avoid
this I tried to shut down the server and start it again using CarbonHome.

MapString, String startupParameterMap = new HashMapString, String();

startupParameterMap.put(-DportOffset, 0);

CarbonServerManager carbonServerManager = new CarbonServerManager(autoCtx);

carbonServerManager.restartGracefully();

carbonServerManager.serverShutdown(0);
carbonServerManager.startServerUsingCarbonHome(carbonHome,
startupParameterMap);

The ESB shuts down properly, but it fails to restart because of the bug in
https://wso2.org/jira/browse/TA-936

Is there a way to avoid this port binding situation when restarting the ESB
from the test framework?

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


[Dev] Upgrading jsch to the latest version

2015-01-23 Thread Sandamal Weerasinghe
Hi all,

At the moment org.wso2.carbon.deployment.synchronizer is using
version 0.1.49 of the above jar that was released in October 2012. The
latest version of that jar is 0.1.51 (released in March 2014). Since the
current version that is used in our products is fairly old I think it
should be updated if possible. Version 0.1.51 is already in Orbit
http://maven.wso2.org/nexus/content/groups/wso2-public/com/jcraft/jsch/.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


[Dev] Test automation framework - get SOAP envelope or headers from a response

2015-01-05 Thread Sandamal Weerasinghe
Hi,

axis2Client.sendSimpleStockQuoteRequest(..) returns only the SOAP body of
the response. Upon inspecting the code I found that
org.apache.axis2.client.ServiceClient.sendReceive(..) gets the SOAP body of
the response and returns it (return
response.getEnvelope().getBody().getFirstElement()). Is there a way to read
the full SOAP envelop or the SOAP headers of a response? The test framework
version I'm using is 4.2.3.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


Re: [Dev] WSO2 Committers += Pirinthapan Mahendran

2015-01-11 Thread Sandamal Weerasinghe
Congratulations!

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, Jan 12, 2015 at 10:07 AM, Sajini De Silva saj...@wso2.com wrote:

 Congratulations Pirinthapan!!!

 On Mon, Jan 12, 2015 at 10:06 AM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 congratulations Pirunthapan

 On Mon, Jan 12, 2015 at 10:04 AM, Elilmatha Sivanesan elilma...@wso2.com
  wrote:

 Congratulations Pirinthapan


 On Mon, Jan 12, 2015 at 10:01 AM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Pirinthapan !

 On Mon, Jan 12, 2015 at 10:00 AM, Kesavan Yogarajah kesav...@wso2.com
 wrote:

 Congratulations Pirinthapan !



 Kesavan Yogarajah
 Associate Software Engineer
 WSO2 Inc.

 Mob: +94 779758021

 On Mon, Jan 12, 2015 at 9:58 AM, Samith Dassanayake sam...@wso2.com
 wrote:

 Congratulations Pirinthapan!

 On Sun, Jan 11, 2015 at 7:04 AM, Harsha Thirimanna hars...@wso2.com
 wrote:

 Congratulations...
 On Jan 11, 2015 6:11 AM, Sam Sivayogam s...@wso2.com wrote:

 Congratulations Pirinthapan :)

 On Sun, Jan 11, 2015 at 2:11 AM, Harsha Kumara hars...@wso2.com
 wrote:

 Congratulations Pirinthapan!

 On Sat, Jan 10, 2015 at 10:38 PM, Keerthika Mahendralingam 
 keerth...@wso2.com wrote:

 Congrats!

 On Sat, Jan 10, 2015 at 5:45 PM, Milinda Perera 
 milin...@wso2.com wrote:

 Congratulations Pirinthapan ..

 On Sat, Jan 10, 2015 at 4:44 PM, Abimaran Kugathasan 
 abima...@wso2.com wrote:

 Congrats!

 On Sat, Jan 10, 2015 at 10:35 AM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Congratulations Pirinthapan !!!


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

 On Sat, Jan 10, 2015 at 10:09 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Congratulations Printhapan !!!

 On Fri, Jan 9, 2015 at 7:31 PM, Kasun De Silva 
 kas...@wso2.com wrote:

 Congratz Pirin...!

 ___
 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



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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/
 https://github.com/abimaran  https://twitter.com/abimaran


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




 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032


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




 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware

 ___
 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




 --
 *Sam Sivayogam*

 Software Engineer
 Mobile  : +94 772 906 439
 Office   : +94 112 145 345
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 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




 --
 Best Regards

 Samith Dassanayake
 Software Engineer | Cloud TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +947 76207351

 ___
 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




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




 --
 *S.Elilmatha*
 Associate  Software Engineer,

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

 Mobile 0779842221.


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

[Dev] Upgrading jcifs and JSch to the latest versions

2015-01-14 Thread Sandamal Weerasinghe
Hi all,

Currently we are using jcifs_0.8.3 (released with Carbon 3.1.0)
and jsch_0.1.49 (released with Carbon 4.1.0). I am in the process of
upgrading them to the latest versions available on Maven.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


Re: [Dev] Upgrading jcifs from 0.8.3 to 1.3.17

2015-01-13 Thread Sandamal Weerasinghe
Hi all,

I found the required file in the following location.

http://svn.wso2.org/repos/wso2/branches/carbon/3.1.0/orbit/jcifs/0.8.3-wso2v1/

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Tue, Jan 13, 2015 at 4:43 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi all,

 I'm in the process of upgrading the jcifs jar in order to fix [1]. The
 jcifs_0.8.3.wso2v1.jar has been released with Carbon 3.1.0. My I know the
 svn location of branch 3.1.0 in the public svn repository?

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

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

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


[Dev] Upgrading jcifs from 0.8.3 to 1.3.17

2015-01-13 Thread Sandamal Weerasinghe
Hi all,

I'm in the process of upgrading the jcifs jar in order to fix [1]. The
jcifs_0.8.3.wso2v1.jar has been released with Carbon 3.1.0. My I know the
svn location of branch 3.1.0 in the public svn repository?

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

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


[Dev] WS-RM Inbound endpoint based on Apache CXF

2015-03-16 Thread Sandamal Weerasinghe
Hi all,

Please find the pull requests for the above feature. In the orbit bundle I
embedded the dependencies because many of them don't have osgi bundles and
this would ensure that the RM Inbound feature would have all the
dependencies it would need. For the RM Connector we can use the work done
by Pasadi as a starting point (
https://svn.wso2.com/wso2/interns/2013/pasadi/CXFWsdlToJava/)

Thanks.

https://github.com/wso2/orbit/pull/71
https://github.com/wso2/carbon-mediation/pull/82

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF

2015-03-18 Thread Sandamal Weerasinghe
*First build the cxf bundle and add it to the dropins folder, you'll have
to build Spring bundle and add that as well.*
*This is the cxf inbound endpoint definition which needs to go to
/repository/deployment/server/synapse-configs/default/inbound-endpoints
folder. It can have any name e.g. rminbound.xml*
*Note that it reads a config file (attached), that config file contains the
RM protocol config. e.g. How often should the server send acknowledgements.*

inboundEndpoint name=HttpListenerRMEP
  protocol=cxf_ws_rm interval=1 suspend=false
   sequence=RMIn onError=fault class=
   p:parameters xmlns:p=http://ws.apache.org/ns/synapse;
  p:parameter  name=inbound.cxf.rm.port8081/p:parameter
  p:parameter  name=inbound.cxf.rm.hostlocalhost/p:parameter
  p:parameter
 name=inbound.cxf.rm.config-filerepository/conf/cxf/server.xml/p:parameter
   /p:parameters
/inboundEndpoint

*This is the Synapse config. I'm removing RM headers in the in sequence
because the back end doesn't support RM.*

?xml version=1.0 encoding=UTF-8?
definitions xmlns=http://ws.apache.org/ns/synapse;

   sequence name=RMOut onError=fault
  log level=full /
  send /
   /sequence
   sequence name=RMIn onError=fault
  in
 property name=PRESERVE_WS_ADDRESSING value=true /
 log level=full /
 header xmlns:wsrm=http://schemas.xmlsoap.org/ws/2005/02/rm;
name=wsrm:Sequence action=remove /
 header xmlns:wsa=http://www.w3.org/2005/08/addressing;
name=wsa:To action=remove /
 header xmlns:wsa=http://www.w3.org/2005/08/addressing;
name=wsa:FaultTo action=remove /
 send
endpoint
   address uri=
http://localhost:9000/services/SimpleStockQuoteService; /
/endpoint
 /send
  /in
  out
 log level=full /
 send /
  /out
   /sequence
   sequence name=fault
  log level=full
 property name=MESSAGE value=Executing default
quot;faultquot; sequence /
 property name=ERROR_CODE
expression=get-property('ERROR_CODE') /
 property name=ERROR_MESSAGE
expression=get-property('ERROR_MESSAGE') /
  /log
  drop /
   /sequence
   sequence name=main
  log /
  send /
  drop /
   /sequence
/definitions

*Using the stockquote client to invoke the service*

ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8081
-Dwsrm=true

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, Mar 16, 2015 at 10:41 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi all,

 Please find the pull requests for the above feature. In the orbit bundle I
 embedded the dependencies because many of them don't have osgi bundles and
 this would ensure that the RM Inbound feature would have all the
 dependencies it would need. For the RM Connector we can use the work done
 by Pasadi as a starting point (
 https://svn.wso2.com/wso2/interns/2013/pasadi/CXFWsdlToJava/)

 Thanks.

 https://github.com/wso2/orbit/pull/71
 https://github.com/wso2/carbon-mediation/pull/82

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

?xml version=1.0 encoding=UTF-8?
!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements. See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership. The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  License); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at
 
  http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
--
beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;  xmlns:wsa=http://cxf.apache.org/ws/addressing; xmlns:http=http://cxf.apache.org/transports/http/configuration; xmlns:wsrm-policy=http://schemas.xmlsoap.org/ws/2005/02/rm/policy; xmlns:wsrm-mgr=http://cxf.apache.org/ws/rm/manager; xsi:schemaLocation=http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsdhttp://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsdhttp://schemas.xmlsoap.org/ws/2005/02/rm/policy http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsdhttp://cxf.apache.org/ws/rm/manager http://cxf.apache.org/schemas/configuration/wsrm-manager.xsdhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd; xmlns:cxf=http://cxf.apache.org/core;
cxf:bus
cxf:features
wsa:addressing/
wsrm-mgr:reliableMessaging

Re: [Dev] [Gsoc2015] Proposal 5: ESB - AS2 Support

2015-03-19 Thread Sandamal Weerasinghe
Hi Yasima,

Please take a look at the inbound endpoints in carbon-mediation
https://github.com/wso2/carbon-mediation/branches (e.g. JMS Inbound
endpoint, HTTP inbound endpoint). The AS2 transport could be implemented
similar to those, but we have not decided that yet. Please research on the
AS2 protocol, look for free java libraries that could be used for
implementing the AS2 transport.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Mar 19, 2015 at 1:05 AM, Yasima Dewmini yas...@wso2.com wrote:

 Hi!

 I am Yasima Dewmini, an undergraduate of Department of  Computer Science
 and Engineering, University of Moratuwa. Currently I am working as an
 intern at WSO2.

 I am interested  in proposal [5] in the Gsoc project proposal list and
 looking forward to contribute to the project.

 Thanks.
 Yasima.


 K.Y.Dewmini
 Software Engineer Intern
 mobile: 0713117081

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


Re: [Dev] Recommended architecture for a BAM setup with 3 nodes

2015-03-06 Thread Sandamal Weerasinghe
HI Gihan,

This is using BAM 2.4.1. An external Cassandra cluster is not being used.
Can you tell me a suitable deployment using 3 nodes?

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Fri, Mar 6, 2015 at 12:56 PM, Gihan Anuruddha gi...@wso2.com wrote:

 Hi Sandamal,

 Our recommended production ready BAM cluster needs 11 nodes.
 2 - Dashboard nodes
 2 - Receiver nodes
 4 - Cassandra nodes
 3 - hadoop nodes

 But based on load we can merge dashboard and receiver nodes.
 I believe you are not using external Cassandra cluster or hadoop cluster.
 In that case we are no longer recommending 3 node BAM cluster for
 production.

 Regards,
 Gihan

 On Sat, Mar 7, 2015 at 12:12 AM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi all,

 What is the recommended Architecture for a BAM set up with 3 machines?

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

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




 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595

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


[Dev] Recommended architecture for a BAM setup with 3 nodes

2015-03-06 Thread Sandamal Weerasinghe
Hi all,

What is the recommended Architecture for a BAM set up with 3 machines?

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


[Dev] Clustering with a 3rd party LB/adding the LB to members

2015-03-04 Thread Sandamal Weerasinghe
Hi all,

If clustering is done according to pattern 3
https://docs.wso2.com/pages/viewpage.action?pageId=32346071#Worker/ManagerClusteringPatterns-pattern3
with
1 manager being passive, how would we add the LB to the members section. Do
we need to have 2 ports opened in the LB? i.e. one for requests and one for
cluster messages?

members
member
hostNamexxx.xxx.xxx.xx1/hostName
port4500/port
/member
member
hostNamexxx.xxx.xxx.xx2/hostName
port4600/port
/member
/members

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


Re: [Dev] [APIM] Pizza Shack Sample Login Error

2015-02-23 Thread Sandamal Weerasinghe
Hi Anuja,

It should attempt to connect to something like
http://localhost:8280/pizzashack/menu/1.0.0 It seems that you've
conffigured the APIs wrong.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, Feb 23, 2015 at 6:52 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I'm getting following error in APIM console when try to login from Pizza
 shack web app.

 Security xmlns=
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
 SOAP-ENV:mustUnderstand=1

 UsernameToken

 Usernameyourn...@t-online.de/Username

 Password Type=
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
 yourPassword/Password

 /UsernameToken

 /Security

 org.apache.http.conn.HttpHostConnectException: Connection to
 http://localhost:8280 refused

 at
 org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)

 at
 org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)

 at
 org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)

 at
 org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)

 at
 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)

 at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)

 at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)

 at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)

 at com.pizzashack.client.web.HTTPClient.doPost(HTTPClient.java:52)

 at com.pizzashack.client.web.TokenManager.getToken(TokenManager.java:28)

 at org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:56)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)

 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

 at
 org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)

 at
 org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)

 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

 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)

 Caused by: java.net.ConnectException: Connection refused

 at java.net.PlainSocketImpl.socketConnect(Native Method)

 at
 java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

 at
 java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200

[Dev] Sample puppet scripts to deploy WSO2 products

2015-02-24 Thread Sandamal Weerasinghe
Hi all,

Are there any sample puppet scripts to deploy WSO2 products? e.g. BAM
Cluster, API-M Cluster etc.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-04-23 Thread Sandamal Weerasinghe
Hi KasunG,

Please review and merge.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi KasunG,

 I updated the pull requests according to your instructions, please have a
 look.

 PrabathA : Can you please check if the RM connector works with the new
 Bundles

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi KasunG,

 I split the cxf bundle in to 2 bundles (cxf and jetty) and now I get the
 following error when starting up the ESB

 [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's
 publish address to be http://localhost:8081
 [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
 initialize ESB due to a fatal error
 java.lang.LinkageError: loader constraint violation: loader (instance of
 org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
 initiated loading for a different type with name
 javax/servlet/http/HttpServletResponse
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
 at
 org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
 at
 org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
 at
 org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
 at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
 at
 org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
 at
 org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
 at
 org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)

 The javax.servlet package is exported by Tomcat. Any ideas on how to
 resolve this?

 osgi b 530
 tomcat-servlet-api_7.0.52.wso2v1 [530]
   Id=530, Status=ACTIVE  Data
 Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
   No registered services.
   No services in use.
   Exported packages
 javax.servlet; version=2.6.0[exported]
 javax.servlet.annotation; version=2.6.0[exported]
 javax.servlet.descriptor; version=2.6.0[exported]
 javax.servlet.http; version=2.6.0[exported]
 javax.servlet.resources; version=2.6.0[exported]
 *; version=0.0.0unwireddynamic
   No fragment bundles
   Named class space
 tomcat-servlet-api; bundle-version=7.0.52.wso2v1[provided]
   No required bundles

 Thanks.



 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 9, 2015 at 10:56 AM, Kasun Gajasinghe kas...@wso2.com
 wrote:

 Hi Kasun,

 We'll review this and apply. There are some changes required.

 On Apr 9, 2015, at 10:29 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Can we please add this. We are blocked on this for adding RM-Inbound
 endpoint to ESB M8 release

 On Tue, Apr 7, 2015 at 11:21 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi all,

 Please find the pull request for the orbit bundle required for the
 above feature. In the orbit bundle I embedded the dependencies because 
 many
 of them don't have osgi bundles and this would ensure that the RM
 Inboundfeature would have all the dependencies it would need.

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *






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


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-04-30 Thread Sandamal Weerasinghe
Hi Prabath,

Please check if the RMConnector works with the following in place,

cxf-bundle-3.0.2.wso2v1.jar
jetty-bundle-8.1.15.v20140411.wso2v1.jar
slf4j-bundle-1.7.7.wso2v1.jar
wss4j-bundle-2.0.2.wso2v1.jar

org.apache.aries.blueprint-1.1.0.jar
org.apache.aries.proxy-1.0.1.jar
org.apache.aries.util-1.1.0.jar
stax2-api-3.1.4.jar

https://github.com/wso2/orbit/pull/71

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi KasunG,

 I updated the pull requests according to your instructions, please have
 a look.

 PrabathA : Can you please check if the RM connector works with the new
 Bundles

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi KasunG,

 I split the cxf bundle in to 2 bundles (cxf and jetty) and now I get
 the following error when starting up the ESB

 [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's
 publish address to be http://localhost:8081
 [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
 initialize ESB due to a fatal error
 java.lang.LinkageError: loader constraint violation: loader (instance
 of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
 initiated loading for a different type with name
 javax/servlet/http/HttpServletResponse
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
 at
 org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
 at
 org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
 at
 org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
 at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
 at
 org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
 at
 org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
 at
 org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)

 The javax.servlet package is exported by Tomcat. Any ideas on how to
 resolve this?

 osgi b 530
 tomcat-servlet-api_7.0.52.wso2v1 [530]
   Id=530, Status=ACTIVE  Data
 Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
   No registered services.
   No services in use.
   Exported packages
 javax.servlet; version=2.6.0[exported]
 javax.servlet.annotation; version=2.6.0[exported]
 javax.servlet.descriptor; version=2.6.0[exported]
 javax.servlet.http; version=2.6.0[exported]
 javax.servlet.resources; version=2.6.0[exported]
 *; version=0.0.0unwireddynamic
   No fragment bundles
   Named class space
 tomcat-servlet-api; bundle-version=7.0.52.wso2v1[provided]
   No required bundles

 Thanks.



 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 9, 2015 at 10:56 AM, Kasun Gajasinghe kas...@wso2.com
 wrote:

 Hi Kasun,

 We'll review this and apply. There are some changes required.

 On Apr 9, 2015, at 10:29 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Can we please add this. We are blocked on this for adding RM-Inbound
 endpoint to ESB M8 release

 On Tue, Apr 7, 2015 at 11:21 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi all,

 Please find the pull request for the orbit bundle required for the
 above feature. In the orbit bundle I embedded the dependencies because 
 many
 of them don't have osgi bundles and this would ensure that the RM
 Inboundfeature would have all the dependencies it would need.

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-08 Thread Sandamal Weerasinghe
Hi KasunG,

Updated the pull request after doing a version upgrade. The following
dependencies had to be embedded; neethi, woodstox-core-asl and
xmlschema-core.
I have removed the wss4j and slf4j bundles as they are not essential to the
functionality of the cxf ws-rm inbound endpoint and connector. As for the
changes in the spring.schemas and spring.handlers, without those changes
the following error gets thrown at when starting an inbound endpoint.

org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML
schema namespace [http://cxf.apache.org/core]

Please review and merge.

[1] https://github.com/wso2/orbit/pull/71

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Sandamal,

 We have forked some of the bundles you have mentioned above such as the
 wss4j bundle. Are you doing a version upgrade here? How is this going to
 affect the components that rely on wss4j 1.5.11?

 And, can you also verify whether all these libraries approved?

 Thanks.

 On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi Prabath,

 Please check if the RMConnector works with the following in place,

 cxf-bundle-3.0.2.wso2v1.jar
 jetty-bundle-8.1.15.v20140411.wso2v1.jar
 slf4j-bundle-1.7.7.wso2v1.jar
 wss4j-bundle-2.0.2.wso2v1.jar

 org.apache.aries.blueprint-1.1.0.jar
 org.apache.aries.proxy-1.0.1.jar
 org.apache.aries.util-1.1.0.jar
 stax2-api-3.1.4.jar

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna prabat...@wso2.com
  wrote:

 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 I updated the pull requests according to your instructions, please
 have a look.

 PrabathA : Can you please check if the RM connector works with the new
 Bundles

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 I split the cxf bundle in to 2 bundles (cxf and jetty) and now I get
 the following error when starting up the ESB

 [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's
 publish address to be http://localhost:8081
 [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
 initialize ESB due to a fatal error
 java.lang.LinkageError: loader constraint violation: loader (instance
 of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
 initiated loading for a different type with name
 javax/servlet/http/HttpServletResponse
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
 at
 org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
 at
 org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
 at
 org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
 at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
 at
 org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
 at
 org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
 at
 org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)

 The javax.servlet package is exported by Tomcat. Any ideas on how to
 resolve this?

 osgi b 530
 tomcat-servlet-api_7.0.52.wso2v1 [530]
   Id=530, Status=ACTIVE  Data
 Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
   No registered services.
   No services in use.
   Exported packages
 javax.servlet; version=2.6.0[exported]
 javax.servlet.annotation; version=2.6.0[exported]
 javax.servlet.descriptor; version=2.6.0[exported]
 javax.servlet.http; version=2.6.0[exported]
 javax.servlet.resources; version=2.6.0[exported]
 *; version=0.0.0unwireddynamic
   No fragment bundles
   Named class space
 tomcat-servlet-api; bundle-version=7.0.52.wso2v1[provided]
   No required bundles

 Thanks.



 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 9, 2015 at 10:56 AM, Kasun Gajasinghe kas...@wso2.com
 wrote:

 Hi Kasun

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-15 Thread Sandamal Weerasinghe
Hi Maheshika,

Can you please release this orbit bundle?

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Fri, May 15, 2015 at 2:24 PM, Jayanga Dissanayake jaya...@wso2.com
wrote:

 Hi Sandamal,

 PR [1] is merged.

 [1] https://github.com/wso2/orbit/pull/71

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Fri, May 15, 2015 at 10:33 AM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 HI Sadamal.

 I've checked according to the offline discussion we had. It's working
 without any issue.

 Thanks.

 On Fri, May 15, 2015 at 9:38 AM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi KasunG,

 As mentioned earlier, without adding the schemas the following error
 occurs,

 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
 Configuration problem: Unable to locate Spring NamespaceHandler for XML
 schema namespace [http://cxf.apache.org/core]
 Offending resource: URL
 [file:/home/sandamal/Programs/RM/wso2esb-4.9.0-M8-SNAPSHOT/repository/conf/cxf/server.xml]

 If we can't add the schemas to the Spring bundle then the other option
 left would be to embed the Spring jar inside cxf. I have updated the pull
 request after embedding that dependency.

 @Prabath - Please check if this works fine with the connector.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, May 14, 2015 at 3:17 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Sandamal,

 Please attend to the comments mentioned in the pr.

 Thanks.


 On Thu, May 14, 2015 at 2:48 PM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Any update on this?

 On Wed, May 13, 2015 at 2:41 PM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi Sameera/kernel team,

 Can you please have a look. This is urgent for us.

 On Wed, May 13, 2015 at 11:18 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Since CXF is already being used in WSO2 products there is no need
 for approval [1]. And even if we are embedding this dependency or making
 the entire CXF-RM inbound an installable feature, we will need this as 
 an
 Orbit bundle first.

 [1] [Thrid Party Library Approval] Apache CXF

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi KasunG,

 Can you please review and merge asap. ESB 4.9 alpha release is
 blocked due to this.

 On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 Updated the pull request after doing a version upgrade. The
 following dependencies had to be embedded; neethi, woodstox-core-asl 
 and
 xmlschema-core.
 I have removed the wss4j and slf4j bundles as they are not
 essential to the functionality of the cxf ws-rm inbound endpoint and
 connector. As for the changes in the spring.schemas and 
 spring.handlers,
 without those changes the following error gets thrown at when 
 starting an
 inbound endpoint.

 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
 Configuration problem: Unable to locate Spring NamespaceHandler for 
 XML
 schema namespace [http://cxf.apache.org/core]

 Please review and merge.

 [1] https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
 kas...@wso2.com wrote:

 Hi Sandamal,

 We have forked some of the bundles you have mentioned above such
 as the wss4j bundle. Are you doing a version upgrade here? How is 
 this
 going to affect the components that rely on wss4j 1.5.11?

 And, can you also verify whether all these libraries approved?

 Thanks.

 On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi Prabath,

 Please check if the RMConnector works with the following in
 place,

 cxf-bundle-3.0.2.wso2v1.jar
 jetty-bundle-8.1.15.v20140411.wso2v1.jar
 slf4j-bundle-1.7.7.wso2v1.jar
 wss4j-bundle-2.0.2.wso2v1.jar

 org.apache.aries.blueprint-1.1.0.jar
 org.apache.aries.proxy-1.0.1.jar
 org.apache.aries.util-1.1.0.jar
 stax2-api-3.1.4.jar

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna 
 prabat...@wso2.com wrote:

 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 I updated the pull requests according to your instructions

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-18 Thread Sandamal Weerasinghe
Hi Maheshika,

Please try now.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, May 18, 2015 at 1:33 PM, Manoj Kumara ma...@wso2.com wrote:

 Merged.


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Mon, May 18, 2015 at 12:51 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi Supun,

 Please merge the below pr https://github.com/wso2/orbit/pull/92

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, May 18, 2015 at 11:25 AM, Maheshika Goonetilleke 
 mahesh...@wso2.com wrote:

 Hi Sandamal

 The jetty/8.1.17.v20150415.wso2v1.jar deployed successfully.

 However, cxf/3.0.5 failed with the following;

 [INFO]
 

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 2:04.938s

 [INFO] Finished at: Mon May 18 05:49:02 UTC 2015

 [INFO] Final Memory: 20M/553M

 [INFO]
 

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
 on project cxf-bundle: Failed to deploy artifacts: Could not transfer
 artifact org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/):
 Failed to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized. - [Help 1]

 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
 execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
 (default-deploy) on project cxf-bundle: Failed to deploy artifacts: Could
 not transfer artifact
 org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/):
 Failed to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized.

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:606)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

 Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
 deploy artifacts: Could not transfer artifact
 org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/):
 Failed to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized.

 at
 org.apache.maven.plugin.deploy.DeployMojo.deployProject(DeployMojo.java:284)

 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:169)

 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

 ... 19 more

 Caused by:
 org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to
 deploy artifacts: Could not transfer

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-18 Thread Sandamal Weerasinghe
Thanks Maheshika.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, May 18, 2015 at 2:11 PM, Maheshika Goonetilleke mahesh...@wso2.com
wrote:

 Hi Sandamal

 Successfully deployed.

 On Mon, May 18, 2015 at 1:44 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi Maheshika,

 Please try now.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, May 18, 2015 at 1:33 PM, Manoj Kumara ma...@wso2.com wrote:

 Merged.


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Mon, May 18, 2015 at 12:51 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi Supun,

 Please merge the below pr https://github.com/wso2/orbit/pull/92

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, May 18, 2015 at 11:25 AM, Maheshika Goonetilleke 
 mahesh...@wso2.com wrote:

 Hi Sandamal

 The jetty/8.1.17.v20150415.wso2v1.jar deployed successfully.

 However, cxf/3.0.5 failed with the following;

 [INFO]
 

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 2:04.938s

 [INFO] Finished at: Mon May 18 05:49:02 UTC 2015

 [INFO] Final Memory: 20M/553M

 [INFO]
 

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
 on project cxf-bundle: Failed to deploy artifacts: Could not transfer
 artifact org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/):
 Failed to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized. - [Help 1]

 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
 execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
 (default-deploy) on project cxf-bundle: Failed to deploy artifacts: Could
 not transfer artifact
 org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/):
 Failed to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized.

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:606)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

 Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
 deploy artifacts: Could not transfer artifact
 org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/):
 Failed to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized.

 at
 org.apache.maven.plugin.deploy.DeployMojo.deployProject(DeployMojo.java:284)

 at
 org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:169

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-12 Thread Sandamal Weerasinghe
Since CXF is already being used in WSO2 products there is no need for
approval [1]. And even if we are embedding this dependency or making the
entire CXF-RM inbound an installable feature, we will need this as an Orbit
bundle first.

[1] [Thrid Party Library Approval] Apache CXF

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi KasunG,

 Can you please review and merge asap. ESB 4.9 alpha release is blocked due
 to this.

 On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi KasunG,

 Updated the pull request after doing a version upgrade. The following
 dependencies had to be embedded; neethi, woodstox-core-asl and
 xmlschema-core.
 I have removed the wss4j and slf4j bundles as they are not essential to
 the functionality of the cxf ws-rm inbound endpoint and connector. As for
 the changes in the spring.schemas and spring.handlers, without those
 changes the following error gets thrown at when starting an inbound
 endpoint.

 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
 Configuration problem: Unable to locate Spring NamespaceHandler for XML
 schema namespace [http://cxf.apache.org/core]

 Please review and merge.

 [1] https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Sandamal,

 We have forked some of the bundles you have mentioned above such as the
 wss4j bundle. Are you doing a version upgrade here? How is this going to
 affect the components that rely on wss4j 1.5.11?

 And, can you also verify whether all these libraries approved?

 Thanks.

 On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi Prabath,

 Please check if the RMConnector works with the following in place,

 cxf-bundle-3.0.2.wso2v1.jar
 jetty-bundle-8.1.15.v20140411.wso2v1.jar
 slf4j-bundle-1.7.7.wso2v1.jar
 wss4j-bundle-2.0.2.wso2v1.jar

 org.apache.aries.blueprint-1.1.0.jar
 org.apache.aries.proxy-1.0.1.jar
 org.apache.aries.util-1.1.0.jar
 stax2-api-3.1.4.jar

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna 
 prabat...@wso2.com wrote:

 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 I updated the pull requests according to your instructions, please
 have a look.

 PrabathA : Can you please check if the RM connector works with the
 new Bundles

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 I split the cxf bundle in to 2 bundles (cxf and jetty) and now I
 get the following error when starting up the ESB

 [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's
 publish address to be http://localhost:8081
 [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
 initialize ESB due to a fatal error
 java.lang.LinkageError: loader constraint violation: loader
 (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader)
 previously initiated loading for a different type with name
 javax/servlet/http/HttpServletResponse
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
 at
 org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
 at
 org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
 at
 org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
 at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
 at
 org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
 at
 org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
 at
 org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)

 The javax.servlet package is exported by Tomcat. Any ideas on how
 to resolve this?

 osgi b 530
 tomcat-servlet-api_7.0.52.wso2v1 [530]
   Id=530, Status=ACTIVE  Data
 Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
   No registered services.
   No services

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-17 Thread Sandamal Weerasinghe
Hi Maheshika,

Updated the Orbit bundle with the following pr
https://github.com/wso2/orbit/pull/91
Please go ahead with the release.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Fri, May 15, 2015 at 5:38 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi Maheshika,

 Can you please release this orbit bundle?

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Fri, May 15, 2015 at 2:24 PM, Jayanga Dissanayake jaya...@wso2.com
 wrote:

 Hi Sandamal,

 PR [1] is merged.

 [1] https://github.com/wso2/orbit/pull/71

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Fri, May 15, 2015 at 10:33 AM, Prabath Ariyarathna prabat...@wso2.com
  wrote:

 HI Sadamal.

 I've checked according to the offline discussion we had. It's working
 without any issue.

 Thanks.

 On Fri, May 15, 2015 at 9:38 AM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi KasunG,

 As mentioned earlier, without adding the schemas the following error
 occurs,

 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
 Configuration problem: Unable to locate Spring NamespaceHandler for XML
 schema namespace [http://cxf.apache.org/core]
 Offending resource: URL
 [file:/home/sandamal/Programs/RM/wso2esb-4.9.0-M8-SNAPSHOT/repository/conf/cxf/server.xml]

 If we can't add the schemas to the Spring bundle then the other option
 left would be to embed the Spring jar inside cxf. I have updated the pull
 request after embedding that dependency.

 @Prabath - Please check if this works fine with the connector.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, May 14, 2015 at 3:17 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Sandamal,

 Please attend to the comments mentioned in the pr.

 Thanks.


 On Thu, May 14, 2015 at 2:48 PM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Any update on this?

 On Wed, May 13, 2015 at 2:41 PM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi Sameera/kernel team,

 Can you please have a look. This is urgent for us.

 On Wed, May 13, 2015 at 11:18 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Since CXF is already being used in WSO2 products there is no need
 for approval [1]. And even if we are embedding this dependency or 
 making
 the entire CXF-RM inbound an installable feature, we will need this as 
 an
 Orbit bundle first.

 [1] [Thrid Party Library Approval] Apache CXF

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi KasunG,

 Can you please review and merge asap. ESB 4.9 alpha release is
 blocked due to this.

 On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 Updated the pull request after doing a version upgrade. The
 following dependencies had to be embedded; neethi, woodstox-core-asl 
 and
 xmlschema-core.
 I have removed the wss4j and slf4j bundles as they are not
 essential to the functionality of the cxf ws-rm inbound endpoint and
 connector. As for the changes in the spring.schemas and 
 spring.handlers,
 without those changes the following error gets thrown at when 
 starting an
 inbound endpoint.

 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
 Configuration problem: Unable to locate Spring NamespaceHandler for 
 XML
 schema namespace [http://cxf.apache.org/core]

 Please review and merge.

 [1] https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
 kas...@wso2.com wrote:

 Hi Sandamal,

 We have forked some of the bundles you have mentioned above such
 as the wss4j bundle. Are you doing a version upgrade here? How is 
 this
 going to affect the components that rely on wss4j 1.5.11?

 And, can you also verify whether all these libraries approved?

 Thanks.

 On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi Prabath,

 Please check if the RMConnector works with the following in
 place,

 cxf-bundle-3.0.2.wso2v1.jar
 jetty-bundle-8.1.15.v20140411.wso2v1.jar
 slf4j-bundle-1.7.7.wso2v1.jar
 wss4j-bundle-2.0.2.wso2v1.jar

 org.apache.aries.blueprint-1.1.0.jar
 org.apache.aries.proxy-1.0.1.jar
 org.apache.aries.util-1.1.0.jar
 stax2-api-3.1.4.jar

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt)
 Ltd

 Mobile - +94-77-144-9640

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-18 Thread Sandamal Weerasinghe
Hi Supun,

Please merge the below pr https://github.com/wso2/orbit/pull/92

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, May 18, 2015 at 11:25 AM, Maheshika Goonetilleke mahesh...@wso2.com
 wrote:

 Hi Sandamal

 The jetty/8.1.17.v20150415.wso2v1.jar deployed successfully.

 However, cxf/3.0.5 failed with the following;

 [INFO]
 

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 2:04.938s

 [INFO] Finished at: Mon May 18 05:49:02 UTC 2015

 [INFO] Final Memory: 20M/553M

 [INFO]
 

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
 on project cxf-bundle: Failed to deploy artifacts: Could not transfer
 artifact org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/): Failed
 to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized. - [Help 1]

 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
 (default-deploy) on project cxf-bundle: Failed to deploy artifacts: Could
 not transfer artifact
 org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/): Failed
 to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized.

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:606)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

 Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
 deploy artifacts: Could not transfer artifact
 org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/): Failed
 to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized.

 at
 org.apache.maven.plugin.deploy.DeployMojo.deployProject(DeployMojo.java:284)

 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:169)

 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

 ... 19 more

 Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
 Failed to deploy artifacts: Could not transfer artifact
 org.wso2.orbit.org.apache.cxf:cxf-bundle:jar:3.0.5.wso2v1 from/to
 nexus-releases (
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/): Failed
 to transfer file:
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/orbit/org/apache/cxf/cxf-bundle/3.0.5.wso2v1/cxf-bundle-3.0.5.wso2v1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-14 Thread Sandamal Weerasinghe
Hi KasunG,

As mentioned earlier, without adding the schemas the following error occurs,

org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML
schema namespace [http://cxf.apache.org/core]
Offending resource: URL
[file:/home/sandamal/Programs/RM/wso2esb-4.9.0-M8-SNAPSHOT/repository/conf/cxf/server.xml]

If we can't add the schemas to the Spring bundle then the other option left
would be to embed the Spring jar inside cxf. I have updated the pull
request after embedding that dependency.

@Prabath - Please check if this works fine with the connector.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, May 14, 2015 at 3:17 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Sandamal,

 Please attend to the comments mentioned in the pr.

 Thanks.


 On Thu, May 14, 2015 at 2:48 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Any update on this?

 On Wed, May 13, 2015 at 2:41 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Sameera/kernel team,

 Can you please have a look. This is urgent for us.

 On Wed, May 13, 2015 at 11:18 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Since CXF is already being used in WSO2 products there is no need for
 approval [1]. And even if we are embedding this dependency or making the
 entire CXF-RM inbound an installable feature, we will need this as an Orbit
 bundle first.

 [1] [Thrid Party Library Approval] Apache CXF

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi KasunG,

 Can you please review and merge asap. ESB 4.9 alpha release is blocked
 due to this.

 On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 Updated the pull request after doing a version upgrade. The following
 dependencies had to be embedded; neethi, woodstox-core-asl and
 xmlschema-core.
 I have removed the wss4j and slf4j bundles as they are not essential
 to the functionality of the cxf ws-rm inbound endpoint and connector. As
 for the changes in the spring.schemas and spring.handlers, without those
 changes the following error gets thrown at when starting an inbound
 endpoint.

 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
 Configuration problem: Unable to locate Spring NamespaceHandler for XML
 schema namespace [http://cxf.apache.org/core]

 Please review and merge.

 [1] https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Sandamal,

 We have forked some of the bundles you have mentioned above such as
 the wss4j bundle. Are you doing a version upgrade here? How is this 
 going
 to affect the components that rely on wss4j 1.5.11?

 And, can you also verify whether all these libraries approved?

 Thanks.

 On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi Prabath,

 Please check if the RMConnector works with the following in place,

 cxf-bundle-3.0.2.wso2v1.jar
 jetty-bundle-8.1.15.v20140411.wso2v1.jar
 slf4j-bundle-1.7.7.wso2v1.jar
 wss4j-bundle-2.0.2.wso2v1.jar

 org.apache.aries.blueprint-1.1.0.jar
 org.apache.aries.proxy-1.0.1.jar
 org.apache.aries.util-1.1.0.jar
 stax2-api-3.1.4.jar

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna 
 prabat...@wso2.com wrote:

 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 I updated the pull requests according to your instructions,
 please have a look.

 PrabathA : Can you please check if the RM connector works with
 the new Bundles

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi KasunG,

 I split the cxf bundle in to 2 bundles (cxf and jetty) and now
 I get the following error when starting up the ESB

 [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the
 server's publish address to be http://localhost:8081
 [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed
 to initialize ESB due to a fatal error
 java.lang.LinkageError: loader constraint violation: loader
 (instance of 
 org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader)
 previously initiated loading

Re: [Dev] WSO2 Committers += Dilan Ariyaratne

2015-04-16 Thread Sandamal Weerasinghe
Congratulations Dilan!

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Apr 16, 2015 at 2:05 PM, Shiva Balachandran sh...@wso2.com wrote:

 Congrats Dilan :)

 On Fri, Apr 10, 2015 at 3:44 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Everyone,

 It's my pleasure to welcome Dilan Ariyaratne as a WSO2 Committer. Dilan
 has been part of some key development efforts of MDM as well as EMM over
 the last couple of months. In recognition of all his contributions, he's
 been voted as a WSO2 comitter.

 Dilan, Welcome aboard and keep up the good work!


 Cheers,
 Prabath


 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471


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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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


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


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-04-16 Thread Sandamal Weerasinghe
Hi KasunG,

I split the cxf bundle in to 2 bundles (cxf and jetty) and now I get the
following error when starting up the ESB

[2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's publish
address to be http://localhost:8081
[2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
initialize ESB due to a fatal error
java.lang.LinkageError: loader constraint violation: loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
initiated loading for a different type with name
javax/servlet/http/HttpServletResponse
at
org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
at
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
at
org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
at
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
at
org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
at org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)

The javax.servlet package is exported by Tomcat. Any ideas on how to
resolve this?

osgi b 530
tomcat-servlet-api_7.0.52.wso2v1 [530]
  Id=530, Status=ACTIVE  Data
Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
  No registered services.
  No services in use.
  Exported packages
javax.servlet; version=2.6.0[exported]
javax.servlet.annotation; version=2.6.0[exported]
javax.servlet.descriptor; version=2.6.0[exported]
javax.servlet.http; version=2.6.0[exported]
javax.servlet.resources; version=2.6.0[exported]
*; version=0.0.0unwireddynamic
  No fragment bundles
  Named class space
tomcat-servlet-api; bundle-version=7.0.52.wso2v1[provided]
  No required bundles

Thanks.



Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Apr 9, 2015 at 10:56 AM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Kasun,

 We'll review this and apply. There are some changes required.

 On Apr 9, 2015, at 10:29 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Can we please add this. We are blocked on this for adding RM-Inbound
 endpoint to ESB M8 release

 On Tue, Apr 7, 2015 at 11:21 AM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi all,

 Please find the pull request for the orbit bundle required for the above
 feature. In the orbit bundle I embedded the dependencies because many of
 them don't have osgi bundles and this would ensure that the RM Inboundfeature
 would have all the dependencies it would need.

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/


?xml version=1.0?
!--
 ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ WSO2 Inc. licenses this file to you under the Apache License,
 ~ Version 2.0 (the License); you may not use this file except
 ~ in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing,
 ~ software distributed under the License is distributed on an
 ~ AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 ~ KIND, either express or implied.  See the License for the
 ~ specific language governing permissions and limitations
 ~ under the License.
 --
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdorg.wso2.orbit.org.apache.cxf/groupId
artifactIdcxf-bundle/artifactId
packagingbundle/packaging
nameApache CXF Bundle Jar/name
version3.0.2.wso2v1/version
description
This bundle will export packages from CXF
/description

parent
groupIdorg.apache.cxf/groupId
artifactIdcxf-bundle-parent/artifactId
version3.0.2/version
/parent

dependencies
dependency
groupIdorg.apache.cxf/groupId
artifactIdcxf-core/artifactId
version${version.cxf}/version
optionaltrue/optional
/dependency
dependency
groupIdorg.apache.cxf/groupId
artifactIdcxf-rt-bindings-soap/artifactId
version${version.cxf}/version

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-04-18 Thread Sandamal Weerasinghe
Hi KasunG,

I updated the pull requests according to your instructions, please have a
look.

PrabathA : Can you please check if the RM connector works with the new
Bundles

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi KasunG,

 I split the cxf bundle in to 2 bundles (cxf and jetty) and now I get the
 following error when starting up the ESB

 [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's publish
 address to be http://localhost:8081
 [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
 initialize ESB due to a fatal error
 java.lang.LinkageError: loader constraint violation: loader (instance of
 org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
 initiated loading for a different type with name
 javax/servlet/http/HttpServletResponse
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
 at
 org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
 at
 org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
 at
 org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
 at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
 at
 org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
 at
 org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
 at org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)

 The javax.servlet package is exported by Tomcat. Any ideas on how to
 resolve this?

 osgi b 530
 tomcat-servlet-api_7.0.52.wso2v1 [530]
   Id=530, Status=ACTIVE  Data
 Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
   No registered services.
   No services in use.
   Exported packages
 javax.servlet; version=2.6.0[exported]
 javax.servlet.annotation; version=2.6.0[exported]
 javax.servlet.descriptor; version=2.6.0[exported]
 javax.servlet.http; version=2.6.0[exported]
 javax.servlet.resources; version=2.6.0[exported]
 *; version=0.0.0unwireddynamic
   No fragment bundles
   Named class space
 tomcat-servlet-api; bundle-version=7.0.52.wso2v1[provided]
   No required bundles

 Thanks.



 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 9, 2015 at 10:56 AM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Kasun,

 We'll review this and apply. There are some changes required.

 On Apr 9, 2015, at 10:29 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Can we please add this. We are blocked on this for adding RM-Inbound
 endpoint to ESB M8 release

 On Tue, Apr 7, 2015 at 11:21 AM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi all,

 Please find the pull request for the orbit bundle required for the above
 feature. In the orbit bundle I embedded the dependencies because many of
 them don't have osgi bundles and this would ensure that the RM 
 Inboundfeature
 would have all the dependencies it would need.

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/



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


[Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-04-06 Thread Sandamal Weerasinghe
Hi all,

Please find the pull request for the orbit bundle required for the above
feature. In the orbit bundle I embedded the dependencies because many of
them don't have osgi bundles and this would ensure that the RM Inboundfeature
would have all the dependencies it would need.

https://github.com/wso2/orbit/pull/71

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

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