Re: [Dev] [UES] Embeding Gadgets into a web page

2014-04-30 Thread Ruchira Wageesha
Your url should be http://:9763/*gadgets*/ifr?url=http://<
privateIP>:9763/gadget-test/gadget.xml

/Ruchira




On Thu, May 1, 2014 at 6:08 AM, Shani Ranasinghe  wrote:

>
> Hi,
>
> I have a gadget in the UES server at the location
> http://localhost:9763/gadget-test/gadget.xml. When I use this in the
> browser I can see the Gadget XML.
>
> The portal is started at  UES Portal URL : http://localhost:9763/portal.
> And when I check the URL through the Management console of the UES the URL
> that it gives is http://:9763/gadget-test.
>
> I have added the following lines to my webapp page, which is a java
> application and a .jsp page.
>
>  src="http://:9763/gadget-test/ifr?url=http://
> :9763/gadget-test/gadget.xml">
> 
>
> I was not able to view the I frame in the page, and it prompted a 404
> resource
> (http://:9763/gadget-test/ifr) not found.
>
> Please note that the private IP's at instances are the same.
>
>
> --
> Thanks and Regards
> *, Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com *

*email: ruch...@wso2.com ,   blog:
ruchirawageesha.blogspot.com ,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Do we need the capability to publish same web application through the multiple applications in AppManager

2014-04-30 Thread Dinusha Senanayaka
Hi,

$subject is something practical (AFAIS).

Say we have a web-app "A". Then we have published two applications in AppM
by pointing to the web-app "A" as endpoint. If we need to collect stats, we
need to include the tracking code generated by AppM for that particular
web-app.

Can we include multiple tracking codes with the js script that we are using
? (If we include only single code,then the counters will not be correct)

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API Gateway alters POST request URLs in API-Manager 1.7.0

2014-04-30 Thread Asanthi Kulasinghe
Hi,

Context path of POST request URLs of APIs get dropped at the gateway when
invoked with the content-type 'text/xml'.
I have reported the issue under [1].
Please look into this.

[1] - https://wso2.org/jira/browse/APIMANAGER-2256


Regards
*Asanthi Kulasinghe*
WSO2 Inc; http://www.wso2.com/.
Mobile: +94777355522
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixing Shutdown Errors WSO2 MB.

2014-04-30 Thread Hasitha Hiranya
Hi,

Also in order to stop connection to Cassandra gracefully, we need to do
following.

cluster.getConnectionManager().shutdown();

Thanks


On Thu, May 1, 2014 at 10:52 AM, Hasitha Hiranya  wrote:

> Hi,
>
> I intend to cleanup graceful shutdown code of WSO2 Message Broker in
> following way. We have to do them as a part of fixing shutdown errors. We
> have managed to keep Cassandra until broker service shutdown properly in
> OSGI env, but we see problems due to lack of these.
>
> 1. When shutting down we have to flush
> all pubSubMessageContentRemoverTasks, meaning we have to delete all acked
> messages for topics, otherwise they will never be removed again (After
> shutting down memory is gone). Concern is we have to wait for timeout for
> those messages to happen, which will cause shutting down of MB on hold
> untill all messages are timed out. For now MB will shut down hoping some
> other node will clear them up.
>
> 2. Above argument goes with content removal tasks as well. Merely stopping
> deletion thread will not help.
>
> 3. above two tasks should be done AFTER stopping queue/topic flusher
> threads.
>
> 4. When shutting down we have to clear in-memory message status (for
> message count to be correct).
>
> 5. We have to copy back NQ messages back to GQ.
>
> 6. Flush message counts.
>
> @pamod,
>
> You have a fix to flush the message count before shutdown (As we update it
> per message chunks). Is it committed? If so, where is the code? It should
> come as point 6.
>
> Apart from point 6 have have done other. Testing now.
>
> Thanks
>
> --
> *Hasitha Abeykoon*
> Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
*Hasitha Abeykoon*
Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fixing Shutdown Errors WSO2 MB.

2014-04-30 Thread Hasitha Hiranya
Hi,

I intend to cleanup graceful shutdown code of WSO2 Message Broker in
following way. We have to do them as a part of fixing shutdown errors. We
have managed to keep Cassandra until broker service shutdown properly in
OSGI env, but we see problems due to lack of these.

1. When shutting down we have to flush
all pubSubMessageContentRemoverTasks, meaning we have to delete all acked
messages for topics, otherwise they will never be removed again (After
shutting down memory is gone). Concern is we have to wait for timeout for
those messages to happen, which will cause shutting down of MB on hold
untill all messages are timed out. For now MB will shut down hoping some
other node will clear them up.

2. Above argument goes with content removal tasks as well. Merely stopping
deletion thread will not help.

3. above two tasks should be done AFTER stopping queue/topic flusher
threads.

4. When shutting down we have to clear in-memory message status (for
message count to be correct).

5. We have to copy back NQ messages back to GQ.

6. Flush message counts.

@pamod,

You have a fix to flush the message count before shutdown (As we update it
per message chunks). Is it committed? If so, where is the code? It should
come as point 6.

Apart from point 6 have have done other. Testing now.

Thanks

-- 
*Hasitha Abeykoon*
Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DSS Distributed sample is not working properly

2014-04-30 Thread Chanaka Fernando
Hi,

I have tried the distributed transactions sample [1] in DSS 3.2.0 and found
that the transaction rollback is not happening correctly intermittently. I
have followed the same instructions and when the second operations fails,
first operation has not been rollbacked. Please have a look in to this.

[1] https://docs.wso2.org/display/DSS320/Distributed+Transactions+Sample


Thanks,
Chanaka
-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] developer-studi-3.7.0 branch created

2014-04-30 Thread Susinda Perera
$subject for the 3.7.0 release, Therefore all your pull-requests/commits
related to following areas please use the 3.7.0 branch,
 BPEL editor fixes
 AppFactory fixes
 ESB Graphical editor iuuses fixes


Thanks

Susinda

-- 
*Susinda Perera*
Software Engineer
Mobile:(+94)716049075

WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UES] Embeding Gadgets into a web page

2014-04-30 Thread Shani Ranasinghe
Hi,

I have a gadget in the UES server at the location
http://localhost:9763/gadget-test/gadget.xml. When I use this in the
browser I can see the Gadget XML.

The portal is started at  UES Portal URL : http://localhost:9763/portal.
And when I check the URL through the Management console of the UES the URL
that it gives is http://:9763/gadget-test.

I have added the following lines to my webapp page, which is a java
application and a .jsp page.




I was not able to view the I frame in the page, and it prompted a 404
resource
(http://:9763/gadget-test/ifr) not found.

Please note that the private IP's at instances are the same.


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

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Coordination] Embedded zookeeper in coordination component doesn't start ZooKeeperSaslServer

2014-04-30 Thread Tania Mahanama
Noted.

Thanks,
Tania


On Wed, Apr 30, 2014 at 5:53 PM, Ishara Premadasa  wrote:

> Hi Indika,
>
> When further debugged i could find that in the coordination component,
> jaas.conf  and java.env files are not read when SASL is enabled, therefore
> Zookeeper ServerCnxnFactory skips the creation of ZooKeeperSaslServer
> instance as jaas.conf entries not found. This is currently fixed in
> r201478.
>
> We need to add this into 2.2.0 documentation as well. I have created [1]
> for that.
> @Tania,
> Please note.
>
> Thanks!
> Ishara
>
> [1] https://wso2.org/jira/browse/DOCUMENTATION-777
>
>
> On Wed, Apr 30, 2014 at 11:59 AM, Indika Sampath  wrote:
>
>> Hi Ishara,
>>
>> Herewith I have attached jaas.conf and java.env files. You need to add
>> these two files to /repository/conf/etc/ where MB instance start
>> as zookeeper profile. After that change the path of jaas.conf  in the
>> java.env. Also check the /repository/conf/security/jaas.conf file
>> exist. If it is not exist copy the jaas.conf. The issue seems to be MB
>> server start as zookeeper won't get the SASL configuration properly. Anyway
>> you can further debug and see with these configuration settings.
>>
>> Cheers!
>>
>>
>>
>>
>> On Tue, Apr 29, 2014 at 11:46 PM, Ishara Premadasa wrote:
>>
>>> Hi,
>>>
>>> From WSO2 MB 2.2.0 onwards we will be supporting zookeeper profiles with
>>> MB where a message broker instance can be started as a zookeeper server as
>>> well by using carbon profiles. For this we use embedded zookeeper server
>>> that getting shipped with Coordination component. However as stated in [1]
>>> when enabled SASL security for zookeeper server, the coordination server (
>>> which is zk server here) doesn't seem to initiate a ZooKeeperSaslServer
>>> object, but still it starts a non-SASL Zookeeper server only.
>>>
>>> I enabled the debug logs for zookeeper server and once the client tries
>>> to connect to server with providing client login data the following error
>>> logs can be seen at zk server side and client side.
>>>
>>> *server side ( MB with zookeeper profile enabled)*
>>> [2014-04-29 22:06:31,316] DEBUG
>>> {org.apache.zookeeper.server.ZooKeeperServer} -  Responding to client SASL
>>> token.
>>> [2014-04-29 22:06:31,316] DEBUG
>>> {org.apache.zookeeper.server.ZooKeeperServer} -  Size of client SASL token:
>>> 0
>>> [2014-04-29 22:06:31,317] ERROR
>>> {org.apache.zookeeper.server.ZooKeeperServer} -  cnxn.saslServer is null:
>>> cnxn object did not initialize its saslServer properly.
>>>
>>> *client side ( MB server which connects to zookeeper)*
>>> [2014-04-29 22:06:31,313] DEBUG
>>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>>> ClientCnxn:sendSaslPacket:length=0
>>> [2014-04-29 22:06:31,319] ERROR
>>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -  SASL authentication
>>> failed using login context 'Client'.
>>>
>>> To get this verified, i tested the same scenario by pointing to an
>>> external Apache zookeeper server where client was able to successfully
>>> authenticate through same credentials as below logs.
>>>
>>> [2014-04-29 22:12:10,873] DEBUG
>>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>>> ClientCnxn:sendSaslPacket:length=0
>>> [2014-04-29 22:12:10,873] DEBUG
>>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>>> saslClient.evaluateChallenge(len=101)
>>> [2014-04-29 22:12:10,874] DEBUG
>>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>>> ClientCnxn:sendSaslPacket:length=276
>>> [2014-04-29 22:12:10,876] DEBUG
>>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>>> saslClient.evaluateChallenge(len=40)
>>> [2014-04-29 22:12:10,877] DEBUG {org.apache.zookeeper.ClientCnxn} -
>>> Reading reply sessionid:0x145ae5b1d2e0002, packet:: clientPath:null
>>> serverPath:null finished:false header:: 3,3  replyHeader:: 3,5,-101
>>> request:: '/queue_workers_parent,F  response::
>>>
>>> Therefore it seems coordination server doesn't start zookeeper instance
>>> by verifying whether security enabled or not. We need to get this fixed for
>>> MB 2.2.0 and i am currently working on it. If there is any configuration
>>> available for coordination server to handle this without changing the
>>> source please mention it here.
>>>
>>> Thanks!
>>> Ishara
>>>
>>> [1] https://wso2.org/jira/browse/MB-601
>>>
>>> --
>>> Ishara Premasada
>>> Software Engineer,
>>> WSO2 Inc. http://wso2.com/
>>>
>>>
>>> *Blog   :  http://isharapremadasa.blogspot.com/
>>>  Twitter   :
>>> https://twitter.com/ishadil Mobile   : +94
>>> 714445832 <%2B94%20714445832>*
>>>
>>>
>>>
>>
>>
>> --
>> Indika Sampath
>> Software Engineer
>> WSO2 Inc.
>> http://wso2.com
>>
>> Phone: +94 716 424 744
>> Blog: http://indikasampath.blogspot.com/
>>
>>
>
>
> --
> Ishara Premasada
> Software Engineer,
> WSO2 Inc. http://wso2.com/
>
>
> *Blog   :  http://isharapremadasa.blogspot.com/
> Twitter   :
> https://twitter.com/ishadil <

Re: [Dev] [C5] Expose a RESTful service in Carbon Kernel 5

2014-04-30 Thread Aruna Karunarathna
Thanks Kishanthan.


On Wed, Apr 30, 2014 at 5:40 PM, Kishanthan Thangarajah  wrote:

> Not with the latest milestone. The plan is to include this for the next
> milestone (a light weight RESTful admin services framework).
>
>
> On Wed, Apr 30, 2014 at 12:46 PM, Aruna Karunarathna wrote:
>
>> Hi all,
>>
>> Can we do the $subject with the current latest milestone release?
>>
>> Regards,
>> --
>>
>> * Aruna Sujith Karunarathna* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the git location for mediation security

2014-04-30 Thread Dushan Abeyruwan
https://github.com/wso2-dev/carbon-mediation/tree/master/components/mediation-admin/org.wso2.carbon.mediation.security/


On Wed, Apr 30, 2014 at 7:03 PM, Udara Liyanage  wrote:

> Hi,
>
> $subject. I looked at [1], but could not find it.
>
>
> [1] https://github.com/wso2/carbon-mediation/tree/master/components
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Exception in oauth authorize request]

2014-04-30 Thread Gayan Gunawardana
Thanks Dulanja,

It works fine after doing above change.


On Wed, Apr 30, 2014 at 7:53 PM, Dulanja Liyanage  wrote:

> Hi Gayan,
>
> Can you please check whether crossContext="true" is set inside
> repository/conf/tomcat/context.xml
>
> 
> ...
> 
>
> Thanks
> Dulanja
>
>
> On Wed, Apr 30, 2014 at 5:30 PM, Gayan Gunawardana  wrote:
>
>> Hi,
>>
>> After installing oauth feature into EMM I got following exception while
>> sending authorize request in authorization code grant type
>>
>> java.lang.NullPointerException
>>  
>> org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.sendResponseToCaller(CommonApplicationAuthenticationServlet.java:242)
>>  
>> org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.sendResponseToCaller(CommonApplicationAuthenticationServlet.java:223)
>>  
>> org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.doPost(CommonApplicationAuthenticationServlet.java:186)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>  
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>>  
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>  
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>  
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>  
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>  
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>
>>
>> --
>> Gayan Gunawardana
>>  Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>
>
>
> --
> Dulanja Liyanage
> WSO2 Inc.
> M: +94776764717
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
Blog: http://gayanj2ee.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Exception in oauth authorize request]

2014-04-30 Thread Dulanja Liyanage
Hi Gayan,

Can you please check whether crossContext="true" is set inside
repository/conf/tomcat/context.xml


...


Thanks
Dulanja


On Wed, Apr 30, 2014 at 5:30 PM, Gayan Gunawardana  wrote:

> Hi,
>
> After installing oauth feature into EMM I got following exception while
> sending authorize request in authorization code grant type
>
> java.lang.NullPointerException
>   
> org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.sendResponseToCaller(CommonApplicationAuthenticationServlet.java:242)
>   
> org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.sendResponseToCaller(CommonApplicationAuthenticationServlet.java:223)
>   
> org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.doPost(CommonApplicationAuthenticationServlet.java:186)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>   
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>   
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>   
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>   
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>   
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>   
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>
>
> --
> Gayan Gunawardana
>  Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Dulanja Liyanage
WSO2 Inc.
M: +94776764717
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Latest Milestone of wso2is-5.0.0 with APIM Key Manager p2 Repo

2014-04-30 Thread Ajanthan Balachandran
Hi,
Where can i get the $supject?
Thanks.

-- 
ajanthan
-- 
Ajanthan Balachandiran
Senior Software Engineer;
Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/

email: ajanthan @wso2.com; cell: +94775581497
blog: http://bkayts.blogspot.com/

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


Re: [Dev] [BPS] Exception when calling BPEL via Web Wpp

2014-04-30 Thread Nandika Jayawardana
I think this error comes from unified endpoint component. I think we
already have a jira issue for this. Can you check why this is happening.

Regards
Nandika


On Wed, Apr 30, 2014 at 8:25 AM, Waruna Jayaweera  wrote:

> Hi,
> I am using BPS 3.2.0 with Application server features installed. I have a
> web app which calls for BPEL processes . Some web app requests are failed
> with following Exception. Any idea on this?
>
> TID: [0] [BPS] [2014-04-30 12:47:06,097] ERROR
> {org.wso2.carbon.bpel.core.ode.integration.PartnerService} -  Error sending
> message to Axis2 for ODE mex {PartnerRoleMex#4611686018427387913 [PID {
> http://RexusModuleImpl }RexusAppCreateTxnMF-24]
> calling org.apache.ode.bpel.epr.WSAEndpoint@351672ae.createTransaction(...)
> Status REQUEST} {org.wso2.carbon.bpel.core.ode.integration.PartnerService}
> org.apache.axis2.phaseresolver.PhaseException: Did not find the desired
> phase 'UEPPhase' while deploying handler 'OutFlowLogHandler'.
> at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
> at
> org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
> at
> org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.getOperationClient(AxisServiceUtils.java:410)
> at
> org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.invokeService(AxisServiceUtils.java:272)
> at
> org.wso2.carbon.bpel.core.ode.integration.PartnerService.invoke(PartnerService.java:324)
> at
> org.wso2.carbon.bpel.core.ode.integration.BPELMessageExchangeContextImpl.invokePartner(BPELMessageExchangeContextImpl.java:43)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:793)
> at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:130)
> at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:898)
> at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:208)
> at
> org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:283)
> at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:224)
> at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:279)
> at
> org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:434)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:558)
> at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:467)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:547)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:541)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:291)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:246)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:541)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:525)
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
>
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>



-- 
Nandika Jayawardana
Senior Technical Lead
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
__

[Dev] What is the git location for mediation security

2014-04-30 Thread Udara Liyanage
Hi,

$subject. I looked at [1], but could not find it.


[1] https://github.com/wso2/carbon-mediation/tree/master/components

-- 

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

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] Exception when calling BPEL via Web Wpp

2014-04-30 Thread Waruna Jayaweera
Hi,
I am using BPS 3.2.0 with Application server features installed. I have a
web app which calls for BPEL processes . Some web app requests are failed
with following Exception. Any idea on this?

TID: [0] [BPS] [2014-04-30 12:47:06,097] ERROR
{org.wso2.carbon.bpel.core.ode.integration.PartnerService} -  Error sending
message to Axis2 for ODE mex {PartnerRoleMex#4611686018427387913 [PID {
http://RexusModuleImpl }RexusAppCreateTxnMF-24]
calling org.apache.ode.bpel.epr.WSAEndpoint@351672ae.createTransaction(...)
Status REQUEST} {org.wso2.carbon.bpel.core.ode.integration.PartnerService}
org.apache.axis2.phaseresolver.PhaseException: Did not find the desired
phase 'UEPPhase' while deploying handler 'OutFlowLogHandler'.
at
org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
at
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
at
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
at
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
at
org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
at
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
at
org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
at
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
at
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
at
org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.getOperationClient(AxisServiceUtils.java:410)
at
org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.invokeService(AxisServiceUtils.java:272)
at
org.wso2.carbon.bpel.core.ode.integration.PartnerService.invoke(PartnerService.java:324)
at
org.wso2.carbon.bpel.core.ode.integration.BPELMessageExchangeContextImpl.invokePartner(BPELMessageExchangeContextImpl.java:43)
at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:793)
at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:130)
at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:898)
at
org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:208)
at
org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:283)
at
org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:224)
at
org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:279)
at
org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:434)
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:558)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:467)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:547)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:541)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:291)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:246)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:541)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:525)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)


-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Bamboo test email

2014-04-30 Thread Bamboo
This is a test email generated by Bamboo.

If you receive this email, your mail server settings on Bamboo are correct.

Thanks,
Bamboo
https://wso2.org/bamboo
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to read content from WSRequest.responseE4X

2014-04-30 Thread Jayanga Dissanayake
Hi Nadeesha,

Thanks for the reply. I checked the type of the object, its an XML object.
There was a bug in the code which I originally posted. Then I fixed [1]. It
solve the syntax error. but it failed in execution [2]

[1]

log.info(responseMessage.ns::commandResponse.ns::return.toString());

[2]

js: "/operation_center/api/action/control_command.jag", line 44: missing
name after :: operator
js: log.info
(responseMessage.ns::commandResponse.ns::return.toString());
js: ...^
[2014-04-30 17:55:25,943] ERROR
{org.jaggeryjs.scriptengine.engine.RhinoEngine} -
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
errors. (/operation_center/api/action/control_command.jag#1)
[2014-04-30 17:55:25,943] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
errors. (/operation_center/api/action/control_command.jag#1)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
errors. (/operation_center/api/action/control_command.jag#1)

Regards,
Jayanga.

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


On Wed, Apr 30, 2014 at 5:33 PM, Nadeesha Cabral  wrote:

> Hello Jayanga,
>
> On Wed, Apr 30, 2014 at 2:25 PM, Jayanga Dissanayake 
>  wrote:
>
> exceptions.ScriptException: org.mozilla.javascript.EvaluatorException:
>> Compilation produced 1 syntax errors.
>
>
> This is a syntax error. I'm assuming responseMessage a bunch of XML. XML
> will be treated as a string in this context. Hence, you can't traverse it
> with these operators. You'll have to parse it to be a Javascript object.
>
> Have you tried parsing it with XML utility for jaggery [1]?
>
> [1] http://jaggeryjs.org/documentation.jag?api=xml
>
> Cheers,
> Nadeesha.
>
>
> On Wed, Apr 30, 2014 at 2:25 PM, Jayanga Dissanayake wrote:
>
>> Hi All,
>>
>> I was trying to get the response from WSRequest as a responseE4X. This
>> returns the actual response received [1]. But the contents of the response
>> cannot be accessed [2].
>>
>> [1]
>>
>> http://org.wso2.carbon.oc.services/agent";>
>>
>> {"ocMessageName":"CommandMessageResponse","ocaToken":"e9f73475-34ad-494b-83be-ccb415176efb","command":"restartGracefully","status":"RESTARTING"}
>> 
>>
>> [2]
>>
>> 2014-04-30 14:24:13,241]  INFO {JAGGERY.api.update:jag} -  Updating...
>> js: "/operation_center/api/action/control_command.jag", line 43: missing
>> ) after argument list
>> js: log.info
>> (responseMessage.ns:commandResponse.ns:return.toString());
>> js: ^
>> [2014-04-30 14:24:15,545] ERROR
>> {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
>> errors. (/operation_center/api/action/control_command.jag#1)
>> [2014-04-30 14:24:15,545] ERROR
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
>> errors. (/operation_center/api/action/control_command.jag#1)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
>> errors. (/operation_center/api/action/control_command.jag#1)
>>
>>
>> Regards,
>> *Jayanga Dissanayake*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nadeesha
> @ncthis
> 0779094280
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MySQL script missing in the GREG 5 Snapshot pack

2014-04-30 Thread Shazni Nazeer
$subject please

Shazni Nazeer

Senior Software Engineer

Mob : +94 715 440 607
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Meeting Notes on EMM Carbon

2014-04-30 Thread Kishanthan Thangarajah
carbon.core and carbon.runtime features are by default available with the
"default" profile, so you don't have to explicitly define them with your
product's p2 repo definition. But if you are going to use multiple-profiles
in your product, then you will have to define them in the p2 repo creation
phase and then add them to your specific profile.

Refer this for example which does not use multi-profile and use only the
default profile :
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/elb/2.1.0/modules/p2-profile/pom.xml


On Tue, Apr 29, 2014 at 11:15 PM, Gayan Gunawardana  wrote:

> Hi Kishanthan,
>
> As per the discussion we had during the meeting can you specifically
> mention the carbon core features we should install into EMM server. We have
> seen org.wso2.carbon:org.wso2.carbon.core.feature:4.2.0 and
> org.wso2.carbon:org.wso2.carbon.core.runtime.feature:4.2.0 in most of other
> products but it differs sometimes.
>
> WDYT ?
>
>
> On Tue, Apr 29, 2014 at 10:47 PM, Chan  wrote:
>
>> Hi folks,
>> We had a meeting today with Kicha to sort out our EMM carbon related
>> problems. Attendees - Mobile Team, SameeraP, Kicha. Below are points we
>> discussed -
>>
>>- Finalize on the dependent product versions (specially APIM feature
>>version and IS feature version)
>>- Use .p2inf to copy feature related files
>>- Use bin.xml to copy product related files
>>- Get proper changes of files (axis2.xml) done by other teams to EMM
>>- Not going to use Carbon Profiles since emm_service app is a
>>deployment artifact
>>
>> Please add anything if I missed.
>> ​Cheers~​
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2Mobile
>> Lean.Enterprise.Mobileware
>>  * ~Email   duli...@wso2.com *
>> *  ~Mobile +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me *
>> *  ~Twitter @dulitharw *
>>   *~Github @dulichan *
>>   *~SO @chan *
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
> Blog: http://gayanj2ee.blogspot.com/
>



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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Coordination] Embedded zookeeper in coordination component doesn't start ZooKeeperSaslServer

2014-04-30 Thread Ishara Premadasa
Hi Indika,

When further debugged i could find that in the coordination component,
jaas.conf  and java.env files are not read when SASL is enabled, therefore
Zookeeper ServerCnxnFactory skips the creation of ZooKeeperSaslServer
instance as jaas.conf entries not found. This is currently fixed in
r201478.

We need to add this into 2.2.0 documentation as well. I have created [1]
for that.
@Tania,
Please note.

Thanks!
Ishara

[1] https://wso2.org/jira/browse/DOCUMENTATION-777


On Wed, Apr 30, 2014 at 11:59 AM, Indika Sampath  wrote:

> Hi Ishara,
>
> Herewith I have attached jaas.conf and java.env files. You need to add
> these two files to /repository/conf/etc/ where MB instance start
> as zookeeper profile. After that change the path of jaas.conf  in the
> java.env. Also check the /repository/conf/security/jaas.conf file
> exist. If it is not exist copy the jaas.conf. The issue seems to be MB
> server start as zookeeper won't get the SASL configuration properly. Anyway
> you can further debug and see with these configuration settings.
>
> Cheers!
>
>
>
>
> On Tue, Apr 29, 2014 at 11:46 PM, Ishara Premadasa wrote:
>
>> Hi,
>>
>> From WSO2 MB 2.2.0 onwards we will be supporting zookeeper profiles with
>> MB where a message broker instance can be started as a zookeeper server as
>> well by using carbon profiles. For this we use embedded zookeeper server
>> that getting shipped with Coordination component. However as stated in [1]
>> when enabled SASL security for zookeeper server, the coordination server (
>> which is zk server here) doesn't seem to initiate a ZooKeeperSaslServer
>> object, but still it starts a non-SASL Zookeeper server only.
>>
>> I enabled the debug logs for zookeeper server and once the client tries
>> to connect to server with providing client login data the following error
>> logs can be seen at zk server side and client side.
>>
>> *server side ( MB with zookeeper profile enabled)*
>> [2014-04-29 22:06:31,316] DEBUG
>> {org.apache.zookeeper.server.ZooKeeperServer} -  Responding to client SASL
>> token.
>> [2014-04-29 22:06:31,316] DEBUG
>> {org.apache.zookeeper.server.ZooKeeperServer} -  Size of client SASL token:
>> 0
>> [2014-04-29 22:06:31,317] ERROR
>> {org.apache.zookeeper.server.ZooKeeperServer} -  cnxn.saslServer is null:
>> cnxn object did not initialize its saslServer properly.
>>
>> *client side ( MB server which connects to zookeeper)*
>> [2014-04-29 22:06:31,313] DEBUG
>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>> ClientCnxn:sendSaslPacket:length=0
>> [2014-04-29 22:06:31,319] ERROR
>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -  SASL authentication
>> failed using login context 'Client'.
>>
>> To get this verified, i tested the same scenario by pointing to an
>> external Apache zookeeper server where client was able to successfully
>> authenticate through same credentials as below logs.
>>
>> [2014-04-29 22:12:10,873] DEBUG
>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>> ClientCnxn:sendSaslPacket:length=0
>> [2014-04-29 22:12:10,873] DEBUG
>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>> saslClient.evaluateChallenge(len=101)
>> [2014-04-29 22:12:10,874] DEBUG
>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>> ClientCnxn:sendSaslPacket:length=276
>> [2014-04-29 22:12:10,876] DEBUG
>> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
>> saslClient.evaluateChallenge(len=40)
>> [2014-04-29 22:12:10,877] DEBUG {org.apache.zookeeper.ClientCnxn} -
>> Reading reply sessionid:0x145ae5b1d2e0002, packet:: clientPath:null
>> serverPath:null finished:false header:: 3,3  replyHeader:: 3,5,-101
>> request:: '/queue_workers_parent,F  response::
>>
>> Therefore it seems coordination server doesn't start zookeeper instance
>> by verifying whether security enabled or not. We need to get this fixed for
>> MB 2.2.0 and i am currently working on it. If there is any configuration
>> available for coordination server to handle this without changing the
>> source please mention it here.
>>
>> Thanks!
>> Ishara
>>
>> [1] https://wso2.org/jira/browse/MB-601
>>
>> --
>> Ishara Premasada
>> Software Engineer,
>> WSO2 Inc. http://wso2.com/
>>
>>
>> *Blog   :  http://isharapremadasa.blogspot.com/
>>  Twitter   :
>> https://twitter.com/ishadil Mobile   : +94
>> 714445832 <%2B94%20714445832>*
>>
>>
>>
>
>
> --
> Indika Sampath
> Software Engineer
> WSO2 Inc.
> http://wso2.com
>
> Phone: +94 716 424 744
> Blog: http://indikasampath.blogspot.com/
>
>


-- 
Ishara Premasada
Software Engineer,
WSO2 Inc. http://wso2.com/


*Blog   :  http://isharapremadasa.blogspot.com/
Twitter   :
https://twitter.com/ishadil Mobile   : +94
714445832*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] An experimental UI designer based on Jaggery

2014-04-30 Thread Nadeesha Cabral
Hello All,

We had been working on a new Jaggery based UI designer lately [1].

What we'd like it to be is a tool, which can generate an app using Twitter
Bootstrap based UI components, client side javascript components, and
Jaggery components - using a drag and drop UI. Basically, something like
Layoutit [2] which is a bit more powerful - powerful enough to render stuff
server side.

Components (reusable gadget-like things in this tool) will implement a
minimal javascript-based API, that in turn would let this tool instrument
these components.

In it's current, very-crude, but working state, It will feature a design
view [3] which will let a user design the page, and run it. Upon running
it, the tool will convert the layout to a jag file and serve it.

Components can contain static html, css, client side js, and jaggery code.

The generated output is fully responsive, thanks to a framework we
developed sometime back [4], which can turn a grid-based layout into a
responsive bootstrap layout.

The goal as of now is to integrate it to UES as a tool for generating a
server rendered page by dragging and dropping stuff and optionally writing
javascript.

WDYT?

[1] https://github.com/ncthis/layoutr
[2] http://layoutit.com
[3] https://dl.dropboxusercontent.com/u/3240167/layoutr.png
[4] https://github.com/ncthis/gridster-bootstrap

Cheers,
Nadeesha.

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


Re: [Dev] Test failures while running product integration tests on Jenkins due to SecurityConfigException

2014-04-30 Thread Chamath Gunawardana
This is fixed. Please take an up in carbon-identity or Jenkins build #84
contains the fix.


On Wed, Apr 30, 2014 at 2:17 PM, Dushan Abeyruwan  wrote:

> Hi
> Yes, I am too getting the same issue
>
> Cheers,
> Dushan
>
>
> On Wed, Apr 30, 2014 at 11:06 AM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi all,
>>
>> Following error has caused many test failure in Jenkins server. Can
>> someone please have a look
>>
>> [2014-04-29 20:51:04,449] ERROR 
>> {org.wso2.carbon.security.config.SecurityConfigAdmin} -  Error when 
>> obtaining the governance registry instance.
>> [2014-04-29 20:51:04,449] ERROR {org.wso2.carbon.service.mgt.ServiceAdmin} - 
>>  Cannot retrieve security scenario for service JSONService
>> org.wso2.carbon.security.SecurityConfigException: Error when obtaining the 
>> governance registry instance.
>>  at 
>> org.wso2.carbon.security.config.SecurityConfigAdmin.(SecurityConfigAdmin.java:166)
>>  at 
>> org.wso2.carbon.service.mgt.ServiceAdmin.getSecurityScenario(ServiceAdmin.java:1090)
>>  at 
>> org.wso2.carbon.service.mgt.ServiceAdmin.listServices(ServiceAdmin.java:586)
>>  at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
>>  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.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:646)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>  at 
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>  at 
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>  at 
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>  at 
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>  at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>  at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>  at 
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>  at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>  at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>  at 
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>  at 
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>  at 
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>  at 
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>>  at 
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>  at 
>> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>>  at 
>> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>>  at 
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>  at 
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>  at 
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>  at 
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>  at 
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>  at 
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>  at 
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>  at 
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>  at 
>> org.apache.catalina.core.Standard

Re: [Dev] Flush the 4.3.0 Kernel PR queue

2014-04-30 Thread Kishanthan Thangarajah
Thanks Chanika.

@Sagara, this pull request fixes the test failures in kernel integration.
Please merge this pull with wso2 axis2 main repo.


On Wed, Apr 30, 2014 at 2:08 PM, Chanika Geeganage  wrote:

> Hi Kishanthan,
>
> Please apply the pull request -
> https://github.com/wso2-dev/wso2-axis2/pull/4
>
> Thanks
>
>
> On Wed, Apr 30, 2014 at 12:57 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> My Bad, I was looking at the final build results which showed that all
>> tests and build were successful. This was because of a change in
>> integration test module that continue running tests with the following
>> property true. This has to be
>> disabled first.
>>
>> The root cause for the testFailure is some of the commits to axis2 for
>> json related changes are missing in git.
>>
>> @Chanika, can you send the missing commits to wso2-dev repo so that it
>> can be merged with the main repo?
>>
>>
>> On Wed, Apr 30, 2014 at 11:33 AM, Ajith Vitharana wrote:
>>
>>> Hi Sameera/Kishanthan
>>>
>>> There are test failures in the kernel (wso2), did u ran with the test
>>> before merge ?
>>>
>>> [1]http://54.84.136.218:8080/jenkins/job/carbon4-kernel/195/consoleFull
>>>
>>> Thanks
>>> Ajith.
>>>
>>>
>>>
>>> On Wed, Apr 23, 2014 at 11:42 PM, Sameera Jayasoma wrote:
>>>



 On Wed, Apr 23, 2014 at 11:00 AM, Ajith Vitharana wrote:

> Sameera,
>
>
> On Wed, Apr 23, 2014 at 9:48 PM, Sameera Jayasoma wrote:
>
>> Ajith,
>>
>> Yes we were working on this behind the scenes. Specially Kishanthan
>> and Manoj since I am not available for this work until next week.
>>
>> But we cannot simply flush the queue without properly reviewing the
>> changes.
>>
>
> Understood the process. But we should have at least 2 owners to merge
> those commits periodically without keeping the commits long time in the
> queue.
>

 Agreed. I thought the same.

 But AFAIK, it is a temporary measure to keep an owner for master
 product repos. In the future only Jenkins will be able to commit.

>
> -Ajith.
>
>
>>
>> Sameera.
>>
>>
>> On Wed, Apr 23, 2014 at 2:29 AM, Ajith Vitharana wrote:
>>
>>>
>>>
>>>
>>> On Wed, Apr 23, 2014 at 9:26 AM, Ajith Vitharana wrote:
>>>



 On Tue, Apr 22, 2014 at 12:18 PM, Kasun Gajasinghe >>> > wrote:

> Hi Sameera,
>
> Could you please do $subject? There are 15+ commits waiting in the
> queue.
>
> [1] https://github.com/wso2/carbon4-kernel/pull/4
>

 Please review and merge immediately, because  some fixes are
 blockers for the build stabilization hackathon.

>>>
>>> Is anyone working on this ?
>>>
>>> -Ajith.
>>>
>>>

 Thanks
 -Ajith.


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


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


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software 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
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


 --
 Sameera Jayasoma,
 Software 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
 Mobile: 0094776364456

 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Senior Software Engineer,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mob

Re: [Dev] [C5] Expose a RESTful service in Carbon Kernel 5

2014-04-30 Thread Kishanthan Thangarajah
Not with the latest milestone. The plan is to include this for the next
milestone (a light weight RESTful admin services framework).


On Wed, Apr 30, 2014 at 12:46 PM, Aruna Karunarathna  wrote:

> Hi all,
>
> Can we do the $subject with the current latest milestone release?
>
> Regards,
> --
>
> * Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to read content from WSRequest.responseE4X

2014-04-30 Thread Nadeesha Cabral
Hello Jayanga,

On Wed, Apr 30, 2014 at 2:25 PM, Jayanga Dissanayake 
 wrote:

> exceptions.ScriptException: org.mozilla.javascript.EvaluatorException:
> Compilation produced 1 syntax errors.


This is a syntax error. I'm assuming responseMessage a bunch of XML. XML
will be treated as a string in this context. Hence, you can't traverse it
with these operators. You'll have to parse it to be a Javascript object.

Have you tried parsing it with XML utility for jaggery [1]?

[1] http://jaggeryjs.org/documentation.jag?api=xml

Cheers,
Nadeesha.


On Wed, Apr 30, 2014 at 2:25 PM, Jayanga Dissanayake wrote:

> Hi All,
>
> I was trying to get the response from WSRequest as a responseE4X. This
> returns the actual response received [1]. But the contents of the response
> cannot be accessed [2].
>
> [1]
>
> http://org.wso2.carbon.oc.services/agent";>
>
> {"ocMessageName":"CommandMessageResponse","ocaToken":"e9f73475-34ad-494b-83be-ccb415176efb","command":"restartGracefully","status":"RESTARTING"}
> 
>
> [2]
>
> 2014-04-30 14:24:13,241]  INFO {JAGGERY.api.update:jag} -  Updating...
> js: "/operation_center/api/action/control_command.jag", line 43: missing )
> after argument list
> js: log.info(responseMessage.ns:commandResponse.ns:return.toString());
> js: ^
> [2014-04-30 14:24:15,545] ERROR
> {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
> errors. (/operation_center/api/action/control_command.jag#1)
> [2014-04-30 14:24:15,545] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
> errors. (/operation_center/api/action/control_command.jag#1)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
> errors. (/operation_center/api/action/control_command.jag#1)
>
>
> Regards,
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] [Exception in oauth authorize request]

2014-04-30 Thread Gayan Gunawardana
Hi,

After installing oauth feature into EMM I got following exception while
sending authorize request in authorization code grant type

java.lang.NullPointerException

org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.sendResponseToCaller(CommonApplicationAuthenticationServlet.java:242)

org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.sendResponseToCaller(CommonApplicationAuthenticationServlet.java:223)

org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.doPost(CommonApplicationAuthenticationServlet.java:186)
javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)

org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)


-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we allow to re-active, retired application version in production

2014-04-30 Thread Harsha Thirimanna
done


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
* email: **hars...@wso2.com* * cell: +94 71 5186770*
* twitter: **http://twitter.com/ *
*harshathirimann linked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

 *Lean . Enterprise . Middleware*



On Wed, Apr 30, 2014 at 2:39 PM, Dimuthu Leelarathne wrote:

> Hi,
>
> Please add a new RedMine feature.
>
> thanks,
> dimuthu
>
>
>
> On Wed, Apr 30, 2014 at 1:31 PM, Harsha Thirimanna wrote:
>
>> Hi,
>>
>> $subject, Is there any use case to reactive , retired version ?
>>
>> thanks
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> * email: **hars...@wso2.com* * cell: +94 71 5186770*
>> * twitter: **http://twitter.com/ *
>> *harshathirimann linked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>>  *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> Dimuthu Leelarathne
> Architect & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we allow to re-active, retired application version in production

2014-04-30 Thread Dimuthu Leelarathne
Hi,

Please add a new RedMine feature.

thanks,
dimuthu



On Wed, Apr 30, 2014 at 1:31 PM, Harsha Thirimanna  wrote:

> Hi,
>
> $subject, Is there any use case to reactive , retired version ?
>
> thanks
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> * email: **hars...@wso2.com* * cell: +94 71 5186770*
> * twitter: **http://twitter.com/ *
> *harshathirimann linked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
>  *Lean . Enterprise . Middleware*
>
>


-- 
Dimuthu Leelarathne
Architect & Product Lead of App Factory

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

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


Re: [Dev] Please merge carbon-governance #1

2014-04-30 Thread Chandana Napagoda
Done

Regards,
Chandana


On Wed, Apr 30, 2014 at 2:13 PM, Susankha Nirmala  wrote:

> Hi Chandana,
>
> Please merge the pull request -
> https://github.com/wso2-dev/carbon-governance/pull/2
>
> /Susnakha.
>
>
> On Wed, Apr 30, 2014 at 11:48 AM, Susankha Nirmala wrote:
>
>>
>> Hi Chandana,
>>
>> Please merge the pull request -
>> https://github.com/wso2-dev/carbon-governance/pull/1
>>
>> Thanks.
>> /Susankha
>>
>> --
>> Susankha Nirmala
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> Mobile : +94 77 593 2146
>>
>
>
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146
>



-- 
*Chandana Napagoda*
Senior Software Engineer
WSO2 Inc. - http://wso2.org

*Email  :  chand...@wso2.com **Mobile : +94718169299*

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


[Dev] Unable to read content from WSRequest.responseE4X

2014-04-30 Thread Jayanga Dissanayake
Hi All,

I was trying to get the response from WSRequest as a responseE4X. This
returns the actual response received [1]. But the contents of the response
cannot be accessed [2].

[1]

http://org.wso2.carbon.oc.services/agent";>

{"ocMessageName":"CommandMessageResponse","ocaToken":"e9f73475-34ad-494b-83be-ccb415176efb","command":"restartGracefully","status":"RESTARTING"}


[2]

2014-04-30 14:24:13,241]  INFO {JAGGERY.api.update:jag} -  Updating...
js: "/operation_center/api/action/control_command.jag", line 43: missing )
after argument list
js: log.info(responseMessage.ns:commandResponse.ns:return.toString());
js: ^
[2014-04-30 14:24:15,545] ERROR
{org.jaggeryjs.scriptengine.engine.RhinoEngine} -
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
errors. (/operation_center/api/action/control_command.jag#1)
[2014-04-30 14:24:15,545] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
errors. (/operation_center/api/action/control_command.jag#1)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax
errors. (/operation_center/api/action/control_command.jag#1)


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


Re: [Dev] Test failures while running product integration tests on Jenkins due to SecurityConfigException

2014-04-30 Thread Dushan Abeyruwan
Hi
Yes, I am too getting the same issue

Cheers,
Dushan


On Wed, Apr 30, 2014 at 11:06 AM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi all,
>
> Following error has caused many test failure in Jenkins server. Can
> someone please have a look
>
> [2014-04-29 20:51:04,449] ERROR 
> {org.wso2.carbon.security.config.SecurityConfigAdmin} -  Error when obtaining 
> the governance registry instance.
> [2014-04-29 20:51:04,449] ERROR {org.wso2.carbon.service.mgt.ServiceAdmin} -  
> Cannot retrieve security scenario for service JSONService
> org.wso2.carbon.security.SecurityConfigException: Error when obtaining the 
> governance registry instance.
>   at 
> org.wso2.carbon.security.config.SecurityConfigAdmin.(SecurityConfigAdmin.java:166)
>   at 
> org.wso2.carbon.service.mgt.ServiceAdmin.getSecurityScenario(ServiceAdmin.java:1090)
>   at 
> org.wso2.carbon.service.mgt.ServiceAdmin.listServices(ServiceAdmin.java:586)
>   at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
>   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.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:646)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>   at 
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>   at 
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>   at 
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>   at 
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>   at 
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>   at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>   at 
> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>   at 
> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>   at 
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>   at 
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>   at 
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>   at 
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>   at 
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>   at 
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>   at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>   at 
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>   at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>   at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(Abstra

Re: [Dev] Please merge carbon-governance #1

2014-04-30 Thread Susankha Nirmala
Hi Chandana,

Please merge the pull request -
https://github.com/wso2-dev/carbon-governance/pull/2

/Susnakha.


On Wed, Apr 30, 2014 at 11:48 AM, Susankha Nirmala wrote:

>
> Hi Chandana,
>
> Please merge the pull request -
> https://github.com/wso2-dev/carbon-governance/pull/1
>
> Thanks.
> /Susankha
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146
>



-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Flush the 4.3.0 Kernel PR queue

2014-04-30 Thread Chanika Geeganage
Hi Kishanthan,

Please apply the pull request -
https://github.com/wso2-dev/wso2-axis2/pull/4

Thanks


On Wed, Apr 30, 2014 at 12:57 PM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> My Bad, I was looking at the final build results which showed that all
> tests and build were successful. This was because of a change in
> integration test module that continue running tests with the following
> property true. This has to be
> disabled first.
>
> The root cause for the testFailure is some of the commits to axis2 for
> json related changes are missing in git.
>
> @Chanika, can you send the missing commits to wso2-dev repo so that it can
> be merged with the main repo?
>
>
> On Wed, Apr 30, 2014 at 11:33 AM, Ajith Vitharana  wrote:
>
>> Hi Sameera/Kishanthan
>>
>> There are test failures in the kernel (wso2), did u ran with the test
>> before merge ?
>>
>> [1]http://54.84.136.218:8080/jenkins/job/carbon4-kernel/195/consoleFull
>>
>> Thanks
>> Ajith.
>>
>>
>>
>> On Wed, Apr 23, 2014 at 11:42 PM, Sameera Jayasoma wrote:
>>
>>>
>>>
>>>
>>> On Wed, Apr 23, 2014 at 11:00 AM, Ajith Vitharana wrote:
>>>
 Sameera,


 On Wed, Apr 23, 2014 at 9:48 PM, Sameera Jayasoma wrote:

> Ajith,
>
> Yes we were working on this behind the scenes. Specially Kishanthan
> and Manoj since I am not available for this work until next week.
>
> But we cannot simply flush the queue without properly reviewing the
> changes.
>

 Understood the process. But we should have at least 2 owners to merge
 those commits periodically without keeping the commits long time in the
 queue.

>>>
>>> Agreed. I thought the same.
>>>
>>> But AFAIK, it is a temporary measure to keep an owner for master product
>>> repos. In the future only Jenkins will be able to commit.
>>>

 -Ajith.


>
> Sameera.
>
>
> On Wed, Apr 23, 2014 at 2:29 AM, Ajith Vitharana wrote:
>
>>
>>
>>
>> On Wed, Apr 23, 2014 at 9:26 AM, Ajith Vitharana wrote:
>>
>>>
>>>
>>>
>>> On Tue, Apr 22, 2014 at 12:18 PM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi Sameera,

 Could you please do $subject? There are 15+ commits waiting in the
 queue.

 [1] https://github.com/wso2/carbon4-kernel/pull/4

>>>
>>> Please review and merge immediately, because  some fixes are
>>> blockers for the build stabilization hackathon.
>>>
>>
>> Is anyone working on this ?
>>
>> -Ajith.
>>
>>
>>>
>>> Thanks
>>> -Ajith.
>>>
>>>

 Thanks,
 KasunG

 --

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



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


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
> Sameera Jayasoma,
> Software 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
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


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


>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software 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
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Best Regards..

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


[Dev] [App Factory] 2.0.0 Alpha Release Plan

2014-04-30 Thread Punnadi Gunarathna
Hi All,

The team is working towards delivering App Factory 2.0.0 alpha pack
and the java
code freeze will be at 6.00pm on 2nd May.
The alpha pack release will be on 4th May.

Please complete all the java implementations of targeted redmine
features/tasks for alpha release including Usability improvements to hit
the setted deadline.

-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com 
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


[Dev] Do we allow to re-active, retired application version in production

2014-04-30 Thread Harsha Thirimanna
Hi,

$subject, Is there any use case to reactive , retired version ?

thanks

*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
* email: **hars...@wso2.com* * cell: +94 71 5186770*
* twitter: **http://twitter.com/ *
*harshathirimann linked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

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


Re: [Dev] Issue with deploying JAX-RS webapp in EMM

2014-04-30 Thread Gayan Gunawardana
Hi,

Yesterday we had a discussion with Kishanthan and figure out some
fundamental things need to be corrected in EMM server. After the discussion
I have started revamping EMM server accordingly. Fortunately I got sorted
JAX-RS problem. As we discussed offline problem might be some fundamental
missing of artefacts. Thanks for KasunG and SupunM, giving me correct
advices to resolve the problem.


On Fri, Apr 25, 2014 at 6:47 PM, Gayan Gunawardana  wrote:

> Hi,
>
> Thanks for the quick reply.
>
> These are the features I have installed
>
> org.wso2.carbon:org.wso2.carbon.webapp.mgt.server.feature:4.2.2
>
> org.wso2.carbon:org.wso2.carbon.jaxws.webapp.mgt.feature:4.2.0
>
> org.wso2.carbon:org.wso2.carbon.as.runtimes.cxf.feature:4.2.2
>
> I have already updated bin.xml to copy necessary configurations like
> context.xml, will double check with AS.
>
>
> On Fri, Apr 25, 2014 at 6:32 PM, Kasun Gajasinghe  wrote:
>
>>
>> Can you list down the features you installed? Can you also check the
>> assembly bin.xml in AS distribution to identify the additional files AS has
>> copied that are related to cxf? As we saw, EMM missed context.xml.
>>
>>
>> On Fri, Apr 25, 2014 at 6:26 PM, Gayan Gunawardana wrote:
>>
>>> Hi All,
>>>
>>> We are working on Integrating APIM to EMM. According to API security
>>> requirement we have to put oauth feature inside EMM server. There is no
>>> issue with installing the oauth feature but there is a JAX-RS webapp
>>> (oauth2.war) which need to be deployed. Deploying JAX-RS webapps does not
>>> work properly in EMM server.
>>>
>>> Artefacts like web app management feature, cxf runtime feature,
>>> context.xml, webapp-classloading.xml, webapp-classloading-environments.xml
>>> already available in the EMM server.  AS team also helped to figure out the
>>> issue but couldn't really find the issue.
>>>
>>> with debugging I found while deploying a jax-rs web app it does not hit
>>> CarbonWebappClassLoader.
>>>
>>> But org.wso2.carbon.tomcat CarbonTomcat reads configuration files
>>> properly.
>>>
>>> WDYT regarding this ?
>>>
>>>  --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
> Blog: http://gayanj2ee.blogspot.com/
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
Blog: http://gayanj2ee.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Flush the 4.3.0 Kernel PR queue

2014-04-30 Thread Kishanthan Thangarajah
My Bad, I was looking at the final build results which showed that all
tests and build were successful. This was because of a change in
integration test module that continue running tests with the following
property true. This has to be
disabled first.

The root cause for the testFailure is some of the commits to axis2 for json
related changes are missing in git.

@Chanika, can you send the missing commits to wso2-dev repo so that it can
be merged with the main repo?


On Wed, Apr 30, 2014 at 11:33 AM, Ajith Vitharana  wrote:

> Hi Sameera/Kishanthan
>
> There are test failures in the kernel (wso2), did u ran with the test
> before merge ?
>
> [1]http://54.84.136.218:8080/jenkins/job/carbon4-kernel/195/consoleFull
>
> Thanks
> Ajith.
>
>
>
> On Wed, Apr 23, 2014 at 11:42 PM, Sameera Jayasoma wrote:
>
>>
>>
>>
>> On Wed, Apr 23, 2014 at 11:00 AM, Ajith Vitharana wrote:
>>
>>> Sameera,
>>>
>>>
>>> On Wed, Apr 23, 2014 at 9:48 PM, Sameera Jayasoma wrote:
>>>
 Ajith,

 Yes we were working on this behind the scenes. Specially Kishanthan and
 Manoj since I am not available for this work until next week.

 But we cannot simply flush the queue without properly reviewing the
 changes.

>>>
>>> Understood the process. But we should have at least 2 owners to merge
>>> those commits periodically without keeping the commits long time in the
>>> queue.
>>>
>>
>> Agreed. I thought the same.
>>
>> But AFAIK, it is a temporary measure to keep an owner for master product
>> repos. In the future only Jenkins will be able to commit.
>>
>>>
>>> -Ajith.
>>>
>>>

 Sameera.


 On Wed, Apr 23, 2014 at 2:29 AM, Ajith Vitharana wrote:

>
>
>
> On Wed, Apr 23, 2014 at 9:26 AM, Ajith Vitharana wrote:
>
>>
>>
>>
>> On Tue, Apr 22, 2014 at 12:18 PM, Kasun Gajasinghe 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> Could you please do $subject? There are 15+ commits waiting in the
>>> queue.
>>>
>>> [1] https://github.com/wso2/carbon4-kernel/pull/4
>>>
>>
>> Please review and merge immediately, because  some fixes are blockers
>> for the build stabilization hackathon.
>>
>
> Is anyone working on this ?
>
> -Ajith.
>
>
>>
>> Thanks
>> -Ajith.
>>
>>
>>>
>>> Thanks,
>>> KasunG
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


 --
 Sameera Jayasoma,
 Software 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
 Mobile: 0094776364456

 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software 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
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Allowing Service Provider configuration to be shared accross tenants

2014-04-30 Thread Suresh Attanayaka
Isn't this similar to sharing a tenant's API across tenants ? @sumedha, any
thoughts on this ?


On Wed, Apr 30, 2014 at 12:50 PM, Suresh Attanayaka  wrote:

> Yes, this is regarding IS 5.0.0 and the application is shared by a tenant.
>
>
> On Wed, Apr 30, 2014 at 12:35 PM, Johann Nallathamby wrote:
>
>> If the super-tenant is the one who is deploying and sharing the
>> application then this configuration needs to be done in the
>> application-authentication.xml if we are talking about IS 5.0.0. In earlier
>> versions we used the sso-idp-config.xml for the same purpose (limited to
>> only SAML SSO).
>>
>> However if its a tenant who is going to share the application and give
>> access to other tenants, it is not a model we support out of the box till
>> now. These would be some of the concerns addressed with Carbon 5.0.0.
>> However there may be work-arounds to achieve the same effect.
>>
>>
>> On Wed, Apr 30, 2014 at 11:31 AM, Suresh Attanayaka wrote:
>>
>>> Hi Team,
>>>
>>> How we can achieve the $subect ? Think of a scenario where IS is used in
>>> the multi-tenanted mode. One tenant has a web app hosted somewhere outside.
>>> Now this tenant wants other tenants to acess the same application.
>>> In our model, in this case each and every tenant has to do the Service
>>> Provider configuration in order them to be able to access the application.
>>>
>>>1. One option would be to copy the same configuration across the
>>>tenants who needs to access this application (this means copying the SAML
>>>issuer , OAuth key-secretes etc).
>>>2. Another Option would be to write
>>>ApplicationDAO, SSOServiceProviderConfigManager, OAuthAppDAO to read
>>>configurations accross tenants
>>>
>>>
>>> What would be the best option ? are there other approaches ?
>>>
>>> Thanks,
>>> -Suresh
>>>
>>> --
>>> Suresh Attanayake
>>> Senior Software Engineer; WSO2 Inc. http://wso2.com/
>>>  Blog : http://sureshatt.blogspot.com/
>>> Web : http://www.ssoarcade.com/
>>> Facebook : https://www.facebook.com/IdentityWorld
>>> Twitter : https://twitter.com/sureshatt
>>> LinkedIn : http://lk.linkedin.com/in/sureshatt
>>> Mobile : +94755012060
>>> Mobile : +016166171172
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Senior Software Engineer
>> Integration Technologies Team
>>  WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
> Suresh Attanayake
> Senior Software Engineer; WSO2 Inc. http://wso2.com/
> Blog : http://sureshatt.blogspot.com/
> Web : http://www.ssoarcade.com/
> Facebook : https://www.facebook.com/IdentityWorld
> Twitter : https://twitter.com/sureshatt
> LinkedIn : http://lk.linkedin.com/in/sureshatt
> Mobile : +94755012060
> Mobile : +016166171172
>



-- 
Suresh Attanayake
Senior Software Engineer; WSO2 Inc. http://wso2.com/
Blog : http://sureshatt.blogspot.com/
Web : http://www.ssoarcade.com/
Facebook : https://www.facebook.com/IdentityWorld
Twitter : https://twitter.com/sureshatt
LinkedIn : http://lk.linkedin.com/in/sureshatt
Mobile : +94755012060
Mobile : +016166171172
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Allowing Service Provider configuration to be shared accross tenants

2014-04-30 Thread Suresh Attanayaka
Yes, this is regarding IS 5.0.0 and the application is shared by a tenant.


On Wed, Apr 30, 2014 at 12:35 PM, Johann Nallathamby wrote:

> If the super-tenant is the one who is deploying and sharing the
> application then this configuration needs to be done in the
> application-authentication.xml if we are talking about IS 5.0.0. In earlier
> versions we used the sso-idp-config.xml for the same purpose (limited to
> only SAML SSO).
>
> However if its a tenant who is going to share the application and give
> access to other tenants, it is not a model we support out of the box till
> now. These would be some of the concerns addressed with Carbon 5.0.0.
> However there may be work-arounds to achieve the same effect.
>
>
> On Wed, Apr 30, 2014 at 11:31 AM, Suresh Attanayaka wrote:
>
>> Hi Team,
>>
>> How we can achieve the $subect ? Think of a scenario where IS is used in
>> the multi-tenanted mode. One tenant has a web app hosted somewhere outside.
>> Now this tenant wants other tenants to acess the same application.
>> In our model, in this case each and every tenant has to do the Service
>> Provider configuration in order them to be able to access the application.
>>
>>1. One option would be to copy the same configuration across the
>>tenants who needs to access this application (this means copying the SAML
>>issuer , OAuth key-secretes etc).
>>2. Another Option would be to write
>>ApplicationDAO, SSOServiceProviderConfigManager, OAuthAppDAO to read
>>configurations accross tenants
>>
>>
>> What would be the best option ? are there other approaches ?
>>
>> Thanks,
>> -Suresh
>>
>> --
>> Suresh Attanayake
>> Senior Software Engineer; WSO2 Inc. http://wso2.com/
>>  Blog : http://sureshatt.blogspot.com/
>> Web : http://www.ssoarcade.com/
>> Facebook : https://www.facebook.com/IdentityWorld
>> Twitter : https://twitter.com/sureshatt
>> LinkedIn : http://lk.linkedin.com/in/sureshatt
>> Mobile : +94755012060
>> Mobile : +016166171172
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Senior Software Engineer
> Integration Technologies Team
>  WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
Suresh Attanayake
Senior Software Engineer; WSO2 Inc. http://wso2.com/
Blog : http://sureshatt.blogspot.com/
Web : http://www.ssoarcade.com/
Facebook : https://www.facebook.com/IdentityWorld
Twitter : https://twitter.com/sureshatt
LinkedIn : http://lk.linkedin.com/in/sureshatt
Mobile : +94755012060
Mobile : +016166171172
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [C5] Expose a RESTful service in Carbon Kernel 5

2014-04-30 Thread Aruna Karunarathna
Hi all,

Can we do the $subject with the current latest milestone release?

Regards,
-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Allowing Service Provider configuration to be shared accross tenants

2014-04-30 Thread Johann Nallathamby
If the super-tenant is the one who is deploying and sharing the application
then this configuration needs to be done in the
application-authentication.xml if we are talking about IS 5.0.0. In earlier
versions we used the sso-idp-config.xml for the same purpose (limited to
only SAML SSO).

However if its a tenant who is going to share the application and give
access to other tenants, it is not a model we support out of the box till
now. These would be some of the concerns addressed with Carbon 5.0.0.
However there may be work-arounds to achieve the same effect.


On Wed, Apr 30, 2014 at 11:31 AM, Suresh Attanayaka  wrote:

> Hi Team,
>
> How we can achieve the $subect ? Think of a scenario where IS is used in
> the multi-tenanted mode. One tenant has a web app hosted somewhere outside.
> Now this tenant wants other tenants to acess the same application.
> In our model, in this case each and every tenant has to do the Service
> Provider configuration in order them to be able to access the application.
>
>1. One option would be to copy the same configuration across the
>tenants who needs to access this application (this means copying the SAML
>issuer , OAuth key-secretes etc).
>2. Another Option would be to write
>ApplicationDAO, SSOServiceProviderConfigManager, OAuthAppDAO to read
>configurations accross tenants
>
>
> What would be the best option ? are there other approaches ?
>
> Thanks,
> -Suresh
>
> --
> Suresh Attanayake
> Senior Software Engineer; WSO2 Inc. http://wso2.com/
> Blog : http://sureshatt.blogspot.com/
> Web : http://www.ssoarcade.com/
> Facebook : https://www.facebook.com/IdentityWorld
> Twitter : https://twitter.com/sureshatt
> LinkedIn : http://lk.linkedin.com/in/sureshatt
> Mobile : +94755012060
> Mobile : +016166171172
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Software Engineer
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev