Re: [Dev] [Blocker] Massive Increase in Distribution Size after including CXF war files and AM Jaggery Apps

2013-07-30 Thread Kasun Gajasinghe
For CXF, the increase in war files happens mainly due to inclusions of
libraries in WEB-INF/lib. It seems that in greg, these wars pack most of
the cxf, and other related libraries that is already included in
lib/runtimes/cxf. You can simply remove these libraries from war. cxf-*
jars are bundled in to cxf-bundle jar.

As I saw, the juddiv3.war can be reduced in size from 15MB to 6MB etc.

Thanks,
KasunG


On Wed, Jul 31, 2013 at 11:26 AM, Senaka Fernando  wrote:

> Hi all,
>
> There is a massive increase in distribution size (~60MB) with the
> inclusion of some AM-related Jaggery Apps. Most of this is due to unwanted
> duplicates. For instance the ZIP file has 72 copies of gregorian.js.
>
> Thanks,
> Senaka.
>
> --
> * 
> *
> *
> *
> *Senaka Fernando*
> Senior Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* 


*
twitter: **http://twitter.com/kasunbg* 


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


Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-30 Thread Geeth Munasinghe
Cause of this problem is following code being executed in  class -
org.apache.synapse.transport.nhttp.util.RESTUtil, method
prepareMessageContext

RequestURIBasedDispatcher requestDispatcher = new
RequestURIBasedDispatcher();
AxisService axisService = requestDispatcher.findService(msgContext);

This code returns a null axisService if service is not available in LB, but
returns AxisService for all the services included in LB.

How to stop this and give a proper patch for the customer ?

Thanks

*G. K. S. Munasinghe
*
*Software Engineer,*
*WSO2, Inc. http://wso2.com *
*lean.enterprise.middleware.*
*
*
email: ge...@wso2.com
phone:(+94) 777911226


On Mon, Jul 29, 2013 at 10:04 PM, Nirmal Fernando  wrote:

> Hi Azeez,
>
> There are no dispatchers in axis2 xml of ELB:
>
> 
>
>
> On Mon, Jul 29, 2013 at 9:22 PM, Afkham Azeez  wrote:
>
>> This is why all dispatchers were removed from the ELB. Has somebody added
>> those back?
>>
>> --
>> Afkham Azeez
>> Sent from my phone
>> On Jul 29, 2013 7:40 PM, "Geeth Munasinghe"  wrote:
>>
>>> ELB packs org.wso2.carbon.core.services.jar, which has exposed
>>> org.wso2.carbon.core.services.authentication.AuthenticationAdmin as a web
>>> services. When IS is load balanced through ELB and a client tries to access
>>> the AuthenticationAdmin of IS, ELB invoke it's own AuthenticationAdmin web
>>> service instead of passing this to IS.
>>>
>>>
>>> What would would be the possible solutins to avoid this? .
>>>
>>>
>>> Thanks
>>>
>>> *G. K. S. Munasinghe
>>> *
>>> *Software Engineer,*
>>> *WSO2, Inc. http://wso2.com *
>>> *lean.enterprise.middleware.*
>>> *
>>> *
>>> email: ge...@wso2.com
>>> phone:(+94) 777911226
>>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Blocker] Massive Increase in Distribution Size after including CXF war files and AM Jaggery Apps

2013-07-30 Thread Sagara Gunathunga
On Wed, Jul 31, 2013 at 11:26 AM, Senaka Fernando  wrote:

> Hi all,
>
> There is a massive increase in distribution size (~60MB) with the
> inclusion of some AM-related Jaggery Apps. Most of this is due to unwanted
> duplicates. For instance the ZIP file has 72 copies of gregorian.js.
>

If the CXF app development is done correctly then you should not have any
Jar files within any  .WAR file in very special cases you may have one or
two Jar files within the .WAR file.  In the last time when I reviewed some
of the CXF app written by GReg team those contained large amount of Jar
files within WEB-INF directory,  if same apps still there I'm not wonder
about size of your packs.

Thanks !

>
> Thanks,
> Senaka.
>
> --
> * 
> *
> *
> *
> *Senaka Fernando*
> Senior Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

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


Re: [Dev] APIM integration with GReg

2013-07-30 Thread Lakmali Baminiwatta
Hi Shelan,



On 31 July 2013 11:37, Shelan Perera  wrote:

> Hi Lakmali,
>
> Could you please update us with the current status.
>

The current status had been discussed in *[DEV]Publishing GREG Rest API*and
*[DEV] OSGI bundles startup order* . I am going forward with the approach
which is mentioned in the last reply of  *[DEV] OSGI bundles startup order.

*
Thanks,
Lakmali

>
> Thanks
>
> --
> *Shelan Perera*
>
> Senior Software Engineer
> **
> Integration Technology Group
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Blog* :   blog.shelan.org
> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>


-- 
Lakmali Baminiwatta*
*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
*
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] java.nio.channels.ClosedChannelException thrown time to time on ELB console

2013-07-30 Thread Evanthika Amarasiri
Hi,

We see a java.nio.channels.ClosedChannelException on the ELB node of a
worker manager separated setup time to time. [1]


TID: [0] [ELB] [2013-07-31 11:23:07,866]  WARN
{org.apache.synapse.transport.passthru.SourceHandler} -  Illegal incoming
connection state: REQUEST_DONE . Possibly two send backs are happening for
the same request {org.apache.synapse.transport.passthru.SourceHandler}
TID: [0] [ELB] [2013-07-31 11:23:07,866]  WARN
{org.apache.synapse.transport.passthru.SourceHandler} -  Trying to write
response body while the handler is in an inconsistent state REQUEST_DONE
{org.apache.synapse.transport.passthru.SourceHandler}
TID: [0] [ELB] [2013-07-31 11:23:07,867] ERROR
{org.apache.synapse.transport.passthru.SourceHandler} -  Unexpected I/O
error: java.nio.channels.ClosedChannelException
{org.apache.synapse.transport.passthru.SourceHandler}
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:249)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:440)
 at
org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:331)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:411)
 at
org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
 at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:346)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
 at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
 at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
at java.lang.Thread.run(Thread.java:722)

[1] - https://wso2.org/jira/browse/LB-74

Regards,
Evanthika Amarasiri
Technical Lead - Quality Assurance
Management Committee - QA Technologies
Mobile: +94773125935
*
*
wso2.com Lean Enterprise Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM integration with GReg

2013-07-30 Thread Shelan Perera
Hi Lakmali,

Could you please update us with the current status.

Thanks

-- 
*Shelan Perera*

Senior Software Engineer
**
Integration Technology Group
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Blog* :   blog.shelan.org
*Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Blocker] Massive Increase in Distribution Size after including CXF war files and AM Jaggery Apps

2013-07-30 Thread Senaka Fernando
Hi all,

There is a massive increase in distribution size (~60MB) with the inclusion
of some AM-related Jaggery Apps. Most of this is due to unwanted
duplicates. For instance the ZIP file has 72 copies of gregorian.js.

Thanks,
Senaka.

-- 
* 
*
*
*
*Senaka Fernando*
Senior Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

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


Re: [Dev] APM - fails to serve login request when running with Port Offset

2013-07-30 Thread Vijayaratha Vijayasingam
Hi kasun;
There are some APIs (synapse artifacts) deployed and their ports are
hardcoded..Whenever you try to invoke those APIs, check the ports..
Thanks..

On 30 July 2013 19:44, Supun Malinga  wrote:

> Hi,
>
> You need to change the port in login API xml..
>
> thanks,
>
>
> On Tue, Jul 30, 2013 at 7:28 PM, Kasun Gajasinghe  wrote:
>
>> Hi,
>>
>> I tried the APIM trunk pack, and tried to invoke the Login API [1]. APIM
>> is running with port offset 1. So, I sent a POST request there with the
>> grant_type, username, password, and scope set as headers. It failed with
>> following response. [2] Apparently it tries to access localhost:9443 which
>> fails since APIM is running with port offset set to 1. Following error can
>> be seen in back-end. [3]
>>
>> [1] https://localhost:8244/login
>> [2]
>>
>> http://wso2.org/apimanager";>
>>101503Status report
>>Runtime Error
>>Connection refused or failed for : *localhost/
>> 127.0.0.1:9443,* IO Exception occured : Connection refused
>> 
>> 
>>
>> [3]
>>
>> osgi> [2013-07-30 19:27:41,210]  WARN - LogMediator MESSAGE = **The
>> /login API has been deprecated. Please use the /token url for access token
>> generation.**
>> [2013-07-30 19:27:41,213]  WARN - EndpointContext Endpoint :
>> endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 will be marked
>> SUSPENDED as it failed
>> [2013-07-30 19:27:41,214]  WARN - EndpointContext Suspending endpoint :
>> endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 - last suspend
>> duration was : 3ms and current suspend duration is : 3ms - Next
>> retry after : Tue Jul 30 19:28:11 IST 2013
>> [2013-07-30 19:27:41,214]  INFO - LogMediator To: /login, MessageID:
>> urn:uuid:ccb01b9e-1e58-4908-916e-54389dc27d4d, Direction: request, STATUS =
>> Executing default 'fault' sequence, ERROR_CODE = 101503, ERROR_MESSAGE =
>> *Connection refused or failed for : localhost/127.0.0.1:9443*, IO
>> Exception occured : Connection refused, Envelope: > encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope";>> xmlns:ns="http://ws.apache.org/commons/ns/payload
>> ">
>>
>>
>> --
>> *Kasun Gajasinghe*
>> Software Engineer;
>> Development Technologies Team, WSO2 Inc.; http://wso2.com
>>
>>
>>  ,
>> *email: **kasung AT spamfree wso2.com
>>
>>
>> ** cell: **+94 (77) 678-0813*
>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>
>>
>> *
>> *
>> *blog: **http://kasunbg.org* 
>>
>>
>> *
>> twitter: **http://twitter.com/kasunbg* 
>>
>>
>> *
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - sup...@wso2.com 
> mobile - 071 56 91 321
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [Bamboo-Build] Carbon SNAPSHOT > 4.1.0 Products > #71 > Default Job has FAILED. Change made by 5 authors.

2013-07-30 Thread Krishantha Samaraweera
Hi Maheshika,

Checkout seems to be falling. Can you please check.

(java.lang.RuntimeException :
com.atlassian.bamboo.repository.RepositoryException:
Failed to checkout source code to revision '179391' for
https://svn.wso2.org/repos/wso2/carbon/platform/trunk)

Thanks,
Krishantha.

On Wed, Jul 31, 2013 at 3:27 AM, Bamboo  wrote:

>  [image: Failed]  Carbon 
> SNAPSHOT› 4.1.0
> Products  › 
> #71› Default
> Job  failed
>
> Code changes detected
>
> No failed tests found, a possible compilation error.
>   Code 
> Changes  
> View
> all 11 code 
> changes 
>  Kasun
> Gajasinghe 
> Fix for WSAS-1347. Thanks Piyum for the contribution  179391Ashansa
> Perera 
> adding tenant mgt module  179390Ashansa 
> Perera
> adding registry handler module  179389   8 more 
> changes… 
> Error
> Summary   View
> full build log  
>   Failed
> to prepare the build 'WSO2CARBON-CSPR001-JOB1-71'View 
> Online
> | Add 
> Comments
> | View 
> Artifacts
> | Download 
> Logs
>
> This message was sent by Atlassian Bamboo .
>
> If you wish to stop receiving these emails edit your user 
> profileor notify
> your administrator .
>
> ___
> 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] Please hold the commits for org.wso2.carbon.hostobjects.sso/1.0.2/ and product/appfactory in apaas scratch area

2013-07-30 Thread Ashansa Perera
$subject since we are moving the changes to trunk. The URLs given below

https://svn.wso2.org/repos/wso2/scratch/apaas/components/hostobjects/org.wso2.carbon.hostobjects.sso/1.0.2/

https://svn.wso2.org/repos/wso2/scratch/apaas/products/appfactory/

-- 
Thanks & Regards,

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


Re: [Dev] Cannot Login to the product build

2013-07-30 Thread Asela Pathberiya
This issue has been created with r179308 commit... However I have fixed it
now.

Thanks,
Asela.


On Wed, Jul 31, 2013 at 10:04 AM, Shelan Perera  wrote:

> Revision is 179362.
>
> Thanks
>
>
>
> On Wed, Jul 31, 2013 at 10:03 AM, Shelan Perera  wrote:
>
>> Kernel revision : 179359
>>
>>
>> sole URL  : https://10.100.1.82:9443/carbon/
>> [2013-07-31 09:59:49,970] ERROR
>> {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} -
>>  System error while Authenticating/Authorizing User : Authentication failed
>> - System error occurred. Tenant domain name is reserved.
>> org.wso2.carbon.core.services.authentication.AuthenticationFailureException:
>> Authentication failed - System error occurred. Tenant domain name is
>> reserved.
>> at
>> org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:80)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at
>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>> at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>>  at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>>  at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>> at
>> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>>  at
>> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>  at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.j
>>
>> --
>> *Shelan Perera*
>>
>> Senior Software Engineer
>> **
>> Integration Technology Group
>> *WSO2, Inc. : wso2.com*
>> lean.enterprise.middleware.
>>
>> *Blog* :   blog.shelan.org
>> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
>> *Twitter* :https://twitter.com/#!/shelan
>>
>> *Mobile*  : +94 772 604 402
>>
>>
>
>
> --
> *Shelan Perera*
>
> Senior Software Engineer
> **
> Integration Technology Group
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Blog* :   blog.shelan.org
> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>


-- 
Thanks & Regards,
Asela

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


Re: [Dev] Latest version of balana

2013-07-30 Thread Scott Came
Thanks for the quick reply.  I think this gives me what I need.

--Scott

From: Asela Pathberiya [mailto:as...@wso2.com]
Sent: Tuesday, July 30, 2013 7:07 PM
To: Scott Came
Cc: dev@wso2.org
Subject: Re: [Dev] Latest version of balana

Hi Scott,

Thanks for interesting in WSO2 Balana.  Correct link for Balana 
implementation is this [1].  This is maintained under WSO2 commons projects [2] 
which basically can be used as independent libraries.   Balana is used by WSO2 
Identity server. Therefore when we are releasing a product,  Balana is branched 
in to carbon svn.  But both in carbon trunk [3] and commons trunk [1] Balana 
sources are in sync (normally svn externals are used)

There is no some thing called  "asela" version... Actually it is some older 
Balana source that i have personally branched for some testing purpose under 
the svn of my name. Sorry for confusion,  i will remove it.  Still Balana is 
created as OSGI bundle. Actually, if you look through svn [1] more carefully, 
you can find that the actually pom files that are inside the sub directories of 
module directory.

[1] https://svn.wso2.org/repos/wso2/trunk/commons/balana/
[2] https://svn.wso2.org/repos/wso2/trunk/commons/
[3] 
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/commons/balana/1.0.0-wso2v6/

Thanks,
Asela.

On Wed, Jul 31, 2013 at 6:54 AM, Scott Came 
mailto:scott.c...@search.org>> wrote:
Hello...

Is the current source for balana maintained at 
http://svn.wso2.org/repos/wso2/people/asela/balana/ or 
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/commons/balana/1.0.0-wso2v6/
 ?  It appears that the source under the first link hasn't been updated in a 
year or so, while the second link (and the other wso2v's) has more recent 
updates.  But I wanted to ask to be sure.

Also, in the "asela" version (first link above), the pom supports building 
balana as a standalone OSGi bundle.  However, the pom under the platform trunk 
no longer supports that.  Is there any reason, though, why the 
balana/1.0.0-wso2v6 version wouldn't build as an OSGi bundle (assuming I made 
the appropriate changes to the pom)?

Thanks.
--Scott

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



--
Thanks & Regards,
Asela

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


Re: [Dev] Cannot Login to the product build

2013-07-30 Thread Shelan Perera
Revision is 179362.

Thanks



On Wed, Jul 31, 2013 at 10:03 AM, Shelan Perera  wrote:

> Kernel revision : 179359
>
>
> sole URL  : https://10.100.1.82:9443/carbon/
> [2013-07-31 09:59:49,970] ERROR
> {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} -
>  System error while Authenticating/Authorizing User : Authentication failed
> - System error occurred. Tenant domain name is reserved.
> org.wso2.carbon.core.services.authentication.AuthenticationFailureException:
> Authentication failed - System error occurred. Tenant domain name is
> reserved.
> at
> org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:80)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>  at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>  at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>  at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>  at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.j
>
> --
> *Shelan Perera*
>
> Senior Software Engineer
> **
> Integration Technology Group
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Blog* :   blog.shelan.org
> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>


-- 
*Shelan Perera*

Senior Software Engineer
**
Integration Technology Group
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Blog* :   blog.shelan.org
*Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Cannot Login to the product build

2013-07-30 Thread Shelan Perera
Kernel revision : 179359


sole URL  : https://10.100.1.82:9443/carbon/
[2013-07-31 09:59:49,970] ERROR
{org.wso2.carbon.core.services.authentication.AuthenticationAdmin} -
 System error while Authenticating/Authorizing User : Authentication failed
- System error occurred. Tenant domain name is reserved.
org.wso2.carbon.core.services.authentication.AuthenticationFailureException:
Authentication failed - System error occurred. Tenant domain name is
reserved.
at
org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:80)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
 at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
 at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
 at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.j

-- 
*Shelan Perera*

Senior Software Engineer
**
Integration Technology Group
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Blog* :   blog.shelan.org
*Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UM Issue] Unique index or primary key violation

2013-07-30 Thread Ajith Vitharana
Hi All,

There was a bug in updateUsersOfRole() in UserRealmProxy.java [1] and Asela
fixed that. While debugging this code I found that lot of improvements
should be done in this space. And also huge performance issues as well,

Eg: call getUserListOfRole (roleName); several times in same method.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java

Thanks.
Ajith.



On Mon, Jul 29, 2013 at 10:44 PM, Ajith Vitharana  wrote:

> I'm getting following error running registry tests with the latest build.
> Please fix this. We still can't build a stable pack to fix test failures.
> :(
>
> Thanks
> Ajith.
>
>
> TID: [0] [Greg] [2013-07-29 22:14:00,719] ERROR
> {org.wso2.carbon.user.core.util.DatabaseUtil} -  Using sql : INSERT INTO
> UM_USER_ROLE (UM_USER_ID, UM_ROLE_ID, UM_TENANT_ID) VALUES ((SELECT UM_ID
> FROM UM_USER WHERE UM_USER_NAME=? AND UM_TENANT_ID=?),(SELECT UM_ID FROM
> UM_ROLE WHERE UM_ROLE_NAME=? AND UM_TENANT_ID=?), ?)
> {org.wso2.carbon.user.core.util.DatabaseUtil}
> TID: [0] [Greg] [2013-07-29 22:14:00,723] ERROR
> {org.wso2.carbon.user.mgt.UserRealmProxy} -  Unique index or primary key
> violation: "CONSTRAINT_INDEX_BA ON PUBLIC.UM_USER_ROLE(UM_USER_ID,
> UM_ROLE_ID, UM_TENANT_ID)"; SQL statement:
> INSERT INTO UM_USER_ROLE (UM_USER_ID, UM_ROLE_ID, UM_TENANT_ID) VALUES
> ((SELECT UM_ID FROM UM_USER WHERE UM_USER_NAME=? AND UM_TENANT_ID=?),(SELECT
> UM_ID FROM UM_ROLE WHERE UM_ROLE_NAME=? AND UM_TENANT_ID=?), ?) [23001-140]
> {org.wso2.carbon.user.mgt.UserRealmProxy}
> org.wso2.carbon.user.core.UserStoreException: Unique index or primary key
> violation: "CONSTRAINT_INDEX_BA ON PUBLIC.UM_USER_ROLE(UM_USER_ID,
> UM_ROLE_ID, UM_TENANT_ID)"; SQL statement:
> INSERT INTO UM_USER_ROLE (UM_USER_ID, UM_ROLE_ID, UM_TENANT_ID) VALUES
> ((SELECT UM_ID FROM UM_USER WHERE UM_USER_NAME=? AND UM_TENANT_ID=?),(SELECT
> UM_ID FROM UM_ROLE WHERE UM_ROLE_NAME=? AND UM_TENANT_ID=?), ?) [23001-140]
>  
> atorg.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doUpdateUserListOfRole(JDBCUserStoreManager.java:1592)
> atorg.wso2.carbon.user.core.common.AbstractUserStoreManager.updateUserListOfRole(AbstractUserStoreManager.java:1085)
>  
> atorg.wso2.carbon.user.mgt.UserRealmProxy.updateUsersOfRole(UserRealmProxy.java:1466)
> atorg.wso2.carbon.user.mgt.UserAdmin.updateUsersOfRole(UserAdmin.java:419)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
>  at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java
> :212)
>  at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(
> RPCMessageReceiver.java:117)
>  at org.apache.axis2.receivers.AbstractInOutMessageReceiver.
> invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>  at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> AbstractMessageReceiver.java:110)
>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>  
> atorg.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:
> 146)
>  at org.wso2.carbon.core.transports.CarbonServlet.doPost(
> CarbonServlet.java:231)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>  at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(
> ServletRegistration.java:61)
>  
> atorg.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(
> ProxyServlet.java:68)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>  at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(
> DelegationServlet.java:68)
>  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:305)
>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:210)
>  at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:243)
>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:210)
>  at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:222)
>  at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:123)
>  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:472)
>  at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:171)
>  at org.apach

[Dev] [Bamboo-Build] Carbon SNAPSHOT > 4.1.0 Products > #72 > Default Job has FAILED. Change made by 5 authors.

2013-07-30 Thread Bamboo

Carbon SNAPSHOT > 4.1.0 Products > #72 > Default Job failed.

The build was triggered because the code has been changed.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-CSPR001-JOB1-72/


--
Code Changes
--
Lalaji Sureshika (179396):

>Fixed issue in PassthroughTestCase of duplicating the same code

Dharshana kasun Warusavitharana  (179399):

>Adding SCIM Test cases

Sameera Jayasoma (179395):

>Adding nested feature categories for AS



--
Error Summary
--
   Failed to prepare the build 'WSO2CARBON-CSPR001-JOB1-72'


--
This message is automatically generated by Atlassian Bamboo

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


Re: [Dev] Latest version of balana

2013-07-30 Thread Asela Pathberiya
Hi Scott,

Thanks for interesting in WSO2 Balana.  Correct link for Balana
implementation is this [1].  This is maintained under WSO2 commons projects
[2] which basically can be used as independent libraries.   Balana is used
by WSO2 Identity server. Therefore when we are releasing a product,  Balana
is branched in to carbon svn.  But both in carbon trunk [3] and commons
trunk [1] Balana sources are in sync (normally svn externals are used)

There is no some thing called  "asela" version... Actually it is some older
Balana source that i have personally branched for some testing purpose
under the svn of my name. Sorry for confusion,  i will remove it.  Still
Balana is created as OSGI bundle. Actually, if you look through svn [1]
more carefully, you can find that the actually pom files that are inside
the sub directories of module directory.

[1] https://svn.wso2.org/repos/wso2/trunk/commons/balana/
[2] https://svn.wso2.org/repos/wso2/trunk/commons/
[3]
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/commons/balana/1.0.0-wso2v6/

Thanks,
Asela.


On Wed, Jul 31, 2013 at 6:54 AM, Scott Came  wrote:

>  Hello…
>
> ** **
>
> Is the current source for balana maintained at
> http://svn.wso2.org/repos/wso2/people/asela/balana/ or
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/commons/balana/1.0.0-wso2v6/?
>   It appears that the source under the first link hasn’t been updated in a
> year or so, while the second link (and the other wso2v’s) has more recent
> updates.  But I wanted to ask to be sure.
>
> ** **
>
> Also, in the “asela” version (first link above), the pom supports building
> balana as a standalone OSGi bundle.  However, the pom under the platform
> trunk no longer supports that.  Is there any reason, though, why the
> balana/1.0.0-wso2v6 version wouldn’t build as an OSGi bundle (assuming I
> made the appropriate changes to the pom)?
>
> ** **
>
> Thanks.
>
> --Scott
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,
Asela

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


[Dev] Latest version of balana

2013-07-30 Thread Scott Came
Hello...

Is the current source for balana maintained at 
http://svn.wso2.org/repos/wso2/people/asela/balana/ or 
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/commons/balana/1.0.0-wso2v6/
 ?  It appears that the source under the first link hasn't been updated in a 
year or so, while the second link (and the other wso2v's) has more recent 
updates.  But I wanted to ask to be sure.

Also, in the "asela" version (first link above), the pom supports building 
balana as a standalone OSGi bundle.  However, the pom under the platform trunk 
no longer supports that.  Is there any reason, though, why the 
balana/1.0.0-wso2v6 version wouldn't build as an OSGi bundle (assuming I made 
the appropriate changes to the pom)?

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


[Dev] [Bamboo-Build] Carbon SNAPSHOT > 4.1.0 Products > #71 > Default Job has FAILED. Change made by 5 authors.

2013-07-30 Thread Bamboo

Carbon SNAPSHOT > 4.1.0 Products > #71 > Default Job failed.

The build was triggered because the code has been changed.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-CSPR001-JOB1-71/


--
Code Changes
--
Ashansa Perera (179387):

>adding bam module

Vijitha Kumara (179385):

>Cleanup the test

Ashansa Perera (179388):

>adding deployer module



--
Error Summary
--
   Failed to prepare the build 'WSO2CARBON-CSPR001-JOB1-71'


--
This message is automatically generated by Atlassian Bamboo

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


[Dev] Initiating Identity Server Test Automation

2013-07-30 Thread Dharshana Warusavitharana
Hi All,

We are planning to move with the document on [1] which contains high level
Identity server integration test scenarios.

The initial plan is to automate selected sample scenarios in each key area
as a guide. The document[1] provides initial integration cases.

For now we have completed adding automation tests covering SCIM scenarios
including
1. Adding, Deleting ,Updating , listing Users and Groups through SCIM.
2. Adding Deleting SCIM providers.
3. Perform user management operations by two IS instances as consumer and
Provider.

The tests can be found at trunk on [2].

Please feel free to add any scenarios which should be added other than
listed in the document.


[1].
https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0ArG7aijG9EvMdEMtMWprS2NxN2wzSjJKSUljUjF2aXc#gid=0
[2].
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/is/modules/integration/tests/src/test/java/org.wso2.carbon.identity.tests/scim

Thank You,
Dharshana



-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
cell : +94772202595
blog : http://dharshanaw.blogspot.com

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


Re: [Dev] Hold the commits for components/appfac

2013-07-30 Thread Ashansa Perera
Merging appfac components to [2] is done

[2] https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/appfac


On Tue, Jul 30, 2013 at 7:15 PM, Ashansa Perera  wrote:

> Hi all,
>
> Please do $Subject for [1] since we are going to merge the appfactory
> components with trunk
>
> [1] https://svn.wso2.org/repos/wso2/scratch/apaas/components/appfac/
>
> --
> Thanks & Regards,
>
> Ashansa Perera
> Software Engineer
> WSO2, Inc
>



-- 
Thanks & Regards,

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


[Dev] [Bamboo-Build] Carbon SNAPSHOT > 4.1.0 Products > #70 > Default Job has FAILED. Change made by 10 authors.

2013-07-30 Thread Bamboo

Carbon SNAPSHOT > 4.1.0 Products > #70 > Default Job failed.

The build was triggered because the code has been changed.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-CSPR001-JOB1-70/


--
Code Changes
--
Ajith Vitharana (179376):

>Fixed test failures

Miyuru  Wanninayaka (179355):

>commiting ESBJAVA-2195

Vijayaratha Vijayasingam (179356):

>fixed test



--
Error Summary
--
   Failed to prepare the build 'WSO2CARBON-CSPR001-JOB1-70'


--
This message is automatically generated by Atlassian Bamboo

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


Re: [Dev] ESB 4.8.0 pack - 29th July

2013-07-30 Thread Miyuru Wanninayaka
I have ran test separately and only few tests failed. Most are genuine
fails. I will start working on fixing those fails.

On Tue, Jul 30, 2013 at 10:45 AM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Tests get skipped when prerequirestics specified in @BeforeClass or
> @AfterClass methods not satisfied. As per the off line chat had with
> Jeewatha, the tests were skipped due to a connection refused error.  We
> need to investigate why the server went to inconsistent state at test run
> time.
>
> Thanks,
> Krishantha.
>
> On Tue, Jul 30, 2013 at 9:00 AM, Miyuru Wanninayaka wrote:
>
>> In most cases what happens is when a test fails, sometimes it fails to
>> properly cleanup and all following tests fails with address already in
>> use/read timeouts.
>>
>> I'm running tests group by group to pinpoint real failures.
>>
>> On Tue, Jul 30, 2013 at 12:26 AM, Kasun Indrasiri  wrote:
>>
>>>
>>>
>>>
>>> On Mon, Jul 29, 2013 at 5:23 PM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 Test results for this pack:

 passed: 233
 Failed: 48
 Skipped: 606

 So, this is still not usable and cannot be given for QA. Did we
>>> investigate on why 606 tests were skipped?
>>>
>>>
 Jeewantha.


 On Mon, Jul 29, 2013 at 4:18 PM, Jeewantha Dharmaparakrama <
 jeewan...@wso2.com> wrote:

> Hi,
> $subject.
>
> https://svn.wso2.org/repos/wso2/people/jeewantha/4.8.0-release/29072013wso2esb-4.8.0-SNAPSHOT_Pack2.zip
>
> Tenants login fails in this pack. Worked fine on the pack built on
> Friday.
>
> Jeewantha.
>
>
> [2013-07-29 16:12:56,485] ERROR - AuthenticationAdmin org.wso2.carbon.
> registry.core.exceptions.ResourceNotFoundException: Resource does not
> exist at path /_system/governance/permission/
> [2013-07-29 16:12:56,486] ERROR - RPCMessageReceiver Resource does not
> exist at path /_system/governance/permission/
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(
> RPCUtil.java:178)
> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.
> invokeBusinessLogic(RPCMessageReceiver.java:117)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.
> invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> 
> atorg.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
> 
> atorg.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at org.wso2.carbon.core.transports.local.
> CarbonLocalTransportSender.finalizeSendWithToAddress(
> CarbonLocalTransportSender.java:45)
> at org.apache.axis2.transport.local.LocalTransportSender.invoke(
> LocalTransportSender.java:77)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> 
> atorg.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
> 
> atorg.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
> at org.apache.axis2.client.OperationClient.execute(
> OperationClient.java:149)
> 
> atorg.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfoAdminStub.getUserInfo(LoggedUserInfoAdminStub.java:187)
> at org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.
> setUserAuthorizationInfo(AbstractCarbonUIAuthenticator.java:460)
> at org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity
> (AbstractCarbonUIAuthenticator.java:230)
> at org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticate(
> BasicAuthUIAuthenticator.java:77)
> at org.wso2.carbon.ui.CarbonUILoginUtil.handleLogin(
> CarbonUILoginUtil.java:342)
> at org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(
> CarbonSecuredHttpContext.java:246)
> at org.eclipse.equinox.http.servlet.internal.ServletRegistration.
> service(ServletRegistration.java:60)
> 
> atorg.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(
> ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(

Re: [Dev] Can we compile DevS with maven3?

2013-07-30 Thread Samisa Abeysinghe
Thanks, it is building now.


On Tue, Jul 30, 2013 at 11:54 AM, Melan Nimesh  wrote:

> Hi,
>
> On Tue, Jul 30, 2013 at 8:40 AM, Melan Nimesh  wrote:
>
>> Hi,
>>
>> We are currently using tycho-maven-plugin version 0.17.0 and seems it's
>> not compatible with maven 3.1.0, I have updated tycho-maven-plugin
>> to 0.18.1 locally and trigger a build, I will commit the fix, if it
>> is success.
>>
>
> Updated tycho-version to 0.18.1 with r179305. Now DevS build compatible
> with maven 3.1.0.
>
> Thanks,
> Melan
>
>
>>
>> Thanks,
>> Melan
>>
>> On Tue, Jul 30, 2013 at 6:05 AM, Samisa Abeysinghe wrote:
>>
>>> Yes, I am using mvn 3.1.0
>>>
>>>
>>> On Mon, Jul 29, 2013 at 9:39 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 Hi,

 There are some compatibility issues with the maven 3.1.0 which released
 on July... We have mentioned regarding this, in the following Dev mail
 thread
 "[Dev] Build Failure - kernal/trunk/core/org.wso2.carbon.registry.api"

 It is a known compatibility issue with the "Sonatype Aether"

 Regards,
 Mohan


 On Mon, Jul 29, 2013 at 7:09 PM, Samisa Abeysinghe wrote:

> I get the following error:
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;
>  at
> org.eclipse.tycho.core.maven.utils.PluginRealmHelper.execute(PluginRealmHelper.java:92)
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.getDependencyMetadata(P2TargetPlatformResolver.java:144)
>  at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.setupProjects(P2TargetPlatformResolver.java:126)
> at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:87)
>  at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>  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:414)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
>
>
>
> On Mon, Jul 29, 2013 at 5:46 PM, Viraj Rajaguru wrote:
>
>> Yes. We use maven 3 for building DevS.
>>
>>
>> Thanks,
>> Viraj.
>>
>>
>> On Mon, Jul 29, 2013 at 5:33 PM, Samisa Abeysinghe 
>> wrote:
>>
>>> $subject?
>>>
>>> --
>>>
>>> Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Viraj Rajaguru
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile: +94 77 3683068
>>
>>
>>
>>
>
>
> --
>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *V. Mohanadarshan*
 *Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com *
 *lean.enterprise.middleware.*
 *
 *
 email: mo...@wso2.com
 phone:(+94) 771117673

>>>
>>>
>>>
>>> --
>>>
>>> Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Melan Nimesh Jayasingha
>> Software Engineer;
>> WSO2 Inc.
>> m:  77 631 6759
>> PGP: 0x7B42450A
>>
>>
>
>
> --
> Melan Nimesh Jayasingha
> Software Engineer;
> WSO2 Inc.
> m:  77 631 6759
> PGP: 0x7B42450A
>
>


-- 

Thanks,
Samisa...

Re: [Dev] Compilation failure in User-mgt

2013-07-30 Thread Shelan Perera
Hi,

Please ignore. Something weird with svn checkout. Deleted the component and
got a fresh checkout to fix the error.

Thanks


On Tue, Jul 30, 2013 at 7:22 PM, Shelan Perera  wrote:

> Please have a look.
>
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 1:04.345s
> [INFO] Finished at: Tue Jul 30 19:18:23 IST 2013
> [INFO] Final Memory: 359M/1650M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile) on project org.wso2.carbon.user.mgt: Compilation failure:
> Compilation failure:
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[256,69]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[258,8]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[258,78]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[269,8]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[270,31]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[271,20]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[271,42]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[271,41]
> operator + cannot be applied to ,int
> [ERROR]
> /home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[273,20]
> cannot find symbol
> [ERROR] symbol  : variable domain
> [ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following
>
> --
> *Shelan Perera*
>
> Senior Software Engineer
> **
> Integration Technology Group
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Blog* :   blog.shelan.org
> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>


-- 
*Shelan Perera*

Senior Software Engineer
**
Integration Technology Group
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Blog* :   blog.shelan.org
*Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APM - fails to serve login request when running with Port Offset

2013-07-30 Thread Supun Malinga
Hi,

You need to change the port in login API xml..

thanks,


On Tue, Jul 30, 2013 at 7:28 PM, Kasun Gajasinghe  wrote:

> Hi,
>
> I tried the APIM trunk pack, and tried to invoke the Login API [1]. APIM
> is running with port offset 1. So, I sent a POST request there with the
> grant_type, username, password, and scope set as headers. It failed with
> following response. [2] Apparently it tries to access localhost:9443 which
> fails since APIM is running with port offset set to 1. Following error can
> be seen in back-end. [3]
>
> [1] https://localhost:8244/login
> [2]
>
> http://wso2.org/apimanager";>
>101503Status report
>Runtime Error
>Connection refused or failed for : *localhost/
> 127.0.0.1:9443,* IO Exception occured : Connection refused
> 
> 
>
> [3]
>
> osgi> [2013-07-30 19:27:41,210]  WARN - LogMediator MESSAGE = **The /login
> API has been deprecated. Please use the /token url for access token
> generation.**
> [2013-07-30 19:27:41,213]  WARN - EndpointContext Endpoint :
> endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 will be marked
> SUSPENDED as it failed
> [2013-07-30 19:27:41,214]  WARN - EndpointContext Suspending endpoint :
> endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 - last suspend
> duration was : 3ms and current suspend duration is : 3ms - Next
> retry after : Tue Jul 30 19:28:11 IST 2013
> [2013-07-30 19:27:41,214]  INFO - LogMediator To: /login, MessageID:
> urn:uuid:ccb01b9e-1e58-4908-916e-54389dc27d4d, Direction: request, STATUS =
> Executing default 'fault' sequence, ERROR_CODE = 101503, ERROR_MESSAGE = 
> *Connection
> refused or failed for : localhost/127.0.0.1:9443*, IO Exception occured :
> Connection refused, Envelope:  encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope";> xmlns:ns="http://ws.apache.org/commons/ns/payload
> ">
>
>
> --
> *Kasun Gajasinghe*
> Software Engineer;
> Development Technologies Team, WSO2 Inc.; http://wso2.com
>
>
>  ,
> *email: **kasung AT spamfree wso2.com
>
>
> ** cell: **+94 (77) 678-0813*
> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>
>
> *
> *
> *blog: **http://kasunbg.org* 
>
>
> *
> twitter: **http://twitter.com/kasunbg* 
>
>
> *
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

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


[Dev] APM - fails to serve login request when running with Port Offset

2013-07-30 Thread Kasun Gajasinghe
Hi,

I tried the APIM trunk pack, and tried to invoke the Login API [1]. APIM is
running with port offset 1. So, I sent a POST request there with the
grant_type, username, password, and scope set as headers. It failed with
following response. [2] Apparently it tries to access localhost:9443 which
fails since APIM is running with port offset set to 1. Following error can
be seen in back-end. [3]

[1] https://localhost:8244/login
[2]

http://wso2.org/apimanager";>
   101503Status report
   Runtime Error
   Connection refused or failed for : *localhost/
127.0.0.1:9443,* IO Exception occured : Connection refused



[3]

osgi> [2013-07-30 19:27:41,210]  WARN - LogMediator MESSAGE = **The /login
API has been deprecated. Please use the /token url for access token
generation.**
[2013-07-30 19:27:41,213]  WARN - EndpointContext Endpoint :
endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 will be marked
SUSPENDED as it failed
[2013-07-30 19:27:41,214]  WARN - EndpointContext Suspending endpoint :
endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 - last suspend
duration was : 3ms and current suspend duration is : 3ms - Next
retry after : Tue Jul 30 19:28:11 IST 2013
[2013-07-30 19:27:41,214]  INFO - LogMediator To: /login, MessageID:
urn:uuid:ccb01b9e-1e58-4908-916e-54389dc27d4d, Direction: request, STATUS =
Executing default 'fault' sequence, ERROR_CODE = 101503, ERROR_MESSAGE
= *Connection
refused or failed for : localhost/127.0.0.1:9443*, IO Exception occured :
Connection refused, Envelope: http://www.w3.org/2003/05/soap-envelope";>http://ws.apache.org/commons/ns/payload
">


-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* 


*
twitter: **http://twitter.com/kasunbg* 


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


[Dev] [Bamboo-Build] Carbon SNAPSHOT > 4.1.0 Products > #69 > Default Job has FAILED. Change made by 7 authors.

2013-07-30 Thread Bamboo

Carbon SNAPSHOT > 4.1.0 Products > #69 > Default Job failed.

The build was triggered because the code has been changed.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-CSPR001-JOB1-69/


--
Code Changes
--
Maninda Edirisooriya (179328):

>Fixed JIRA BAM-1264

Sivajothy Vanjikumaran (179332):

>New Feature. Delete Bulk sequences. ESBJAVA-2353

Maninda Edirisooriya (179319):

>Fixed JIRA BAM-1262



--
Error Summary
--
   Failed to prepare the build 'WSO2CARBON-CSPR001-JOB1-69'


--
This message is automatically generated by Atlassian Bamboo

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


[Dev] Compilation failure in User-mgt

2013-07-30 Thread Shelan Perera
Please have a look.

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1:04.345s
[INFO] Finished at: Tue Jul 30 19:18:23 IST 2013
[INFO] Final Memory: 359M/1650M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.user.mgt: Compilation failure:
Compilation failure:
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[256,69]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[258,8]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[258,78]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[269,8]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[270,31]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[271,20]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[271,42]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[271,41]
operator + cannot be applied to ,int
[ERROR]
/home/shelan/wso2/trunk/carbon/new-platform/trunk/components/user-manager/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java:[273,20]
cannot find symbol
[ERROR] symbol  : variable domain
[ERROR] location: class org.wso2.carbon.user.mgt.UserRealmProxy
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following

-- 
*Shelan Perera*

Senior Software Engineer
**
Integration Technology Group
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Blog* :   blog.shelan.org
*Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Hold the commits for components/appfac

2013-07-30 Thread Ashansa Perera
Hi all,

Please do $Subject for [1] since we are going to merge the appfactory
components with trunk

[1] https://svn.wso2.org/repos/wso2/scratch/apaas/components/appfac/

-- 
Thanks & Regards,

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


Re: [Dev] Use CXF runtime feature in products

2013-07-30 Thread Lalaji Sureshika
Hi Kasun,

As per offline chat had with your,we tried adding this new cxf runtime
feature to APIM and we are facing the below issue [1] when invoking the
OAuth2 web-app due to the *velocity-1.7.0.jar* contain in the cxf runtime
jar set.

Once we *remove* that velocity.jar from cxf runtime libraries,we can invoke
the OAuth webapp endpoint successfully.
Can we get rid of this velocity.jar from cxf runtime libraries..Else from
APIM build time,we had to remove that jar without adding it to product/lib
folder..

Thanks;


[1] [2013-07-30 05:11:59,332]  INFO - TimeoutHandler This engine will
expire all callbacks after : 86400 seconds, irrespective of the timeout
action, after the specified or optional timeout
 [trace] ***
 [debug] Starting Apache Velocity v1.5 (compiled: 2007-02-22 08:52:29)
 [trace] RuntimeInstance initializing.
 [debug] Default Properties File:
org/apache/velocity/runtime/defaults/velocity.properties
 [debug] Trying to use logger class
org.apache.velocity.runtime.log.NullLogChute
 [error] The specifid logger class
org.apache.velocity.runtime.log.NullLogChute isn't a valid LogChute
implementation.
 [debug] Using SystemLogChute.
 [error] The specified class for ResourceManager
(org.apache.velocity.runtime.resource.ResourceManagerImpl) does not
implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is
not initialized correctly.
[2013-07-30 05:11:59,763] ERROR - SAML2BearerGrantTypeHandler Unable to
initialize Velocity template engine
org.opensaml.xml.ConfigurationException: Unable to initialize Velocity
template engine
at
org.opensaml.DefaultBootstrap.initializeVelocity(DefaultBootstrap.java:168)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:85)
at
org.wso2.carbon.identity.oauth2.token.handlers.grant.saml.SAML2BearerGrantTypeHandler.(SAML2BearerGrantTypeHandler.java:82)
at
org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.(AccessTokenIssuer.java:99)
at
org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.getInstance(AccessTokenIssuer.java:80)
at
org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:173)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenClient.getAccessToken(OAuth2TokenClient.java:79)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: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.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(Carbo

Re: [Dev] [Carbon 4.2.0] - "org.apache.tomcat.jdbc.pool.PoolExhaustedException" thrown when login to admin console with some tenants

2013-07-30 Thread Asela Pathberiya
It seems to be that issue is generated when we have configure multiple user
stores for tenants.. We have identified the possible cause for issue...
 Darshana has provided a patch Please verify this in next build

Thanks,
Asela.


On Tue, Jul 30, 2013 at 4:15 PM, Shashika Ubhayaratne wrote:

> Hi,
>
> We observed below exception while accessing admin console with some
> tenants (randomly happens). Once that issue occurred, other tenants also
> can not login until restart.
>
> Such tenant not able to login to Admin Console even after restarts.
>
> Refer Issue [1] for more detils:
> [1]: https://wso2.org/jira/browse/CARBON-14253
>
>
> ***
> TID: [0] [AS] [2013-07-30 14:43:23,491] ERROR
> {org.wso2.carbon.user.core.tenant.TenantManager} -  Error in getting the
> tenant with tenant id: 2. {org.wso2.carbon.user.core.tenant.TenantManager}
> TID: [0] [AS] [2013-07-30 14:43:23,492] ERROR
> {org.wso2.carbon.user.core.common.DefaultRealmService} -
>  org.apache.tomcat.jdbc.pool.PoolExhaustedException:
> [http-nio-9443-exec-23] Timeout: Pool empty. Unable to fetch a connection
> in 60 seconds, none available[size:50; busy:50; idle:0; lastwait:6].
> {org.wso2.carbon.user.core.common.DefaultRealmService}
> org.wso2.carbon.user.core.UserStoreException:
> org.apache.tomcat.jdbc.pool.PoolExhaustedException: [http-nio-9443-exec-23]
> Timeout: Pool empty. Unable to fetch a connection in 60 seconds, none
> available[size:50; busy:50; idle:0; lastwait:6].
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:218)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
>  at
> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
> at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
>  at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
>  at
> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
> at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
>  at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
>  at
> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
> at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
>  at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
>  at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
> at
> org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
>  at
> org.wso2.carbon.user.core.tenant.JDBC

[Dev] [Carbon 4.2.0] - "org.apache.tomcat.jdbc.pool.PoolExhaustedException" thrown when login to admin console with some tenants

2013-07-30 Thread Shashika Ubhayaratne
Hi,

We observed below exception while accessing admin console with some tenants
(randomly happens). Once that issue occurred, other tenants also can not
login until restart.

Such tenant not able to login to Admin Console even after restarts.

Refer Issue [1] for more detils:
[1]: https://wso2.org/jira/browse/CARBON-14253

***
TID: [0] [AS] [2013-07-30 14:43:23,491] ERROR
{org.wso2.carbon.user.core.tenant.TenantManager} -  Error in getting the
tenant with tenant id: 2. {org.wso2.carbon.user.core.tenant.TenantManager}
TID: [0] [AS] [2013-07-30 14:43:23,492] ERROR
{org.wso2.carbon.user.core.common.DefaultRealmService} -
 org.apache.tomcat.jdbc.pool.PoolExhaustedException:
[http-nio-9443-exec-23] Timeout: Pool empty. Unable to fetch a connection
in 60 seconds, none available[size:50; busy:50; idle:0; lastwait:6].
{org.wso2.carbon.user.core.common.DefaultRealmService}
org.wso2.carbon.user.core.UserStoreException:
org.apache.tomcat.jdbc.pool.PoolExhaustedException: [http-nio-9443-exec-23]
Timeout: Pool empty. Unable to fetch a connection in 60 seconds, none
available[size:50; busy:50; idle:0; lastwait:6].
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:218)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:202)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:49)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:57)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.setAvailableSecondaryUserStores(JDBCTenantManager.java:556)
at
org.wso2.carbon.u

Re: [Dev] Jaggery: loading a file relative to CARBON_HOME

2013-07-30 Thread Nuwan Bandara
Hi Kambiz,

you can do that by

<%

var process = require("process");
var f = new
File('file:///'+process.getProperty('carbon.home')+'/repository/conf/test.json');
f.open('r');
 print(f.readAll());
 %>

Regards,
/Nuwan


On Tue, Jul 30, 2013 at 3:29 PM, Kambiz Darabi wrote:

> Hello,
>
> in a jaggery app, I would like to load a json file from
> $CARBON_HOME/repository/conf/.
>
> Looking into the code of the host objects, it looks like I either can
> load a file relative to the root of the jaggery app (i.e. relative to
> deployment/server/jaggeryapps//) or I need to specify a full
> path.
>
> Is there another possibility which I am overlooking?
>
> Thanks
>
>
> Kambiz Darabi
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
*Thanks & Regards,

Nuwan Bandara
Technical Lead; **WSO2 Inc. *
*lean . enterprise . middleware |  http://wso2.com *
*blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629
*

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


Re: [Dev] Jaxrs Webapps Totally Broken in latest AS

2013-07-30 Thread Kasun Gajasinghe
Hi Nirodha,

Both the URLs you have mentioned is correct. But the latter is
a guaranteed way of accessing the service list. The former fails to load if
the web service address in cxf-servlet is set to "/". See [4]

I have noticed [2], and [3] which is due to upgrading of javax.ws.rs-api
from 2.0-m10 to 2.0. CXF only supports 2.0-m10. I will fix this.

[4] https://wso2.org/jira/browse/WSAS-1253

Thanks,
KasunG


On Tue, Jul 30, 2013 at 10:53 AM, Nirodha Pramod  wrote:

>
> Hi,
>
> Jaxrs services are totally broken in latest AS pack. Earlier when you
> click on "Find Services" link it goes to eg:
> http://192.168.4.52:9913/jaxrs_basic/services/ but now the url goes as
> http://192.168.4.52:9913/jaxrs_basic/services/services . Due to this old
> jaxrs services cannot be invoked. See the below JIRAs.
>
> [1] https://wso2.org/jira/browse/WSAS-1336
> [2] https://wso2.org/jira/browse/WSAS-1337
> [3] https://wso2.org/jira/browse/WSAS-1338
>
> regards,
> Nirodha
>
> --
> *
> *
> *Nirodha Gallage*
> Senior Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* 


*
twitter: **http://twitter.com/kasunbg* 


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


[Dev] [Bamboo-Build] Carbon SNAPSHOT > 4.1.0 Products > #68 > Default Job has FAILED. Change made by 23 authors.

2013-07-30 Thread Bamboo

Carbon SNAPSHOT > 4.1.0 Products > #68 > Default Job failed.

The build was triggered because the code has been changed.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-CSPR001-JOB1-68/


--
Code Changes
--
Ajith Vitharana (179154):

>fixed build failure

Vijitha Kumara (179189):

>Fix the URL for schema

Asela Pathberiya (179263):

>adding fix for ui issues



--
Error Summary
--
   Failed to prepare the build 'WSO2CARBON-CSPR001-JOB1-68'


--
This message is automatically generated by Atlassian Bamboo

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


Re: [Dev] Use CXF runtime feature in products

2013-07-30 Thread Kasun Gajasinghe
Hi Asanka,

Following products use cxf runtime. All these products need to include this
feature.

AS
APIM
BAM
GReg
IS

Thanks,
KasunG


On Tue, Jul 30, 2013 at 3:02 PM, Asanka Vithanage  wrote:

> Hi Kasun,
> Can you please list down the our products which required to include CXF
> runtime feature? So i can add them to the AS 5.2.0 test plan.
>
>
> On Mon, Jul 29, 2013 at 6:26 PM, Kasun Gajasinghe  wrote:
>
>> CCing Asela
>>
>>
>> On Mon, Jul 29, 2013 at 5:06 PM, Pulasthi Supun wrote:
>>
>>> Hi Kasun
>>>
>>>
>>> On Sun, Jul 28, 2013 at 4:20 PM, Kasun Gajasinghe wrote:
>>>
 Hi,

 Please include the CXF runtime feature in all the products that need
 CXF runtime for their webapps. We have got rid of generating the CXF
 runtime functionality during distribution, and improved it to be installed
 as a feature [1]. This is very helpful when merging two products via
 feature installation. Say, when installing GReg and IS features in to
 Carbon, we need to automatically copy the CXF runtime functionality along
 with it. With this new feature it is made possible. It's committed to
  features/as-runtimes/org.wso2.carbon.as.runtimes.cxf.feature/.

 It is pretty easy to use this feature.

 1. Remove the cxf jars copying section from your assembly descriptor
 (bin.xml) in distribution/, and the relevant dependencies from
 distribution/pom.xml.
 2. Add the feature "*org.wso2.carbon.as.runtimes.cxf.feature*" to
 p2-profile-gen for both default and worker profile (given that you have a
 worker profile.)

 +1, The old method that used the assembly.xml was added to greg
>>> this approach will be much better.
>>>
>>> Regards,
>>> Pulasthi
>>>
 The changes are already done for AS which can be found in revisions
 179163 and 179164. Please update this thread once you have done this
 especially if you are releasing the product with Carbon 4.2.0.

 [1] https://wso2.org/jira/browse/WSAS-1330

 Thanks,
 KasunG



 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com



  ,
 *email: **kasung AT spamfree wso2.com



 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe



 *
 *
 *blog: **http://kasunbg.org* 



 *
 twitter: **http://twitter.com/kasunbg* 



 *
 *

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


>>>
>>>
>>> --
>>> --
>>> Pulasthi Supun
>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>> Email: pulas...@wso2.com
>>> Mobile: +94 (71) 9258281
>>> Blog : http://pulasthisupun.blogspot.com/
>>> Git hub profile: https://github.com/pulasthi
>>>
>>
>>
>>
>> --
>> *Kasun Gajasinghe*
>> Software Engineer;
>> Development Technologies Team, WSO2 Inc.; http://wso2.com
>>
>>
>>  ,
>> *email: **kasung AT spamfree wso2.com
>>
>>
>> ** cell: **+94 (77) 678-0813*
>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>
>>
>> *
>> *
>> *blog: **http://kasunbg.org* 
>>
>>
>> *
>> twitter: **http://twitter.com/kasunbg* 
>>
>>
>> *
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* 


*
twitter: **http://twitter.com/kasunbg* 


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


Re: [Dev] Use CXF runtime feature in products

2013-07-30 Thread Asanka Vithanage
Hi Kasun,
Can you please list down the our products which required to include CXF
runtime feature? So i can add them to the AS 5.2.0 test plan.


On Mon, Jul 29, 2013 at 6:26 PM, Kasun Gajasinghe  wrote:

> CCing Asela
>
>
> On Mon, Jul 29, 2013 at 5:06 PM, Pulasthi Supun  wrote:
>
>> Hi Kasun
>>
>>
>> On Sun, Jul 28, 2013 at 4:20 PM, Kasun Gajasinghe wrote:
>>
>>> Hi,
>>>
>>> Please include the CXF runtime feature in all the products that need CXF
>>> runtime for their webapps. We have got rid of generating the CXF runtime
>>> functionality during distribution, and improved it to be installed as a
>>> feature [1]. This is very helpful when merging two products via feature
>>> installation. Say, when installing GReg and IS features in to Carbon, we
>>> need to automatically copy the CXF runtime functionality along with it.
>>> With this new feature it is made possible. It's committed to
>>>  features/as-runtimes/org.wso2.carbon.as.runtimes.cxf.feature/.
>>>
>>> It is pretty easy to use this feature.
>>>
>>> 1. Remove the cxf jars copying section from your assembly descriptor
>>> (bin.xml) in distribution/, and the relevant dependencies from
>>> distribution/pom.xml.
>>> 2. Add the feature "*org.wso2.carbon.as.runtimes.cxf.feature*" to
>>> p2-profile-gen for both default and worker profile (given that you have a
>>> worker profile.)
>>>
>>> +1, The old method that used the assembly.xml was added to greg
>> this approach will be much better.
>>
>> Regards,
>> Pulasthi
>>
>>> The changes are already done for AS which can be found in revisions
>>> 179163 and 179164. Please update this thread once you have done this
>>> especially if you are releasing the product with Carbon 4.2.0.
>>>
>>> [1] https://wso2.org/jira/browse/WSAS-1330
>>>
>>> Thanks,
>>> KasunG
>>>
>>>
>>>
>>> --
>>> *Kasun Gajasinghe*
>>> Software Engineer;
>>> Development Technologies Team, WSO2 Inc.; http://wso2.com
>>>
>>>
>>>
>>>  ,
>>> *email: **kasung AT spamfree wso2.com
>>>
>>>
>>>
>>> ** cell: **+94 (77) 678-0813*
>>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>>
>>>
>>>
>>> *
>>> *
>>> *blog: **http://kasunbg.org* 
>>>
>>>
>>>
>>> *
>>> twitter: **http://twitter.com/kasunbg* 
>>>
>>>
>>>
>>> *
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>> Pulasthi Supun
>> Software Engineer; WSO2 Inc.; http://wso2.com,
>> Email: pulas...@wso2.com
>> Mobile: +94 (71) 9258281
>> Blog : http://pulasthisupun.blogspot.com/
>> Git hub profile: https://github.com/pulasthi
>>
>
>
>
> --
> *Kasun Gajasinghe*
> Software Engineer;
> Development Technologies Team, WSO2 Inc.; http://wso2.com
>
>
>  ,
> *email: **kasung AT spamfree wso2.com
>
>
> ** cell: **+94 (77) 678-0813*
> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>
>
> *
> *
> *blog: **http://kasunbg.org* 
>
>
> *
> twitter: **http://twitter.com/kasunbg* 
>
>
> *
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in Building Carbon-CXF in Platform

2013-07-30 Thread Anjana Fernando
Great, that fixed the problem.

Thanks,
Anjana.


On Tue, Jul 30, 2013 at 2:56 PM, Kasun Gajasinghe  wrote:

> Hi Anjana,
>
> Can you take an update in carbon-cxf, and try to build?
>
> Thanks,
> KasunG
>
>
> On Tue, Jul 30, 2013 at 1:18 PM, Anjana Fernando  wrote:
>
>>  Hi,
>>
>> When building platform/dependencies, I get the following error:-
>>
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
>> (default-compile) on project carbon-cxf: Compilation failure: Compilation
>> failure:
>> [ERROR]
>> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonConfiguration.java:[30,15]
>> generics are not supported in -source 1.3
>> [ERROR] (use -source 5 or higher to enable generics)
>> [ERROR] private Map parameters = new HashMap> Object>();
>> [ERROR]
>> [ERROR]
>> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonServerLifeCycleListener.java:[36,5]
>> annotations are not supported in -source 1.3
>> [ERROR] (use -source 5 or higher to enable annotations)
>> [ERROR] @Override
>> [ERROR]
>> [ERROR]
>> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/interceptor/HostNameSupportedWSDLGetInterceptor.java:[50,5]
>> annotations are not supported in -source 1.3
>> [ERROR] (use -source 5 or higher to enable annotations)
>> [ERROR] @Override
>> [ERROR]
>> [ERROR]
>> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/interceptor/HostNameSupportedWSDLGetInterceptor.java:[51,65]
>> generics are not supported in -source 1.3
>> [ERROR] (use -source 5 or higher to enable generics)
>> [ERROR] public Document getDocument(Message message, String base,
>> Map params, String ctxUri, EndpointInfo endpointInfo) {
>> [ERROR]
>> [ERROR]
>> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonServerLifeCycleUtil.java:[32,27]
>> for-each loops are not supported in -source 1.3
>> [ERROR] (use -source 5 or higher to enable for-each loops)
>> [ERROR] for (Interceptor i : server.getEndpoint().getInInterceptors()) {
>> [ERROR] -> [Help 1]
>> [ERROR]
>>
>> Seems its some POM configuration problem, where the compiler source
>> version is set to 1.3, but they expect Java 5 features.
>>
>> Cheers,
>> Anjana.
>> --
>> *Anjana Fernando*
>> Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kasun Gajasinghe*
> Software Engineer;
> Development Technologies Team, WSO2 Inc.; http://wso2.com
>
>
>  ,
> *email: **kasung AT spamfree wso2.com
>
>
> ** cell: **+94 (77) 678-0813*
> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>
>
> *
> *
> *blog: **http://kasunbg.org* 
>
>
> *
> twitter: **http://twitter.com/kasunbg* 
>
>
> *
> *
>



-- 
*Anjana Fernando*
Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in Building Carbon-CXF in Platform

2013-07-30 Thread Kasun Gajasinghe
Hi Anjana,

Can you take an update in carbon-cxf, and try to build?

Thanks,
KasunG


On Tue, Jul 30, 2013 at 1:18 PM, Anjana Fernando  wrote:

> Hi,
>
> When building platform/dependencies, I get the following error:-
>
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project carbon-cxf: Compilation failure: Compilation
> failure:
> [ERROR]
> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonConfiguration.java:[30,15]
> generics are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable generics)
> [ERROR] private Map parameters = new HashMap Object>();
> [ERROR]
> [ERROR]
> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonServerLifeCycleListener.java:[36,5]
> annotations are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable annotations)
> [ERROR] @Override
> [ERROR]
> [ERROR]
> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/interceptor/HostNameSupportedWSDLGetInterceptor.java:[50,5]
> annotations are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable annotations)
> [ERROR] @Override
> [ERROR]
> [ERROR]
> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/interceptor/HostNameSupportedWSDLGetInterceptor.java:[51,65]
> generics are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable generics)
> [ERROR] public Document getDocument(Message message, String base,
> Map params, String ctxUri, EndpointInfo endpointInfo) {
> [ERROR]
> [ERROR]
> /media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonServerLifeCycleUtil.java:[32,27]
> for-each loops are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable for-each loops)
> [ERROR] for (Interceptor i : server.getEndpoint().getInInterceptors()) {
> [ERROR] -> [Help 1]
> [ERROR]
>
> Seems its some POM configuration problem, where the compiler source
> version is set to 1.3, but they expect Java 5 features.
>
> Cheers,
> Anjana.
> --
> *Anjana Fernando*
> Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* 


*
twitter: **http://twitter.com/kasunbg* 


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


Re: [Dev] Unable to Build the trunk

2013-07-30 Thread Vanjikumaran Sivajothy
Hi Deep,
Thank you for quick response.

I took update and now its working :)

Best regards,
vanji


On Tue, Jul 30, 2013 at 2:44 PM, Deependra Ariyadewa  wrote:

> Hi Vanji,
>
> This issue is fixed. Please update the hadoop feature.
>
> Thanks,
>
> Deependra.
>
> On Tue, Jul 30, 2013 at 2:41 PM, Vanjikumaran Sivajothy 
> wrote:
> > [INFO] Building WSO2 Carbon - HDFS Name Node Feature 4.2.0-SNAPSHOT
> > [INFO]
> > 
> > [WARNING] The POM for
> > org.wso2.carbon:org.wso2.carbon.hdfs.datanode:jar:4.2.0-SNAPSHOT is
> missing,
> > no dependency information available
> > [INFO]
> > 
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] WSO2 Carbon - HDFS Name Node Feature .. FAILURE
> [0.118s]
> > [INFO] WSO2 Carbon - Hadoop MapReduce Feature Aggregator Module  SKIPPED
> > [INFO] WSO2 Carbon - Hadoop - Carbon Security  Feature ... SKIPPED
> > [INFO] WSO2 Carbon - Kerberos Authenticator Feature .. SKIPPED
> > [INFO] WSO2 Carbon - Kerberos Authenticator UI Feature ... SKIPPED
> > [INFO] WSO2 Carbon - Platform Aggregator Pom . SKIPPED
> > [INFO]
> > 
> > [INFO] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] Total time: 23.028s
> > [INFO] Finished at: Tue Jul 30 14:36:39 IST 2013
> > [INFO] Final Memory: 315M/836M
> > [INFO]
> > 
> > [ERROR] Failed to execute goal on project
> > org.wso2.carbon.hdfs.datanode.feature: Could not resolve dependencies for
> > project
> > org.wso2.carbon:org.wso2.carbon.hdfs.datanode.feature:pom:4.2.0-SNAPSHOT:
> > Failure to find
> > org.wso2.carbon:org.wso2.carbon.hdfs.datanode:jar:4.2.0-SNAPSHOT in
> > http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
> the
> > local repository, resolution will not be reattempted until the update
> > interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
> >
> > Thank you in advance ,
> >
> >
> > Best Regards,
> > Vanji
> >
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>
>
>
> --
> Deependra Ariyadewa
> WSO2, Inc. http://wso2.com/ http://wso2.org
>
> email d...@wso2.com; cell +94 71 403 5996 ;
> Blog http://risenfall.wordpress.com/
> PGP info: KeyID: 'DC627E6F'
>
> WSO2 - Lean . Enterprise . Middleware
>



-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com/*
*Mobile:(+94)777219209**
*[image: Facebook]  [image:
Twitter] [image:
LinkedIn] 
[image:
Blogger]  [image:
SlideShare]
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unable to Build the trunk

2013-07-30 Thread Vanjikumaran Sivajothy
[INFO] Building WSO2 Carbon - HDFS Name Node Feature 4.2.0-SNAPSHOT
[INFO]

[WARNING] The POM for
org.wso2.carbon:org.wso2.carbon.hdfs.datanode:jar:4.2.0-SNAPSHOT is
missing, no dependency information available
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Carbon - HDFS Name Node Feature .. FAILURE [0.118s]
[INFO] WSO2 Carbon - Hadoop MapReduce Feature Aggregator Module  SKIPPED
[INFO] WSO2 Carbon - Hadoop - Carbon Security  Feature ... SKIPPED
[INFO] WSO2 Carbon - Kerberos Authenticator Feature .. SKIPPED
[INFO] WSO2 Carbon - Kerberos Authenticator UI Feature ... SKIPPED
[INFO] WSO2 Carbon - Platform Aggregator Pom . SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 23.028s
[INFO] Finished at: Tue Jul 30 14:36:39 IST 2013
[INFO] Final Memory: 315M/836M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.carbon.hdfs.datanode.feature: Could not resolve dependencies for
project
org.wso2.carbon:org.wso2.carbon.hdfs.datanode.feature:pom:4.2.0-SNAPSHOT:
Failure to find
org.wso2.carbon:org.wso2.carbon.hdfs.datanode:jar:4.2.0-SNAPSHOT in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced -> [Help 1]

Thank you in advance ,


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


[Dev] Source Code Modified when building Clean Checkout

2013-07-30 Thread Senaka Fernando
FYI, noticed three separate source files getting changed while compiling
the data-bridge feature.

Thanks,
Senaka.

-- 
* 
*
*
*
*Senaka Fernando*
Senior Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

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


Re: [Dev] OSGI bundles startup order

2013-07-30 Thread Lakmali Baminiwatta
Hi Senaka,


On 30 July 2013 13:08, Senaka Fernando  wrote:

> Hi Lakmali,
>
> Isn't there an in-VM service which can be used to publish this in the
> embedded AM scenario? I realize that this is the correct approach if you
> need to connect to a remote server, but for in-VM use, I don't think this
> is proper.
>

Yes we have. We can use the APIProviderImpl@addAPI method to create the API
in the embedded AM scenario. For the remote gateway scenario we can invoke
the publisher API.

Thanks,
Lakmali

>
> Thanks,
> Senaka.
>
>
> On Tue, Jul 30, 2013 at 1:05 PM, Lakmali Baminiwatta wrote:
>
>> Hi Sameera,
>>
>>
>> On 30 July 2013 13:00, Sameera Jayasoma  wrote:
>>
>>> Hi Lakmali,
>>>
>>>
>>>
>>>  On Thu, Jul 25, 2013 at 12:19 PM, Lakmali Baminiwatta >> > wrote:
>>>
 Hi all,

 I have a requirement to publish some internal APIs at the server
 startup. We are planing to use the Publisher API for this. So in order to
 call Publisher API, the publisher web app should be available and in that
 case, the server should have been started.

 We thought of writing a new OSGI component, which will activate after
 the server has started. I noticed that there are some components already
 there which always get activated after the server is started.

 ex: In API Manager, ThriftAuthenticationServiceComponent[1] activate
 method get invoked after the server has started (ie : server is accessible
 at that point).

 I added all the @src references available in the
 ThriftAuthenticationServiceComponent to a new component which I wrote. But
 the new component starts before the server start completion. So I am unable
 to find the reason which makes the ThriftAuthenticationServiceComponent
 startup to happen last.

>>>
>>> Putting all the @src references of another component is a bad idea. We
>>> put @src references if you need those services for your component.
>>>

 Is there a way to make a component to start after the server startup is
 completed?

>>>
>>> Nope. We don't have a way to identify when the server completely starts.
>>> But we invoke the ServerStartupHandler.invoke() method when all the
>>> transports are initialized. i.e ports are up and the server is able to
>>> server requires. I guess you can leverage this requirement.
>>>
>>
>> But when the ServerStartupHandler.invoke() is invoked, I am unable to
>> access the management console/log in to the publisher web app. It is
>> throwing the below exception.
>>
>>
>>   [2013-07-25 15:15:43,209]  INFO
>> {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
>> url[https://10.200.0.202:9444/services/UserAdmin]
>> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
>> at
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>
>> Thanks,
>> Lakmali
>>
>>>

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.thrift.authentication/src/main/java/org/wso2/carbon/identity/thrift/authentication/internal/ThriftAuthenticationServiceComponent.java

 Thanks,
 Lakmali






 --
 Lakmali Baminiwatta*
 *
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com
 *
 *

>>>
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://sameera.adahas.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> Lakmali Baminiwatta*
>> *
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 71 2335936
>> blog : lakmali.com
>> *
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> * 
> *
> *
> *
> *Senaka Fernando*
> Senior Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *
> Lean . Enterprise . Middleware
>



-- 
Lakmali Baminiwatta*
*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
*
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in trunk at org.wso2.carbon.identity.provider.mgt.server.feature

2013-07-30 Thread Nuwan Wimalasekara
so org.wso2.carbon.identity.provider.mgt.server.feature should be removed
from features pom as well. Otherwise it always makes a build failure.


On Tue, Jul 30, 2013 at 1:14 PM, Darshana Gunawardana wrote:

> Hi Nuwan,
>
> This org.wso2.carbon.identity.provider.mgt.feature is no longer available
> under identity features hence removed from the identity pom.
>
> Thanks,
>
>
> On Tue, Jul 30, 2013 at 12:26 PM, Nuwan Wimalasekara wrote:
>
>> Hi IS Team,
>> I am getting below error when
>> building org.wso2.carbon.identity.provider.mgt.server.feature since
>> Dependent component not included in component and service stub pom files
>> to build. Please add if identity.provider.mgt.server.feature is used.
>>
>> 1) org.wso2.carbon:org.wso2.carbon.identity.provider.mgt
>> 2) org.wso2.carbon:org.wso2.carbon.identity.provider.mgt.ui
>> 3) org.wso2.carbon:org.wso2.carbon.identity.provider.mgt.stub
>>
>> [ERROR] Failed to execute goal on project
>> org.wso2.carbon.identity.provider.mgt.server.feature: Could not resolve
>> dependencies for project
>> org.wso2.carbon:org.wso2.carbon.identity.provider.mgt.server.feature:pom:4.2.0-SNAPSHOT:
>> Could not find artifact
>> org.wso2.carbon:org.wso2.carbon.identity.provider.mgt:jar:4.2.0-SNAPSHOT in
>> wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) ->
>> [Help 1]
>>
>>
>> Thanks,
>> Nuwanw
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
> *
> Darshana Gunawardana
> *Software Engineer
> WSO2 Inc.; http://wso2.com*
> E-mail: darsh...@wso2.com
> **Mobile: +94718566859
> *Lean . Enterprise . Middleware
>



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

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


[Dev] Error in Building Carbon-CXF in Platform

2013-07-30 Thread Anjana Fernando
Hi,

When building platform/dependencies, I get the following error:-

[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project carbon-cxf: Compilation failure: Compilation
failure:
[ERROR]
/media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonConfiguration.java:[30,15]
generics are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] private Map parameters = new HashMap();
[ERROR]
[ERROR]
/media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonServerLifeCycleListener.java:[36,5]
annotations are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable annotations)
[ERROR] @Override
[ERROR]
[ERROR]
/media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/interceptor/HostNameSupportedWSDLGetInterceptor.java:[50,5]
annotations are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable annotations)
[ERROR] @Override
[ERROR]
[ERROR]
/media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/interceptor/HostNameSupportedWSDLGetInterceptor.java:[51,65]
generics are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] public Document getDocument(Message message, String base,
Map params, String ctxUri, EndpointInfo endpointInfo) {
[ERROR]
[ERROR]
/media/laf/data/dev/wso2/trunk/platform/dependencies/commons/carbon-cxf/1.0.0/src/main/java/org/wso2/carbon/webapp/ext/cxf/lifecycle/CarbonServerLifeCycleUtil.java:[32,27]
for-each loops are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable for-each loops)
[ERROR] for (Interceptor i : server.getEndpoint().getInInterceptors()) {
[ERROR] -> [Help 1]
[ERROR]

Seems its some POM configuration problem, where the compiler source version
is set to 1.3, but they expect Java 5 features.

Cheers,
Anjana.
-- 
*Anjana Fernando*
Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in trunk at org.wso2.carbon.identity.provider.mgt.server.feature

2013-07-30 Thread Darshana Gunawardana
Hi Nuwan,

This org.wso2.carbon.identity.provider.mgt.feature is no longer available
under identity features hence removed from the identity pom.

Thanks,


On Tue, Jul 30, 2013 at 12:26 PM, Nuwan Wimalasekara wrote:

> Hi IS Team,
> I am getting below error when
> building org.wso2.carbon.identity.provider.mgt.server.feature since
> Dependent component not included in component and service stub pom files
> to build. Please add if identity.provider.mgt.server.feature is used.
>
> 1) org.wso2.carbon:org.wso2.carbon.identity.provider.mgt
> 2) org.wso2.carbon:org.wso2.carbon.identity.provider.mgt.ui
> 3) org.wso2.carbon:org.wso2.carbon.identity.provider.mgt.stub
>
> [ERROR] Failed to execute goal on project
> org.wso2.carbon.identity.provider.mgt.server.feature: Could not resolve
> dependencies for project
> org.wso2.carbon:org.wso2.carbon.identity.provider.mgt.server.feature:pom:4.2.0-SNAPSHOT:
> Could not find artifact
> org.wso2.carbon:org.wso2.carbon.identity.provider.mgt:jar:4.2.0-SNAPSHOT in
> wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) ->
> [Help 1]
>
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,

*
Darshana Gunawardana
*Software Engineer
WSO2 Inc.; http://wso2.com*
E-mail: darsh...@wso2.com
**Mobile: +94718566859
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OSGI bundles startup order

2013-07-30 Thread Senaka Fernando
Hi Lakmali,

Isn't there an in-VM service which can be used to publish this in the
embedded AM scenario? I realize that this is the correct approach if you
need to connect to a remote server, but for in-VM use, I don't think this
is proper.

Thanks,
Senaka.


On Tue, Jul 30, 2013 at 1:05 PM, Lakmali Baminiwatta wrote:

> Hi Sameera,
>
>
> On 30 July 2013 13:00, Sameera Jayasoma  wrote:
>
>> Hi Lakmali,
>>
>>
>>
>>  On Thu, Jul 25, 2013 at 12:19 PM, Lakmali Baminiwatta 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have a requirement to publish some internal APIs at the server
>>> startup. We are planing to use the Publisher API for this. So in order to
>>> call Publisher API, the publisher web app should be available and in that
>>> case, the server should have been started.
>>>
>>> We thought of writing a new OSGI component, which will activate after
>>> the server has started. I noticed that there are some components already
>>> there which always get activated after the server is started.
>>>
>>> ex: In API Manager, ThriftAuthenticationServiceComponent[1] activate
>>> method get invoked after the server has started (ie : server is accessible
>>> at that point).
>>>
>>> I added all the @src references available in the
>>> ThriftAuthenticationServiceComponent to a new component which I wrote. But
>>> the new component starts before the server start completion. So I am unable
>>> to find the reason which makes the ThriftAuthenticationServiceComponent
>>> startup to happen last.
>>>
>>
>> Putting all the @src references of another component is a bad idea. We
>> put @src references if you need those services for your component.
>>
>>>
>>> Is there a way to make a component to start after the server startup is
>>> completed?
>>>
>>
>> Nope. We don't have a way to identify when the server completely starts.
>> But we invoke the ServerStartupHandler.invoke() method when all the
>> transports are initialized. i.e ports are up and the server is able to
>> server requires. I guess you can leverage this requirement.
>>
>
> But when the ServerStartupHandler.invoke() is invoked, I am unable to
> access the management console/log in to the publisher web app. It is
> throwing the below exception.
>
>
>   [2013-07-25 15:15:43,209]  INFO
> {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
> url[https://10.200.0.202:9444/services/UserAdmin]
> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>
> Thanks,
> Lakmali
>
>>
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.thrift.authentication/src/main/java/org/wso2/carbon/identity/thrift/authentication/internal/ThriftAuthenticationServiceComponent.java
>>>
>>> Thanks,
>>> Lakmali
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Lakmali Baminiwatta*
>>> *
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>> mobile:  +94 71 2335936
>>> blog : lakmali.com
>>> *
>>> *
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://sameera.adahas.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> Lakmali Baminiwatta*
> *
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.com
> *
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
* 
*
*
*
*Senaka Fernando*
Senior Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

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


Re: [Dev] OSGI bundles startup order

2013-07-30 Thread Lakmali Baminiwatta
Hi Sameera,


On 30 July 2013 13:00, Sameera Jayasoma  wrote:

> Hi Lakmali,
>
>
>
> On Thu, Jul 25, 2013 at 12:19 PM, Lakmali Baminiwatta wrote:
>
>> Hi all,
>>
>> I have a requirement to publish some internal APIs at the server startup.
>> We are planing to use the Publisher API for this. So in order to call
>> Publisher API, the publisher web app should be available and in that case,
>> the server should have been started.
>>
>> We thought of writing a new OSGI component, which will activate after the
>> server has started. I noticed that there are some components already there
>> which always get activated after the server is started.
>>
>> ex: In API Manager, ThriftAuthenticationServiceComponent[1] activate
>> method get invoked after the server has started (ie : server is accessible
>> at that point).
>>
>> I added all the @src references available in the
>> ThriftAuthenticationServiceComponent to a new component which I wrote. But
>> the new component starts before the server start completion. So I am unable
>> to find the reason which makes the ThriftAuthenticationServiceComponent
>> startup to happen last.
>>
>
> Putting all the @src references of another component is a bad idea. We put
> @src references if you need those services for your component.
>
>>
>> Is there a way to make a component to start after the server startup is
>> completed?
>>
>
> Nope. We don't have a way to identify when the server completely starts.
> But we invoke the ServerStartupHandler.invoke() method when all the
> transports are initialized. i.e ports are up and the server is able to
> server requires. I guess you can leverage this requirement.
>

But when the ServerStartupHandler.invoke() is invoked, I am unable to
access the management console/log in to the publisher web app. It is
throwing the below exception.

  [2013-07-25 15:15:43,209]  INFO
{org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
url[https://10.200.0.202:9444/services/UserAdmin]
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

Thanks,
Lakmali

>
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.thrift.authentication/src/main/java/org/wso2/carbon/identity/thrift/authentication/internal/ThriftAuthenticationServiceComponent.java
>>
>> Thanks,
>> Lakmali
>>
>>
>>
>>
>>
>>
>> --
>> Lakmali Baminiwatta*
>> *
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 71 2335936
>> blog : lakmali.com
>> *
>> *
>>
>
>
>
> --
> Sameera Jayasoma,
> Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://sameera.adahas.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>
> Lean . Enterprise . Middleware
>



-- 
Lakmali Baminiwatta*
*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
*
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OSGI bundles startup order

2013-07-30 Thread Sameera Jayasoma
Hi Lakmali,



On Thu, Jul 25, 2013 at 12:19 PM, Lakmali Baminiwatta wrote:

> Hi all,
>
> I have a requirement to publish some internal APIs at the server startup.
> We are planing to use the Publisher API for this. So in order to call
> Publisher API, the publisher web app should be available and in that case,
> the server should have been started.
>
> We thought of writing a new OSGI component, which will activate after the
> server has started. I noticed that there are some components already there
> which always get activated after the server is started.
>
> ex: In API Manager, ThriftAuthenticationServiceComponent[1] activate
> method get invoked after the server has started (ie : server is accessible
> at that point).
>
> I added all the @src references available in the
> ThriftAuthenticationServiceComponent to a new component which I wrote. But
> the new component starts before the server start completion. So I am unable
> to find the reason which makes the ThriftAuthenticationServiceComponent
> startup to happen last.
>

Putting all the @src references of another component is a bad idea. We put
@src references if you need those services for your component.

>
> Is there a way to make a component to start after the server startup is
> completed?
>

Nope. We don't have a way to identify when the server completely starts.
But we invoke the ServerStartupHandler.invoke() method when all the
transports are initialized. i.e ports are up and the server is able to
server requires. I guess you can leverage this requirement.

>
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.thrift.authentication/src/main/java/org/wso2/carbon/identity/thrift/authentication/internal/ThriftAuthenticationServiceComponent.java
>
> Thanks,
> Lakmali
>
>
>
>
>
>
> --
> Lakmali Baminiwatta*
> *
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.com
> *
> *
>



-- 
Sameera Jayasoma,
Architect,

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

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