[Dev] Migration scripts for API-M 1.6.0 to 1.7.0

2014-04-10 Thread Nirodha Pramod
Hi,

Do we have the $subject ready?

regards,
Nirodha

-- 

*Nirodha Gallage*
Senior Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AM tables creating issues in API-M 1.7.0 (Oracle mssql)

2014-04-10 Thread Aparna Karunarathna
Hi All,

We have observed $subject. Server started using -Dsetup and no start-up
errors were thrown, server started successfully. When check databases we
have seen tables are getting created partially in Oracle [1] database, then
I have executed the oracle script manually and some tables were created
with errors. In mssql [2] script should be updated. Please have a look.

[1] https://wso2.org/jira/browse/APIMANAGER-2163
[2] https://wso2.org/jira/browse/APIMANAGER-2159

Regards,
-- 
*Aparna Karunarathna.*


*Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in chunk-09 - identity module

2014-04-10 Thread Thanuja Jayasinghe
Hi Dinusha,

Fixed with r19.


Thanks


On Thu, Apr 10, 2014 at 10:06 AM, Darshana Gunawardana darsh...@wso2.comwrote:

 Hi Dinusha,

 We are looking into this..

 Thanks,


 On Thu, Apr 10, 2014 at 6:50 AM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Hi,

 Getting following compilation error while building
 org.wso2.carbon.identity.tools.saml.validator module. Revision 199976.
 Stubs are up to date. Can IS team have a look ?


 [INFO] Compiling 7 source files to
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/src/main/java/org/wso2/carbon/identity/tools/saml/validator/processors/SAMLResponseBuilder.java:[149,27]
 getClaimValue(org.wso2.carbon.identity.sso.saml.dto.SAMLSSOAuthnReqDTO,java.lang.String)
 in org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil cannot be applied to
 (java.lang.String,java.lang.String)
 [ERROR]
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/src/main/java/org/wso2/carbon/identity/tools/saml/validator/processors/SAMLResponseBuilder.java:[264,24]
 getUserClaimValues(org.wso2.carbon.identity.sso.saml.dto.SAMLSSOAuthnReqDTO,java.lang.String[],java.lang.String)
 in org.wso2.carbon.identity.sso.saml.builders.claims.ClaimsRetriever cannot
 be applied to (java.lang.String,java.lang.String[],nulltype)


 Regards,
 Dinusha.

 --
 Dinusha Dilrukshi
 Senior Software Engineer
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/




 --
 Regards,


 *Darshana Gunawardana *Software Engineer
 WSO2 Inc.; http://wso2.com

 * E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859 *Lean . Enterprise . Middleware

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




-- 
*Thanuja Lakmal*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Moving FE operations to BE

2014-04-10 Thread Indika Sampath
Hi All,

We can minimize the FE-BE communication by only moving the methods which
require Queue connection to be created. Then there won't be any key shared
and exposed to the FE. So basically browseQueue() method move to the BE and
once the queue details comes to FE getMsgProperties(), getMsgContentType(),
getMessageContentAsString() can be called with those data. I think then the
communication overhead will be reduce up to considerable extent. I will
consider the other client classes methods also with the same approach. If
there is any concern with this approach please post to this thread.

Cheers!


On Wed, Apr 9, 2014 at 3:32 PM, Suresh Attanayaka sur...@wso2.com wrote:

 Hi Ishara,

 I would not agree with your argument regarding the FE-BE communication
 overhead, afterall most of the time it is just a java call over the
 local-transport, no http cost at all. For me, consuming the JMS queue from
 the UI is no different from connecting to the database over JDBC from the
 UI which is not really our model.

 Plus, the key shared there is a system key and exposing it over HTTP is
 not a good idea. It should be shared using the OSGI service instead.

 On Wed, Apr 9, 2014 at 2:30 PM, Ishara Premadasa ish...@wso2.com wrote:

 Hi Indika,

 Your observation is correct that getAccessKey() method is not exposed to
 all the users, however few clarifications to made is this method is not
 configured to admin role only. According to the current permission model in
 carbon we can create new roles and assign permissions to that accordingly.
 However if you look at the permission tree there is only two MB related
 permission options named,


 MB




-


   Add Queue







   -  Queue Details

 Therefore for a user to perform other queue operations than this, we need
 to provide admin-- configure permission as shown in image [1] which is the
 reason getAccessKey() is bound to /permission/admin/configure level. (This
 is more like for any user to work with MB it needs some admin priviledges
 )Therefore IMO it would be better if we can add more options to above MB
 level permissions like Browse Queue etc. so user can be authorized to 
 getAccessKey()
 by selecting that permission rather than moving the operations into BE.


 On Wed, Apr 9, 2014 at 11:48 AM, Indika Sampath indi...@wso2.com wrote:

 Hi All,

 There is an issue with browsing the queue for users which haven't admin
 role. The reason is following two methods restricted to the admin role in
 Axis2 level.

- getCurrentUser()
- getAccessKey()

 There is a way to get the current logged user from the session but there
 is no way to get the access key.
 org.wso2.carbon.andes.ui.client.QueueBrowserClient creating a queue
 connection and access the queue from the FE. We need user name and access
 key to creating queue connection. There might be some security issue with
 QueueBrowserClient as I and Hasitha had discussion with Suresh on
 yesterday. Some operations in org.wso2.carbon.andes.ui module needs to move
 to the BE. I have come up with the following implementation design.

 Move following methods in the QueueBrowserClient to
 org.wso2.carbon.andes.core.QueueManagerService and expose as web service
 via org.wso2.carbon.andes.admin.AndesAdminService.


- browseQueue()
- closeBrowser()
- getMsgContentType()
- getMessageContentAsString()

 When we change like this we need to call the BE four times for each
 Browse operation and this would be same for publish sample msg, purge queue
 etc. which we don't necessarily have to go for BE. Wouldn't it be an
 overhead that we make several FE -- BE calls for a single UI operation
 each time?

 Thanks!
 Ishara

 [1]
 https://svn.wso2.org/repos/wso2/people/isharap/permissions_non_admin_user.png


 But there are another two classes
 org.wso2.carbon.andes.ui.client.QueueReceiverClient and
 org.wso2.carbon.andes.ui.client.QueueSenderClient needs do the same thing
 as I think.

 Cheers!

 --
 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/
 http://isharapremadasa.blogspot.com/Twitter   :
 https://twitter.com/ishadil https://twitter.com/ishadil Mobile   :
 +94 714445832 %2B94%20714445832*





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




-- 
Indika Sampath
Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 716 424 744
Blog: http://indikasampath.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in chunk-09 - identity module

2014-04-10 Thread Dinusha Senanayaka
Thanks Thanuja. will check.

Regards,
Dinusha.


On Thu, Apr 10, 2014 at 11:51 AM, Thanuja Jayasinghe than...@wso2.comwrote:

 Hi Dinusha,

 Fixed with r19.


 Thanks


 On Thu, Apr 10, 2014 at 10:06 AM, Darshana Gunawardana 
 darsh...@wso2.comwrote:

 Hi Dinusha,

 We are looking into this..

 Thanks,


 On Thu, Apr 10, 2014 at 6:50 AM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Hi,

 Getting following compilation error while building
 org.wso2.carbon.identity.tools.saml.validator module. Revision 199976.
 Stubs are up to date. Can IS team have a look ?


 [INFO] Compiling 7 source files to
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/src/main/java/org/wso2/carbon/identity/tools/saml/validator/processors/SAMLResponseBuilder.java:[149,27]
 getClaimValue(org.wso2.carbon.identity.sso.saml.dto.SAMLSSOAuthnReqDTO,java.lang.String)
 in org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil cannot be applied to
 (java.lang.String,java.lang.String)
 [ERROR]
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/src/main/java/org/wso2/carbon/identity/tools/saml/validator/processors/SAMLResponseBuilder.java:[264,24]
 getUserClaimValues(org.wso2.carbon.identity.sso.saml.dto.SAMLSSOAuthnReqDTO,java.lang.String[],java.lang.String)
 in org.wso2.carbon.identity.sso.saml.builders.claims.ClaimsRetriever cannot
 be applied to (java.lang.String,java.lang.String[],nulltype)


 Regards,
 Dinusha.

 --
 Dinusha Dilrukshi
 Senior Software Engineer
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/




 --
 Regards,


 *Darshana Gunawardana *Software Engineer
 WSO2 Inc.; http://wso2.com

 * E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859 *Lean . Enterprise . Middleware

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




 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891




-- 
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] Chunk 09 - Build failure

2014-04-10 Thread Shammi Jayasinghe
Hi IS Team ,

i am getting following build failure in building chunk 09 . Could you
please have a look

[INFO] BUILD FAILURE

[INFO]


[INFO] Total time: 9.009s

[INFO] Finished at: Thu Apr 10 11:54:36 IST 2014

[INFO] Final Memory: 61M/148M

[INFO]


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.identity.user.store.remote:
Compilation failure: Compilation failure:

[ERROR]
/Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[83,40]
cannot find symbol

[ERROR] symbol  : constructor
Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

[ERROR] location: class org.wso2.carbon.user.api.Property

[ERROR]
/Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[89,28]
cannot find symbol

[ERROR] symbol  : constructor
Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

[ERROR] location: class org.wso2.carbon.user.api.Property

[ERROR]
/Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[91,30]
cannot find symbol

[ERROR] symbol  : constructor
Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

[ERROR] location: class org.wso2.carbon.user.api.Property

[ERROR]
/Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[97,28]
cannot find symbol

[ERROR] symbol  : constructor
Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

[ERROR] location: class org.wso2.carbon.user.api.Property

[ERROR]
/Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[99,43]
cannot find symbol

[ERROR] symbol  : constructor
Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

[ERROR] location: class org.wso2.carbon.user.api.Property

[ERROR]
/Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[102,43]
cannot find symbol

[ERROR] symbol  : constructor
Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

[ERROR] location: class org.wso2.carbon.user.api.Property

[ERROR]
/Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[105,43]
cannot find symbol

[ERROR] symbol  : constructor
Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

[ERROR] location: class org.wso2.carbon.user.api.Property

[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 articles:

[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the
command

-- 
Best Regards,

*  Shammi Jayasinghe*
Associate Tech Lead
WSO2, Inc.; http://wso2.com,
mobile: +94 71 4493085
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry Integrity Violation Exception in Put Operation

2014-04-10 Thread Thayalan
Hi Ajith,

Sorry, I couldn't respond to you immediately as I haven't noticed this mail
somehow. I've attached the conf files to JIRA now.

Thanks,
Thayalan


On Tue, Apr 8, 2014 at 11:17 PM, Anjana Fernando anj...@wso2.com wrote:

 Thayalan, please do the needful.

 Cheers,
 Anjana.


 On Tue, Apr 8, 2014 at 9:16 PM, Ajith Vitharana aji...@wso2.com wrote:

 Please attach your configuration files (conf dir) to the JIRA.

 -Ajith




 On Tue, Apr 8, 2014 at 7:45 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 There is an issue reported for BAM here [1], where in a registry put
 operation, a MySQL integrity constraint violation exception is thrown, can
 someone from GREG team please look into it.

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

 Cheers,
 Anjana.
 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




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




 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
Regards,
Thayalan Sivapaleswararajah
Associate Technical Lead - QA
Mob: +94(0)777872485
Tel : +94(0)(11)2145345
Fax : +94(0)(11)2145300
Email: thaya...@wso2.com


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


Re: [Dev] Chunk 09 - Build failure

2014-04-10 Thread Shammi Jayasinghe
Hi All,

Got this cleared off by updating and building kernel patch 0006.

Thanks
Shammi


On Thu, Apr 10, 2014 at 11:57 AM, Shammi Jayasinghe sha...@wso2.com wrote:

 Hi IS Team ,

 i am getting following build failure in building chunk 09 . Could you
 please have a look

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 9.009s

 [INFO] Finished at: Thu Apr 10 11:54:36 IST 2014

 [INFO] Final Memory: 61M/148M

 [INFO]
 

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.identity.user.store.remote:
 Compilation failure: Compilation failure:

 [ERROR]
 /Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[83,40]
 cannot find symbol

 [ERROR] symbol  : constructor
 Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

 [ERROR] location: class org.wso2.carbon.user.api.Property

 [ERROR]
 /Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[89,28]
 cannot find symbol

 [ERROR] symbol  : constructor
 Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

 [ERROR] location: class org.wso2.carbon.user.api.Property

 [ERROR]
 /Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[91,30]
 cannot find symbol

 [ERROR] symbol  : constructor
 Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

 [ERROR] location: class org.wso2.carbon.user.api.Property

 [ERROR]
 /Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[97,28]
 cannot find symbol

 [ERROR] symbol  : constructor
 Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

 [ERROR] location: class org.wso2.carbon.user.api.Property

 [ERROR]
 /Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[99,43]
 cannot find symbol

 [ERROR] symbol  : constructor
 Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

 [ERROR] location: class org.wso2.carbon.user.api.Property

 [ERROR]
 /Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[102,43]
 cannot find symbol

 [ERROR] symbol  : constructor
 Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

 [ERROR] location: class org.wso2.carbon.user.api.Property

 [ERROR]
 /Users/shammi/wso2/Development/public/platform/branches/turing/components/identity/org.wso2.carbon.identity.user.store.remote/4.2.0/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java:[105,43]
 cannot find symbol

 [ERROR] symbol  : constructor
 Property(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nulltype)

 [ERROR] location: class org.wso2.carbon.user.api.Property

 [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 articles:

 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

 [ERROR]

 [ERROR] After correcting the problems, you can resume the build with the
 command

 --
 Best Regards,

 *  Shammi Jayasinghe*
 Associate Tech Lead
 WSO2, Inc.; http://wso2.com,
 mobile: +94 71 4493085




-- 
Best Regards,

*  Shammi Jayasinghe*
Associate Tech Lead
WSO2, Inc.; http://wso2.com,
mobile: +94 71 4493085
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] StackOverflow Error in deployment after Tenant Unloading / Loading

2014-04-10 Thread Anjana Fernando
Hi,

There is an issue reported for BAM here [1], in a scenario when tenant is
unloaded and loaded again, and when a Jaggery web app deployment happens, a
call to
org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder()
seems to be called recursively indefinitely, which causes a
StacKOverflowError. Can someone from the Carbon Core team please look into
it.

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

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


[Dev] Exception when running ESB Test Suite for ESB Connectors Integration Tests

2014-04-10 Thread Madhawa Bandara
Hi,
I have written integration tests for an ESB Connector using ESB Test suit.
When I run the tests I get an exception as follows:

java.io.FileNotFoundException:
/src/test/resources/artifacts/AXIS2/aar/LBService1.aar (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:120)
at java.io.FileInputStream.init(FileInputStream.java:79)
at
org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.copyResourceToFileSystem(SampleAxis2Server.java:148)
at
org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.deployService(SampleAxis2Server.java:131)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:230)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
at org.testng.TestNG.run(TestNG.java:983)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

This *hasn't* affected the execution and the test results up to now. How
does this affect the build and how can I fix this if it is required?

-- 
Regards,

*Madhawa Bandara*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware

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


Re: [Dev] Exception when running ESB Test Suite for ESB Connectors Integration Tests

2014-04-10 Thread Krishantha Samaraweera
Hi,

Can you check whether the aar file exists at
/src/test/resources/artifacts/AXIS2/aar/LBService1.aar

If it is not, then copy it from ESB
4.8.1/modules/integration/tests/src/test/resources/artifacts/ESB

Thanks,
Krishantha.


On Thu, Apr 10, 2014 at 1:13 PM, Madhawa Bandara madh...@wso2.com wrote:

 Hi,
 I have written integration tests for an ESB Connector using ESB Test suit.
 When I run the tests I get an exception as follows:

 java.io.FileNotFoundException:
 /src/test/resources/artifacts/AXIS2/aar/LBService1.aar (No such file or
 directory)
  at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:120)
  at java.io.FileInputStream.init(FileInputStream.java:79)
 at
 org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.copyResourceToFileSystem(SampleAxis2Server.java:148)
  at
 org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.deployService(SampleAxis2Server.java:131)
  at
 org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:230)
 at
 org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
  at
 org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
 at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
  at org.testng.TestNG.run(TestNG.java:983)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
  at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

 This *hasn't* affected the execution and the test results up to now. How
 does this affect the build and how can I fix this if it is required?

 --
 Regards,

 *Madhawa Bandara*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+94777487726 %2B94777487726*
 Blog* - *classdeffound.blogspot.com

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




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


[Dev] Need all the available tenantIDs for BPS HumanTask Server

2014-04-10 Thread Thamayanthy Sripalan
Hi all,

In BPS humantask, all the runtime information about the HumanTaskStore is
managed by the org.wso2.carbon.humantask.core.store.HumanTaskStoreManager
class.

We can get the HumanTaskStore for a given tenant from HumanTaskStoreManager
by calling the method getHumanTaskStore(int tenantId).

In order to get all the deployed tasks or tasks information and if we want
to use the  HumanTaskStoreManager.getHumanTaskStore(int tenantId) method,
we need to have all the tenantIDs.

To get the tenantIDs we can query the HT_DEPLOYMENT_UNIT table. Are there
any other (better)ways to get all the tenantIDs? Or are there any other
ways to get all the deployed tasks?


Thanks in advance.

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


[Dev] Do we need this handler in AF registry.xml

2014-04-10 Thread Amila Maha Arachchi
AF team,

$Subject?

handler class=
org.wso2.carbon.appfactory.registry.handler.ReferenceHandler

  property name=systemVariablestage/property

filter class=
org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher

  property name=pattern/_system/governance/.*/property

/filter

   /handler


I hope we don't need those handlers now because we have separate registered
for the dev,test,prod environments.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

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


[Dev] WSO2 BAM 2.4.1 RC2 Released!

2014-04-10 Thread Dunith Dhanushka
Hi all,

BAM 2.4.1 RC2 distribution is available at
https://svn.wso2.org/repos/wso2/people/dunith/2.4.1-rc2/wso2bam-2.4.1.zip

Following are the bug fixes available with this release.

[BAM-1470 https://wso2.org/jira/browse/BAM-1470] - [intermittant]
exception is thrown when attempting to access an CEP execution planner in
BAM
[BAM-1480 https://wso2.org/jira/browse/BAM-1480] - [BAM] Report Add
feature allow to select Cassandra DBs, and when we select a Cassandra db,
NPE will print on stack trace.
[BAM-1490 https://wso2.org/jira/browse/BAM-1490] - [Intermittan]
Undeployment of toolbox not removing analytical script and throwing
exception
[BAM-1495 https://wso2.org/jira/browse/BAM-1495] - [BAM] Errors occurred
with HTTPD Log Toolbox
[BAM-1496 https://wso2.org/jira/browse/BAM-1496] - [BAM] Error occurred
while undeploying HTTPD Logs toolbox
[BAM-1505 https://wso2.org/jira/browse/BAM-1505] - [BAM] [DepSync]
[Intermittent] OperationTimeoutException occurred when adding a toolbox
[BAM-1508 https://wso2.org/jira/browse/BAM-1508] - [Dep Sync] Tool-box
deployment and Synchronization throwing exception
[BAM-1516 https://wso2.org/jira/browse/BAM-1516] - [Dep Sync] When a
Phone Retail sample toolbox deployed to node1 observed an exception in node2
[BAM-1521 https://wso2.org/jira/browse/BAM-1521] - [BAM] [Cassandra
Indexing] Cassandra indexing fails if we add the indexing for an already
existing Stream Definition
[BAM-1523 https://wso2.org/jira/browse/BAM-1523] - [Windows][Incremental
Analysis] Running the analytics script throwing exception
[BAM-1526 https://wso2.org/jira/browse/BAM-1526] - EVENT_INDEX_KS not
getting created when hive script executed without data published to BAM
[BAM-1529 https://wso2.org/jira/browse/BAM-1529] - [Gadget Server] Charts
not showing in KPI-Phone Brands  KPI User Summary tabs for KPI sample


Regards,

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


Re: [Dev] Do we need this handler in AF registry.xml

2014-04-10 Thread Janaka Ranabahu
Hi Amila,

We have removed these handlers from the configurations. Please refer the
following revision.







*Author: jan...@wso2.com jan...@wso2.com Date: Mon Nov 25 14:14:57
2013New Revision: 191671
URL: http://wso2.org/svn/browse/wso2?view=revrevision=191671
http://wso2.org/svn/browse/wso2?view=revrevision=191671 Log:Removing
unwanted handler and mount configuration*

Thanks,
Janaka


On Thu, Apr 10, 2014 at 1:51 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 AF team,

 $Subject?

 handler class=
 org.wso2.carbon.appfactory.registry.handler.ReferenceHandler

   property name=systemVariablestage/property

 filter class=
 org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher

   property name=pattern/_system/governance/.*/property

 /filter

/handler


 I hope we don't need those handlers now because we have separate
 registered for the dev,test,prod environments.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




-- 
*Janaka Ranabahu*
Senior Software Engineer; WSO2 Inc.; http://wso2.com


* E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861*

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


Re: [Dev] Do we need this handler in AF registry.xml

2014-04-10 Thread Amila Maha Arachchi
Thanks Janaka.


On Thu, Apr 10, 2014 at 2:42 PM, Janaka Ranabahu jan...@wso2.com wrote:

 Hi Amila,

 We have removed these handlers from the configurations. Please refer the
 following revision.







 *Author: jan...@wso2.com jan...@wso2.com Date: Mon Nov 25 14:14:57
 2013New Revision: 191671
 URL: http://wso2.org/svn/browse/wso2?view=revrevision=191671
 http://wso2.org/svn/browse/wso2?view=revrevision=191671 Log:Removing
 unwanted handler and mount configuration*

 Thanks,
 Janaka


 On Thu, Apr 10, 2014 at 1:51 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 AF team,

 $Subject?

 handler class=
 org.wso2.carbon.appfactory.registry.handler.ReferenceHandler

   property name=systemVariablestage/property

 filter class=
 org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher

   property name=pattern/_system/governance/.*/property

 /filter

/handler


 I hope we don't need those handlers now because we have separate
 registered for the dev,test,prod environments.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 *Janaka Ranabahu*
 Senior Software Engineer; WSO2 Inc.; http://wso2.com


 * E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861
 %2B94%20718370861*

 Lean . Enterprise . Middleware




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

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


Re: [Dev] Exception when running ESB Test Suite for ESB Connectors Integration Tests

2014-04-10 Thread Madhawa Bandara
Thanks.


On Thu, Apr 10, 2014 at 1:35 PM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi,

 Can you check whether the aar file exists at
 /src/test/resources/artifacts/AXIS2/aar/LBService1.aar

 If it is not, then copy it from ESB
 4.8.1/modules/integration/tests/src/test/resources/artifacts/ESB

 Thanks,
 Krishantha.


 On Thu, Apr 10, 2014 at 1:13 PM, Madhawa Bandara madh...@wso2.com wrote:

 Hi,
 I have written integration tests for an ESB Connector using ESB Test
 suit. When I run the tests I get an exception as follows:

 java.io.FileNotFoundException:
 /src/test/resources/artifacts/AXIS2/aar/LBService1.aar (No such file or
 directory)
  at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:120)
  at java.io.FileInputStream.init(FileInputStream.java:79)
 at
 org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.copyResourceToFileSystem(SampleAxis2Server.java:148)
  at
 org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.deployService(SampleAxis2Server.java:131)
  at
 org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:230)
 at
 org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
  at
 org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
 at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
  at org.testng.TestNG.run(TestNG.java:983)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
  at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

 This *hasn't* affected the execution and the test results up to now. How
 does this affect the build and how can I fix this if it is required?

 --
 Regards,

 *Madhawa Bandara*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+94777487726 %2B94777487726*
 Blog* - *classdeffound.blogspot.com

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




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




-- 
Regards,

*Madhawa Bandara*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware

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


[Dev] Unexpected behavior with Surefire plugin and TestNG

2014-04-10 Thread Nalin Chandraratne
Hi,

Is there a naming convention when writing the test classes, it has to be
ended with Test postfix, like XxxxXxxTest.java ?

I observed the following peculiar behavior when running test classes.

1. If the test package contain only one test class, it has to be named as
XxxxXxxTest.java

2. If the test package contains more than one test class *at least one of
them have to be* like XxxxXxxTest.java.

If neither of the above requirements are met, surefire plugin *will not
pick* the test classes. I came across this situation because my test class
was named as XxxxXxx*Tests*.java and it was not picked up by the surefire
plugin.

This is mentioned in the Surefire
documentationhttp://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
.

By default, the Surefire Plugin will automatically include all test
classes with the following wildcard patterns:

   - **/Test*.java - includes all of its subdirectories and all java
   filenames that start with Test.
   - **/*Test.java - includes all of its subdirectories and all java
   filenames that end with Test.
   - **/*TestCase.java - includes all of its subdirectories and all java
   filenames that end with TestCase.

But as we are using the TestNG with Surefire, we are suppose to have any
test class and point to it using testng.xml like below.

test name=Flickr-Connector-Test preserve-order=true verbose=2
classes
class
name=org.wso2.carbon.connector.integration.test.flickr.FlickrConnectorIntegrationTests/
/classes
/test

This is also not working unless we have the above naming conventions.



Is this a known behavior ? Any idea why this is happening ?

-- 
Nalin Chamara
Software Engineer
071-56-147-56
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry Integrity Violation Exception in Put Operation

2014-04-10 Thread Shashika Ubhayaratne
Similar issue observed on CEP and reported jira [1].

[1]: https://wso2.org/jira/browse/CEP-822
Shashika Ubhayaratne
Associate Technical Lead - QA
WSO2 Inc: http://www.wso2.com/
Mobile: +94773383831


On Thu, Apr 10, 2014 at 12:03 PM, Thayalan thaya...@wso2.com wrote:
 Hi Ajith,

 Sorry, I couldn't respond to you immediately as I haven't noticed this mail
 somehow. I've attached the conf files to JIRA now.

 Thanks,
 Thayalan


 On Tue, Apr 8, 2014 at 11:17 PM, Anjana Fernando anj...@wso2.com wrote:

 Thayalan, please do the needful.

 Cheers,
 Anjana.


 On Tue, Apr 8, 2014 at 9:16 PM, Ajith Vitharana aji...@wso2.com wrote:

 Please attach your configuration files (conf dir) to the JIRA.

 -Ajith




 On Tue, Apr 8, 2014 at 7:45 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 There is an issue reported for BAM here [1], where in a registry put
 operation, a MySQL integrity constraint violation exception is thrown, can
 someone from GREG team please look into it.

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

 Cheers,
 Anjana.
 --
 Anjana Fernando
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




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




 --
 Anjana Fernando
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




 --
 Regards,
 Thayalan Sivapaleswararajah
 Associate Technical Lead - QA
 Mob: +94(0)777872485
 Tel : +94(0)(11)2145345
 Fax : +94(0)(11)2145300
 Email: thaya...@wso2.com


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


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

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


[Dev] Removing Activation from org.wso2.carbon.tenant.common.server.feature

2014-04-10 Thread Vanjikumaran Sivajothy
During the run time of the ESB 4.9.0-SNAPSHOT, we got the below error stack.

[2014-04-09 17:06:56,018] ERROR - AxisEngine Failed to determine Activation
status.
org.apache.axis2.AxisFault: Failed to determine Activation status.
at
org.wso2.carbon.activation.module.ActivationHandler.invoke(ActivationHandler.java:102)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException: Tenant domain has not been set
in CarbonContext
at
org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:288)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:271)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:246)
at
org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:629)
at
org.wso2.carbon.stratos.common.util.CloudServicesUtil.isCloudServiceActive(CloudServicesUtil.java:155)
at
org.wso2.carbon.stratos.common.util.CloudServicesUtil.isCloudServiceActive(CloudServicesUtil.java:140)
*at
org.wso2.carbon.activation.module.ActivationHandler.invoke(ActivationHandler.java:93)*
... 10 more

After Some debugging session and analysis on the issue, We found
that org.wso2.carbon.tenant.activation is getting packed in
org.wso2.carbon.tenant.common.server.feature!!

Therefore, Please apply the patch that has been given in this email to
solve this issue.

Thank you in advance,

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

This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
diff --git 
a/features/tenant-mgt/org.wso2.carbon.tenant.common.server.feature/pom.xml 
b/features/tenant-mgt/org.wso2.carbon.tenant.common.server.feature/pom.xml
index 91fbbd3..b975013 100644
--- a/features/tenant-mgt/org.wso2.carbon.tenant.common.server.feature/pom.xml
+++ b/features/tenant-mgt/org.wso2.carbon.tenant.common.server.feature/pom.xml
@@ -166,7 +166,7 @@
 
bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.redirector.servlet/bundleDef
 
!--bundleDeforg.wso2.carbon:org.wso2.carbon.sample.installer:2.2.1/bundleDef--
 
bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.dispatcher/bundleDef
-
bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.activation/bundleDef
+
!--bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.activation/bundleDef--
 
!--bundleDeforg.wso2.carbon:org.wso2.carbon.throttling.agent/bundleDef--
 
!--bundleDeforg.wso2.carbon:org.wso2.carbon.throttling.agent.stub/bundleDef--
 
!--bundleDeforg.wso2.carbon:org.wso2.carbon.usage.agent/bundleDef--
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing Activation from org.wso2.carbon.tenant.common.server.feature

2014-04-10 Thread Vanjikumaran Sivajothy
After applying the patch we did not get the error

On Thursday, April 10, 2014, Vanjikumaran Sivajothy va...@wso2.com wrote:

 During the run time of the ESB 4.9.0-SNAPSHOT, we got the below error
 stack.

 [2014-04-09 17:06:56,018] ERROR - AxisEngine Failed to determine
 Activation status.
 org.apache.axis2.AxisFault: Failed to determine Activation status.
 at
 org.wso2.carbon.activation.module.ActivationHandler.invoke(ActivationHandler.java:102)
  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.NullPointerException: Tenant domain has not been set
 in CarbonContext
  at
 org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
  at
 org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:288)
 at
 org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:271)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:246)
  at
 org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:629)
 at
 org.wso2.carbon.stratos.common.util.CloudServicesUtil.isCloudServiceActive(CloudServicesUtil.java:155)
  at
 org.wso2.carbon.stratos.common.util.CloudServicesUtil.isCloudServiceActive(CloudServicesUtil.java:140)
  *at
 org.wso2.carbon.activation.module.ActivationHandler.invoke(ActivationHandler.java:93)*
  ... 10 more

 After Some debugging session and analysis on the issue, We found
 that org.wso2.carbon.tenant.activation is getting packed in
 org.wso2.carbon.tenant.common.server.feature!!

 Therefore, Please apply the patch that has been given in this email to
 solve this issue.

 Thank you in advance,

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

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



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


[Dev] Kernel commit to patch0006

2014-04-10 Thread Chamath Gunawardana
Hi Kernel team,

Please apply the patch attached to jira [1]. This fix is for
org.wso2.carbon.ui and org.wso2.carbon.utils.

[1] - https://wso2.org/jira/browse/IDENTITY-2138


-- 
Thanks,
Best Regards,
Chamath Gunawardana
Technical Lead; WSO2 Inc.
Mobile : +94776322240
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unexpected behavior with Surefire plugin and TestNG

2014-04-10 Thread Nuwan Wimalasekara
On Thu, Apr 10, 2014 at 2:57 PM, Nalin Chandraratne na...@wso2.com wrote:
Hi Nalin

 Hi,

 Is there a naming convention when writing the test classes, it has to be
 ended with Test postfix, like XxxxXxxTest.java ?

Yes. Usually we have a naming convention. Test class should be ended with 
TestCase like XxxTestCase.java


 I observed the following peculiar behavior when running test classes.

 1. If the test package contain only one test class, it has to be named as
 XxxxXxxTest.java

 2. If the test package contains more than one test class *at least one of
 them have to be* like XxxxXxxTest.java.

 If neither of the above requirements are met, surefire plugin *will not
 pick* the test classes. I came across this situation because my test
 class was named as XxxxXxx*Tests*.java and it was not picked up by the
 surefire plugin.

 This is mentioned in the Surefire 
 documentationhttp://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
 .

 By default, the Surefire Plugin will automatically include all test
 classes with the following wildcard patterns:

- **/Test*.java - includes all of its subdirectories and all 
 javafilenames that start with Test.
- **/*Test.java - includes all of its subdirectories and all 
 javafilenames that end with Test.
- **/*TestCase.java - includes all of its subdirectories and all 
 javafilenames that end with 
TestCase.

 But as we are using the TestNG with Surefire, we are suppose to have any
 test class and point to it using testng.xml like below.

 test name=Flickr-Connector-Test preserve-order=true verbose=2
 classes
 class name=org.wso2.carbon.connector.integration.test.flickr
 .FlickrConnectorIntegrationTests/
 /classes
 /test

 This is also not working unless we have the above naming conventions.



 Is this a known behavior ? Any idea why this is happening ?

Thanks for reporting this issue. I think this is an issue in surefire
plugging. Otherwise It should pick the test class since the test class name
is defined in testng.xml and the default configuration should be
 overridden(**/*Test.java).

Thanks,
Nuwanw


 --
 Nalin Chamara
 Software Engineer
 071-56-147-56

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




-- 
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] Delay observed when CEP server started with -Dsetup

2014-04-10 Thread Shashika Ubhayaratne
Hi,

Observed considerable amount of delay when starting CEP 310 RC packs
on fresh DB with -Dsetup.

[2014-04-10 17:35:20,681]  INFO - {StartupFinalizerServiceComponent}
WSO2 Carbon started in 169 sec
[2014-04-10 17:35:21,328]  INFO - {CarbonUIServiceComponent}  Mgt
Console URL  : https://10.100.0.33:9443/carbon/
^C[2014-04-10 17:36:30,835]  INFO - {CarbonServerManager}  Shutdown
hook triggered

Note:
* Same behavior doesn't occur in default pack with h2 DB.
* DB was pointed to local machine.
* This behavior does not observed on alpha packs. (April 4 nightly build)

Following additional INFO logs prints on RC packs startup
[2014-04-10 17:33:21,384]  INFO - {app:js}  Emitting event : tenantLoad
[2014-04-10 17:33:21,395]  INFO - {app:js}  Emitting event : tenantCreate
[2014-04-10 17:33:25,541]  INFO - {initialSites:js}  UES Portal URL :
http://localhost:9763/portal
[2014-04-10 17:33:52,841]  INFO - {app:js}  stacked-bar-chart 
Stacked Bar Chart
[2014-04-10 17:33:55,216]  INFO - {app:js}  horizontal-bar-chart 
Horizontal Bar Chart
[2014-04-10 17:33:57,728]  INFO - {app:js}  pie-chart  Pie Chart
[2014-04-10 17:34:01,039]  INFO - {app:js}  line-chart  Line Chart
[2014-04-10 17:34:04,130]  INFO - {app:js}  wso2-dev  WSO2 Dev
List Discussion
[2014-04-10 17:34:06,561]  INFO - {app:js}  wso2-jira  WSO2 Jira
[2014-04-10 17:34:09,880]  INFO - {app:js}  wso2-carbon-commits 
WSO2 Carbon Commits List Discussion
[2014-04-10 17:34:12,147]  INFO - {app:js}  wso2-carbon-dev  WSO2
Carbon Div List Discussion
[2014-04-10 17:34:15,457]  INFO - {app:js}  bubble-chart  Bubble Chart
[2014-04-10 17:34:18,010]  INFO - {app:js}  wso2-architecture 
WSO2 Architecture List Discussion
[2014-04-10 17:34:20,975]  INFO - {app:js}  bar-chart  Bar Chart
[2014-04-10 17:34:23,349]  INFO - {app:js}  stacked-line-chart 
Stacked Line Chart
[2014-04-10 17:34:26,387]  INFO - {app:js}  line-plus-bar-chart 
Line Plus Bar Chart

Full start-up log is attached with this mail.

Thanks,
Shashika



Shashika Ubhayaratne
Associate Technical Lead - QA
WSO2 Inc: http://www.wso2.com/
Mobile: +94773383831


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


Re: [Dev] rampart-core:jar:1.6.1-wso2v12-SNAPSHOT was not deployed into the online SNAPSHOT repository

2014-04-10 Thread Nuwan Wimalasekara
Hi
I am still getting the issue when building on clean repo. Shall we deploy
the jar into SNAPSHOT repo.

Thanks,
Nuwanw


On Tue, Apr 1, 2014 at 12:43 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 I guess the nexus has cleaned up the rampart snapshots via its cleanup
 period task. We might need to re-visit how the cleanup happens. We always
 need to keep the latest SNAPSHOTs.


 On Tue, Apr 1, 2014 at 8:44 AM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 I am getting below error when building the carbon-platform-integration[1]
 and the rampart-core jar file can not be found in the repository[2].

 Please deploy the rampart-core jar into the SNAPSHOT repository.

 [ERROR] Failed to execute goal on project org.wso2.carbon.automation.test
 .utils: Could not resolve dependencies for project org.wso2.carbon.
 automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT:
 Failure to find org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-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 -

 [1] https://github.com/wso2/carbon-platform-integration
 [2]
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart-core/


 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




 --

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






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


Re: [Dev] StackOverflow Error in deployment after Tenant Unloading / Loading

2014-04-10 Thread Kishanthan Thangarajah
This is probably due to there are some components/code-segments which are
not re-factored the CarbonContext from jaggery webapp deployment side. Can
we debug jaggery webapp deployer at #handleWebappDeployment method? Also
what is the jaggery version here? Is that version is CC re-factored?


On Thu, Apr 10, 2014 at 12:11 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 There is an issue reported for BAM here [1], in a scenario when tenant is
 unloaded and loaded again, and when a Jaggery web app deployment happens, a
 call to
 org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder()
 seems to be called recursively indefinitely, which causes a
 StacKOverflowError. Can someone from the Carbon Core team please look into
 it.

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

 Cheers,
 Anjana.
 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




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

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


[Dev] JDBC - Get Auto generated Keys

2014-04-10 Thread Prasad Tissera
When using H2 database getGeneratedKeys() simply returns a result-set with
generated keys. But it doesn't work with MySQL.

When using MySQL it is required to use Statement.RETURN_GENERATED_KEYS in
prepareStateement() to get generated keys. Otherwise it throws an
exception.

connection.prepareStatement(ApplicationMgtDBQueries.STORE_STEP_INFO,
Statement.RETURN_GENERATED_KEYS);

But when using Oracle that also doesn't works and it returns an empty
result set for getGeneratedKeys() method.

Using prepareStatement() as following was the only way that worked in both
MySQL, Oracle as well as in H2.

connection.prepareStatement(ApplicationMgtDBQueries.STORE_STEP_INFO, new
String[]{ID});

Just wondering whether this is the correct way to do it. Has anybody
experienced this before?

Related JIRA : https://wso2.org/jira/browse/IDENTITY-2140
  https://wso2.org/jira/browse/IDENTITY-2097

-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 MB - New UI to view Active/Inactive/Durable and Temp Subscriptions

2014-04-10 Thread Hasitha Hiranya
Hi,

There was a requirement bought out by a MB customer that they need to view *who
are the subscribers for queues and topics* at a given moment in the Broker.

At the Andes side all requirements to gather this information is available.
Most importantly, for MB cluster subscribers can come from any MB node. So
this view should have cluster wide information.

I am trying to implement this for MB 2.2.0.

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


[Dev] GSOC proposal for WSO2 deployment engine (GUI tool)

2014-04-10 Thread Gayatri SN
Hi all,

I have submitted a Google Summer of Code(GSoC 2014) proposal. This is the
link to it:
http://www.google-melange.com/gsoc/proposal/review/student/google/gsoc2014/gayatri2709/5629499534213120


I have been working on this proposal and as Mr.Gajasinghe had suggested,
here are some of my findings:
1. I have been trying out different front-end options and using Bootstrap
with jQuery seems to be the best choice due to it's wide usage and
simplicity of code.
2. Using bootstrap will be beneficial because it will provide responsive
front-end design.
3. Trying my code on small screen devices like cell phones and tablets, the
drag and drop area seems insufficient, so for them we can also provide an
alternate menu based GUI for ease-of-use.

In my proposal, have mentioned some features like image export that can be
added this GUI tool, and currently working on their jQuery implementation.

I would like to have some suggestions for any more features you would want
me to implement, so that we can give the users the best GUI experience.

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


Re: [Dev] WSO2 MB - New UI to view Active/Inactive/Durable and Temp Subscriptions

2014-04-10 Thread Hasitha Hiranya
Miyuru and I had a look how other broker vendors like Active MQ is
providing this feature.
We found that it has active and inactive subscriptions for durable topics
were shown separately.

I was trying to impalement a similar onefor MB, but with cluster concept
embedded.


On Thu, Apr 10, 2014 at 10:46 PM, Hasitha Hiranya hasit...@wso2.com wrote:

 Hi,

 There was a requirement bought out by a MB customer that they need to view 
 *who
 are the subscribers for queues and topics* at a given moment in the
 Broker.

 At the Andes side all requirements to gather this information is
 available.
 Most importantly, for MB cluster subscribers can come from any MB node. So
 this view should have cluster wide information.

 I am trying to implement this for MB 2.2.0.

 Thanks.
 --
 *Hasitha Abeykoon*
 Software Engineer; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com




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


Re: [Dev] WSO2 MB - New UI to view Active/Inactive/Durable and Temp Subscriptions

2014-04-10 Thread Hasitha Hiranya
Finally, following is the UI developed to show subscribers for queues.
Message count means message count for particular queue the subscription is
made.

[image: Inline image 1]


On Thu, Apr 10, 2014 at 10:57 PM, Hasitha Hiranya hasit...@wso2.com wrote:

 Miyuru and I had a look how other broker vendors like Active MQ is
 providing this feature.
 We found that it has active and inactive subscriptions for durable topics
 were shown separately.

 I was trying to impalement a similar onefor MB, but with cluster concept
 embedded.


 On Thu, Apr 10, 2014 at 10:46 PM, Hasitha Hiranya hasit...@wso2.comwrote:

 Hi,

 There was a requirement bought out by a MB customer that they need to
 view *who are the subscribers for queues and topics* at a given moment
 in the Broker.

 At the Andes side all requirements to gather this information is
 available.
 Most importantly, for MB cluster subscribers can come from any MB node.
 So this view should have cluster wide information.

 I am trying to implement this for MB 2.2.0.

 Thanks.
 --
 *Hasitha Abeykoon*
 Software Engineer; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com




 --
 *Hasitha Abeykoon*
 Software Engineer; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com




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


Re: [Dev] Registry Integrity Violation Exception in Put Operation

2014-04-10 Thread Anjana Fernando
Hi guys,

There is a registry deadlock issue also being reported [1], please check on
that too.

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

Cheers,
Anjana.


On Tue, Apr 8, 2014 at 7:45 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 There is an issue reported for BAM here [1], where in a registry put
 operation, a MySQL integrity constraint violation exception is thrown, can
 someone from GREG team please look into it.

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

 Cheers,
 Anjana.
 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
*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] Kernel commit to patch0006

2014-04-10 Thread Manoj Kumara
HI Chamath,

I have put a comment on the ticket about slight modification about the
patch. Please update with latest diff

Thanks,
Manoj


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


On Thu, Apr 10, 2014 at 5:19 PM, Chamath Gunawardana chama...@wso2.comwrote:

 Hi Kernel team,

 Please apply the patch attached to jira [1]. This fix is for
 org.wso2.carbon.ui and org.wso2.carbon.utils.

 [1] - https://wso2.org/jira/browse/IDENTITY-2138


 --
 Thanks,
 Best Regards,
 Chamath Gunawardana
 Technical Lead; WSO2 Inc.
 Mobile : +94776322240

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


[Dev] [DSS]Can JWT handler for DSS be included in the Platform?

2014-04-10 Thread Shani Ranasinghe
Hi,

Please find an axis2 handler I have written for DSS, which is capable of
extracting the JWT token and performing operations based on it. DSS
currently does not have an inbuilt support to handle JWT tokens. For now, I
have only done this for user name extraction. I have a method which
extracts the user name from the JWT token and adds it to the message
context.

The reason for this is to enable security , with user name token, and in a
case that we send a JWT token and expect underlying services from APIM
onwards to be trusted, we need to make use of this JWT token and carry on
the rest of the operations.

The reason for the inception of this process is that, I needed a way to
extract the JWT user name and use it for DSS security and thereby use the
content filtering capability of DSS.

I have attached the axis2 handler, and as per Anjana's suggestion, could we
add this to the platform and have this commented by default in axi2.xml ?

Please let me know if there are any improvement points that I could use for
this piece of code.

-- 
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
package org.wso2;
import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

import org.apache.axis2.AxisFault;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.description.AxisOperation;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.dispatchers.AddressingBasedDispatcher;

/**
 * This handler is capable of taking in the JWT token from the header and extracting out the dialect 
 * and it's claims.
 *
 */
public class JWTHandler extends AddressingBasedDispatcher {
	
	@Override
	public AxisOperation findOperation(AxisService service,
			MessageContext messageContext) throws AxisFault {
		// TODO Auto-generated method stub
		return super.findOperation(service, messageContext);
	}

	@Override
	public AxisService findService(MessageContext messageContext)
			throws AxisFault {
		// TODO Auto-generated method stub
		return super.findService(messageContext);
	}

	@Override
	public void initDispatcher() {
		// TODO Auto-generated method stub
		super.initDispatcher();
	}

	private static final String HTTP_SERVLET_REQUEST = transport.http.servletRequest;
	private static final String JWT_TOKEN_HEADER_NAME = X-JWT-Assertion;
	private static final String UTF_8_ENCODING = UTF-8;
	private static final String ENDUSER_CLAIM = http://wso2.org/claims/enduser;;
	//This is the string constant that separates the claim from the value.
	private static final String CLAIM_VALUE_SEPARATOR = \:\;
	private static final String ESCAPED_DOUBLE_QUOTATION = \;
	private static final String USERNAME = username;


	public InvocationResponse invoke(MessageContext arg0) throws AxisFault {
		try {
			extractUsernameFromJWT(arg0);
		} catch (UnsupportedEncodingException e) {
			throw new AxisFault(Encoding exception occured while encoding the decoded JWT  +
	using  + UTF_8_ENCODING, e);
		}
return InvocationResponse.CONTINUE;
  }

/**
 * This method gets the JWT token from the transport header, and extracts the user name from the JWT and 
 * sets it to the message context.	
 * Example Usage - is to enable user name token security in DSS and use the JWT token sent from APIM to 
 * get the roles of the user in order to utilize the content filtering feature of DSS.
 * @param msgContext
 */
private void extractUsernameFromJWT(MessageContext msgContext) throws UnsupportedEncodingException{
	
HttpServletRequest obj = (HttpServletRequest)msgContext .
 getProperty(HTTP_SERVLET_REQUEST);
	if (obj != null) {
		   //Get the JWT token from the header.
		String jwt = obj.getHeader(JWT_TOKEN_HEADER_NAME);
			if(jwt != null){

String jwtToken = null;
try {
	//Decode the JWT token. 
	jwtToken =  new String(org.apache.axiom.om.util.Base64.decode(jwt), UTF_8_ENCODING);
	if(jwtToken != null)
	{
		//Extract the end user claim. 
		String[] tempStr4 = jwtToken.split(ENDUSER_CLAIM + CLAIM_VALUE_SEPARATOR); 
		String[] decoded = tempStr4[1].split(ESCAPED_DOUBLE_QUOTATION);
		//Set username to message context.
		msgContext.setProperty(USERNAME, decoded[0]);
		System.out.println(Successfully set);
	}

} catch (UnsupportedEncodingException e) {
	throw e;
}
			}
		}
	}
}
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS]Can JWT handler for DSS be included in the Platform?

2014-04-10 Thread Shani Ranasinghe
Hi,

Please use this file for your reference and ignore the previous. Sorry for
the inconvenience.


On Thu, Apr 10, 2014 at 1:12 PM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi,

 Please find an axis2 handler I have written for DSS, which is capable of
 extracting the JWT token and performing operations based on it. DSS
 currently does not have an inbuilt support to handle JWT tokens. For now, I
 have only done this for user name extraction. I have a method which
 extracts the user name from the JWT token and adds it to the message
 context.

 The reason for this is to enable security , with user name token, and in a
 case that we send a JWT token and expect underlying services from APIM
 onwards to be trusted, we need to make use of this JWT token and carry on
 the rest of the operations.

 The reason for the inception of this process is that, I needed a way to
 extract the JWT user name and use it for DSS security and thereby use the
 content filtering capability of DSS.

 I have attached the axis2 handler, and as per Anjana's suggestion, could
 we add this to the platform and have this commented by default in axi2.xml ?

 Please let me know if there are any improvement points that I could use
 for this piece of code.

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




-- 
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
package org.wso2;
import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

import org.apache.axis2.AxisFault;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.description.AxisOperation;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.dispatchers.AddressingBasedDispatcher;

/**
 * This handler is capable of taking in the JWT token from the header and extracting out the dialect 
 * and it's claims.
 *
 */
public class JWTHandler extends AddressingBasedDispatcher {
	
	@Override
	public AxisOperation findOperation(AxisService service,
			MessageContext messageContext) throws AxisFault {
		// TODO Auto-generated method stub
		return super.findOperation(service, messageContext);
	}

	@Override
	public AxisService findService(MessageContext messageContext)
			throws AxisFault {
		// TODO Auto-generated method stub
		return super.findService(messageContext);
	}

	@Override
	public void initDispatcher() {
		// TODO Auto-generated method stub
		super.initDispatcher();
	}

	private static final String HTTP_SERVLET_REQUEST = transport.http.servletRequest;
	private static final String JWT_TOKEN_HEADER_NAME = X-JWT-Assertion;
	private static final String UTF_8_ENCODING = UTF-8;
	private static final String ENDUSER_CLAIM = http://wso2.org/claims/enduser;;
	//This is the string constant that separates the claim from the value.
	private static final String CLAIM_VALUE_SEPARATOR = \:\;
	private static final String ESCAPED_DOUBLE_QUOTATION = \;
	private static final String USERNAME = username;


	public InvocationResponse invoke(MessageContext arg0) throws AxisFault {
		try {
			extractUsernameFromJWT(arg0);
		} catch (UnsupportedEncodingException e) {
			throw new AxisFault(Encoding exception occured while encoding the decoded JWT  +
	using  + UTF_8_ENCODING, e);
		}
return InvocationResponse.CONTINUE;
  }

/**
 * This method gets the JWT token from the transport header, and extracts the user name from the JWT and 
 * sets it to the message context.	
 * Example Usage - is to enable user name token security in DSS and use the JWT token sent from APIM to 
 * get the roles of the user in order to utilize the content filtering feature of DSS.
 * @param msgContext
 */
private void extractUsernameFromJWT(MessageContext msgContext) throws UnsupportedEncodingException{
	
HttpServletRequest obj = (HttpServletRequest)msgContext .
 getProperty(HTTP_SERVLET_REQUEST);
	if (obj != null) {
		   //Get the JWT token from the header.
		String jwt = obj.getHeader(JWT_TOKEN_HEADER_NAME);
			if(jwt != null){

String jwtToken = null;
try {
	//Decode the JWT token. 
	jwtToken =  new String(org.apache.axiom.om.util.Base64.decode(jwt), UTF_8_ENCODING);
	if(jwtToken != null)
	{
		//Extract the end user claim. 
		String[] tempStr4 = jwtToken.split(ENDUSER_CLAIM + CLAIM_VALUE_SEPARATOR); 
		String[] decoded = tempStr4[1].split(ESCAPED_DOUBLE_QUOTATION);
		//Set username to message context.
		msgContext.setProperty(USERNAME, decoded[0]);
		System.out.println(Successfully set);
	}

} catch (UnsupportedEncodingException e) {
	throw e;
}
			}
		}
	}
}
___
Dev mailing list
Dev@wso2.org

[Dev] Configure with ActiveMQ 5.8.0 and above

2014-04-10 Thread Dakshika Jayathilaka
On step 03 its mentioned  to Copy the following client libraries from
AMQ_HOME/lib
directory to ESB_HOME/repository/components/lib directory.

*ActiveMQ 5.8.0 and above *

   - activemq-broker-5.8.0.jar
   - activemq-client-5.8.0.jar
   - geronimo-jms_1.1_spec-1.1.1.jar


but some samples will not work without having

   -

   geronimo-j2ee-management_1.0_spec-1.0.jar


Ex: sample 250
(
https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
)

please be kind enough to review and update.

Thank you.

-- 
*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] issue when running remote server

2014-04-10 Thread Shashika Ubhayaratne
Yes it was the issue.. I had to increase sql max no of connections and
restart sql to overcome this issue.
Please follow same and re-try

Shashika
Shashika Ubhayaratne
Associate Technical Lead - QA
WSO2 Inc: http://www.wso2.com/
Mobile: +94773383831


On Thu, Apr 10, 2014 at 9:29 PM, Shavantha Weerasinghe
shavan...@wso2.com wrote:
 Hi Guys

 Got this error when starting the RC2 on a remote server.

 @Shashika : was this one issue you got today

 Regards
 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300

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


Re: [Dev] [DSS]Can JWT handler for DSS be included in the Platform?

2014-04-10 Thread Anjana Fernando
@Sumedha, do we have any similar functionality at the moment with any APIM
integration efforts to other products? ..

Cheers,
Anjana.


On Fri, Apr 11, 2014 at 1:45 AM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi,

 Please use this file for your reference and ignore the previous. Sorry for
 the inconvenience.


 On Thu, Apr 10, 2014 at 1:12 PM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi,

 Please find an axis2 handler I have written for DSS, which is capable of
 extracting the JWT token and performing operations based on it. DSS
 currently does not have an inbuilt support to handle JWT tokens. For now, I
 have only done this for user name extraction. I have a method which
 extracts the user name from the JWT token and adds it to the message
 context.

 The reason for this is to enable security , with user name token, and in
 a case that we send a JWT token and expect underlying services from APIM
 onwards to be trusted, we need to make use of this JWT token and carry on
 the rest of the operations.

 The reason for the inception of this process is that, I needed a way to
 extract the JWT user name and use it for DSS security and thereby use the
 content filtering capability of DSS.

 I have attached the axis2 handler, and as per Anjana's suggestion, could
 we add this to the platform and have this commented by default in axi2.xml ?

 Please let me know if there are any improvement points that I could use
 for this piece of code.

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




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




-- 
*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 chunk-09 - identity module

2014-04-10 Thread Dinusha Senanayaka
Could you fix this too?

[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR]
/home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.application.authentication.framework/4.2.2/src/main/java/org/wso2/carbon/identity/application/authentication/framework/config/builder/UIBasedConfigurationBuilder.java:[109,40]
cannot find symbol
symbol  : method getIdentityProvideName()
location: class
org.wso2.carbon.identity.application.mgt.dto.FederatedIdentityProvider

Regards,
Dinusha.



On Thu, Apr 10, 2014 at 11:57 AM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Thanks Thanuja. will check.

 Regards,
 Dinusha.


 On Thu, Apr 10, 2014 at 11:51 AM, Thanuja Jayasinghe than...@wso2.comwrote:

 Hi Dinusha,

 Fixed with r19.


 Thanks


 On Thu, Apr 10, 2014 at 10:06 AM, Darshana Gunawardana darsh...@wso2.com
  wrote:

 Hi Dinusha,

 We are looking into this..

 Thanks,


 On Thu, Apr 10, 2014 at 6:50 AM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Hi,

 Getting following compilation error while building
 org.wso2.carbon.identity.tools.saml.validator module. Revision 199976.
 Stubs are up to date. Can IS team have a look ?


 [INFO] Compiling 7 source files to
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/src/main/java/org/wso2/carbon/identity/tools/saml/validator/processors/SAMLResponseBuilder.java:[149,27]
 getClaimValue(org.wso2.carbon.identity.sso.saml.dto.SAMLSSOAuthnReqDTO,java.lang.String)
 in org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil cannot be applied to
 (java.lang.String,java.lang.String)
 [ERROR]
 /home/dinusha/wso2_products/turing/components/identity/org.wso2.carbon.identity.tools.saml.validator/4.2.0/src/main/java/org/wso2/carbon/identity/tools/saml/validator/processors/SAMLResponseBuilder.java:[264,24]
 getUserClaimValues(org.wso2.carbon.identity.sso.saml.dto.SAMLSSOAuthnReqDTO,java.lang.String[],java.lang.String)
 in org.wso2.carbon.identity.sso.saml.builders.claims.ClaimsRetriever cannot
 be applied to (java.lang.String,java.lang.String[],nulltype)


 Regards,
 Dinusha.

 --
 Dinusha Dilrukshi
 Senior Software Engineer
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/




 --
 Regards,


 *Darshana Gunawardana *Software Engineer
 WSO2 Inc.; http://wso2.com

 * E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859 *Lean . Enterprise . Middleware

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




 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891




 --
 Dinusha Dilrukshi
 Senior Software Engineer
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/




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


Re: [Dev] Configure with ActiveMQ 5.8.0 and above

2014-04-10 Thread Chanaka Fernando
Hi Dakshika,

In the above documentation, it is mentioned that you need to copy the
geronimo-j2ee-management_1.0_spec-1.0.jar
as well.


You will now need to configure the Axis2 instance used by ESB (not the
sample Axis2 server) to enable JMS support using the above provider. Refer
to the Axis2 documentation on setting up JMS for more details (
http://ws.apache.org/axis2/1_1/jms-transport.html). You must also copy
activemq-core-5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar, and
geronimo-jms_1.1_spec-1.1.1.jar from ActiveMQ_HOME/lib to
ESB_HOME/repository/components/lib to allow the ESB to connect to the JMS
provider.


Thanks,
Chanaka


On Fri, Apr 11, 2014 at 6:28 AM, Dakshika Jayathilaka daksh...@wso2.comwrote:

 On step 03 its mentioned  to Copy the following client libraries from 
 AMQ_HOME/lib
 directory to ESB_HOME/repository/components/lib directory.

 *ActiveMQ 5.8.0 and above *

- activemq-broker-5.8.0.jar
- activemq-client-5.8.0.jar
- geronimo-jms_1.1_spec-1.1.1.jar


 but some samples will not work without having

-

geronimo-j2ee-management_1.0_spec-1.0.jar


 Ex: sample 250
 (
 https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
 )

 please be kind enough to review and update.

 Thank you.

 --
 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

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




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


Re: [Dev] GSOC proposal for WSO2 deployment engine (GUI tool)

2014-04-10 Thread Thilina Piyasundara
Hi Gayatri,

IMO you don't need to spend time on testing the UI on IE and Opera (and
even safari). Because,
1. Its a UI for a system which is going to use by specific people.
​2. We can force the user to use a specific browser and a version ​to get
the maximum out of it.
​3. You need to manage time.

So do development and testing on *latest and stable* firefox and chrome web
browsers.​

​No need to test on mobile devices like mobile phones but need to work on
an iPad (or similar device
with resolution from 1024x786 to up).
​
​We can add features if we have ​time.

Thanks and regards,

Thilina Piyasundara
Systems Engineer
​
​ (DevOps)
M: 071-775-0006
​
​
Blog: blog.thilina.org

WSO2, Inc.
​
​ http://wso2.com/
lean . enterprise . middleware


On Thu, Apr 10, 2014 at 10:55 PM, Gayatri SN sacredlight2...@gmail.comwrote:

 Hi all,

 I have submitted a Google Summer of Code(GSoC 2014) proposal. This is the
 link to it:
 http://www.google-melange.com/gsoc/proposal/review/student/google/gsoc2014/gayatri2709/5629499534213120


 I have been working on this proposal and as Mr.Gajasinghe had suggested,
 here are some of my findings:
 1. I have been trying out different front-end options and using Bootstrap
 with jQuery seems to be the best choice due to it's wide usage and
 simplicity of code.
 2. Using bootstrap will be beneficial because it will provide responsive
 front-end design.
 3. Trying my code on small screen devices like cell phones and tablets,
 the drag and drop area seems insufficient, so for them we can also provide
 an alternate menu based GUI for ease-of-use.

 In my proposal, have mentioned some features like image export that can be
 added this GUI tool, and currently working on their jQuery implementation.

 I would like to have some suggestions for any more features you would want
 me to implement, so that we can give the users the best GUI experience.

 Regards,
 Gayatri Nesarikar

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


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


Re: [Dev] Configure with ActiveMQ 5.8.0 and above

2014-04-10 Thread Dakshika Jayathilaka
Thanks for the update.. but documentation mentioned that we need to copy
that for *Earlier version of ActiveMQ.*

https://docs.wso2.org/display/ESB481/Configure+with+ActiveMQ


On Fri, Apr 11, 2014 at 10:03 AM, Chanaka Fernando chana...@wso2.comwrote:

 Hi Dakshika,

 In the above documentation, it is mentioned that you need to copy the 
 geronimo-j2ee-management_1.0_spec-1.0.jar
 as well.


 You will now need to configure the Axis2 instance used by ESB (not the
 sample Axis2 server) to enable JMS support using the above provider. Refer
 to the Axis2 documentation on setting up JMS for more details (
 http://ws.apache.org/axis2/1_1/jms-transport.html). You must also copy
 activemq-core-5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar, and
 geronimo-jms_1.1_spec-1.1.1.jar from ActiveMQ_HOME/lib to
 ESB_HOME/repository/components/lib to allow the ESB to connect to the
 JMS provider.


 Thanks,
 Chanaka


 On Fri, Apr 11, 2014 at 6:28 AM, Dakshika Jayathilaka 
 daksh...@wso2.comwrote:

 On step 03 its mentioned  to Copy the following client libraries from 
 AMQ_HOME/lib
 directory to ESB_HOME/repository/components/lib directory.

 *ActiveMQ 5.8.0 and above *

- activemq-broker-5.8.0.jar
- activemq-client-5.8.0.jar
- geronimo-jms_1.1_spec-1.1.1.jar


 but some samples will not work without having

-

geronimo-j2ee-management_1.0_spec-1.0.jar


 Ex: sample 250
 (
 https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
 )

 please be kind enough to review and update.

 Thank you.

 --
 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

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




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






-- 
*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configure with ActiveMQ 5.8.0 and above

2014-04-10 Thread Chanaka Fernando
I was referring the sample documentation [1]. There it says

[1] (
https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
)

What you have pointed out [2] needs to be corrected.

https://docs.wso2.org/display/ESB481/Configure+with+ActiveMQ


Adding Rukshani.



On Fri, Apr 11, 2014 at 10:12 AM, Dakshika Jayathilaka daksh...@wso2.comwrote:

 Thanks for the update.. but documentation mentioned that we need to copy
 that for *Earlier version of ActiveMQ.*

 https://docs.wso2.org/display/ESB481/Configure+with+ActiveMQ


 On Fri, Apr 11, 2014 at 10:03 AM, Chanaka Fernando chana...@wso2.comwrote:

 Hi Dakshika,

 In the above documentation, it is mentioned that you need to copy the 
 geronimo-j2ee-management_1.0_spec-1.0.jar
 as well.


 You will now need to configure the Axis2 instance used by ESB (not the
 sample Axis2 server) to enable JMS support using the above provider. Refer
 to the Axis2 documentation on setting up JMS for more details (
 http://ws.apache.org/axis2/1_1/jms-transport.html). You must also copy
 activemq-core-5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar, and
 geronimo-jms_1.1_spec-1.1.1.jar from ActiveMQ_HOME/lib to
 ESB_HOME/repository/components/lib to allow the ESB to connect to the
 JMS provider.


 Thanks,
 Chanaka


 On Fri, Apr 11, 2014 at 6:28 AM, Dakshika Jayathilaka 
 daksh...@wso2.comwrote:

 On step 03 its mentioned  to Copy the following client libraries from 
 AMQ_HOME/lib
 directory to ESB_HOME/repository/components/lib directory.

 *ActiveMQ 5.8.0 and above *

- activemq-broker-5.8.0.jar
- activemq-client-5.8.0.jar
- geronimo-jms_1.1_spec-1.1.1.jar


 but some samples will not work without having

-

geronimo-j2ee-management_1.0_spec-1.0.jar


 Ex: sample 250
 (
 https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
 )

 please be kind enough to review and update.

 Thank you.

 --
 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

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




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






 --
 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911




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