[Dev] Improving Data Publisher Mediator to replace BAM Mediator

2013-06-12 Thread Sriskandarajah Suhothayan
Currently there are lots of usability issues with BAM mediator, hence as an
alternative we came up with the Data Publisher Mediator[1] as part of a
client engagement.

Data Publisher Mediator uses LoadBalancingDataPublisher to send events to
BAM/CEP endpoints and it also supports XML configuration.

The only drawback is that the Data Publisher Mediator doesn’t have a UI. I
believe writing a UI to this mediator will enhance data publishing and
solve the current usability issues that we are facing now.

A sample XML configuration is as follows


tcp://localhost:7612

ssl://localhost:7712
admin
admin
AllLocationEvents
1.6.4












http://schemas.google.com/latitude/2010"/>




Regards
Suho

[1]https://svn.wso2.org/repos/wso2/people/suho/data-publisher-mediator

-- 
*S. Suhothayan
*
Associate Technical Lead,
Management Committee Member, Data Technologies Team,
 *WSO2 Inc. *http://wso2.com *
 *
lean . enterprise . middleware

*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan | linked-in:
http://lk.linkedin.com/in/suhothayan*
*
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ELB is not there in the trunk

2013-06-12 Thread Afkham Azeez
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/

Where is the ELB? I want to test it with the new clustering implementation.

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we configure additional SSL configurations in NIOSSL Listener/Sender

2013-06-12 Thread Jeewantha Dharmaparakrama
Hi Asela,

We can add new configurations to it. I guess this answers your question.

See how the parameters "HostNameVerifier" and
"CertificateRevocationVerifire" are used in[1]

final Parameter hvp = transportOut.getParameter("HostnameVerifier");
final String hvs = hvp != null ? hvp.getValue().toString() : null;
final Parameter cvp =
transportOut.getParameter("CertificateRevocationVerifier");
final String cvs = cvp != null ? cvp.getValue().toString() : null;

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/dependencies/synapse/2.1.1-wso2v6/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/config/ClientConnFactoryBuilder.java

Jeewantha


On Wed, Jun 12, 2013 at 7:42 PM, Asela Pathberiya  wrote:

>
> Hi All,
>
> According to the NIOSSL listener/sender configuration in axis2.xml, we are
> supporting some parameters to configure. Are  these only configurations
> that are supported by implementations?  Or  Can not we add new
> configurations to it?  (such as "sslProtocol" that is supported by tomcat
> config)
>
> --
> Thanks & Regards,
> Asela
>
> Mobile : +94 777 625 933
>



-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test Failures in User core in kernel

2013-06-12 Thread Pulasthi Supun
Hi Eranda,

Yes these errors are in the trunk.

Regards,
Pulasthi


On Thu, Jun 13, 2013 at 10:06 AM, Eranda Sooriyabandara wrote:

> Hi Guys,
> Is this on trunk?
>
> thanks
> Eranda
>
>
> On Thu, Jun 13, 2013 at 10:02 AM, Pulasthi Supun wrote:
>
>> Hi,
>>
>> Im also getting the same errors when building the user core i took a up
>> just now and working on revision 174753.
>>
>> Tests in error:
>>   testTenantManager(org.wso2.carbon.user.core.tenant.TestTenantManager)
>>
>> testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)
>>
>> testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
>> Could not initialize class
>> org.wso2.carbon.user.core.authorization.AuthorizationCache
>>
>> testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>   testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType
>> class java.lang.reflect.InvocationTargetException
>>
>> testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
>> Could not initialize class
>> org.wso2.carbon.user.core.authorization.AuthorizationCache
>>   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>   testStuff(org.wso2.carbon.user.core.jdbc.PermissionTest): nullType
>> class java.lang.reflect.InvocationTargetException
>>
>> testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>
>> Regards,
>> Pulasthi
>>
>>
>> On Wed, Jun 12, 2013 at 4:20 PM, Shelan Perera  wrote:
>>
>>> Hi,
>>>
>>> I am in the 174710 and updated today as well. But i am still getting the
>>> errors. Should be a local one to me.
>>> Will build on a clean repo.
>>>
>>> Thanks
>>>
>>>
>>> On Wed, Jun 12, 2013 at 4:10 PM, Chamath Gunawardana 
>>> wrote:
>>>
 sorry. here its -

 http://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/src/test/resources

 Thanks,


 On Wed, Jun 12, 2013 at 4:01 PM, Shelan Perera  wrote:

> Hi,
>
> Is you location correct ? Could you please give me the svn link? It
> seems it is not there.
>
> https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/
>
> thanks
>
>
> On Wed, Jun 12, 2013 at 3:50 PM, Chamath Gunawardana <
> chama...@wso2.com> wrote:
>
>> Hi Shelan,
>>
>> Seems its success for me.
>> Is your h2 db in [1] got updated to latest?
>>
>> [1] -
>> carbon/kernel/trunk/core/org.wso2.carbon.user.core/repository/database/WSO2CARBON_DB.h2.db
>>
>> Thanks,
>>
>>
>> On Wed, Jun 12, 2013 at 3:30 PM, Shelan Perera wrote:
>>
>>> Hi,
>>>
>>> I am getting the following when run with tests.
>>>
>>> ---
>>>  T E S T S
>>> ---
>>> Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
>>> log4j:WARN No appenders could be found for logger
>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>> log4j:WARN Please initialize the log4j system properly.
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 1.457 sec
>>> Running org.wso2.carbon.user.core.claim.ClaimDAOTest
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 0.753 sec
>>> Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03
>>> sec <<< FAILURE!
>>> Running
>>> org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
>>> 0.001 sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 1.039 sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 0.905 sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
>>> 0.869 sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 0.783 sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.PermissionTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 1.317 sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
>>> Tests

Re: [Dev] Test Failures in User core in kernel

2013-06-12 Thread Eranda Sooriyabandara
Hi Guys,
Is this on trunk?

thanks
Eranda


On Thu, Jun 13, 2013 at 10:02 AM, Pulasthi Supun  wrote:

> Hi,
>
> Im also getting the same errors when building the user core i took a up
> just now and working on revision 174753.
>
> Tests in error:
>   testTenantManager(org.wso2.carbon.user.core.tenant.TestTenantManager)
>
> testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)
>
> testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
> Could not initialize class
> org.wso2.carbon.user.core.authorization.AuthorizationCache
>   testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
> nullType class java.lang.reflect.InvocationTargetException
>   testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest):
> nullType class java.lang.reflect.InvocationTargetException
>   testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType class
> java.lang.reflect.InvocationTargetException
>
> testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
> Could not initialize class
> org.wso2.carbon.user.core.authorization.AuthorizationCache
>   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest):
> nullType class java.lang.reflect.InvocationTargetException
>   testStuff(org.wso2.carbon.user.core.jdbc.PermissionTest): nullType class
> java.lang.reflect.InvocationTargetException
>   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
> nullType class java.lang.reflect.InvocationTargetException
>
> Regards,
> Pulasthi
>
>
> On Wed, Jun 12, 2013 at 4:20 PM, Shelan Perera  wrote:
>
>> Hi,
>>
>> I am in the 174710 and updated today as well. But i am still getting the
>> errors. Should be a local one to me.
>> Will build on a clean repo.
>>
>> Thanks
>>
>>
>> On Wed, Jun 12, 2013 at 4:10 PM, Chamath Gunawardana 
>> wrote:
>>
>>> sorry. here its -
>>>
>>> http://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/src/test/resources
>>>
>>> Thanks,
>>>
>>>
>>> On Wed, Jun 12, 2013 at 4:01 PM, Shelan Perera  wrote:
>>>
 Hi,

 Is you location correct ? Could you please give me the svn link? It
 seems it is not there.

 https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/

 thanks


 On Wed, Jun 12, 2013 at 3:50 PM, Chamath Gunawardana >>> > wrote:

> Hi Shelan,
>
> Seems its success for me.
> Is your h2 db in [1] got updated to latest?
>
> [1] -
> carbon/kernel/trunk/core/org.wso2.carbon.user.core/repository/database/WSO2CARBON_DB.h2.db
>
> Thanks,
>
>
> On Wed, Jun 12, 2013 at 3:30 PM, Shelan Perera wrote:
>
>> Hi,
>>
>> I am getting the following when run with tests.
>>
>> ---
>>  T E S T S
>> ---
>> Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
>> log4j:WARN No appenders could be found for logger
>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>> log4j:WARN Please initialize the log4j system properly.
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.457
>> sec
>> Running org.wso2.carbon.user.core.claim.ClaimDAOTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753
>> sec
>> Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.039
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.905
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.783
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.PermissionTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.317
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011
>> sec
>> Running org.wso2.carbon.user.core.tenant.TestTenantManager
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719
>> sec <<< FAILURE!
>> Running org.wso2.carbon.user.core.config.TestRea

Re: [Dev] Test Failures in User core in kernel

2013-06-12 Thread Pulasthi Supun
Hi,

Im also getting the same errors when building the user core i took a up
just now and working on revision 174753.

Tests in error:
  testTenantManager(org.wso2.carbon.user.core.tenant.TestTenantManager)

testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)

testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
Could not initialize class
org.wso2.carbon.user.core.authorization.AuthorizationCache
  testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
nullType class java.lang.reflect.InvocationTargetException
  testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest): nullType
class java.lang.reflect.InvocationTargetException
  testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType class
java.lang.reflect.InvocationTargetException
  testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
Could not initialize class
org.wso2.carbon.user.core.authorization.AuthorizationCache
  testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest): nullType
class java.lang.reflect.InvocationTargetException
  testStuff(org.wso2.carbon.user.core.jdbc.PermissionTest): nullType class
java.lang.reflect.InvocationTargetException
  testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
nullType class java.lang.reflect.InvocationTargetException

Regards,
Pulasthi


On Wed, Jun 12, 2013 at 4:20 PM, Shelan Perera  wrote:

> Hi,
>
> I am in the 174710 and updated today as well. But i am still getting the
> errors. Should be a local one to me.
> Will build on a clean repo.
>
> Thanks
>
>
> On Wed, Jun 12, 2013 at 4:10 PM, Chamath Gunawardana wrote:
>
>> sorry. here its -
>>
>> http://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/src/test/resources
>>
>> Thanks,
>>
>>
>> On Wed, Jun 12, 2013 at 4:01 PM, Shelan Perera  wrote:
>>
>>> Hi,
>>>
>>> Is you location correct ? Could you please give me the svn link? It
>>> seems it is not there.
>>>
>>> https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/
>>>
>>> thanks
>>>
>>>
>>> On Wed, Jun 12, 2013 at 3:50 PM, Chamath Gunawardana 
>>> wrote:
>>>
 Hi Shelan,

 Seems its success for me.
 Is your h2 db in [1] got updated to latest?

 [1] -
 carbon/kernel/trunk/core/org.wso2.carbon.user.core/repository/database/WSO2CARBON_DB.h2.db

 Thanks,


 On Wed, Jun 12, 2013 at 3:30 PM, Shelan Perera  wrote:

> Hi,
>
> I am getting the following when run with tests.
>
> ---
>  T E S T S
> ---
> Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.457
> sec
> Running org.wso2.carbon.user.core.claim.ClaimDAOTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753
> sec
> Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.039
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.905
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.783
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.PermissionTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.317
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011
> sec
> Running org.wso2.carbon.user.core.tenant.TestTenantManager
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719
> sec <<< FAILURE!
> Running org.wso2.carbon.user.core.config.TestRealmConfigBuilder
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running
> org.wso2.carbon.user.core.profile.AdvancedProfileConfigManagerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.809
>>

[Dev] Ajax file uploading in jaggery

2013-06-12 Thread Chan
Hi all,
I am facing an error when uploading a file using an ajax call in jaggery -

I am using the request.getAllFiles() method and my request is going as
'multipart/form-data'.
I am getting an error from Commons upload as not having set my multipart
boundaries -

I searched over at stackoverflow and found out that this was a common issue
and we have to set the content-type to false -
http://stackoverflow.com/questions/13240664/how-to-set-a-boundary-on-a-multipart-form-data-request-while-using-jquery-ajax-f

Now the problem is that request.getAllFiles() will only work if the
content-type is 'multipart-form-data'.


Below is the error -
2013-06-13 07:41:27,089] ERROR
{org.jaggeryjs.hostobjects.web.RequestHostObject} -  the request was
rejected because no multipart boundary was found
org.apache.commons.fileupload.FileUploadException: the request was rejected
because no multipart boundary was found
at
org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.(FileUploadBase.java:954)
at
org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351)
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at
org.jaggeryjs.hostobjects.web.RequestHostObject.parseMultipart(RequestHostObject.java:422)
at
org.jaggeryjs.hostobjects.web.RequestHostObject.jsFunction_getAllFiles(RequestHostObject.java:229)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at org.jaggeryjs.rhino.publisher.c2._c_anonymous_1(/publisher//index.jag:15)
at org.jaggeryjs.rhino.publisher.c2.call(/publisher//index.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_9(/publisher/modules/goose.js:89)
at
org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/goose.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c2._c_callAPI_12(/publisher/modules/absolute.js:138)
at
org.jaggeryjs.rhino.publisher.modules.c2.call(/publisher/modules/absolute.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at
org.jaggeryjs.rhino.publisher.modules.c2._c_anonymous_14(/publisher/modules/absolute.js:169)
at
org.jaggeryjs.rhino.publisher.modules.c2.call(/publisher/modules/absolute.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.jaggeryjs.rhino.publisher.c2._c_script_0(/publisher//index.jag:199)
at org.jaggeryjs.rhino.publisher.c2.call(/publisher//index.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.publisher.c2.call(/publisher//index.jag)
at org.jaggeryjs.rhino.publisher.c2.exec(/publisher//index.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:577)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:280)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:377)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.

Re: [Dev] Integration test failures in AppServer trunk

2013-06-12 Thread Afkham Azeez
All Jaggery tests are failing due to a single root cause it seems:

[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   ... 24
more
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -  Caused
by: org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot
be found with the specified name : ws
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
org.jaggeryjs.jaggery.core.manager.CommonManager.require(CommonManager.java:226)
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:218)
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
java.lang.reflect.Method.invoke(Method.java:597)
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
[2013-06-13 07:10:38,292]  INFO
{org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   ... 36
more
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:9763/testapp/wsrequest.jag
 at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
at
org.wso2.jaggery.integration.tests.hostObjects.WSRequestHostObjectTestCase.testWSRequestExist(WSRequestHostObjectTestCase.java:48)
 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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
 at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
 at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
 at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
at org.testng.TestRunner.privateRun(TestRunner.java:757)
 at org.testng.TestRunner.run(TestRunner.java:608)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
 at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
 at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
 at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
 at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
at org.testng.TestNG.run(TestNG.java:999)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:76)
 at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
 at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
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:103)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)



On Thu, Jun 13, 2013 at 7:13 AM, Afkham Azeez  wrote:

> Failed tests:
> securityScenariosTestCase(org.wso2.appserver.integration.tests.HelloWorldSampleTestCase):
> Must Understand check failed for header
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd:
>  Security
>
> testCarbonCachingDemo(org.wso2.appserver.integration.tests.WebappS

[Dev] Integration test failures in AppServer trunk

2013-06-12 Thread Afkham Azeez
Failed tests:
securityScenariosTestCase(org.wso2.appserver.integration.tests.HelloWorldSampleTestCase):
Must Understand check failed for header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd:
Security

testCarbonCachingDemo(org.wso2.appserver.integration.tests.WebappSampleTestCase):
Method failed: HTTP/1.1 500 Internal Server Error

testEmail(org.wso2.ms.integration.tests.hostObjects.EmailHostObjectTestCase):
Error occurred while sending the e-mail. expected:Successfully
sent an e-mail.> but
was:Error occurred while
sending the e-mail.>

reliableMessagingTestCase(org.wso2.appserver.integration.tests.HelloWorldSampleTestCase):
The onComplete in HelloServiceCallbackHandler didn't get invoked within 60
seconds

testJAXWSRequest(org.wso2.appserver.integration.tests.JAXWSSampleTestCase):
expected:Hello
World> but was:Hello World>
  testBasicAuth(org.wso2.appserver.integration.tests.WebappSampleTestCase):
expected:<403> but was:<200>

testEmail(org.wso2.jaggery.integration.tests.hostObjects.EmailHostObjectTestCase):
Result cannot be null expected object to not be null

testSendEmail(org.wso2.jaggery.integration.tests.hostObjects.EmailHostObjectTestCase):
expected: but was:

testFeedMembers(org.wso2.jaggery.integration.tests.hostObjects.FeedHostObjectTestCase):
expected: but
was:

testWSRequest(org.wso2.jaggery.integration.tests.hostObjects.WSRequestHostObjectTestCase):
expected: but was:

testWSRequestExist(org.wso2.jaggery.integration.tests.hostObjects.WSRequestHostObjectTestCase):
Result cannot be null expected object to not be null

testWSRequestOperations(org.wso2.jaggery.integration.tests.hostObjects.WSRequestHostObjectTestCase):
expected:<014 success> but was:

testWSStub(org.wso2.jaggery.integration.tests.hostObjects.WSStubHostObjectTestCase):
expected: but was:

testWSStubExist(org.wso2.jaggery.integration.tests.hostObjects.WSStubHostObjectTestCase):
Result cannot be null expected object to not be null

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Changes to the caramel framework initialization

2013-06-12 Thread Ruchira Wageesha
Devs, who was using caramel frameworks from its master branch, please
change your caramel initialization code as below.

Find & replace all your *require('caramel').caramel* or *
require("caramel").caramel* code segments with just *require('caramel')* or
*require("caramel") *

i.e. Your earlier code might look like,

*var caramel = require('caramel').caramel;*

where your new code should look like

*var caramel = require('caramel');*

I have updated the UES store and portal apps, but if someone else is using,
this is just for them.

-- 
*Ruchira Wageesha
**Associate Technical Lead** & Member, Management Committee, Development
Technologies*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: ruch...@wso2.com,   blog: ruchirawageesha.blogspot.com,   mobile:
+94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Encrypting the plain text passwords in config files

2013-06-12 Thread Nirmal Fernando
On Wed, Jun 12, 2013 at 11:09 PM, Malinga Purnasiri wrote:

> Hi Nirmal,
>
> Thanks for the info. but ..
>
>
> >>> Instead of getting these files from kernel, you could add these
> files from the product level. Have a look at the bin.xml of a product
> distribution
>
>  Is that the standard way of adding entries to cipertool.prop and
> cipertext.prop ?
>  But in the trunk of the kernel; where those files located, has some
> commented-out lines (for product specific entries). and in the tutorial of
> the secure vault it says, add it to the files located in the kernel trunk
> and comment-out if its not used in the all products of the wso2.
>

Well, for me it doesn't make sense and I've no idea, how one would
uncomment those entries at product level.

>
>
> On Wed, Jun 12, 2013 at 10:51 PM, Nirmal Fernando  wrote:
>
>> Hi Malinga,
>>
>>
>> On Wed, Jun 12, 2013 at 10:33 PM, Malinga Purnasiri wrote:
>>
>>> Hi,
>>>
>>> There is a requirement to encrypt some sensitive information used in the
>>> MB config file. for that I thought of using secure vault feature provided
>>> by carbon.
>>>
>>> For that task we might need to change the ciphertool.properties and
>>> ciphertext.properties in the [kernel/carbonhome/repository/conf/security].
>>> Is that ok to go ahead with this change ? Please advice.
>>>
>>
>> Why you need to do a change in the kernel level, if this is a MB specific
>> change?
>>
>> Instead of getting these files from kernel, you could add these files
>> from the product level. Have a look at the bin.xml of a product
>> distribution.
>>
>>>
>>>
>>>
>>> On Mon, Jun 10, 2013 at 5:41 PM, Maninda Edirisooriya 
>>> wrote:
>>>
 Look at a sample at
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/mediators/bam/org.wso2.carbon.mediator.bam.config/4.1.0/src/main/java/org/wso2/carbon/mediator/bam/config/CryptographyManager.java
 Thank you.

 *
 Maninda Edirisooriya*
 Software Engineer
 *WSO2, Inc.
 *lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *Phone* : +94 777603226


 On Mon, Jun 10, 2013 at 5:05 PM, Malinga Purnasiri 
 wrote:

> Hi,
>
> We have a ticket listed in the jira for MB as [1]. Please post some
> ideas if anyone has achieved this before ? or got suggestions on this ?
>
> [1] https://wso2.org/jira/browse/MB-171
>
> --
> Malinga Pathmal,
> Technical Lead, WSO2, Inc. : http://wso2.com/
> Phone : (+94) 715335898
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

>>>
>>>
>>> --
>>> Malinga Pathmal,
>>> Technical Lead, WSO2, Inc. : http://wso2.com/
>>> Phone : (+94) 715335898
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>
>
> --
> Malinga Pathmal,
> Technical Lead, WSO2, Inc. : http://wso2.com/
> Phone : (+94) 715335898
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Encrypting the plain text passwords in config files

2013-06-12 Thread Malinga Purnasiri
Thanks Prabath appreciated ..


On Wed, Jun 12, 2013 at 11:12 PM, Prabath Siriwardena wrote:

> Hi Malinga,
>
> Please talk to Asela - he will assist you on how to do this...
>
> Thanks & regards,
> -Prabath
>
>
> On Wed, Jun 12, 2013 at 11:09 PM, Malinga Purnasiri wrote:
>
>> Hi Nirmal,
>>
>> Thanks for the info. but ..
>>
>>
>> >>> Instead of getting these files from kernel, you could add these
>> files from the product level. Have a look at the bin.xml of a product
>> distribution
>>
>>  Is that the standard way of adding entries to cipertool.prop and
>> cipertext.prop ?
>>  But in the trunk of the kernel; where those files located, has some
>> commented-out lines (for product specific entries). and in the tutorial of
>> the secure vault it says, add it to the files located in the kernel trunk
>> and comment-out if its not used in the all products of the wso2.
>>
>>
>> On Wed, Jun 12, 2013 at 10:51 PM, Nirmal Fernando wrote:
>>
>>> Hi Malinga,
>>>
>>>
>>> On Wed, Jun 12, 2013 at 10:33 PM, Malinga Purnasiri 
>>> wrote:
>>>
 Hi,

 There is a requirement to encrypt some sensitive information used in
 the MB config file. for that I thought of using secure vault feature
 provided by carbon.

 For that task we might need to change the ciphertool.properties and
 ciphertext.properties in the [kernel/carbonhome/repository/conf/security].
 Is that ok to go ahead with this change ? Please advice.

>>>
>>> Why you need to do a change in the kernel level, if this is a MB
>>> specific change?
>>>
>>> Instead of getting these files from kernel, you could add these files
>>> from the product level. Have a look at the bin.xml of a product
>>> distribution.
>>>



 On Mon, Jun 10, 2013 at 5:41 PM, Maninda Edirisooriya >>> > wrote:

> Look at a sample at
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/mediators/bam/org.wso2.carbon.mediator.bam.config/4.1.0/src/main/java/org/wso2/carbon/mediator/bam/config/CryptographyManager.java
> Thank you.
>
> *
> Maninda Edirisooriya*
> Software Engineer
> *WSO2, Inc.
> *lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *Phone* : +94 777603226
>
>
> On Mon, Jun 10, 2013 at 5:05 PM, Malinga Purnasiri 
> wrote:
>
>> Hi,
>>
>> We have a ticket listed in the jira for MB as [1]. Please post some
>> ideas if anyone has achieved this before ? or got suggestions on this ?
>>
>> [1] https://wso2.org/jira/browse/MB-171
>>
>> --
>> Malinga Pathmal,
>> Technical Lead, WSO2, Inc. : http://wso2.com/
>> Phone : (+94) 715335898
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


 --
 Malinga Pathmal,
 Technical Lead, WSO2, Inc. : http://wso2.com/
 Phone : (+94) 715335898

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


>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>
>>
>> --
>> Malinga Pathmal,
>> Technical Lead, WSO2, Inc. : http://wso2.com/
>> Phone : (+94) 715335898
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
>



-- 
Malinga Pathmal,
Technical Lead, WSO2, Inc. : http://wso2.com/
Phone : (+94) 715335898
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Encrypting the plain text passwords in config files

2013-06-12 Thread Prabath Siriwardena
Hi Malinga,

Please talk to Asela - he will assist you on how to do this...

Thanks & regards,
-Prabath

On Wed, Jun 12, 2013 at 11:09 PM, Malinga Purnasiri wrote:

> Hi Nirmal,
>
> Thanks for the info. but ..
>
>
> >>> Instead of getting these files from kernel, you could add these
> files from the product level. Have a look at the bin.xml of a product
> distribution
>
>  Is that the standard way of adding entries to cipertool.prop and
> cipertext.prop ?
>  But in the trunk of the kernel; where those files located, has some
> commented-out lines (for product specific entries). and in the tutorial of
> the secure vault it says, add it to the files located in the kernel trunk
> and comment-out if its not used in the all products of the wso2.
>
>
> On Wed, Jun 12, 2013 at 10:51 PM, Nirmal Fernando  wrote:
>
>> Hi Malinga,
>>
>>
>> On Wed, Jun 12, 2013 at 10:33 PM, Malinga Purnasiri wrote:
>>
>>> Hi,
>>>
>>> There is a requirement to encrypt some sensitive information used in the
>>> MB config file. for that I thought of using secure vault feature provided
>>> by carbon.
>>>
>>> For that task we might need to change the ciphertool.properties and
>>> ciphertext.properties in the [kernel/carbonhome/repository/conf/security].
>>> Is that ok to go ahead with this change ? Please advice.
>>>
>>
>> Why you need to do a change in the kernel level, if this is a MB specific
>> change?
>>
>> Instead of getting these files from kernel, you could add these files
>> from the product level. Have a look at the bin.xml of a product
>> distribution.
>>
>>>
>>>
>>>
>>> On Mon, Jun 10, 2013 at 5:41 PM, Maninda Edirisooriya 
>>> wrote:
>>>
 Look at a sample at
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/mediators/bam/org.wso2.carbon.mediator.bam.config/4.1.0/src/main/java/org/wso2/carbon/mediator/bam/config/CryptographyManager.java
 Thank you.

 *
 Maninda Edirisooriya*
 Software Engineer
 *WSO2, Inc.
 *lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *Phone* : +94 777603226


 On Mon, Jun 10, 2013 at 5:05 PM, Malinga Purnasiri 
 wrote:

> Hi,
>
> We have a ticket listed in the jira for MB as [1]. Please post some
> ideas if anyone has achieved this before ? or got suggestions on this ?
>
> [1] https://wso2.org/jira/browse/MB-171
>
> --
> Malinga Pathmal,
> Technical Lead, WSO2, Inc. : http://wso2.com/
> Phone : (+94) 715335898
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

>>>
>>>
>>> --
>>> Malinga Pathmal,
>>> Technical Lead, WSO2, Inc. : http://wso2.com/
>>> Phone : (+94) 715335898
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>
>
> --
> Malinga Pathmal,
> Technical Lead, WSO2, Inc. : http://wso2.com/
> Phone : (+94) 715335898
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,
Prabath

Mobile : +94 71 809 6732

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


Re: [Dev] Encrypting the plain text passwords in config files

2013-06-12 Thread Malinga Purnasiri
Hi Nirmal,

Thanks for the info. but ..

>>> Instead of getting these files from kernel, you could add these
files from the product level. Have a look at the bin.xml of a product
distribution

 Is that the standard way of adding entries to cipertool.prop and
cipertext.prop ?
 But in the trunk of the kernel; where those files located, has some
commented-out lines (for product specific entries). and in the tutorial of
the secure vault it says, add it to the files located in the kernel trunk
and comment-out if its not used in the all products of the wso2.


On Wed, Jun 12, 2013 at 10:51 PM, Nirmal Fernando  wrote:

> Hi Malinga,
>
>
> On Wed, Jun 12, 2013 at 10:33 PM, Malinga Purnasiri wrote:
>
>> Hi,
>>
>> There is a requirement to encrypt some sensitive information used in the
>> MB config file. for that I thought of using secure vault feature provided
>> by carbon.
>>
>> For that task we might need to change the ciphertool.properties and
>> ciphertext.properties in the [kernel/carbonhome/repository/conf/security].
>> Is that ok to go ahead with this change ? Please advice.
>>
>
> Why you need to do a change in the kernel level, if this is a MB specific
> change?
>
> Instead of getting these files from kernel, you could add these files from
> the product level. Have a look at the bin.xml of a product distribution.
>
>>
>>
>>
>> On Mon, Jun 10, 2013 at 5:41 PM, Maninda Edirisooriya 
>> wrote:
>>
>>> Look at a sample at
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/mediators/bam/org.wso2.carbon.mediator.bam.config/4.1.0/src/main/java/org/wso2/carbon/mediator/bam/config/CryptographyManager.java
>>> Thank you.
>>>
>>> *
>>> Maninda Edirisooriya*
>>> Software Engineer
>>> *WSO2, Inc.
>>> *lean.enterprise.middleware.
>>>
>>> *Blog* : http://maninda.blogspot.com/
>>> *Phone* : +94 777603226
>>>
>>>
>>> On Mon, Jun 10, 2013 at 5:05 PM, Malinga Purnasiri wrote:
>>>
 Hi,

 We have a ticket listed in the jira for MB as [1]. Please post some
 ideas if anyone has achieved this before ? or got suggestions on this ?

 [1] https://wso2.org/jira/browse/MB-171

 --
 Malinga Pathmal,
 Technical Lead, WSO2, Inc. : http://wso2.com/
 Phone : (+94) 715335898

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


>>>
>>
>>
>> --
>> Malinga Pathmal,
>> Technical Lead, WSO2, Inc. : http://wso2.com/
>> Phone : (+94) 715335898
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>


-- 
Malinga Pathmal,
Technical Lead, WSO2, Inc. : http://wso2.com/
Phone : (+94) 715335898
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Encrypting the plain text passwords in config files

2013-06-12 Thread Nirmal Fernando
Hi Malinga,


On Wed, Jun 12, 2013 at 10:33 PM, Malinga Purnasiri wrote:

> Hi,
>
> There is a requirement to encrypt some sensitive information used in the
> MB config file. for that I thought of using secure vault feature provided
> by carbon.
>
> For that task we might need to change the ciphertool.properties and
> ciphertext.properties in the [kernel/carbonhome/repository/conf/security].
> Is that ok to go ahead with this change ? Please advice.
>

Why you need to do a change in the kernel level, if this is a MB specific
change?

Instead of getting these files from kernel, you could add these files from
the product level. Have a look at the bin.xml of a product distribution.

>
>
>
> On Mon, Jun 10, 2013 at 5:41 PM, Maninda Edirisooriya wrote:
>
>> Look at a sample at
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/mediators/bam/org.wso2.carbon.mediator.bam.config/4.1.0/src/main/java/org/wso2/carbon/mediator/bam/config/CryptographyManager.java
>> Thank you.
>>
>> *
>> Maninda Edirisooriya*
>> Software Engineer
>> *WSO2, Inc.
>> *lean.enterprise.middleware.
>>
>> *Blog* : http://maninda.blogspot.com/
>> *Phone* : +94 777603226
>>
>>
>> On Mon, Jun 10, 2013 at 5:05 PM, Malinga Purnasiri wrote:
>>
>>> Hi,
>>>
>>> We have a ticket listed in the jira for MB as [1]. Please post some
>>> ideas if anyone has achieved this before ? or got suggestions on this ?
>>>
>>> [1] https://wso2.org/jira/browse/MB-171
>>>
>>> --
>>> Malinga Pathmal,
>>> Technical Lead, WSO2, Inc. : http://wso2.com/
>>> Phone : (+94) 715335898
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Malinga Pathmal,
> Technical Lead, WSO2, Inc. : http://wso2.com/
> Phone : (+94) 715335898
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Encrypting the plain text passwords in config files

2013-06-12 Thread Malinga Purnasiri
Hi,

There is a requirement to encrypt some sensitive information used in the MB
config file. for that I thought of using secure vault feature provided by
carbon.

For that task we might need to change the ciphertool.properties and
ciphertext.properties in the [kernel/carbonhome/repository/conf/security].
Is that ok to go ahead with this change ? Please advice.



On Mon, Jun 10, 2013 at 5:41 PM, Maninda Edirisooriya wrote:

> Look at a sample at
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/mediators/bam/org.wso2.carbon.mediator.bam.config/4.1.0/src/main/java/org/wso2/carbon/mediator/bam/config/CryptographyManager.java
> Thank you.
>
> *
> Maninda Edirisooriya*
> Software Engineer
> *WSO2, Inc.
> *lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *Phone* : +94 777603226
>
>
> On Mon, Jun 10, 2013 at 5:05 PM, Malinga Purnasiri wrote:
>
>> Hi,
>>
>> We have a ticket listed in the jira for MB as [1]. Please post some ideas
>> if anyone has achieved this before ? or got suggestions on this ?
>>
>> [1] https://wso2.org/jira/browse/MB-171
>>
>> --
>> Malinga Pathmal,
>> Technical Lead, WSO2, Inc. : http://wso2.com/
>> Phone : (+94) 715335898
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Malinga Pathmal,
Technical Lead, WSO2, Inc. : http://wso2.com/
Phone : (+94) 715335898
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Compilation failure in Carbon trunk!

2013-06-12 Thread Sanjeewa Malalgoda
Fixed issue with r174742.

Thanks,


On Wed, Jun 12, 2013 at 9:20 PM, Sanjeewa Malalgoda wrote:

> Looking into this will fix ASAP.
>
> Thanks,
> Sanjeewa.
>
>
> On Wed, Jun 12, 2013 at 8:20 PM, Afkham Azeez  wrote:
>
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 2:32:36.528s
>> [INFO] Finished at: Wed Jun 12 20:18:36 IST 2013
>> [INFO] Final Memory: 911M/1764M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>> (default-compile) on project org.wso2.carbon.usage: Compilation failure:
>> Compilation failure:
>> [ERROR]
>> /Users/azeez/projects/wso2/org/carbon/platform/trunk2/components/stratos/usage/org.wso2.carbon.usage/src/main/java/org/wso2/carbon/usage/util/DataAccessObject.java:[511,34]
>> cannot find symbol
>> [ERROR] symbol  : variable API_CALL_COUNT
>> [ERROR] location: class
>> org.wso2.carbon.stratos.common.constants.UsageConstants
>> [ERROR]
>> /Users/azeez/projects/wso2/org/carbon/platform/trunk2/components/stratos/usage/org.wso2.carbon.usage/src/main/java/org/wso2/carbon/usage/util/DataAccessObject.java:[602,34]
>> cannot find symbol
>> [ERROR] symbol  : variable API_CALL_COUNT
>> [ERROR] location: class
>> org.wso2.carbon.stratos.common.constants.UsageConstants
>> [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
>> [ERROR]   mvn  -rf :org.wso2.carbon.usage
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> *
> *
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
>
>


-- 
*
*
*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


Re: [Dev] [Architecture] Is there a Registry method to return asset with id in jaggery?

2013-06-12 Thread Chan
Got it. Thanks -
Below is a code example if someone came across this again
var carbon = require('carbon'),
   server = new carbon.server.Server(),
   registry = new carbon.registry.Registry(server, {
   username : 'admin',
   tenantId : -1234
   }),
am = new carbon.registry.ArtifactManager(registry, 'app');
log.info(am.get("5e57396c-00ec-47d6-ade7-1ccfe2f7592a"));


On Wed, Jun 12, 2013 at 7:51 PM, Ruchira Wageesha  wrote:

>
>
>
> On Wed, Jun 12, 2013 at 1:40 PM, Vijitha Kumara  wrote:
>
>> This seems to be a design decision taken while developing the API? Is
>> there any other method accepting id in jaggery module?
>>
> Yes, it has a method.
>
>>  On Wed, Jun 12, 2013 at 11:26 AM, Chan  wrote:

> Hi all,
> I want to know if there is a way to get an asset with the id of it.
>
> var carbon = require('carbon'),
>server = new carbon.server.Server(),
>registry = new carbon.registry.Registry(server, {
>username : 'admin',
>tenantId : -1234
>});
> am = new carbon.registry.ArtifactManager(registry, 'android');
>
> like am.get(id)? I looked into the 
> documentationand
>  saw that registry has a get method but that requires a path parameter
> (Also this is pure greg, I am accessing Greg through the jaggery module).
>
 am.get(id) is already there. Did you miss it? You can pass an
> id(resource uuid) that you get from a am.list() or something else.
>
>>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2mobile.com*
> *  ~Mobile +94712112165*
> *  ~Website   dulithawijewantha.com
> *
> *  ~Blog 
> blog.dulithawijewantha.com
> *
> *  ~Twitter @dulitharw *
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> Chan (Dulitha Wijewantha)
>>> Software Engineer - Mobile Development
>>> WSO2Mobile
>>> Lean.Enterprise.Mobileware
>>>  * ~Email   duli...@wso2mobile.com*
>>> *  ~Mobile +94712112165*
>>> *  ~Website   dulithawijewantha.com
>>> *
>>> *  ~Blog blog.dulithawijewantha.com
>>> *
>>> *  ~Twitter @dulitharw *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vijitha Kumara
>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>>  email: viji...@wso2.com
>>
>>
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> *Ruchira Wageesha
> **Associate Technical Lead** & Member, Management Committee, Development
> Technologies*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
> *
> email: ruch...@wso2.com,   blog: ruchirawageesha.blogspot.com,   mobile: +94
> 77 5493444*
>



-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulithawijewantha.com
*
*  ~Blog blog.dulithawijewantha.com
*
*  ~Twitter @dulitharw *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Compilation failure in Carbon trunk!

2013-06-12 Thread Sanjeewa Malalgoda
Looking into this will fix ASAP.

Thanks,
Sanjeewa.

On Wed, Jun 12, 2013 at 8:20 PM, Afkham Azeez  wrote:

> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2:32:36.528s
> [INFO] Finished at: Wed Jun 12 20:18:36 IST 2013
> [INFO] Final Memory: 911M/1764M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile) on project org.wso2.carbon.usage: Compilation failure:
> Compilation failure:
> [ERROR]
> /Users/azeez/projects/wso2/org/carbon/platform/trunk2/components/stratos/usage/org.wso2.carbon.usage/src/main/java/org/wso2/carbon/usage/util/DataAccessObject.java:[511,34]
> cannot find symbol
> [ERROR] symbol  : variable API_CALL_COUNT
> [ERROR] location: class
> org.wso2.carbon.stratos.common.constants.UsageConstants
> [ERROR]
> /Users/azeez/projects/wso2/org/carbon/platform/trunk2/components/stratos/usage/org.wso2.carbon.usage/src/main/java/org/wso2/carbon/usage/util/DataAccessObject.java:[602,34]
> cannot find symbol
> [ERROR] symbol  : variable API_CALL_COUNT
> [ERROR] location: class
> org.wso2.carbon.stratos.common.constants.UsageConstants
> [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
> [ERROR]   mvn  -rf :org.wso2.carbon.usage
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>



-- 
*
*
*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


[Dev] Compilation failure in Carbon trunk!

2013-06-12 Thread Afkham Azeez
[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2:32:36.528s
[INFO] Finished at: Wed Jun 12 20:18:36 IST 2013
[INFO] Final Memory: 911M/1764M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.usage: Compilation failure:
Compilation failure:
[ERROR]
/Users/azeez/projects/wso2/org/carbon/platform/trunk2/components/stratos/usage/org.wso2.carbon.usage/src/main/java/org/wso2/carbon/usage/util/DataAccessObject.java:[511,34]
cannot find symbol
[ERROR] symbol  : variable API_CALL_COUNT
[ERROR] location: class
org.wso2.carbon.stratos.common.constants.UsageConstants
[ERROR]
/Users/azeez/projects/wso2/org/carbon/platform/trunk2/components/stratos/usage/org.wso2.carbon.usage/src/main/java/org/wso2/carbon/usage/util/DataAccessObject.java:[602,34]
cannot find symbol
[ERROR] symbol  : variable API_CALL_COUNT
[ERROR] location: class
org.wso2.carbon.stratos.common.constants.UsageConstants
[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
[ERROR]   mvn  -rf :org.wso2.carbon.usage


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Is there a Registry method to return asset with id in jaggery?

2013-06-12 Thread Ruchira Wageesha
On Wed, Jun 12, 2013 at 1:40 PM, Vijitha Kumara  wrote:

> This seems to be a design decision taken while developing the API? Is
> there any other method accepting id in jaggery module?
>
Yes, it has a method.

> On Wed, Jun 12, 2013 at 11:26 AM, Chan  wrote:
>>>
 Hi all,
 I want to know if there is a way to get an asset with the id of it.

 var carbon = require('carbon'),
server = new carbon.server.Server(),
registry = new carbon.registry.Registry(server, {
username : 'admin',
tenantId : -1234
});
 am = new carbon.registry.ArtifactManager(registry, 'android');

 like am.get(id)? I looked into the 
 documentationand
  saw that registry has a get method but that requires a path parameter
 (Also this is pure greg, I am accessing Greg through the jaggery module).

>>> am.get(id) is already there. Did you miss it? You can pass an
id(resource uuid) that you get from a am.list() or something else.

>
 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
 WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2mobile.com*
 *  ~Mobile +94712112165*
 *  ~Website   dulithawijewantha.com
 *
 *  ~Blog 
 blog.dulithawijewantha.com
 *
 *  ~Twitter @dulitharw *

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> --
>>> Pulasthi Supun
>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>> Email: pulas...@wso2.com
>>> Mobile: +94 (71) 9258281
>>> Blog : http://pulasthisupun.blogspot.com/
>>> Git hub profile: https://github.com/pulasthi
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2Mobile
>> Lean.Enterprise.Mobileware
>>  * ~Email   duli...@wso2mobile.com*
>> *  ~Mobile +94712112165*
>> *  ~Website   dulithawijewantha.com
>> *
>> *  ~Blog blog.dulithawijewantha.com
>> *
>> *  ~Twitter @dulitharw *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vijitha Kumara
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> email: viji...@wso2.com
>
>
> Lean . Enterprise . Middleware
>



-- 
*Ruchira Wageesha
**Associate Technical Lead** & Member, Management Committee, Development
Technologies*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: ruch...@wso2.com,   blog: ruchirawageesha.blogspot.com,   mobile:
+94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we configure additional SSL configurations in NIOSSL Listener/Sender

2013-06-12 Thread Asela Pathberiya
Hi All,

According to the NIOSSL listener/sender configuration in axis2.xml, we are
supporting some parameters to configure. Are  these only configurations
that are supported by implementations?  Or  Can not we add new
configurations to it?  (such as "sslProtocol" that is supported by tomcat
config)

-- 
Thanks & Regards,
Asela

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


Re: [Dev] Need help to get the platform/trunk building

2013-06-12 Thread Afkham Azeez
Now the question is, how did that happen? Why did the person who make that
change commit without building? It is little breaks like this here and
there that contribute to the overall build always being broken.


On Wed, Jun 12, 2013 at 6:02 PM, Hasitha Aravinda  wrote:

> yes, relative path was wrong. I fixed it in trunk.
>
> Thanks,
> Hasitha.
>
>
>
> On Wed, Jun 12, 2013 at 5:58 PM, Afkham Azeez  wrote:
>
>> Pradeep fixed it. There was an error in the pom.
>>
>>
>> On Wed, Jun 12, 2013 at 5:52 PM, Hasitha Aravinda wrote:
>>
>>> Hi Azeez,
>>>
>>> I am looking into this.
>>>
>>> Thanks,
>>> Hasitha.
>>>
>>>
>>> On Wed, Jun 12, 2013 at 5:31 PM, Afkham Azeez  wrote:
>>>
 I am getting the following error:

 [INFO] Scanning for projects...
 Downloading:
 http://download.java.net/maven/2/org/apache/apache/13/apache-13.pom
 Downloading:
 https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom
 Downloaded:
 https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom(14
  KB at 3.2 KB/sec)
 [ERROR] The build could not read 1 project -> [Help 1]
 [ERROR]
 [ERROR]   The project org.apache.ode.wso2:ode:1.3.5.wso2v9
 (/Users/azeez/projects/wso2/org/carbon/platform/trunk2/dependencies/orbit/ode/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Could not find artifact
 org.wso2.carbon:carbon-dependents:pom:4.2.0-SNAPSHOT and
 'parent.relativePath' points at wrong local POM @ line 23, column 13 ->
 [Help 2]
 [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/ProjectBuildingException
 [ERROR] [Help 2]
 http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


 To test depsync with the new clustering implementation, I need to build
 AS. Can someone fix the build please?

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * **
 email: **az...@wso2.com* * cell: +94 77 3320919
 blog: **http://blog.afkham.org* *
 twitter: 
 **http://twitter.com/afkham_azeez*
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*

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


>>>
>>>
>>> --
>>> Hasitha Aravinda,
>>> Software Engineer,
>>> WSO2 Inc.
>>> Email: hasi...@wso2.com
>>> Mobile: +94 71 8 210 200
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Hasitha Aravinda,
> Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile: +94 71 8 210 200
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help to get the platform/trunk building

2013-06-12 Thread Hasitha Aravinda
yes, relative path was wrong. I fixed it in trunk.

Thanks,
Hasitha.



On Wed, Jun 12, 2013 at 5:58 PM, Afkham Azeez  wrote:

> Pradeep fixed it. There was an error in the pom.
>
>
> On Wed, Jun 12, 2013 at 5:52 PM, Hasitha Aravinda wrote:
>
>> Hi Azeez,
>>
>> I am looking into this.
>>
>> Thanks,
>> Hasitha.
>>
>>
>> On Wed, Jun 12, 2013 at 5:31 PM, Afkham Azeez  wrote:
>>
>>> I am getting the following error:
>>>
>>> [INFO] Scanning for projects...
>>> Downloading:
>>> http://download.java.net/maven/2/org/apache/apache/13/apache-13.pom
>>> Downloading:
>>> https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom
>>> Downloaded:
>>> https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom(14
>>>  KB at 3.2 KB/sec)
>>> [ERROR] The build could not read 1 project -> [Help 1]
>>> [ERROR]
>>> [ERROR]   The project org.apache.ode.wso2:ode:1.3.5.wso2v9
>>> (/Users/azeez/projects/wso2/org/carbon/platform/trunk2/dependencies/orbit/ode/pom.xml)
>>> has 1 error
>>> [ERROR] Non-resolvable parent POM: Could not find artifact
>>> org.wso2.carbon:carbon-dependents:pom:4.2.0-SNAPSHOT and
>>> 'parent.relativePath' points at wrong local POM @ line 23, column 13 ->
>>> [Help 2]
>>> [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/ProjectBuildingException
>>> [ERROR] [Help 2]
>>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>>>
>>>
>>> To test depsync with the new clustering implementation, I need to build
>>> AS. Can someone fix the build please?
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * **
>>> email: **az...@wso2.com* * cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* *
>>> twitter: **http://twitter.com/afkham_azeez*
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Hasitha Aravinda,
>> Software Engineer,
>> WSO2 Inc.
>> Email: hasi...@wso2.com
>> Mobile: +94 71 8 210 200
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>



-- 
Hasitha Aravinda,
Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile: +94 71 8 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help to get the platform/trunk building

2013-06-12 Thread Afkham Azeez
Pradeep fixed it. There was an error in the pom.


On Wed, Jun 12, 2013 at 5:52 PM, Hasitha Aravinda  wrote:

> Hi Azeez,
>
> I am looking into this.
>
> Thanks,
> Hasitha.
>
>
> On Wed, Jun 12, 2013 at 5:31 PM, Afkham Azeez  wrote:
>
>> I am getting the following error:
>>
>> [INFO] Scanning for projects...
>> Downloading:
>> http://download.java.net/maven/2/org/apache/apache/13/apache-13.pom
>> Downloading:
>> https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom
>> Downloaded:
>> https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom(14
>>  KB at 3.2 KB/sec)
>> [ERROR] The build could not read 1 project -> [Help 1]
>> [ERROR]
>> [ERROR]   The project org.apache.ode.wso2:ode:1.3.5.wso2v9
>> (/Users/azeez/projects/wso2/org/carbon/platform/trunk2/dependencies/orbit/ode/pom.xml)
>> has 1 error
>> [ERROR] Non-resolvable parent POM: Could not find artifact
>> org.wso2.carbon:carbon-dependents:pom:4.2.0-SNAPSHOT and
>> 'parent.relativePath' points at wrong local POM @ line 23, column 13 ->
>> [Help 2]
>> [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/ProjectBuildingException
>> [ERROR] [Help 2]
>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>>
>>
>> To test depsync with the new clustering implementation, I need to build
>> AS. Can someone fix the build please?
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Hasitha Aravinda,
> Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile: +94 71 8 210 200
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help to get the platform/trunk building

2013-06-12 Thread Hasitha Aravinda
Hi Azeez,

I am looking into this.

Thanks,
Hasitha.


On Wed, Jun 12, 2013 at 5:31 PM, Afkham Azeez  wrote:

> I am getting the following error:
>
> [INFO] Scanning for projects...
> Downloading:
> http://download.java.net/maven/2/org/apache/apache/13/apache-13.pom
> Downloading:
> https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom
> Downloaded:
> https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom(14
>  KB at 3.2 KB/sec)
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project org.apache.ode.wso2:ode:1.3.5.wso2v9
> (/Users/azeez/projects/wso2/org/carbon/platform/trunk2/dependencies/orbit/ode/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:carbon-dependents:pom:4.2.0-SNAPSHOT and
> 'parent.relativePath' points at wrong local POM @ line 23, column 13 ->
> [Help 2]
> [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/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
>
> To test depsync with the new clustering implementation, I need to build
> AS. Can someone fix the build please?
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Hasitha Aravinda,
Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile: +94 71 8 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Need help to get the platform/trunk building

2013-06-12 Thread Afkham Azeez
I am getting the following error:

[INFO] Scanning for projects...
Downloading:
http://download.java.net/maven/2/org/apache/apache/13/apache-13.pom
Downloading:
https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom
Downloaded:
https://repository.apache.org/content/repositories/releases/org/apache/apache/13/apache-13.pom(14
KB at 3.2 KB/sec)
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.ode.wso2:ode:1.3.5.wso2v9
(/Users/azeez/projects/wso2/org/carbon/platform/trunk2/dependencies/orbit/ode/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon:carbon-dependents:pom:4.2.0-SNAPSHOT and
'parent.relativePath' points at wrong local POM @ line 23, column 13 ->
[Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


To test depsync with the new clustering implementation, I need to build AS.
Can someone fix the build please?

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why do we have a http proxy in the JMS to HTTP bridging sample (253)

2013-06-12 Thread Amila Maha Arachchi
You can find the sample at [1]

[1]
http://docs.wso2.org/wiki/display/ESB460/Sample+253%3A+Bridging+from+JMS+to+HTTP+and+Replying+with+a+202+Accepted+Response


On Wed, Jun 12, 2013 at 5:21 PM, Amila Maha Arachchi wrote:

> Hi,
>
> Sample 253 of ESB is about bridging a message from JMS to HTTP. Sample
> documentation has two proxies defined.
>
> 1.
>
> 
> 
> 
> 
> 
> 
> http://localhost:9000/services/SimpleStockQuoteService";
> />
> 
> 
> 
> 
> 
>  "file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
> 
>
> Above proxy does the JMS to HTTP bridging and caters the sample's
> intention.
>
> 2.
>
>
> 
> 
> 
> 
> 
> 
> http://localhost:9000/services/SimpleStockQuoteService";
> />
> 
> 
> 
> 
> 
>  "file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
> 
>
> This is just a http proxy. Why have we put this proxy under this sample?
> For me it is irrelevant and confusing when going through the sample.
>
> WDYT?
>
> Regards,
> AmilaM.
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>


-- 
*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] Why do we have a http proxy in the JMS to HTTP bridging sample (253)

2013-06-12 Thread Amila Maha Arachchi
Hi,

Sample 253 of ESB is about bridging a message from JMS to HTTP. Sample
documentation has two proxies defined.

1.







http://localhost:9000/services/SimpleStockQuoteService";
/>








Above proxy does the JMS to HTTP bridging and caters the sample's intention.

2.








http://localhost:9000/services/SimpleStockQuoteService";
/>








This is just a http proxy. Why have we put this proxy under this sample?
For me it is irrelevant and confusing when going through the sample.

WDYT?

Regards,
AmilaM.
-- 
*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] AxisConfiguration from TenantId

2013-06-12 Thread Mohanadarshan Vivekanandalingam
Hi,

We have a scenario to handle the tenant specific Transport Adaptors
(brokers) in CEP.
In there we need to maintain the deployment flow of Transport Adaptor
components with others..
At the moment  I have handle that with axisConfiguration. I think it is
easy if we can discuss f2f ,
then i'll try to organize a code-review ASAP and invite you ...

Thanks,
Mohan



On Wed, Jun 12, 2013 at 8:54 AM, Afkham Azeez  wrote:

> TenantAxisUtils.getConfigurationContext(tenantDomain,
> mainServerConfigContext)
>
> However, please note that calling that method would load the tenant, and
> would set the tenant accessed time to the current time. This would mean
> that if you keep calling that method, the tenant would never get unloaded.
> It would be good to see what you are trying to do since the tenancy model &
> tenant lazy loading concepts need to be understood when dealing with this
> code.
>
>
> On Mon, Jun 10, 2013 at 5:17 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Hi,
>>
>> Is there any way to get the axisconfiguration from tenantId  ??
>>
>>  Thanks,
>> Mohan
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Software Engineer,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com *
>> *lean.enterprise.middleware.*
>> *
>> *
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>



-- 
*V. Mohanadarshan*
*Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com *
*lean.enterprise.middleware.*
*
*
email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test Failures in User core in kernel

2013-06-12 Thread Shelan Perera
Hi,

I am in the 174710 and updated today as well. But i am still getting the
errors. Should be a local one to me.
Will build on a clean repo.

Thanks


On Wed, Jun 12, 2013 at 4:10 PM, Chamath Gunawardana wrote:

> sorry. here its -
>
> http://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/src/test/resources
>
> Thanks,
>
>
> On Wed, Jun 12, 2013 at 4:01 PM, Shelan Perera  wrote:
>
>> Hi,
>>
>> Is you location correct ? Could you please give me the svn link? It seems
>> it is not there.
>>
>> https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/
>>
>> thanks
>>
>>
>> On Wed, Jun 12, 2013 at 3:50 PM, Chamath Gunawardana 
>> wrote:
>>
>>> Hi Shelan,
>>>
>>> Seems its success for me.
>>> Is your h2 db in [1] got updated to latest?
>>>
>>> [1] -
>>> carbon/kernel/trunk/core/org.wso2.carbon.user.core/repository/database/WSO2CARBON_DB.h2.db
>>>
>>> Thanks,
>>>
>>>
>>> On Wed, Jun 12, 2013 at 3:30 PM, Shelan Perera  wrote:
>>>
 Hi,

 I am getting the following when run with tests.

 ---
  T E S T S
 ---
 Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.457
 sec
 Running org.wso2.carbon.user.core.claim.ClaimDAOTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753
 sec
 Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
 Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.039
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.905
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
 Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.783
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.jdbc.PermissionTest
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.317
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011
 sec
 Running org.wso2.carbon.user.core.tenant.TestTenantManager
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719
 sec <<< FAILURE!
 Running org.wso2.carbon.user.core.config.TestRealmConfigBuilder
 Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
 Running
 org.wso2.carbon.user.core.profile.AdvancedProfileConfigManagerTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.809
 sec
 Running org.wso2.carbon.user.core.hybrid.AdvancedHybridRoleManagerTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.877
 sec
 Running org.wso2.carbon.user.core.hybrid.HybridRoleManagerTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.833
 sec

 Results :

 Tests in error:

 testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
 nullType class java.lang.reflect.InvocationTargetException

 testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)

 testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
 Could not initialize class
 org.wso2.carbon.user.core.authorization.AuthorizationCache
   testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest):
 nullType class java.lang.reflect.InvocationTargetException
   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest):
 nullType class java.lang.reflect.InvocationTargetException
   testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType
 class java.lang.reflect.InvocationTargetException

 testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
 Could not initialize class
 org.wso2.carbon.user.core.authorization.AuthorizationCache

 testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
 nullType class java.lang.reflect.InvocationTargetException
   testStuff(org.wso2.carbon.use

Re: [Dev] Test Failures in User core in kernel

2013-06-12 Thread Chamath Gunawardana
sorry. here its -
http://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/src/test/resources

Thanks,


On Wed, Jun 12, 2013 at 4:01 PM, Shelan Perera  wrote:

> Hi,
>
> Is you location correct ? Could you please give me the svn link? It seems
> it is not there.
>
> https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/
>
> thanks
>
>
> On Wed, Jun 12, 2013 at 3:50 PM, Chamath Gunawardana wrote:
>
>> Hi Shelan,
>>
>> Seems its success for me.
>> Is your h2 db in [1] got updated to latest?
>>
>> [1] -
>> carbon/kernel/trunk/core/org.wso2.carbon.user.core/repository/database/WSO2CARBON_DB.h2.db
>>
>> Thanks,
>>
>>
>> On Wed, Jun 12, 2013 at 3:30 PM, Shelan Perera  wrote:
>>
>>> Hi,
>>>
>>> I am getting the following when run with tests.
>>>
>>> ---
>>>  T E S T S
>>> ---
>>> Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
>>> log4j:WARN No appenders could be found for logger
>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>> log4j:WARN Please initialize the log4j system properly.
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.457 sec
>>> Running org.wso2.carbon.user.core.claim.ClaimDAOTest
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
>>> Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03 sec
>>> <<< FAILURE!
>>> Running org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001
>>> sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.039
>>> sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.905
>>> sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869
>>> sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.783
>>> sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.PermissionTest
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.317
>>> sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
>>> Running org.wso2.carbon.user.core.tenant.TestTenantManager
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719
>>> sec <<< FAILURE!
>>> Running org.wso2.carbon.user.core.config.TestRealmConfigBuilder
>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
>>> Running
>>> org.wso2.carbon.user.core.profile.AdvancedProfileConfigManagerTest
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.809 sec
>>> Running org.wso2.carbon.user.core.hybrid.AdvancedHybridRoleManagerTest
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.877 sec
>>> Running org.wso2.carbon.user.core.hybrid.HybridRoleManagerTest
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.833 sec
>>>
>>> Results :
>>>
>>> Tests in error:
>>>
>>> testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
>>> nullType class java.lang.reflect.InvocationTargetException
>>>
>>> testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)
>>>
>>> testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
>>> Could not initialize class
>>> org.wso2.carbon.user.core.authorization.AuthorizationCache
>>>   testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest):
>>> nullType class java.lang.reflect.InvocationTargetException
>>>   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest):
>>> nullType class java.lang.reflect.InvocationTargetException
>>>   testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType
>>> class java.lang.reflect.InvocationTargetException
>>>
>>> testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
>>> Could not initialize class
>>> org.wso2.carbon.user.core.authorization.AuthorizationCache
>>>
>>> testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
>>> nullType class java.lang.reflect.InvocationTargetException
>>>   testStuff(org.wso2.carbon.user.core.jdbc.PermissionTest): nullType
>>> class java.lang.reflect.InvocationTargetException
>>>   testTenantManager(org.wso2.carbon.user.core.tenant.TestTenantManager)
>>>
>>>  Tests run: 16, Failures: 0, Errors: 10, Skipped: 0
>>>
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ---

Re: [Dev] ESB: RDF Message Builder

2013-06-12 Thread Sagara Gunathunga
On Wed, Jun 12, 2013 at 3:59 PM, Ravi Undupitiya  wrote:

> Hi Sagara,
>
>
> Thanks for the reply. There was another case where if the server does not
> send the correct content type, it might select the SOAP builder - I had a
> look at this with IsuruU, and we found that this case was fixed in NHTTP by
> setting the content type to application/xml if douilder ingREST is true,
> this logic was not included in PTT.
>

Generally if there is no builder registered with it's content type on
axis2.xml default is to use SOAPBuilder in case of doingREST set to true it
should return ApplicationXMLBuilder as the builder.



>
>
> Is it ok to add the application/rdf+xml builder/formatter pair into
> axis2.xml by default?
>

 Yes as mentioned that is correct way to do this.

Thanks !

>
>
>
> Thanks,
> Ravi
>



-- 
Sagara Gunathunga

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


Re: [Dev] Test Failures in User core in kernel

2013-06-12 Thread Shelan Perera
Hi,

Is you location correct ? Could you please give me the svn link? It seems
it is not there.
https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.user.core/

thanks


On Wed, Jun 12, 2013 at 3:50 PM, Chamath Gunawardana wrote:

> Hi Shelan,
>
> Seems its success for me.
> Is your h2 db in [1] got updated to latest?
>
> [1] -
> carbon/kernel/trunk/core/org.wso2.carbon.user.core/repository/database/WSO2CARBON_DB.h2.db
>
> Thanks,
>
>
> On Wed, Jun 12, 2013 at 3:30 PM, Shelan Perera  wrote:
>
>> Hi,
>>
>> I am getting the following when run with tests.
>>
>> ---
>>  T E S T S
>> ---
>> Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
>> log4j:WARN No appenders could be found for logger
>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>> log4j:WARN Please initialize the log4j system properly.
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.457 sec
>> Running org.wso2.carbon.user.core.claim.ClaimDAOTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
>> Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.039 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.905 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.783 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.PermissionTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.317 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
>> Running org.wso2.carbon.user.core.tenant.TestTenantManager
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719 sec
>> <<< FAILURE!
>> Running org.wso2.carbon.user.core.config.TestRealmConfigBuilder
>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
>> Running org.wso2.carbon.user.core.profile.AdvancedProfileConfigManagerTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.809 sec
>> Running org.wso2.carbon.user.core.hybrid.AdvancedHybridRoleManagerTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.877 sec
>> Running org.wso2.carbon.user.core.hybrid.HybridRoleManagerTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.833 sec
>>
>> Results :
>>
>> Tests in error:
>>
>> testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>
>> testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)
>>
>> testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
>> Could not initialize class
>> org.wso2.carbon.user.core.authorization.AuthorizationCache
>>   testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>   testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType class
>> java.lang.reflect.InvocationTargetException
>>
>> testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
>> Could not initialize class
>> org.wso2.carbon.user.core.authorization.AuthorizationCache
>>
>> testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
>> nullType class java.lang.reflect.InvocationTargetException
>>   testStuff(org.wso2.carbon.user.core.jdbc.PermissionTest): nullType
>> class java.lang.reflect.InvocationTargetException
>>   testTenantManager(org.wso2.carbon.user.core.tenant.TestTenantManager)
>>
>>  Tests run: 16, Failures: 0, Errors: 10, Skipped: 0
>>
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 19.647s
>> [INFO] Finished at: Wed Jun 12 15:28:55 IST 2013
>> [INFO] Final Memory: 32M/619M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>>

Re: [Dev] ESB: RDF Message Builder

2013-06-12 Thread Ravi Undupitiya
Hi Sagara,


Thanks for the reply. There was another case where if the server does not
send the correct content type, it might select the SOAP builder - I had a
look at this with IsuruU, and we found that this case was fixed in NHTTP by
setting the content type to application/xml if doingREST is true, this
logic was not included in PTT.


Is it ok to add the application/rdf+xml builder/formatter pair into
axis2.xml by default?



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


Re: [Dev] Test Failures in User core in kernel

2013-06-12 Thread Chamath Gunawardana
Hi Shelan,

Seems its success for me.
Is your h2 db in [1] got updated to latest?

[1] -
carbon/kernel/trunk/core/org.wso2.carbon.user.core/repository/database/WSO2CARBON_DB.h2.db

Thanks,


On Wed, Jun 12, 2013 at 3:30 PM, Shelan Perera  wrote:

> Hi,
>
> I am getting the following when run with tests.
>
> ---
>  T E S T S
> ---
> Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.457 sec
> Running org.wso2.carbon.user.core.claim.ClaimDAOTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
> Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.039 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.905 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.783 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.PermissionTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.317 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
> Running org.wso2.carbon.user.core.tenant.TestTenantManager
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719 sec
> <<< FAILURE!
> Running org.wso2.carbon.user.core.config.TestRealmConfigBuilder
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.wso2.carbon.user.core.profile.AdvancedProfileConfigManagerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.809 sec
> Running org.wso2.carbon.user.core.hybrid.AdvancedHybridRoleManagerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.877 sec
> Running org.wso2.carbon.user.core.hybrid.HybridRoleManagerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.833 sec
>
> Results :
>
> Tests in error:
>   testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
> nullType class java.lang.reflect.InvocationTargetException
>
> testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)
>
> testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
> Could not initialize class
> org.wso2.carbon.user.core.authorization.AuthorizationCache
>   testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest):
> nullType class java.lang.reflect.InvocationTargetException
>   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest):
> nullType class java.lang.reflect.InvocationTargetException
>   testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType class
> java.lang.reflect.InvocationTargetException
>
> testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
> Could not initialize class
> org.wso2.carbon.user.core.authorization.AuthorizationCache
>   testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
> nullType class java.lang.reflect.InvocationTargetException
>   testStuff(org.wso2.carbon.user.core.jdbc.PermissionTest): nullType class
> java.lang.reflect.InvocationTargetException
>   testTenantManager(org.wso2.carbon.user.core.tenant.TestTenantManager)
>
>  Tests run: 16, Failures: 0, Errors: 10, Skipped: 0
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 19.647s
> [INFO] Finished at: Wed Jun 12 15:28:55 IST 2013
> [INFO] Final Memory: 32M/619M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
> project org.wso2.carbon.user.core: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /home/shelan/wso2/trunk/carbon/kernel/trunk/core/org.wso2.carbon.user.core/target/surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the 

[Dev] Test Failures in User core in kernel

2013-06-12 Thread Shelan Perera
Hi,

I am getting the following when run with tests.

---
 T E S T S
---
Running org.wso2.carbon.user.core.claim.AdvancedClaimManagerTest
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.457 sec
Running org.wso2.carbon.user.core.claim.ClaimDAOTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
Running org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.03 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.authorization.AuthorizationCacheTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.039 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.905 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.jdbc.JDBCRealmTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.869 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.783 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.jdbc.PermissionTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.317 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.jdbc.JDBCConfigurationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running org.wso2.carbon.user.core.tenant.TestTenantManager
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719 sec
<<< FAILURE!
Running org.wso2.carbon.user.core.config.TestRealmConfigBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.wso2.carbon.user.core.profile.AdvancedProfileConfigManagerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.809 sec
Running org.wso2.carbon.user.core.hybrid.AdvancedHybridRoleManagerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.877 sec
Running org.wso2.carbon.user.core.hybrid.HybridRoleManagerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.833 sec

Results :

Tests in error:
  testStuff(org.wso2.carbon.user.core.authman.AdvancedPermissionTreeTest):
nullType class java.lang.reflect.InvocationTargetException

testAddToCache(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest)

testAddCacheHit(org.wso2.carbon.user.core.authorization.AuthorizationCacheTest):
Could not initialize class
org.wso2.carbon.user.core.authorization.AuthorizationCache
  testStuff(org.wso2.carbon.user.core.jdbc.ReadOnlyJDBCRealmTest): nullType
class java.lang.reflect.InvocationTargetException
  testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest): nullType
class java.lang.reflect.InvocationTargetException
  testStuff(org.wso2.carbon.user.core.jdbc.JDBCRealmTest): nullType class
java.lang.reflect.InvocationTargetException
  testAuthorizationClearence(org.wso2.carbon.user.core.jdbc.JDBCRealmTest):
Could not initialize class
org.wso2.carbon.user.core.authorization.AuthorizationCache
  testStuff(org.wso2.carbon.user.core.jdbc.AdvancedReadOnlyJDBCRealmTest):
nullType class java.lang.reflect.InvocationTargetException
  testStuff(org.wso2.carbon.user.core.jdbc.PermissionTest): nullType class
java.lang.reflect.InvocationTargetException
  testTenantManager(org.wso2.carbon.user.core.tenant.TestTenantManager)

Tests run: 16, Failures: 0, Errors: 10, Skipped: 0

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 19.647s
[INFO] Finished at: Wed Jun 12 15:28:55 IST 2013
[INFO] Final Memory: 32M/619M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
project org.wso2.carbon.user.core: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/shelan/wso2/trunk/carbon/kernel/trunk/core/org.wso2.carbon.user.core/target/surefire-reports
for the individual test results.
[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


-- 
*Shelan Perera*

Senior Software Engineer
**
Integration Technology Group
*WSO2, Inc. : wso

[Dev] 4.1.2 p2 repo release date

2013-06-12 Thread Gihan Anuruddha
Hi,

What is the release date for the 4.1.2 p2 repository ?

Regards,
Gihan
-- 
---
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Info, Warning and Error messages : A common way to follow

2013-06-12 Thread Shiroshica Kulatilake
Hi AppFactory Team,

In order to give the user a comfortable and consistent user experience
let's get our user feedback to follow a common format across all pages.

*Types of messages and Usage : *
1. Error messages : Should be used when the user is blocked from
progressing on the current action.
2. Warning messages : Should be used to warn the user of a future failure
3. Info : Stating a fact - ideally which is not obvious
4. Success : To communicate success on an action performed - ideally which
is not obvious
5. Confirmations : To confirm on an action which will do unrecoverable
actions - e.g. delete resources

*Language:*
1. Error / Warning messages:
- Be specific with the error and corrective action
- Should be relevant and leading to action
2. Info and Success messages:
- If the action result is obvious then we should not provide additional
feedback - e.g. a redirection or a listing is available post action.
- If the action consists of an external event being triggered which the
current user cannot verify - e.g. sending an email which the user needs to
know - then feedback should be provided
3. General:
- Be specific and clear
- Grammar and Spell checked messages

*Formats:*
1. Error : [Problem]+[Why]+[Remedial Action]
2. Warning : [Problem]+[Consequences]+[Remedial Action]
3. Info/Success: Confirmation + [Summary of action]

The above is a list to start with. Please comment to add to/ modify this.

Also, a quick way to get this rolling is to validate all feedback messages
wrt to the context in the page you are currently working on, and, correct
if required.  - WDYT ?

Thank you,
Shiro

-- 
Shiroshica Kulatilake

Architect,
WSO2, Inc. http://wso2.com/
Phone: +94 776523867
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Is there a Registry method to return asset with id in jaggery?

2013-06-12 Thread Vijitha Kumara
This seems to be a design decision taken while developing the API? Is there
any other method accepting id in jaggery module?


On Wed, Jun 12, 2013 at 12:40 PM, Chan  wrote:

> As I have tested with the jaggery artifact.js module - it uses 
> GenericArtifactManager
> and GenericArtifactManager.getGenericArtifact() requires a path. Now
> switching to the @dev list as suggested by Nirmal
>
>
> On Wed, Jun 12, 2013 at 11:45 AM, Pulasthi Supun wrote:
>
>> Hi Chan
>>
>> Did you take a look at GenericArtifactManager [1]. it has a method to get
>> an artifact through the id not sure how applicable it is to your scenario
>> just take a look and see if it does the job
>>
>> [1]
>> http://wso2.org/project/registry/4.1.1/docs/apidocs/governance/org/wso2/carbon/governance/api/generic/GenericArtifactManager.html#getGenericArtifact(java.lang.String)
>>
>> Regards,
>> Pulasthi
>>
>>
>> On Wed, Jun 12, 2013 at 11:26 AM, Chan  wrote:
>>
>>> Hi all,
>>> I want to know if there is a way to get an asset with the id of it.
>>>
>>> var carbon = require('carbon'),
>>>server = new carbon.server.Server(),
>>>registry = new carbon.registry.Registry(server, {
>>>username : 'admin',
>>>tenantId : -1234
>>>});
>>> am = new carbon.registry.ArtifactManager(registry, 'android');
>>>
>>> like am.get(id)? I looked into the 
>>> documentationand
>>>  saw that registry has a get method but that requires a path parameter
>>> (Also this is pure greg, I am accessing Greg through the jaggery module).
>>>
>>> --
>>> Chan (Dulitha Wijewantha)
>>> Software Engineer - Mobile Development
>>> WSO2Mobile
>>> Lean.Enterprise.Mobileware
>>>  * ~Email   duli...@wso2mobile.com*
>>> *  ~Mobile +94712112165*
>>> *  ~Website   dulithawijewantha.com
>>> *
>>> *  ~Blog blog.dulithawijewantha.com
>>> *
>>> *  ~Twitter @dulitharw *
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> --
>> Pulasthi Supun
>> Software Engineer; WSO2 Inc.; http://wso2.com,
>> Email: pulas...@wso2.com
>> Mobile: +94 (71) 9258281
>> Blog : http://pulasthisupun.blogspot.com/
>> Git hub profile: https://github.com/pulasthi
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2mobile.com*
> *  ~Mobile +94712112165*
> *  ~Website   dulithawijewantha.com
> *
> *  ~Blog blog.dulithawijewantha.com
> *
> *  ~Twitter @dulitharw *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vijitha Kumara
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: viji...@wso2.com


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


Re: [Dev] Build Break - attachment-management.xml (No such file or directory)

2013-06-12 Thread Lasith Chandrasekara
Hi,

Agree with Vijitha, I got the same error few weeks ago. But that time it
was fixed by Nandika.
Changes are on,
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/features/attachment-mgt/org.wso2.carbon.attachment.mgt.server.feature/4.1.2/resources/conf/

-Lasith.



On Wed, Jun 12, 2013 at 12:19 PM, Vijitha Kumara  wrote:

> This should be fixed, you may need to update BPS components and/or
> registry components/product as well.
>
>
> On Wed, Jun 12, 2013 at 11:58 AM, Malaka Silva  wrote:
>
>> I'm getting the following when building patch release 4.1.3?
>>
>> [INFO] WSO2 Carbon - Cloud Governance UI Feature . SUCCESS
>> [0.383s]
>> [INFO] WSO2 Governance Registry - P2 Profile Generation .. SUCCESS
>> [31.334s]
>> [INFO] WSO2 Governance Registry - Distribution ... FAILURE
>> [41.941s]
>> [INFO] WSO2 Governance Registry - Integration Tests .. SKIPPED
>> [INFO] WSO2 Governance Registry Test Framework - Registry Test Module
>> Group  SKIPPED
>> [INFO] Registry TestNG Test Samples .. SKIPPED
>> [INFO] Backward association handler Sample ... SKIPPED
>> [INFO] Registry TestNG Test Module ... SKIPPED
>> [INFO] Registry TestNG Test Module ... SKIPPED
>> [INFO] Registry UI Test Module ... SKIPPED
>> [INFO] WSO2 ESB - Aggregator Module .. SKIPPED
>> [INFO] WSO2 ESB - Styles Parent .. SKIPPED
>> [INFO] WSO2 ESB - Styles . SKIPPED
>> [INFO] WSO2 Stratos ESB - Styles . SKIPPED
>> [INFO] WSO2 ESB - Samples Parent . SKIPPED
>> [INFO] WSO2 ESB - Samples  SKIPPED
>> [INFO] WSO2 Stratos ESB - Samples  SKIPPED
>> [INFO] WSO2 ESB - Features Parent  SKIPPED
>> [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
>> [INFO] WSO2 ESB - Styles Features  SKIPPED
>> [INFO] WSO2 ESB - Samples Features ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
>> [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
>> [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
>> [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
>> [INFO] WSO2 ESB - Distribution ... SKIPPED
>> [INFO] WSO2 ESB - Integration Parent . SKIPPED
>> [INFO] WSO2 ESB Integration Test Core  SKIPPED
>> [INFO] ESB test Module ... SKIPPED
>> [INFO] ESB Sample Scenarios .. SKIPPED
>> [INFO] WSO2 ESB NHTTP Transport Integration Tests  SKIPPED
>> [INFO] Priority Executors Module . SKIPPED
>> [INFO] Proxy Services Integration Tests .. SKIPPED
>> [INFO] Sequence Module ... SKIPPED
>> [INFO] WSO2 ESB HTTP Servlet Transport Integration Tests . SKIPPED
>> [INFO] WS-Discovery Integration Tests  SKIPPED
>> [INFO] Module Mgt Integration Tests .. SKIPPED
>> [INFO] Service Mgt Integration Tests . SKIPPED
>> [INFO] af-archetype .. SKIPPED
>> [INFO] jaxrs-archetype ... SKIPPED
>> [INFO] jaxws-archetype ... SKIPPED
>> [INFO] jaggery-archetype . SKIPPED
>> [INFO] bpel-archetype  SKIPPED
>> [INFO] dbs-archetype . SKIPPED
>> [INFO] esb-archetype . SKIPPED
>> [INFO] php-archetype . SKIPPED
>> [INFO] maven-archetype-webapp  SKIPPED
>> [INFO] WSO2 AppFacotry - Parent .. SKIPPED
>> [INFO] WSO2 AppFactory - Archetype For Applications .. SKIPPED
>> [INFO] BPEL Parent ... SKIPPED
>> [INFO] UserCreation .. SKIPPED
>> [INFO] UserActivation  SKIPPED
>> [INFO] ApplicationCreation ... SKIPPED
>> [INFO] AddUserToApplication .. SKIPPED
>> [INFO] CreateArtifact  SKIPPED
>> [INFO] DeployArtifact  SKIPPED
>> [INFO] DeployToStage . SKIPPED
>> [INFO] UserCreationHT  SKIPPED
>> [INFO] GovernanceBPEL  SKIPPED
>> [INFO] UserApprovalTask .. SKIPPED
>> [INFO] WSO2 AppFa

Re: [Dev] [Architecture] Is there a Registry method to return asset with id in jaggery?

2013-06-12 Thread Chan
As I have tested with the jaggery artifact.js module - it uses
GenericArtifactManager
and GenericArtifactManager.getGenericArtifact() requires a path. Now
switching to the @dev list as suggested by Nirmal


On Wed, Jun 12, 2013 at 11:45 AM, Pulasthi Supun  wrote:

> Hi Chan
>
> Did you take a look at GenericArtifactManager [1]. it has a method to get
> an artifact through the id not sure how applicable it is to your scenario
> just take a look and see if it does the job
>
> [1]
> http://wso2.org/project/registry/4.1.1/docs/apidocs/governance/org/wso2/carbon/governance/api/generic/GenericArtifactManager.html#getGenericArtifact(java.lang.String)
>
> Regards,
> Pulasthi
>
>
> On Wed, Jun 12, 2013 at 11:26 AM, Chan  wrote:
>
>> Hi all,
>> I want to know if there is a way to get an asset with the id of it.
>>
>> var carbon = require('carbon'),
>>server = new carbon.server.Server(),
>>registry = new carbon.registry.Registry(server, {
>>username : 'admin',
>>tenantId : -1234
>>});
>> am = new carbon.registry.ArtifactManager(registry, 'android');
>>
>> like am.get(id)? I looked into the 
>> documentationand
>>  saw that registry has a get method but that requires a path parameter
>> (Also this is pure greg, I am accessing Greg through the jaggery module).
>>
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2Mobile
>> Lean.Enterprise.Mobileware
>>  * ~Email   duli...@wso2mobile.com*
>> *  ~Mobile +94712112165*
>> *  ~Website   dulithawijewantha.com
>> *
>> *  ~Blog blog.dulithawijewantha.com
>> *
>> *  ~Twitter @dulitharw *
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> --
> Pulasthi Supun
> Software Engineer; WSO2 Inc.; http://wso2.com,
> Email: pulas...@wso2.com
> Mobile: +94 (71) 9258281
> Blog : http://pulasthisupun.blogspot.com/
> Git hub profile: https://github.com/pulasthi
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulithawijewantha.com
*
*  ~Blog blog.dulithawijewantha.com
*
*  ~Twitter @dulitharw *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev