Re: [Carbon-dev] LDAP ports reading from carbon.xml is inconsistent!

2011-05-17 Thread Afkham Azeez
Hasini,
Please fix the Embedded LDAP starting code so that I can commit the port
offset fix.


On Tue, May 17, 2011 at 2:06 AM, Hasini Gunasinghe  wrote:

>
>
> On Mon, May 16, 2011 at 11:43 PM, Hasini Gunasinghe wrote:
>
>>
>>
>> On Mon, May 16, 2011 at 11:34 PM, Afkham Azeez  wrote:
>>
>>>
>>>
>>> On Mon, May 16, 2011 at 11:30 PM, Hasini Gunasinghe wrote:
>>>


 On Mon, May 16, 2011 at 11:11 PM, Afkham Azeez  wrote:

> In addition;
> public static String getPortFromServerConfig(String property) {
>
> ports are always integers. Is it possible for you to change that?
>

> This was changed to return port as int type, in CarbonUtils.java.
>
> Due to that change following classes needed to be chaged:
> 1. LDAPConnectionContext.java, LDAPUserStoreManager.java - verified.
> 2. HttpTransport.java - Here I only commented out the string to int
> conversions made earlier. Please remove the unnecessary code as of now.
> 3. JMXServerManager.java
>
> I built the core and tested the changed bundles by deploying in a
> near-latest build. Didn't find any issues. Hence committed.
>
> Please let me know if you find any regression issues due to changes.
>
> Will do the other fix too that is mentioned earlier in this thread.
>
> Thanks,
> Hasini.
>
>
>>
 When introducing above method, the purpose was to override only the part
 what represents the port in LDAP connection url mentioned in the
 user-mgt.xml.

>>>
>>> Ports are not always used to construct URLs as in your case.
>>>
>>
>> Agree. Will change it accordingly.
>>
>>>
>>>
 So after reading the port from above method, I combined it again to
 construct the LDAP url which is a string and that it why above method
 returns the string itself read from carbon.xml.

 If the correct way is to return it after converting to an int, I will do
 that change. But then we have to convert to a string again to combine it 
 and
 construct the url.
 Please let me know if I need to proceed changing the return type to int.

 Thanks,
 Hasini.

>
>
> On Mon, May 16, 2011 at 11:01 PM, Hasini Gunasinghe 
> wrote:
>
>> Hi Azeez,
>>
>> I didn't clearly get the problem here. Let me explain the LDAP port
>> usage. There are two places where LDAP port is used in code.
>>
>> 1. When starting embedded-ldap - this is done in ldap-server component
>> which starts before user-core.
>>Earlier the port was in embedded-ldap.xml and AmilaJ has fixed it
>> to read it from carbon.xml
>>
>> 2. When user manager connects to the user store -  this is done in
>> user-core.
>>Earlier port was in user-mgt.xml and I made it overridden from
>> carbon.xml.
>>
>> I understand it is done in two ways. Can you please explain where I
>> should fix this?
>> Do I need to make both places read directly from carbon.xml or both
>> places read port through CarbonUtils.getPortFromServerConfig method?
>>
>> Thanks,
>> Hasini.
>>
>> On Mon, May 16, 2011 at 10:39 PM, Afkham Azeez wrote:
>>
>>> [2011-05-16 22:33:15,402]  INFO
>>> {org.wso2.carbon.ldap.server.DirectoryActivator} -  Starting directory
>>> service on port 10399
>>> [2011-05-16 22:33:18,567] ERROR
>>> {org.wso2.carbon.user.core.ldap.LDAPConnectionContext} -  Error 
>>> obtaining
>>> connection. localhost:10401
>>>
>>> The port creation is done by directly reading form the carbon.xml
>>> file, but connecting to that is done using the
>>> CarbonUtils.getPortFromServerConfig method. Because of this, I cannot 
>>> get
>>> the port Offset to work. Please fix this ASAP.
>>>
>>> --
>>> *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*
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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://b

Re: [Carbon-dev] Shipping Deployment Synchronizer with all products which uses Axis2 repository

2011-05-17 Thread Senaka Fernando
On Wed, May 18, 2011 at 11:15 AM, Sameera Jayasoma  wrote:

>
>
> On Wed, May 18, 2011 at 10:14 AM, Hiranya Jayathilaka wrote:
>
>>
>>
>> On Wed, May 18, 2011 at 12:45 AM, Senaka Fernando wrote:
>>
>>>
>>>
>>> On Wed, May 18, 2011 at 12:30 AM, Afkham Azeez  wrote:
>>>


 On Wed, May 18, 2011 at 12:26 AM, Isuru Suriarachchi wrote:

> Hi all,
>
> Currently Deployment Synchronizer is not shipped with AS, DSS etc. by
> default. But I think this is a very important feature for all products 
> which
> are using the Axis2 repository and clustered most of the time in 
> production
> environments. Therefore, I think this should be shipped with AS, ESB, DSS
> and BRS. WDYT??
>

>> +1 We already ship it with ESB
>>
>>
>>>
> We already have an issue for this at [1]. However, Registry Community
> Features are needed for Deployment Synchronizer. Hiranya, can you please
> explain why and can't it work without that at all?
>

 Please split the community features, if required. I guess some util
 methods/classes are used from it.

>>>
>>> +1. Hiranya, is it required to be able to add/remove subscriptions from
>>> the Registry Browser UI? If not, we can move the registry eventing BE stuff
>>> into another feature, so that the deployment synchronizer can use that.
>>>
>>
>> It's only using registry eventing (org.wso2.carbon.registry.eventing). And
>> even that's optional. User can specify when enabling the synchronizer
>> whether to use eventing or use simple periodic synchronization. Is there a
>> separate feature through which we can get the above component?
>>
>
> You can simply import the registry eventing bundle from the registry
> community feature instead of importing the  whole features.
>

Yes, +1.

Thanks,
Senaka.

>
> Sameera.
>
>>
>> Thanks,
>> Hiranya
>>
>>
>>>
>>> Thanks,
>>> Senaka.
>>>
>>>
> Thanks,
> ~Isuru
>
> [1] https://wso2.org/jira/browse/CARBON-10010
>
> --
> Isuru Suriarachchi
> Technical Lead & Product Manager, WSO2 Application Server
> WSO2 Inc. http://wso2.com
> email : is...@wso2.com
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*


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


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> Hiranya Jayathilaka
>> Senior Software Engineer;
>> WSO2 Inc.;  http://wso2.org
>> E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
>> Blog: http://techfeast-hiranya.blogspot.com
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Sameera Jayasoma
> Technical Lead and Product Manager, WSO2 Carbon
>
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://tech.jayasoma.org
>
> Lean . Enterprise . Middleware
>



-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.548 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.422 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.441 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.452 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.343 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.384 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.445 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 104 minutes 26 seconds
[INFO] Finished at: Wed May 18 11:34:40 IST 2011
[INFO] Final Memory: 926M/1640M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Carbon Studio] Why have Jars in svn?

2011-05-17 Thread Saminda Wijeratne
On Wed, May 18, 2011 at 9:57 AM, Selvaratnam Uthaiyashankar <
shan...@wso2.com> wrote:

>
>
> On Tue, May 17, 2011 at 11:24 PM, Harshana Martin wrote:
>
>> Hi Samisa,
>>
>> This issue has been raised in code-reviews as well[1]. Saminda has
>> explained few reasons why we are doing this for the moment.
>>
>> Still the build is not perfect and we are in the process of solving these
>> issues using Eclipse Tycho [2] integration. We can specify those jars in the
>> relevant poms. Then if someone wants to import the sources in to eclipse,
>> he/she will have to create maven eclipse project artifacts.
>>
>> With the current way, users can just check-out sources and import it to
>> their workspace. He/She does not have to create maven eclipse project
>> artifacts.
>>
>
>
> This is not a valid argument :). People normally do mvn eclipse:eclipse.
> They don't expect to just checkout and import the source.
>
That is the ideal thing we tried to do when we introduced maven build. But
doing a mvn eclipse:eclipse screws up the IDE settings files for an eclipse
*plugin *(thus eclipse no longer detecting the project as a plugin). We are
expecting to get this solved via tycho.

Saminda

>
>
> Regards,
> Shankar
>
>
>
>>
>> At the same time, when creating artifacts like custom mediators, registry
>> handlers, we need to add these jars to C-App classpath.
>>
>> [1]. https://wso2.org/crucible/cru/COMPONENT-14#c228
>> [2].
>> http://www.eclipse.org/projects/project_summary.php?projectid=technology.tycho
>>
>> Thanks and Regards,
>> Harshana
>>
>> On Tue, May 17, 2011 at 9:26 AM, Samisa Abeysinghe wrote:
>>
>>>
>>> https://svn.wso2.org/repos/wso2/branches/tools/eclipse/carbon-studio/1.0.0/common/org.wso2.carbonstudio.eclipse.libraries/lib/
>>>
>>>
>>> And
>>> there are more. Why?
>>>
>>> Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Harshana Martin
>> Software Engineer
>> WSO2 Inc.
>> Web:http://wso2.com
>>   http://wso2.org
>>
>> Mobile: +94 716062650
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>> Twitter: http://twitter.com/harshana05
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> S.Uthaiyashankar
> Senior Architect & Senior Manager
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Shipping Deployment Synchronizer with all products which uses Axis2 repository

2011-05-17 Thread Sameera Jayasoma
On Wed, May 18, 2011 at 10:14 AM, Hiranya Jayathilaka wrote:

>
>
> On Wed, May 18, 2011 at 12:45 AM, Senaka Fernando  wrote:
>
>>
>>
>> On Wed, May 18, 2011 at 12:30 AM, Afkham Azeez  wrote:
>>
>>>
>>>
>>> On Wed, May 18, 2011 at 12:26 AM, Isuru Suriarachchi wrote:
>>>
 Hi all,

 Currently Deployment Synchronizer is not shipped with AS, DSS etc. by
 default. But I think this is a very important feature for all products 
 which
 are using the Axis2 repository and clustered most of the time in production
 environments. Therefore, I think this should be shipped with AS, ESB, DSS
 and BRS. WDYT??

>>>
> +1 We already ship it with ESB
>
>
>>
 We already have an issue for this at [1]. However, Registry Community
 Features are needed for Deployment Synchronizer. Hiranya, can you please
 explain why and can't it work without that at all?

>>>
>>> Please split the community features, if required. I guess some util
>>> methods/classes are used from it.
>>>
>>
>> +1. Hiranya, is it required to be able to add/remove subscriptions from
>> the Registry Browser UI? If not, we can move the registry eventing BE stuff
>> into another feature, so that the deployment synchronizer can use that.
>>
>
> It's only using registry eventing (org.wso2.carbon.registry.eventing). And
> even that's optional. User can specify when enabling the synchronizer
> whether to use eventing or use simple periodic synchronization. Is there a
> separate feature through which we can get the above component?
>

You can simply import the registry eventing bundle from the registry
community feature instead of importing the  whole features.

Sameera.

>
> Thanks,
> Hiranya
>
>
>>
>> Thanks,
>> Senaka.
>>
>>
 Thanks,
 ~Isuru

 [1] https://wso2.org/jira/browse/CARBON-10010

 --
 Isuru Suriarachchi
 Technical Lead & Product Manager, WSO2 Application Server
 WSO2 Inc. http://wso2.com
 email : is...@wso2.com
 blog : http://isurues.wordpress.com/

 lean . enterprise . middleware


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Hiranya Jayathilaka
> Senior Software Engineer;
> WSO2 Inc.;  http://wso2.org
> E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Sameera Jayasoma
Technical Lead and Product Manager, WSO2 Carbon

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://tech.jayasoma.org

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


Re: [Carbon-dev] [Carbon Studio] Why have Jars in svn?

2011-05-17 Thread Samisa Abeysinghe
On Wed, May 18, 2011 at 9:57 AM, Selvaratnam Uthaiyashankar <
shan...@wso2.com> wrote:

>
>
> On Tue, May 17, 2011 at 11:24 PM, Harshana Martin wrote:
>
>> Hi Samisa,
>>
>> This issue has been raised in code-reviews as well[1]. Saminda has
>> explained few reasons why we are doing this for the moment.
>>
>> Still the build is not perfect and we are in the process of solving these
>> issues using Eclipse Tycho [2] integration. We can specify those jars in the
>> relevant poms. Then if someone wants to import the sources in to eclipse,
>> he/she will have to create maven eclipse project artifacts.
>>
>> With the current way, users can just check-out sources and import it to
>> their workspace. He/She does not have to create maven eclipse project
>> artifacts.
>>
>
>
> This is not a valid argument :). People normally do mvn eclipse:eclipse.
> They don't expect to just checkout and import the source.
>

And the jars in svn is killing the checkout :(


>
>
> Regards,
> Shankar
>
>
>
>>
>> At the same time, when creating artifacts like custom mediators, registry
>> handlers, we need to add these jars to C-App classpath.
>>
>> [1]. https://wso2.org/crucible/cru/COMPONENT-14#c228
>> [2].
>> http://www.eclipse.org/projects/project_summary.php?projectid=technology.tycho
>>
>> Thanks and Regards,
>> Harshana
>>
>> On Tue, May 17, 2011 at 9:26 AM, Samisa Abeysinghe wrote:
>>
>>>
>>> https://svn.wso2.org/repos/wso2/branches/tools/eclipse/carbon-studio/1.0.0/common/org.wso2.carbonstudio.eclipse.libraries/lib/
>>>
>>>
>>> And
>>> there are more. Why?
>>>
>>> Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Harshana Martin
>> Software Engineer
>> WSO2 Inc.
>> Web:http://wso2.com
>>   http://wso2.org
>>
>> Mobile: +94 716062650
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>> Twitter: http://twitter.com/harshana05
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> S.Uthaiyashankar
> Senior Architect & Senior Manager
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] How to check for Admin Role

2011-05-17 Thread Hasini Gunasinghe
Hi,

On Wed, May 18, 2011 at 9:36 AM, Dimuthu Leelarathne wrote:

> Hi
>
> On Tue, May 17, 2011 at 5:35 PM, Amila Suriarachchi wrote:
>
>>
>> without making assumptions please try yourself with a clean build. In the
>> registry permissions section I can only see the admin role (not the
>> adminRole I set)
>>
>>
> Sorry about this. Created an L1 issue for this. We'll fix it soon.
>
> https://wso2.org/jira/browse/CARBON-10045
>

I had a look into this issue. This is an issue related to a behavior of
default user - which is embedded-ldap, and it is not an issue of user-core.

I have added a comment to the issue. Let me explain it here as well.

When starting embedded-ldap, a default partition (dc=wso2,dc=org) is created
with an admin user and admin role according to the names provided in
embedded-ldap.xml which is in repository/conf.

The default values given there, are : admin user name= admin, admin role
name= admin.

And this is why you see a role named : admin even after changing the admin
role name in user-mgt.xml. If you change the admin role name in both
user-mgt.xml and embedded-ldap.xml, this issue will not occur.

But I know it is not a good idea to change the same configuration in two
files. So IMO, we need to override admin-role mentioned in embedded-ldap.xml
by the one mentioned in user-mgt.xml.

In order to do that, we need to get realm configuration from realm service.
But user core is not started at the time ldap-server component is started.
Therefore we need to separately read user-mgt.xml in ldap-server component
when creating admin role at ldap server start up.

Please let me know whether there is a better way to fix this issue of having
to set admin role name in two config files..

Thanks,
Hasini.

>
>
> tx,
> dimuthu
>
>
>
>> thanks,
>> Amila.
>>
>>>
>>> tx,
>>> dimuthul
>>>
>>>
>>>
 Please see the attachments.

 thanks,
 Amila,

>
> tx,
> dimuthul
>
>
>> And also,
>>
>> userRealm.getAuthorizationManager().isUserAuthorized(
>> loggedInUser, topicResourcePath,
>>
>> EventBrokerConstants.EB_PERMISSION_CHANGE_PERMISSION)
>>
>> returns false if user is not explicitly given the permission to that
>> resource. But in carbon there is a convention to
>> allow any user in admin role to do any activity. Then why don't we add
>> that rule too to the user manager.
>>
>> Then everyone does not have to repeat admin role check every where.
>>
>> thanks,
>> Amila.
>>
>>
>> [1] https://wso2.org/jira/browse/CARBON-9959
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

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


>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Shipping Deployment Synchronizer with all products which uses Axis2 repository

2011-05-17 Thread Hiranya Jayathilaka
On Wed, May 18, 2011 at 12:45 AM, Senaka Fernando  wrote:

>
>
> On Wed, May 18, 2011 at 12:30 AM, Afkham Azeez  wrote:
>
>>
>>
>> On Wed, May 18, 2011 at 12:26 AM, Isuru Suriarachchi wrote:
>>
>>> Hi all,
>>>
>>> Currently Deployment Synchronizer is not shipped with AS, DSS etc. by
>>> default. But I think this is a very important feature for all products which
>>> are using the Axis2 repository and clustered most of the time in production
>>> environments. Therefore, I think this should be shipped with AS, ESB, DSS
>>> and BRS. WDYT??
>>>
>>
+1 We already ship it with ESB


>
>>> We already have an issue for this at [1]. However, Registry Community
>>> Features are needed for Deployment Synchronizer. Hiranya, can you please
>>> explain why and can't it work without that at all?
>>>
>>
>> Please split the community features, if required. I guess some util
>> methods/classes are used from it.
>>
>
> +1. Hiranya, is it required to be able to add/remove subscriptions from the
> Registry Browser UI? If not, we can move the registry eventing BE stuff into
> another feature, so that the deployment synchronizer can use that.
>

It's only using registry eventing (org.wso2.carbon.registry.eventing). And
even that's optional. User can specify when enabling the synchronizer
whether to use eventing or use simple periodic synchronization. Is there a
separate feature through which we can get the above component?

Thanks,
Hiranya


>
> Thanks,
> Senaka.
>
>
>>> Thanks,
>>> ~Isuru
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-10010
>>>
>>> --
>>> Isuru Suriarachchi
>>> Technical Lead & Product Manager, WSO2 Application Server
>>> WSO2 Inc. http://wso2.com
>>> email : is...@wso2.com
>>> blog : http://isurues.wordpress.com/
>>>
>>> lean . enterprise . middleware
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>


-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Carbon Studio] Why have Jars in svn?

2011-05-17 Thread Selvaratnam Uthaiyashankar
On Tue, May 17, 2011 at 11:24 PM, Harshana Martin  wrote:

> Hi Samisa,
>
> This issue has been raised in code-reviews as well[1]. Saminda has
> explained few reasons why we are doing this for the moment.
>
> Still the build is not perfect and we are in the process of solving these
> issues using Eclipse Tycho [2] integration. We can specify those jars in the
> relevant poms. Then if someone wants to import the sources in to eclipse,
> he/she will have to create maven eclipse project artifacts.
>
> With the current way, users can just check-out sources and import it to
> their workspace. He/She does not have to create maven eclipse project
> artifacts.
>


This is not a valid argument :). People normally do mvn eclipse:eclipse.
They don't expect to just checkout and import the source.


Regards,
Shankar



>
> At the same time, when creating artifacts like custom mediators, registry
> handlers, we need to add these jars to C-App classpath.
>
> [1]. https://wso2.org/crucible/cru/COMPONENT-14#c228
> [2].
> http://www.eclipse.org/projects/project_summary.php?projectid=technology.tycho
>
> Thanks and Regards,
> Harshana
>
> On Tue, May 17, 2011 at 9:26 AM, Samisa Abeysinghe wrote:
>
>>
>> https://svn.wso2.org/repos/wso2/branches/tools/eclipse/carbon-studio/1.0.0/common/org.wso2.carbonstudio.eclipse.libraries/lib/
>>
>>
>> And
>> there are more. Why?
>>
>> Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Harshana Martin
> Software Engineer
> WSO2 Inc.
> Web:http://wso2.com
>   http://wso2.org
>
> Mobile: +94 716062650
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
> Twitter: http://twitter.com/harshana05
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
S.Uthaiyashankar
Senior Architect & Senior Manager
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Distributed caching should be tested thoroughly

2011-05-17 Thread Denis Weerasiri
On Wed, May 18, 2011 at 9:47 AM, Charitha Kankanamge wrote:

> Thanks for fixing this Asela.
>
> Sameera, Can we have a new set of packs for QA testing please? Now I cannot
> continue testing because of this distributed caching issue. I cannot even
> log in to config registry instance in my cluster setup since I get
> ClassNotFoundException:
> org.wso2.carbon.user.core.authorization.AuthorizationKey.
> Also, in both app server nodes, I cannot browse the registry due to this
> error.
> I think it is time to have new set of packs.
>
Will work on it. Packs will contain commits upto 9.45am today.

>
> /Charitha
>
>
>
>
> On Wed, May 18, 2011 at 8:18 AM, Asela Pathberiya  wrote:
>
>>
>>
>> On Tue, May 17, 2011 at 12:38 AM, Charitha Kankanamge 
>> wrote:
>>
>>> @Subject is a new feature and we are discovering random/unpredictable
>>> issues (eg:- [1]). Therefore, we should test this thoroughly.
>>
>>
>>> [1]https://wso2.org/jira/browse/CARBON-10028
>>>
>>
>> There were some issue with authorization cache and fixed in r94430.
>>
>> Thanks,
>> Asela.
>>
>>
>>>
>>> Regards
>>> Charitha
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Thanks,
Denis
--
*Denis Weerasiri*
Software Engineer; WSO2 Inc.; http://wso2.com,
*email: denis ** [AT] wso2.com* *
blog: **http://ddweerasiri.blogspot.com* *
twitter: **http://twitter.com/ddweerasiri* *
linked-in: 
**http://lk.linkedin.com/in/ddweerasiri*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.224 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.286 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.399 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.443 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.303 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.367 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.42 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 107 minutes 21 seconds
[INFO] Finished at: Wed May 18 09:45:02 IST 2011
[INFO] Final Memory: 850M/1820M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Distributed caching should be tested thoroughly

2011-05-17 Thread Charitha Kankanamge
Thanks for fixing this Asela.

Sameera, Can we have a new set of packs for QA testing please? Now I cannot
continue testing because of this distributed caching issue. I cannot even
log in to config registry instance in my cluster setup since I get
ClassNotFoundException:
org.wso2.carbon.user.core.authorization.AuthorizationKey.
Also, in both app server nodes, I cannot browse the registry due to this
error.
I think it is time to have new set of packs.

/Charitha



On Wed, May 18, 2011 at 8:18 AM, Asela Pathberiya  wrote:

>
>
> On Tue, May 17, 2011 at 12:38 AM, Charitha Kankanamge 
> wrote:
>
>> @Subject is a new feature and we are discovering random/unpredictable
>> issues (eg:- [1]). Therefore, we should test this thoroughly.
>
>
>> [1]https://wso2.org/jira/browse/CARBON-10028
>>
>
> There were some issue with authorization cache and fixed in r94430.
>
> Thanks,
> Asela.
>
>
>>
>> Regards
>> Charitha
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Why do we have "Change Password" functionality under Configure --> Users and Roles

2011-05-17 Thread Dimuthu Leelarathne
Hi

On Wed, May 18, 2011 at 6:14 AM, Prabath Siriwardena wrote:

> +1
>
> I guess Change My Password needs to go under My Profile.
>
> Yes. But my profile isn't in every product.

tx,
dimuthul



> Thanks & regards,
> -Prabath
>
> On Tue, May 17, 2011 at 11:17 PM, Senaka Fernando  wrote:
> > When you have Login permissions, you'll see Configure --> Users and
> Roles.
> > This is to change the password. But, seeing the Configure menu, even
> without
> > having any Configuration-related permissions, is a bit odd, and
> misleading
> > isn't it?
> >
> > Thanks,
> > Senaka.
> >
> > --
> > Senaka Fernando
> > Product Manager - WSO2 Governance Registry;
> > Associate Technical Lead; WSO2 Inc.; http://wso2.com
> > Member; Apache Software Foundation; http://apache.org
> >
> > E-mail: senaka AT wso2.com
> > P: +1 408 754 7388; ext: 51736; M: +94 77 322 1818
> > Linked-In: http://linkedin.com/in/senakafernando
> >
> > Lean . Enterprise . Middleware
> >
> >
> > ___
> > Carbon-dev mailing list
> > Carbon-dev@wso2.org
> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
> >
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] How to check for Admin Role

2011-05-17 Thread Dimuthu Leelarathne
Hi

On Tue, May 17, 2011 at 5:35 PM, Amila Suriarachchi  wrote:

>
> without making assumptions please try yourself with a clean build. In the
> registry permissions section I can only see the admin role (not the
> adminRole I set)
>
>
Sorry about this. Created an L1 issue for this. We'll fix it soon.

https://wso2.org/jira/browse/CARBON-10045

tx,
dimuthu



> thanks,
> Amila.
>
>>
>> tx,
>> dimuthul
>>
>>
>>
>>> Please see the attachments.
>>>
>>> thanks,
>>> Amila,
>>>

 tx,
 dimuthul


> And also,
>
> userRealm.getAuthorizationManager().isUserAuthorized(
> loggedInUser, topicResourcePath,
>
> EventBrokerConstants.EB_PERMISSION_CHANGE_PERMISSION)
>
> returns false if user is not explicitly given the permission to that
> resource. But in carbon there is a convention to
> allow any user in admin role to do any activity. Then why don't we add
> that rule too to the user manager.
>
> Then everyone does not have to repeat admin role check every where.
>
> thanks,
> Amila.
>
>
> [1] https://wso2.org/jira/browse/CARBON-9959
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

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


>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Error While Starting Sample Axis2 Server of ESB

2011-05-17 Thread Amani Soysa
On Tue, May 17, 2011 at 1:03 PM, Afkham Azeez  wrote:

> A carbon.home system prop has to be set. This was an enhancement required
> by another Jira related to log file locations. Amani could provide more
> background info.
>
> Yes carbon.home system prop has to be set.

Its a fix for CARBON-9425 . This
is because when we deploy our products in other application servers (tomcact
/ weblogic ect) the log files do not get created in the correct path.
Therefore, we changed
log4j.appender.CARBON_LOGFILE.File=repository/logs/${instance.log}/wso2carbon${instance.log}.log
to
log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log



>
> On Tue, May 17, 2011 at 1:00 PM, Hiranya Jayathilaka wrote:
>
>> It's something to do with how file paths are specified in
>> log4j.properties. Earlier file paths were defined as follows:
>>
>>
>> log4j.appender.CARBON_LOGFILE.File=repository/logs/${instance.log}/wso2-esb${instance.log}.log
>>
>> Now they are defined as follows:
>>
>> log4j.appender.CARBON_LOGFILE.File=*${carbon.home}*
>> /repository/logs/${instance.log}/wso2carbon${instance.log}.log
>>
>> Note the ${carbon.home} place holder in the new file path. How does it
>> resolve the ${carbon.home} place holder?
>>
>> Thanks,
>> Hiranya
>>
>>
>> On Tue, May 17, 2011 at 12:48 PM, Hiranya Jayathilaka 
>> wrote:
>>
>>>
>>>
>>> On Tue, May 17, 2011 at 12:42 PM, Hiranya Jayathilaka 
>>> wrote:
>>>


 On Tue, May 17, 2011 at 11:20 AM, Amila Maha Arachchi 
 wrote:

> Hi,
>
> I remember a thread going on to make esb log file names consistent with
> other carbon products' log file names (due to introduction of syslog).
> Something to do with that?
>

>>> Actually you are right. When I put the old log4j.properties the error
>>> doesn't occur. So this is a regression caused by the above change.
>>>
>>> Thanks,
>>> Hiranya
>>>
>>>

 I don't think so. It's looking for some log files in repository/logs
 directory according to the stack trace. But the log files actually exist in
 CARBON_HOME/repository/logs. It's picking up the correct log file names 
 from
 the main log4j.properties file. But apparently it cannot resolve the
 CARBON_HOME.

 Thanks,
 Hiranya


>
> Thanks,
> AmilaM.
>
>  On Tue, May 17, 2011 at 11:14 AM, Hiranya Jayathilaka <
> hira...@wso2.com> wrote:
>
>>  Any idea why this happens?
>>
>>
>>  Using JAVA_HOME:   /opt/jdk1.6.0_16
>>  Using AXIS2 Repository :
>> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository
>>  Using AXIS2 Configuration :
>> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository/conf/axis2.xml
>> log4j:ERROR setFile(null,true) call failed.
>> java.io.FileNotFoundException: /repository/logs/wso2carbon.log (No
>> such file or directory)
>>  at java.io.FileOutputStream.openAppend(Native Method)
>> at java.io.FileOutputStream.(FileOutputStream.java:177)
>>  at java.io.FileOutputStream.(FileOutputStream.java:102)
>> at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>>  at
>> org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
>> at
>> org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>>  at
>> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
>> at
>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>>  at
>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>> at
>> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>>  at
>> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>> at
>> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>>  at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>> at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>>  at
>> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
>> at org.apache.log4j.LogManager.(LogManager.java:122)
>>  at org.apache.log4j.Logger.getLogger(Logger.java:104)
>> at
>> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
>>  at
>> org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>  at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>  at java.lang.reflect.Co

Re: [Carbon-dev] Distributed caching should be tested thoroughly

2011-05-17 Thread Asela Pathberiya
On Tue, May 17, 2011 at 12:38 AM, Charitha Kankanamge wrote:

> @Subject is a new feature and we are discovering random/unpredictable
> issues (eg:- [1]). Therefore, we should test this thoroughly.


> [1]https://wso2.org/jira/browse/CARBON-10028
>

There were some issue with authorization cache and fixed in r94430.

Thanks,
Asela.


>
> Regards
> Charitha
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Did we do the test branching?

2011-05-17 Thread Milinda Pathirage
We tested orbit, core and components. Currently Manu is working on it. We
should be able to finish it tomorrow.

Thanks
Milinda

On Wed, May 18, 2011 at 7:35 AM, Samisa Abeysinghe  wrote:

> $subject
>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Milinda Pathirage
Technical Lead and Product Manager, Business Process Server - WSO2 Inc;
http://wso2.com
Blog: http://blog.mpathirage.com

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


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.213 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.271 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.13 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.397 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.461 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.307 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.365 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.419 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 104 minutes 32 seconds
[INFO] Finished at: Wed May 18 07:52:51 IST 2011
[INFO] Final Memory: 851M/1813M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Creating BAM database at startup

2011-05-17 Thread Buddhika Chamith
Hi All,

I was working on getting BAM feature installation work on top of a carbon
distribution (https://wso2.org/jira/browse/CARBON-9756). It was done except
for creation of BAM specific database in h2. I explored a bit about tweaking
-Dsetup option but it seems it is used only for registry and user management
and is specific to carbon core. As I realized having product specific stuff
in carbon core is not correct as well. Appreciate any ideas to make this
work. But if this requires a considerable amount of effort I think we should
be focusing on other L1 issues which we are having at the moment since the
feature installation would work with an external database which is the
recommended installation method.

Regards
Buddhika
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Did we do the test branching?

2011-05-17 Thread Samisa Abeysinghe
$subject

Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Carbon-commits] [Carbon] svn commit r94446 - in branches/carbon/3.2.0/dependencies/axis2/modules/kernel: . src/org/apache/axis2/deployment src/org/apache/axis2/engine

2011-05-17 Thread Amila Suriarachchi
On Wed, May 18, 2011 at 2:04 AM, Afkham Azeez  wrote:

> This is causing a build break it seems. Also, how are you planning to
> getting this fix into the Apache trunk?


How do we read the axis2.xml within carbon? Do any carbon code read the
axis2.xml and pass to axis2 engine. If so this security processing can be
done there as well.

thanks,
Amila.

>
>
> On Tue, May 17, 2011 at 11:54 AM,  wrote:
>
>> Author: asela
>> Date: Mon May 16 23:24:49 2011
>> New Revision: 94446
>> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=94446
>>
>> Log:
>> Appling secure vault patch for Axis2 - AXIS2-4725  and Adding method to
>> resolve password of NIO SSL and Mail transport. But Please note
>> implementation must be in the underline transport code in all defined
>> transports, actually not in Axis2. It is Ta ODO item for next release by
>> keeping secure vault as WS-commoms or WSO2-commons  project. In 3.2.0, we
>> are condsider only on email and NIO-SSL
>>
>> Modified:
>>   branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>>
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
>>
>> Modified: branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> URL:
>> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml?rev=94446&r1=94445&r2=94446&view=diff
>>
>> ==
>> --- branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> (original)
>> +++ branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> Mon May 16 23:24:49 2011
>> @@ -96,6 +96,11 @@
>> commons-io
>> test
>> 
>> +
>> +org.wso2.securevault
>> +org.wso2.securevault
>> +1.0.0-SNAPSHOT
>> +
>> 
>> 
>> scm:svn:
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/branches/1_6/modules/kernel
>> 
>>
>> Modified:
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>> URL:
>> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java?rev=94446&r1=94445&r2=94446&view=diff
>>
>> ==
>> ---
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>  (original)
>> +++
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>  Mon May 16 23:24:49 2011
>> @@ -53,6 +53,8 @@
>>  import org.apache.axis2.util.ThreadContextMigratorUtil;
>>  import org.apache.commons.logging.Log;
>>  import org.apache.commons.logging.LogFactory;
>> +import org.wso2.securevault.SecretResolver;
>> +import org.wso2.securevault.SecretResolverFactory;
>>
>>  import javax.xml.namespace.QName;
>>  import javax.xml.stream.XMLStreamException;
>> @@ -87,7 +89,7 @@
>> public void populateConfig() throws DeploymentException {
>> try {
>> OMElement config_element = buildOM();
>> -
>> +
>>  axisConfig.setSecretResolver(SecretResolverFactory.create(config_element,
>> false));
>> if (!TAG_AXISCONFIG.equals(config_element.getLocalName())) {
>> throw new
>> DeploymentException(Messages.getMessage("badelementfound", TAG_AXISCONFIG,
>>
>> config_element.getLocalName()));
>> @@ -644,6 +646,7 @@
>> try {
>> Iterator itr = transport.getChildrenWithName(new
>> QName(TAG_PARAMETER));
>> processParameters(itr, transportIN, axisConfig);
>> +resolveTransportPasswords(transportIN);
>> // adding to axis2 config
>> axisConfig.addTransportIn(transportIN);
>> transportReceivers.add(transportIN);
>> @@ -692,6 +695,7 @@
>> Iterator itr = transport.getChildrenWithName(new
>> QName(TAG_PARAMETER));
>>
>> processParameters(itr, transportout, axisConfig);
>> +resolveTransportPasswords(transportout);
>> // adding to axis2 config
>> axisConfig.addTransportOut(transportout);
>> } catch (NoClassDefFoundError e) {
>> @@ -785,4 +789,69 @@
>> Class phaseClass =
>> Loader.loadClass(axisConfig.getSystemClassLoader(), className);
>> return (Phase) phaseClass.newInstance();
>> }
>> +
>> +/**
>> + * This is to resolve secured passwords of the transport sender and
>> listeners.
>> + * But this implementation must be in the underline transport code.
>>  TODO
>> + * This method is just to resolve the Email sender and NIO SSL
>> transport pass

Re: [Carbon-dev] [Carbon-commits] [Carbon] svn commit r94446 - in branches/carbon/3.2.0/dependencies/axis2/modules/kernel: . src/org/apache/axis2/deployment src/org/apache/axis2/engine

2011-05-17 Thread Amila Suriarachchi
On Wed, May 18, 2011 at 6:37 AM, Prabath Siriwardena wrote:

> Would it be an issue to get a dependency on wso2 commons ? I guess no...
>

First Asela could you please explain how this resolver resolve functionality
works? First we need to make sure there is no any carbon specific things
there.

I think this code has derived from Apache Synapse. Then some one might ask
the question why this code has not gone as an apache commons project.

thanks,
Amila.

>
> Thanks & regards,
> -Prabath
>
> On Wed, May 18, 2011 at 2:04 AM, Afkham Azeez  wrote:
> > This is causing a build break it seems. Also, how are you planning to
> > getting this fix into the Apache trunk?
> >
> > On Tue, May 17, 2011 at 11:54 AM,  wrote:
> >>
> >> Author: asela
> >> Date: Mon May 16 23:24:49 2011
> >> New Revision: 94446
> >> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=94446
> >>
> >> Log:
> >> Appling secure vault patch for Axis2 - AXIS2-4725  and Adding method to
> >> resolve password of NIO SSL and Mail transport. But Please note
> >> implementation must be in the underline transport code in all defined
> >> transports, actually not in Axis2. It is Ta ODO item for next release by
> >> keeping secure vault as WS-commoms or WSO2-commons  project. In 3.2.0,
> we
> >> are condsider only on email and NIO-SSL
> >>
> >> Modified:
> >>   branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
> >>
> >>
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
> >>
> >>
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
> >>
> >> Modified:
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
> >> URL:
> >>
> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml?rev=94446&r1=94445&r2=94446&view=diff
> >>
> >>
> ==
> >> --- branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
> >> (original)
> >> +++ branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
> >> Mon May 16 23:24:49 2011
> >> @@ -96,6 +96,11 @@
> >> commons-io
> >> test
> >> 
> >> +
> >> +org.wso2.securevault
> >> +org.wso2.securevault
> >> +1.0.0-SNAPSHOT
> >> +
> >> 
> >> 
> >>
> >> scm:svn:
> http://svn.apache.org/repos/asf/axis/axis2/java/core/branches/1_6/modules/kernel
> 
> >>
> >> Modified:
> >>
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
> >> URL:
> >>
> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java?rev=94446&r1=94445&r2=94446&view=diff
> >>
> >>
> ==
> >> ---
> >>
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
> >>  (original)
> >> +++
> >>
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
> >>  Mon May 16 23:24:49 2011
> >> @@ -53,6 +53,8 @@
> >>  import org.apache.axis2.util.ThreadContextMigratorUtil;
> >>  import org.apache.commons.logging.Log;
> >>  import org.apache.commons.logging.LogFactory;
> >> +import org.wso2.securevault.SecretResolver;
> >> +import org.wso2.securevault.SecretResolverFactory;
> >>
> >>  import javax.xml.namespace.QName;
> >>  import javax.xml.stream.XMLStreamException;
> >> @@ -87,7 +89,7 @@
> >> public void populateConfig() throws DeploymentException {
> >> try {
> >> OMElement config_element = buildOM();
> >> -
> >> +
> >>
>  axisConfig.setSecretResolver(SecretResolverFactory.create(config_element,
> >> false));
> >> if (!TAG_AXISCONFIG.equals(config_element.getLocalName())) {
> >> throw new
> >> DeploymentException(Messages.getMessage("badelementfound",
> TAG_AXISCONFIG,
> >>
> >> config_element.getLocalName()));
> >> @@ -644,6 +646,7 @@
> >> try {
> >> Iterator itr = transport.getChildrenWithName(new
> >> QName(TAG_PARAMETER));
> >> processParameters(itr, transportIN, axisConfig);
> >> +resolveTransportPasswords(transportIN);
> >> // adding to axis2 config
> >> axisConfig.addTransportIn(transportIN);
> >> transportReceivers.add(transportIN);
> >> @@ -692,6 +695,7 @@
> >> Iterator itr = transport.getChildrenWithName(new
> >> QName(TAG_PARAMETER));
> >>
> >> processParameters(itr, transportout, axisConfig);
> >> +resolveTransportPasswords(transportout);
> >> // adding to axis2 config
> >> axisConfig.addTransportOut(trans

Re: [Carbon-dev] [Carbon-commits] [Carbon] svn commit r94446 - in branches/carbon/3.2.0/dependencies/axis2/modules/kernel: . src/org/apache/axis2/deployment src/org/apache/axis2/engine

2011-05-17 Thread Asela Pathberiya
On Wed, May 18, 2011 at 2:04 AM, Afkham Azeez  wrote:

> This is causing a build break it seems. Also, how are you planning to
> getting this fix into the Apache trunk?


I missed to commit a pom. Fixed in r94467. There is a jira[1] for this (all
changes are not in this jira).  AFAIK, there is a discussion of moving
synapse secure vault to WS-Commons, till we need to keep it as WSO2-commons
and patch the axis2 internally.

[1] https://issues.apache.org/jira/browse/AXIS2-4725


>
>
> On Tue, May 17, 2011 at 11:54 AM,  wrote:
>
>> Author: asela
>> Date: Mon May 16 23:24:49 2011
>> New Revision: 94446
>> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=94446
>>
>> Log:
>> Appling secure vault patch for Axis2 - AXIS2-4725  and Adding method to
>> resolve password of NIO SSL and Mail transport. But Please note
>> implementation must be in the underline transport code in all defined
>> transports, actually not in Axis2. It is Ta ODO item for next release by
>> keeping secure vault as WS-commoms or WSO2-commons  project. In 3.2.0, we
>> are condsider only on email and NIO-SSL
>>
>> Modified:
>>   branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>>
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
>>
>> Modified: branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> URL:
>> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml?rev=94446&r1=94445&r2=94446&view=diff
>>
>> ==
>> --- branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> (original)
>> +++ branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> Mon May 16 23:24:49 2011
>> @@ -96,6 +96,11 @@
>> commons-io
>> test
>> 
>> +
>> +org.wso2.securevault
>> +org.wso2.securevault
>> +1.0.0-SNAPSHOT
>> +
>> 
>> 
>> scm:svn:
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/branches/1_6/modules/kernel
>> 
>>
>> Modified:
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>> URL:
>> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java?rev=94446&r1=94445&r2=94446&view=diff
>>
>> ==
>> ---
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>  (original)
>> +++
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>  Mon May 16 23:24:49 2011
>> @@ -53,6 +53,8 @@
>>  import org.apache.axis2.util.ThreadContextMigratorUtil;
>>  import org.apache.commons.logging.Log;
>>  import org.apache.commons.logging.LogFactory;
>> +import org.wso2.securevault.SecretResolver;
>> +import org.wso2.securevault.SecretResolverFactory;
>>
>>  import javax.xml.namespace.QName;
>>  import javax.xml.stream.XMLStreamException;
>> @@ -87,7 +89,7 @@
>> public void populateConfig() throws DeploymentException {
>> try {
>> OMElement config_element = buildOM();
>> -
>> +
>>  axisConfig.setSecretResolver(SecretResolverFactory.create(config_element,
>> false));
>> if (!TAG_AXISCONFIG.equals(config_element.getLocalName())) {
>> throw new
>> DeploymentException(Messages.getMessage("badelementfound", TAG_AXISCONFIG,
>>
>> config_element.getLocalName()));
>> @@ -644,6 +646,7 @@
>> try {
>> Iterator itr = transport.getChildrenWithName(new
>> QName(TAG_PARAMETER));
>> processParameters(itr, transportIN, axisConfig);
>> +resolveTransportPasswords(transportIN);
>> // adding to axis2 config
>> axisConfig.addTransportIn(transportIN);
>> transportReceivers.add(transportIN);
>> @@ -692,6 +695,7 @@
>> Iterator itr = transport.getChildrenWithName(new
>> QName(TAG_PARAMETER));
>>
>> processParameters(itr, transportout, axisConfig);
>> +resolveTransportPasswords(transportout);
>> // adding to axis2 config
>> axisConfig.addTransportOut(transportout);
>> } catch (NoClassDefFoundError e) {
>> @@ -785,4 +789,69 @@
>> Class phaseClass =
>> Loader.loadClass(axisConfig.getSystemClassLoader(), className);
>> return (Phase) phaseClass.newInstance();
>> }
>> +
>> +/**
>> + * This is to resolve secured passwords of the transport sender and
>> listeners.
>> + * But this implementation must be in

Re: [Carbon-dev] Distributed caching should be tested thoroughly

2011-05-17 Thread Charitha Kankanamge
Yes. It is jdk _24 in the setup but this is in my machine Prabath.

/Charitha

On Tue, May 17, 2011 at 7:16 AM, Prabath Siriwardena wrote:

> Hi Charitha,
>
> +1 for testing this thoroughly...
>
> Small note - in JIRA it says we are testing with jdk1.6_21 - in fact
> what we recommend now is jdk1.6_24 - after the security fix in the JDK
> - better have our test setup upgraded as well..
>
> Thanks & regards,
> -Prabath
>
>
> On Tue, May 17, 2011 at 12:38 AM, Charitha Kankanamge 
> wrote:
> > @Subject is a new feature and we are discovering random/unpredictable
> issues
> > (eg:- [1]). Therefore, we should test this thoroughly.
> >
> > [1]https://wso2.org/jira/browse/CARBON-10028
> >
> > Regards
> > Charitha
> >
> > ___
> > Carbon-dev mailing list
> > Carbon-dev@wso2.org
> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
> >
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Carbon-commits] [Carbon] svn commit r94446 - in branches/carbon/3.2.0/dependencies/axis2/modules/kernel: . src/org/apache/axis2/deployment src/org/apache/axis2/engine

2011-05-17 Thread Prabath Siriwardena
Would it be an issue to get a dependency on wso2 commons ? I guess no...

Thanks & regards,
-Prabath

On Wed, May 18, 2011 at 2:04 AM, Afkham Azeez  wrote:
> This is causing a build break it seems. Also, how are you planning to
> getting this fix into the Apache trunk?
>
> On Tue, May 17, 2011 at 11:54 AM,  wrote:
>>
>> Author: asela
>> Date: Mon May 16 23:24:49 2011
>> New Revision: 94446
>> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=94446
>>
>> Log:
>> Appling secure vault patch for Axis2 - AXIS2-4725  and Adding method to
>> resolve password of NIO SSL and Mail transport. But Please note
>> implementation must be in the underline transport code in all defined
>> transports, actually not in Axis2. It is Ta ODO item for next release by
>> keeping secure vault as WS-commoms or WSO2-commons  project. In 3.2.0, we
>> are condsider only on email and NIO-SSL
>>
>> Modified:
>>   branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>>
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
>>
>> Modified: branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> URL:
>> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml?rev=94446&r1=94445&r2=94446&view=diff
>>
>> ==
>> --- branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> (original)
>> +++ branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>> Mon May 16 23:24:49 2011
>> @@ -96,6 +96,11 @@
>>             commons-io
>>             test
>>         
>> +        
>> +            org.wso2.securevault
>> +            org.wso2.securevault
>> +            1.0.0-SNAPSHOT
>> +        
>>     
>>     
>>
>> scm:svn:http://svn.apache.org/repos/asf/axis/axis2/java/core/branches/1_6/modules/kernel
>>
>> Modified:
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>> URL:
>> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java?rev=94446&r1=94445&r2=94446&view=diff
>>
>> ==
>> ---
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>      (original)
>> +++
>> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>>      Mon May 16 23:24:49 2011
>> @@ -53,6 +53,8 @@
>>  import org.apache.axis2.util.ThreadContextMigratorUtil;
>>  import org.apache.commons.logging.Log;
>>  import org.apache.commons.logging.LogFactory;
>> +import org.wso2.securevault.SecretResolver;
>> +import org.wso2.securevault.SecretResolverFactory;
>>
>>  import javax.xml.namespace.QName;
>>  import javax.xml.stream.XMLStreamException;
>> @@ -87,7 +89,7 @@
>>     public void populateConfig() throws DeploymentException {
>>         try {
>>             OMElement config_element = buildOM();
>> -
>> +
>>  axisConfig.setSecretResolver(SecretResolverFactory.create(config_element,
>> false));
>>             if (!TAG_AXISCONFIG.equals(config_element.getLocalName())) {
>>                 throw new
>> DeploymentException(Messages.getMessage("badelementfound", TAG_AXISCONFIG,
>>
>> config_element.getLocalName()));
>> @@ -644,6 +646,7 @@
>>                 try {
>>                     Iterator itr = transport.getChildrenWithName(new
>> QName(TAG_PARAMETER));
>>                     processParameters(itr, transportIN, axisConfig);
>> +                    resolveTransportPasswords(transportIN);
>>                     // adding to axis2 config
>>                     axisConfig.addTransportIn(transportIN);
>>                     transportReceivers.add(transportIN);
>> @@ -692,6 +695,7 @@
>>                     Iterator itr = transport.getChildrenWithName(new
>> QName(TAG_PARAMETER));
>>
>>                     processParameters(itr, transportout, axisConfig);
>> +                    resolveTransportPasswords(transportout);
>>                     // adding to axis2 config
>>                     axisConfig.addTransportOut(transportout);
>>                 } catch (NoClassDefFoundError e) {
>> @@ -785,4 +789,69 @@
>>         Class phaseClass =
>> Loader.loadClass(axisConfig.getSystemClassLoader(), className);
>>         return (Phase) phaseClass.newInstance();
>>     }
>> +
>> +    /**
>> +     * This is to resolve secured passwords of the transport sender and
>> listeners.
>> +     * But this implementation must be in the underline transport code.
>>  TODO
>> +     * This method is just to resolve the Email sender and NIO SSL
>> transport passwords.
>> +     * @param transport   Implementations of ParameterInclude
>> +     */
>> +    priva

Re: [Carbon-dev] Secure vault causes build failure in Axis2`

2011-05-17 Thread Asela Pathberiya
Fixed the build failure.

On Wed, May 18, 2011 at 12:49 AM, Afkham Azeez  wrote:

> I saw the following error when I ran "mvn install -o"
>
> [INFO] [bundle:bundle {execution: default-bundle}]
> [ERROR] Error building bundle
> org.apache.axis2:org.apache.axis2.osgi:bundle:1.6.1-wso2v1 : Unresolved
> references to [org.wso2.securevault] by class(es) on the
> Bundle-Classpath[Jar:dot]: [org/apache/axis2/engine/AxisConfiguration.class,
> org/apache/axis2/deployment/AxisConfigBuilder.class]
> [ERROR] Error(s) found in bundle configuration
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error(s) found in bundle configuration
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 36 minutes 18 seconds
> [INFO] Finished at: Wed May 18 00:33:55 IST 2011
> [INFO] Final Memory: 715M/1668M
>
>
> --
> *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*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Why do we have "Change Password" functionality under Configure --> Users and Roles

2011-05-17 Thread Prabath Siriwardena
+1

I guess Change My Password needs to go under My Profile.

Thanks & regards,
-Prabath

On Tue, May 17, 2011 at 11:17 PM, Senaka Fernando  wrote:
> When you have Login permissions, you'll see Configure --> Users and Roles.
> This is to change the password. But, seeing the Configure menu, even without
> having any Configuration-related permissions, is a bit odd, and misleading
> isn't it?
>
> Thanks,
> Senaka.
>
> --
> Senaka Fernando
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> P: +1 408 754 7388; ext: 51736; M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>



-- 
Thanks & Regards,
Prabath

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


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.24 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.275 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.443 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.342 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.381 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.418 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 107 minutes 45 seconds
[INFO] Finished at: Wed May 18 06:03:28 IST 2011
[INFO] Final Memory: 856M/1820M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] "WSO2 Carbon Continuous Build was SUCCESSFUL"

2011-05-17 Thread WSO2 EC2 Carbon Builder
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.servicehosting.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.dataservices.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.transport.mgt.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.transport.jms.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.transport.mail.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.statistics.transport.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.discovery.client.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.discovery.core.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.discovery.mediation.ext.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.discovery.proxy.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.discovery.ui.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.wsdl.tools.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.wsdl.tools.server.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.wsdl.tools.ui.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.xkms.mgt.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.multiple.instance.feature
[INFO] Extracting feature org.wso2.esb:org.wso2.esb.styles.feature
[INFO] Extracting feature org.wso2.governance:org.wso2.governance.styles.feature
[INFO] Extracting feature org.wso2.gs:org.wso2.gs.styles.feature
[INFO] Extracting feature org.wso2.gs:org.wso2.gs.menu.feature
[INFO] Extracting feature org.wso2.identity:org.wso2.identity.styles.feature
[INFO] Extracting feature org.wso2.identity:org.wso2.identity.utils.feature
[INFO] Extracting feature org.wso2.ms:org.wso2.ms.styles.feature
[INFO] Extracting feature org.wso2.appserver:org.wso2.appserver.styles.feature
[INFO] Extracting feature org.wso2.appserver:org.wso2.appserver.utils.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.cloud.csg.agent.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.cloud.csg.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.application.mgt.webapp.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.application.deployer.webapp.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.unifiedendpoint.server.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.event.feature
[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.messagebox.feature
[INFO] Extracting feature 
org.wso2.carbon:org.wso2.carbon.deployment.synchronizer.feature
[INFO] Copying resources
[INFO] Running Equinox P2 Publisher Application for Repository Generation
[INFO] Generating metadata for ..
[INFO] Generation completed with success [42 seconds].
[INFO] Running Equinox P2 Category Publisher Application for the Generated 
Repository
[INFO] [install:install {execution: default-install}]
[INFO] Installing /home/carbon/carbon/features/repository/pom.xml to 
/home/carbon/.m2/repository/org/wso2/carbon/wso2carbon-feature-repository/3.2.0-SNAPSHOT/wso2carbon-feature-repository-3.2.0-SNAPSHOT.pom
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 2 minutes 8 seconds
[INFO] Finished at: Tue May 17 22:48:11 UTC 2011
[INFO] Final Memory: 25M/981M
[INFO] 
2011-05-17_22-38-46
Carbon  packs are available at : 
http://builder.wso2.org/~carbon/releases/carbon/3.2.0/latest/
tail -n50 $CARBON_SRC_HOME/build.log
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.26 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.273 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.399 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.397 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.448 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.301 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.367 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.417 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 110 minutes 21 seconds
[INFO] Finished at: Wed May 18 04:10:31 IST 2011
[INFO] Final Memory: 850M/1820M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.352 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.273 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.46 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.342 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.379 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.435 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 111 minutes 43 seconds
[INFO] Finished at: Wed May 18 02:15:02 IST 2011
[INFO] Final Memory: 851M/1852M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Carbon-commits] [Carbon] svn commit r94446 - in branches/carbon/3.2.0/dependencies/axis2/modules/kernel: . src/org/apache/axis2/deployment src/org/apache/axis2/engine

2011-05-17 Thread Afkham Azeez
This is causing a build break it seems. Also, how are you planning to
getting this fix into the Apache trunk?


On Tue, May 17, 2011 at 11:54 AM,  wrote:

> Author: asela
> Date: Mon May 16 23:24:49 2011
> New Revision: 94446
> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=94446
>
> Log:
> Appling secure vault patch for Axis2 - AXIS2-4725  and Adding method to
> resolve password of NIO SSL and Mail transport. But Please note
> implementation must be in the underline transport code in all defined
> transports, actually not in Axis2. It is Ta ODO item for next release by
> keeping secure vault as WS-commoms or WSO2-commons  project. In 3.2.0, we
> are condsider only on email and NIO-SSL
>
> Modified:
>   branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
>
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
>
> Modified: branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
> URL:
> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml?rev=94446&r1=94445&r2=94446&view=diff
>
> ==
> --- branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml
> (original)
> +++ branches/carbon/3.2.0/dependencies/axis2/modules/kernel/pom.xml Mon
> May 16 23:24:49 2011
> @@ -96,6 +96,11 @@
> commons-io
> test
> 
> +
> +org.wso2.securevault
> +org.wso2.securevault
> +1.0.0-SNAPSHOT
> +
> 
> 
> scm:svn:
> http://svn.apache.org/repos/asf/axis/axis2/java/core/branches/1_6/modules/kernel
> 
>
> Modified:
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
> URL:
> http://wso2.org/svn/browse/wso2/branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java?rev=94446&r1=94445&r2=94446&view=diff
>
> ==
> ---
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>  (original)
> +++
> branches/carbon/3.2.0/dependencies/axis2/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java
>  Mon May 16 23:24:49 2011
> @@ -53,6 +53,8 @@
>  import org.apache.axis2.util.ThreadContextMigratorUtil;
>  import org.apache.commons.logging.Log;
>  import org.apache.commons.logging.LogFactory;
> +import org.wso2.securevault.SecretResolver;
> +import org.wso2.securevault.SecretResolverFactory;
>
>  import javax.xml.namespace.QName;
>  import javax.xml.stream.XMLStreamException;
> @@ -87,7 +89,7 @@
> public void populateConfig() throws DeploymentException {
> try {
> OMElement config_element = buildOM();
> -
> +
>  axisConfig.setSecretResolver(SecretResolverFactory.create(config_element,
> false));
> if (!TAG_AXISCONFIG.equals(config_element.getLocalName())) {
> throw new
> DeploymentException(Messages.getMessage("badelementfound", TAG_AXISCONFIG,
>
> config_element.getLocalName()));
> @@ -644,6 +646,7 @@
> try {
> Iterator itr = transport.getChildrenWithName(new
> QName(TAG_PARAMETER));
> processParameters(itr, transportIN, axisConfig);
> +resolveTransportPasswords(transportIN);
> // adding to axis2 config
> axisConfig.addTransportIn(transportIN);
> transportReceivers.add(transportIN);
> @@ -692,6 +695,7 @@
> Iterator itr = transport.getChildrenWithName(new
> QName(TAG_PARAMETER));
>
> processParameters(itr, transportout, axisConfig);
> +resolveTransportPasswords(transportout);
> // adding to axis2 config
> axisConfig.addTransportOut(transportout);
> } catch (NoClassDefFoundError e) {
> @@ -785,4 +789,69 @@
> Class phaseClass =
> Loader.loadClass(axisConfig.getSystemClassLoader(), className);
> return (Phase) phaseClass.newInstance();
> }
> +
> +/**
> + * This is to resolve secured passwords of the transport sender and
> listeners.
> + * But this implementation must be in the underline transport code.
>  TODO
> + * This method is just to resolve the Email sender and NIO SSL
> transport passwords.
> + * @param transport   Implementations of ParameterInclude
> + */
> +private void resolveTransportPasswords(ParameterInclude transport) {
> +
> +SecretResolver secretResolver = axisConfig.getSecretResolver();
> +if(secretResolver.isInitialized()){
> +String keyStorePassToken = null;
> +String

Re: [Carbon-dev] Misleading logs @ BAM Start-up

2011-05-17 Thread Tharindu Mathew
Log levels are a bit messed up in the bam code :(. Will fix the obvious
blunders as the we are concentrating on L1s.

On Wed, May 18, 2011 at 12:21 AM, Afkham Azeez  wrote:

> Such logs should never be printed at info level.
>
> On Tue, May 17, 2011 at 11:53 PM, Senaka Fernando  wrote:
>
>> FYI.
>>
>> [2011-05-17 23:46:16,796]  INFO {org.osgi.framework.BundleActivator} -
>> BAM Core bundle activator started.
>> [2011-05-17 23:46:16,828]  INFO {org.osgi.framework.BundleActivator} -
>> BAM Core bundle activator started.
>>
>> AFAIU, these are coming from two bundles, and I think the log printed
>> inside one activator is wrong.
>>
>> Thanks,
>> Senaka.
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Regards,

Tharindu
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Secure vault causes build failure in Axis2`

2011-05-17 Thread Afkham Azeez
I saw the following error when I ran "mvn install -o"

[INFO] [bundle:bundle {execution: default-bundle}]
[ERROR] Error building bundle
org.apache.axis2:org.apache.axis2.osgi:bundle:1.6.1-wso2v1 : Unresolved
references to [org.wso2.securevault] by class(es) on the
Bundle-Classpath[Jar:dot]: [org/apache/axis2/engine/AxisConfiguration.class,
org/apache/axis2/deployment/AxisConfigBuilder.class]
[ERROR] Error(s) found in bundle configuration
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error(s) found in bundle configuration

[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 36 minutes 18 seconds
[INFO] Finished at: Wed May 18 00:33:55 IST 2011
[INFO] Final Memory: 715M/1668M


-- 
*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*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Shipping Deployment Synchronizer with all products which uses Axis2 repository

2011-05-17 Thread Senaka Fernando
On Wed, May 18, 2011 at 12:30 AM, Afkham Azeez  wrote:

>
>
> On Wed, May 18, 2011 at 12:26 AM, Isuru Suriarachchi wrote:
>
>> Hi all,
>>
>> Currently Deployment Synchronizer is not shipped with AS, DSS etc. by
>> default. But I think this is a very important feature for all products which
>> are using the Axis2 repository and clustered most of the time in production
>> environments. Therefore, I think this should be shipped with AS, ESB, DSS
>> and BRS. WDYT??
>>
>> We already have an issue for this at [1]. However, Registry Community
>> Features are needed for Deployment Synchronizer. Hiranya, can you please
>> explain why and can't it work without that at all?
>>
>
> Please split the community features, if required. I guess some util
> methods/classes are used from it.
>

+1. Hiranya, is it required to be able to add/remove subscriptions from the
Registry Browser UI? If not, we can move the registry eventing BE stuff into
another feature, so that the deployment synchronizer can use that.

Thanks,
Senaka.


>> Thanks,
>> ~Isuru
>>
>> [1] https://wso2.org/jira/browse/CARBON-10010
>>
>> --
>> Isuru Suriarachchi
>> Technical Lead & Product Manager, WSO2 Application Server
>> WSO2 Inc. http://wso2.com
>> email : is...@wso2.com
>> blog : http://isurues.wordpress.com/
>>
>> lean . enterprise . middleware
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


Re: [Carbon-dev] Transport Management UI Issues

2011-05-17 Thread Senaka Fernando
On Wed, May 18, 2011 at 12:25 AM, Afkham Azeez  wrote:

> These are not L1s. We have to concentrate all our efforts on fixing L1s
> only, at this point in time.


Yes, we can fix these later.

Thanks,
Senaka.

>
>
> On Wed, May 18, 2011 at 12:18 AM, Senaka Fernando  wrote:
>
>> Hi Hiranya,
>>
>> Can you have a look?
>>
>> [1] https://wso2.org/jira/browse/CARBON-10040
>> [2] https://wso2.org/jira/browse/CARBON-10039
>>
>> Thanks,
>> Senaka.
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


Re: [Carbon-dev] Shipping Deployment Synchronizer with all products which uses Axis2 repository

2011-05-17 Thread Afkham Azeez
On Wed, May 18, 2011 at 12:26 AM, Isuru Suriarachchi  wrote:

> Hi all,
>
> Currently Deployment Synchronizer is not shipped with AS, DSS etc. by
> default. But I think this is a very important feature for all products which
> are using the Axis2 repository and clustered most of the time in production
> environments. Therefore, I think this should be shipped with AS, ESB, DSS
> and BRS. WDYT??
>
> We already have an issue for this at [1]. However, Registry Community
> Features are needed for Deployment Synchronizer. Hiranya, can you please
> explain why and can't it work without that at all?
>

Please split the community features, if required. I guess some util
methods/classes are used from it.

>
> Thanks,
> ~Isuru
>
> [1] https://wso2.org/jira/browse/CARBON-10010
>
> --
> Isuru Suriarachchi
> Technical Lead & Product Manager, WSO2 Application Server
> WSO2 Inc. http://wso2.com
> email : is...@wso2.com
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Shipping Deployment Synchronizer with all products which uses Axis2 repository

2011-05-17 Thread Isuru Suriarachchi
Hi all,

Currently Deployment Synchronizer is not shipped with AS, DSS etc. by
default. But I think this is a very important feature for all products which
are using the Axis2 repository and clustered most of the time in production
environments. Therefore, I think this should be shipped with AS, ESB, DSS
and BRS. WDYT??

We already have an issue for this at [1]. However, Registry Community
Features are needed for Deployment Synchronizer. Hiranya, can you please
explain why and can't it work without that at all?

Thanks,
~Isuru

[1] https://wso2.org/jira/browse/CARBON-10010

-- 
Isuru Suriarachchi
Technical Lead & Product Manager, WSO2 Application Server
WSO2 Inc. http://wso2.com
email : is...@wso2.com
blog : http://isurues.wordpress.com/

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


Re: [Carbon-dev] Transport Management UI Issues

2011-05-17 Thread Afkham Azeez
These are not L1s. We have to concentrate all our efforts on fixing L1s
only, at this point in time.


On Wed, May 18, 2011 at 12:18 AM, Senaka Fernando  wrote:

> Hi Hiranya,
>
> Can you have a look?
>
> [1] https://wso2.org/jira/browse/CARBON-10040
> [2] https://wso2.org/jira/browse/CARBON-10039
>
> Thanks,
> Senaka.
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Console message while using WSDL Validator

2011-05-17 Thread Afkham Azeez
I think we have discussed this before and it is difficult for us to hide
those messages

On Wed, May 18, 2011 at 12:19 AM, Danushka Menikkumbura
wrote:

> Any idea why this message is printed?
>
> Retrieving document at
> 'file:/home/danushka/development/carbon/trunk/products/mb/modules/distribution/product/target/wso2mb-1.0.0-SNAPSHOT/tmp/temp2840560090810745821.txt'.
> Retrieving schema at 'http://schemas.xmlsoap.org/soap/envelope/', relative
> to
> 'file:/home/danushka/development/carbon/trunk/products/mb/modules/distribution/product/target/wso2mb-1.0.0-SNAPSHOT/tmp/temp2840560090810745821.txt'.
>
> Danushka
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.231 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.274 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.399 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.396 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.46 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.303 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.367 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.436 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 100 minutes 
[INFO] Finished at: Wed May 18 00:18:18 IST 2011
[INFO] Final Memory: 851M/1634M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Misleading logs @ BAM Start-up

2011-05-17 Thread Afkham Azeez
Such logs should never be printed at info level.

On Tue, May 17, 2011 at 11:53 PM, Senaka Fernando  wrote:

> FYI.
>
> [2011-05-17 23:46:16,796]  INFO {org.osgi.framework.BundleActivator} -  BAM
> Core bundle activator started.
> [2011-05-17 23:46:16,828]  INFO {org.osgi.framework.BundleActivator} -  BAM
> Core bundle activator started.
>
> AFAIU, these are coming from two bundles, and I think the log printed
> inside one activator is wrong.
>
> Thanks,
> Senaka.
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-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*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Console message while using WSDL Validator

2011-05-17 Thread Danushka Menikkumbura
Any idea why this message is printed?

Retrieving document at
'file:/home/danushka/development/carbon/trunk/products/mb/modules/distribution/product/target/wso2mb-1.0.0-SNAPSHOT/tmp/temp2840560090810745821.txt'.
Retrieving schema at 'http://schemas.xmlsoap.org/soap/envelope/', relative
to
'file:/home/danushka/development/carbon/trunk/products/mb/modules/distribution/product/target/wso2mb-1.0.0-SNAPSHOT/tmp/temp2840560090810745821.txt'.

Danushka
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Transport Management UI Issues

2011-05-17 Thread Senaka Fernando
Hi Hiranya,

Can you have a look?

[1] https://wso2.org/jira/browse/CARBON-10040
[2] https://wso2.org/jira/browse/CARBON-10039

Thanks,
Senaka.

-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


Re: [Carbon-dev] Misleading logs @ BAM Start-up

2011-05-17 Thread Tharindu Mathew
Will look into this.

On Tue, May 17, 2011 at 11:53 PM, Senaka Fernando  wrote:

> FYI.
>
> [2011-05-17 23:46:16,796]  INFO {org.osgi.framework.BundleActivator} -  BAM
> Core bundle activator started.
> [2011-05-17 23:46:16,828]  INFO {org.osgi.framework.BundleActivator} -  BAM
> Core bundle activator started.
>
> AFAIU, these are coming from two bundles, and I think the log printed
> inside one activator is wrong.
>
> Thanks,
> Senaka.
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Regards,

Tharindu
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Misleading logs @ BAM Start-up

2011-05-17 Thread Senaka Fernando
FYI.

[2011-05-17 23:46:16,796]  INFO {org.osgi.framework.BundleActivator} -  BAM
Core bundle activator started.
[2011-05-17 23:46:16,828]  INFO {org.osgi.framework.BundleActivator} -  BAM
Core bundle activator started.

AFAIU, these are coming from two bundles, and I think the log printed inside
one activator is wrong.

Thanks,
Senaka.

-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


Re: [Carbon-dev] [Carbon Studio] Why have Jars in svn?

2011-05-17 Thread Harshana Martin
Hi Samisa,

This issue has been raised in code-reviews as well[1]. Saminda has explained
few reasons why we are doing this for the moment.

Still the build is not perfect and we are in the process of solving these
issues using Eclipse Tycho [2] integration. We can specify those jars in the
relevant poms. Then if someone wants to import the sources in to eclipse,
he/she will have to create maven eclipse project artifacts.

With the current way, users can just check-out sources and import it to
their workspace. He/She does not have to create maven eclipse project
artifacts.

At the same time, when creating artifacts like custom mediators, registry
handlers, we need to add these jars to C-App classpath.

[1]. https://wso2.org/crucible/cru/COMPONENT-14#c228
[2].
http://www.eclipse.org/projects/project_summary.php?projectid=technology.tycho

Thanks and Regards,
Harshana

On Tue, May 17, 2011 at 9:26 AM, Samisa Abeysinghe  wrote:

>
> https://svn.wso2.org/repos/wso2/branches/tools/eclipse/carbon-studio/1.0.0/common/org.wso2.carbonstudio.eclipse.libraries/lib/
>
>
> And
> there are more. Why?
>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Harshana Martin
Software Engineer
WSO2 Inc.
Web:http://wso2.com
  http://wso2.org

Mobile: +94 716062650
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05
Twitter: http://twitter.com/harshana05
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Why do we have "Change Password" functionality under Configure --> Users and Roles

2011-05-17 Thread Senaka Fernando
When you have Login permissions, you'll see Configure --> Users and Roles.
This is to change the password. But, seeing the Configure menu, even without
having any Configuration-related permissions, is a bit odd, and misleading
isn't it?

Thanks,
Senaka.

-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


Re: [Carbon-dev] WSO2 Governance Service UI extension

2011-05-17 Thread Senaka Fernando
Hi James,

I see. You can come up with a custom JSP that can represent a service object
if needed. You will have to take a look into how this is done in
components/governance/org.wso2.carbon.governance.services.ui of the G-Reg
source code.

Then, you need to fix the component.xml found inside the
repository/components/org.wso2.carbon.governance.services.ui bundle, and
replace the following

1. To change the screen for adding a service, you need to change,
../services/services.jsp

2. To change the screen for viewing/editing a service, you need to change
../services/services_edit_ajaxprocessor.jsp?hideEditView=true

Thanks,
Senaka.

On Tue, May 17, 2011 at 8:49 PM, O'Connell, James wrote:

> Senaka,
>
>
>
> Thank you for the response.
>
>
>
> I should have been more specific  in saying that I want to add components
> to the Service UI beyond what I can add by simple XML.
>
>
>
> I want to add more detailed components similar to the End Item screens
> added to the Registry in the sample on the site labeled:  Writing Sample
> Custom UI – but I want to add this UI to the Service UI screen.
>
>
>
> Cheers, James.
>
>
>
>
>
> *From:* carbon-dev-boun...@wso2.org [mailto:carbon-dev-boun...@wso2.org] *On
> Behalf Of *Senaka Fernando
> *Sent:* Tuesday, May 17, 2011 11:12 AM
> *To:* carbon-dev@wso2.org
> *Subject:* Re: [Carbon-dev] WSO2 Governance Service UI extension
>
>
>
> Hi James,
>
> On Tue, May 17, 2011 at 7:57 PM, O'Connell, James 
> wrote:
>
> Hi,
>
> I am struggling with how to perform a certain customization  with WSO2
> governance.  Maybe you can help me.
>
> I see from the developer’s guide how to add custom ui to Registry under the
> Resources left-hand menu.  But I am trying to add custom components to the
> Service UI configuration screen.  I want to capture additional data elements
> for my services.
>
> Is there a sample that you can point me to along these lines?  For example,
> something that would add custom UI to the Service UI similar to that added
> to the Resources menu as shown in the sample.
>
> The elements of the Service UI is customizable, see [1].
>
> [1]
> http://wso2.org/project/registry/3.6.0/docs/services/docs/userguide.html#serviceui
>
> Thanks,
> Senaka.
>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.25 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.397 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.397 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.441 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.304 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.378 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.418 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 113 minutes 3 seconds
[INFO] Finished at: Tue May 17 22:33:22 IST 2011
[INFO] Final Memory: 856M/1595M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Question on ESB Main Sequence

2011-05-17 Thread Senaka Fernando
Why do we have stuff related to running samples in ESB's main sequence?

This is WRT the filter block which does not allow anyone to use the main
sequence of the ESB for EPR's that are not starting with localhost:9000 or
something.

Due to this, we need to modify the main sequence to write a simple task that
calls out a webservice.

Thanks,
Senaka.

-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


Re: [Carbon-dev] WSO2 Governance Service UI extension

2011-05-17 Thread O'Connell, James
Senaka,

Thank you for the response.

I should have been more specific  in saying that I want to add components to 
the Service UI beyond what I can add by simple XML.

I want to add more detailed components similar to the End Item screens added to 
the Registry in the sample on the site labeled:  Writing Sample Custom UI - but 
I want to add this UI to the Service UI screen.

Cheers, James.


From: carbon-dev-boun...@wso2.org [mailto:carbon-dev-boun...@wso2.org] On 
Behalf Of Senaka Fernando
Sent: Tuesday, May 17, 2011 11:12 AM
To: carbon-dev@wso2.org
Subject: Re: [Carbon-dev] WSO2 Governance Service UI extension

Hi James,
On Tue, May 17, 2011 at 7:57 PM, O'Connell, James 
mailto:james.oconn...@fmr.com>> wrote:
Hi,
I am struggling with how to perform a certain customization  with WSO2 
governance.  Maybe you can help me.
I see from the developer's guide how to add custom ui to Registry under the 
Resources left-hand menu.  But I am trying to add custom components to the 
Service UI configuration screen.  I want to capture additional data elements 
for my services.
Is there a sample that you can point me to along these lines?  For example, 
something that would add custom UI to the Service UI similar to that added to 
the Resources menu as shown in the sample.
The elements of the Service UI is customizable, see [1].

[1] 
http://wso2.org/project/registry/3.6.0/docs/services/docs/userguide.html#serviceui

Thanks,
Senaka.


--
Senaka Fernando
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com
Member; Apache Software Foundation; http://apache.org

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

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


Re: [Carbon-dev] WSO2 Governance Service UI extension

2011-05-17 Thread Senaka Fernando
Hi James,

On Tue, May 17, 2011 at 7:57 PM, O'Connell, James wrote:

> Hi,
>
>
>
> I am struggling with how to perform a certain customization  with WSO2
> governance.  Maybe you can help me.
>
>
>
> I see from the developer’s guide how to add custom ui to Registry under the
> Resources left-hand menu.  But I am trying to add custom components to the
> Service UI configuration screen.  I want to capture additional data elements
> for my services.
>
>
>
> Is there a sample that you can point me to along these lines?  For example,
> something that would add custom UI to the Service UI similar to that added
> to the Resources menu as shown in the sample.
>

The elements of the Service UI is customizable, see [1].

[1]
http://wso2.org/project/registry/3.6.0/docs/services/docs/userguide.html#serviceui

Thanks,
Senaka.

>
>
> Kind regards,
>
> James O’Connell
>
> Fidelity Investments
>
>
>
>
>
> James O'Connell
>
> Software Developer
> Architecture & Shared Technology Services
>
> Internal: 8-392-1188
>
> External: 1-617-392-1188
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

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

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


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.295 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.285 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.444 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.368 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.418 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 109 minutes 52 seconds
[INFO] Finished at: Tue May 17 20:35:14 IST 2011
[INFO] Final Memory: 850M/1820M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] WSO2 Governance Service UI extension

2011-05-17 Thread O'Connell, James
Hi,

I am struggling with how to perform a certain customization  with WSO2 
governance.  Maybe you can help me.

I see from the developer's guide how to add custom ui to Registry under the 
Resources left-hand menu.  But I am trying to add custom components to the 
Service UI configuration screen.  I want to capture additional data elements 
for my services.

Is there a sample that you can point me to along these lines?  For example, 
something that would add custom UI to the Service UI similar to that added to 
the Resources menu as shown in the sample.

Kind regards,
James O'Connell
Fidelity Investments


James O'Connell
Software Developer
Architecture & Shared Technology Services
Internal: 8-392-1188
External: 1-617-392-1188

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


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.563 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.274 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.397 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.396 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.441 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.34 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.38 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.436 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 108 minutes 6 seconds
[INFO] Finished at: Tue May 17 18:40:11 IST 2011
[INFO] Final Memory: 856M/1823M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [CS] Build error in registry

2011-05-17 Thread Samisa Abeysinghe
This worked. Thanks for fixing this.

On Mon, May 16, 2011 at 6:03 PM, Melan Nimesh  wrote:

> Hi,
>
> The CS windows build issue is now fixed
>
> Thanks
> --Melan
>
>
> On Sun, May 15, 2011 at 9:34 PM, Melan Nimesh  wrote:
>
>> Hi,
>>
>> ESB package issue now fixed (committed to branch, Rev. 94276). but still
>> cannot build on windows from fresh check-out without manually changing some
>> files, I am currently working on  overcome this issues.
>>
>> Thanks
>>
>> --Melan
>>
>> On Sat, May 14, 2011 at 9:39 AM, Melan Nimesh  wrote:
>>
>>> Hi,
>>>
>>>
>>> On Sat, May 14, 2011 at 9:10 AM, Samisa Abeysinghe wrote:
>>>
 I do not want to apply patches. Please let e know once it
 is committed and then I can try to build.

 And I have waited on this long enough. Please own this and see it
 through to completion.

>>>
>>> Will work on this today.
>>>
>>>


 On Sat, May 14, 2011 at 7:45 AM, Melan Nimesh  wrote:

> Hi,
>
> On Sat, May 14, 2011 at 7:12 AM, Samisa Abeysinghe wrote:
>
>> I tried applying the patch. But the build seem to be broken at this
>> point. So no way to verify.
>
>
> Please apply patch from CS source's (your local copy's) root directory
>
>
>>
>> One checkout build does not seem to work at all for CS.
>>
>> We do this for Carbon, which is much more complex and larger in size.
>> Why not CS?
>>
>>
>
>>
>> On Sat, May 14, 2011 at 5:22 AM, Samisa Abeysinghe 
>> wrote:
>>
>>>
>>>
>>> On Sat, May 14, 2011 at 12:12 AM, Melan Nimesh wrote:
>>>
 Hi,

 sorry for late reply, please find the attached patch file [1]  fix
 this issue. please apply this patch from CS Branch root (
 https://svn.wso2.org/repos/wso2/branches/tools/eclipse/carbon-studio/1.0.0)
 . also build log [2] attached for your information

>>>
>>> Um, I thought you are a committer. Why are you attaching a patch?
>>>
>>>
 [1] Windows_fix.patch
 [2] build.log


 Thanks

 --Melan


 On Fri, May 13, 2011 at 6:52 PM, Samisa Abeysinghe >>> > wrote:

> Ping...
>
> Is this fixed now?
>
>
> On Tue, May 10, 2011 at 7:03 PM, Samisa Abeysinghe <
> sam...@wso2.com> wrote:
>
>> What would be the ETA?
>>
>>
>> On Mon, May 9, 2011 at 10:52 PM, Melan Nimesh wrote:
>>
>>> Hi,
>>>
>>> I have successfully built CS on Windows with my changed local
>>> copy, I'll update progress after  build same code (modified code) 
>>> with Linux
>>>
>>> Thanks
>>> --Melan
>>>
>>> On Mon, May 9, 2011 at 9:46 PM, Samisa Abeysinghe <
>>> sam...@wso2.com> wrote:
>>>
 Any luck with this? I am awaiting for this to load the code into
 my Eclipse on Windows :(


 On Thu, May 5, 2011 at 2:50 PM, Saminda Wijeratne <
 samin...@wso2.com> wrote:

>
>
> On Thu, May 5, 2011 at 2:40 PM, Samisa Abeysinghe <
> sam...@wso2.com> wrote:
>
>> Can we rename the package to mediators and be done with it?
>
> That package was codegen from eclipse emf framework. We have
> customized some of the classes in it. Package name should be 
> updated Codegen
> configuration level & then once the new package is created we 
> need to merge
> our changes. This might take a little while. Melan is working on 
> this.
>
> Saminda
>
>>
>>
>> On Thu, May 5, 2011 at 2:36 PM, Melan Nimesh 
>> wrote:
>>
>>> Hi,
>>>
>>>
>>> On Thu, May 5, 2011 at 2:12 PM, Samisa Abeysinghe <
>>> sam...@wso2.com> wrote:
>>> >
>>> >
>>> > On Thu, May 5, 2011 at 1:44 PM, Melan Nimesh <
>>> me...@wso2.com> wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> I also got same error when building Carbon Studio  in
>>> Windows (I am
>>> >> using Windows 7 x64). this is due to collision  with
>>> >> org.wso2.carbonstudio.eclipse.esb.Mediator class and
>>> >> org.wso2.carbonstudio.eclipse.esb.mediator.provider
>>> package,
>>> >
>>> > How did you conclude that this is the error from my build
>>> log?
>>>
>>> I also tried to build Carbon Studio in my machine and my
>>> error log
>>> also bit similar to your error log, then I 

Re: [Carbon-dev] How to check for Admin Role

2011-05-17 Thread Amila Suriarachchi
On Tue, May 17, 2011 at 2:27 PM, Dimuthu Leelarathne wrote:

> Hi,
>
> On Tue, May 17, 2011 at 9:19 AM, Amila Suriarachchi wrote:
>
>>  renamed the admin and every one Roles. But still see the admin role as.
>>
>>
> You have to clean the database. You can see the new admin role. If you want
> to delete the existing admin role you have to explicitly delete it.
> user-mgt.xml is only for configuration. It is not recommended to use it for
> subsequent start-ups.
>
> In-order to avoid this confusion I propose to check for "-Dsetup" option
> when creating initial data in the database. WDYT ?
>

without making assumptions please try yourself with a clean build. In the
registry permissions section I can only see the admin role (not the
adminRole I set)

thanks,
Amila.

>
> tx,
> dimuthul
>
>
>
>> Please see the attachments.
>>
>> thanks,
>> Amila,
>>
>>>
>>> tx,
>>> dimuthul
>>>
>>>
 And also,

 userRealm.getAuthorizationManager().isUserAuthorized(
 loggedInUser, topicResourcePath,

 EventBrokerConstants.EB_PERMISSION_CHANGE_PERMISSION)

 returns false if user is not explicitly given the permission to that
 resource. But in carbon there is a convention to
 allow any user in admin role to do any activity. Then why don't we add
 that rule too to the user manager.

 Then everyone does not have to repeat admin role check every where.

 thanks,
 Amila.


 [1] https://wso2.org/jira/browse/CARBON-9959

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


>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.211 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.283 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.444 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.303 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.366 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.438 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 110 minutes 19 seconds
[INFO] Finished at: Tue May 17 16:47:06 IST 2011
[INFO] Final Memory: 856M/1625M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.178 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.275 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.13 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.446 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.306 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.383 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.42 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 109 minutes 24 seconds
[INFO] Finished at: Tue May 17 14:51:42 IST 2011
[INFO] Final Memory: 856M/1820M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] How to check for Admin Role

2011-05-17 Thread Dimuthu Leelarathne
Hi,

On Tue, May 17, 2011 at 9:34 AM, Amila Suriarachchi  wrote:

> In the user-mgt.xml we have,
>
> 
> admin
> 
>  admin
>  admin
> 
> everyone 
>
> It seems there is no real admin user or admin role concept in carbon. What
> it does is create a user with the given user name and password and assign a
> role to that user given in Admin Role.
>
> Then this admin role is assigned all the permissions given in the
> compoent.xml files.
>
> In otherwords we only have the static permissions we define before the
> server starts. But there can be stituations where we need to create
> resourceIDs and assign permissions to them at system runtime. eg. adding
> queues, topics.
> And also I am not sure how this model work with XCMAL polices or with
> tenant configuration where we talk about a tenant Admin.
>
>
Permission consist of three things - String entityName, String resourceId,
String action

Here action is fixed. You can have any string for entity and resource. The
only reason action is fixed due to our cache implementation. So if you want
to write to a queue, you can say.

entryName, queueName, write

If you want to read to a queue,  you can say

entryName, queueName, write

tx,
dimuthu


> thanks,
> Amila.
>
>
>
>
> On Tue, May 17, 2011 at 9:21 AM, Amila Suriarachchi wrote:
>
>> User manager.xml
>>
>> thanks,
>> Amila.
>>
>>
>> On Tue, May 17, 2011 at 9:19 AM, Amila Suriarachchi wrote:
>>
>>>
>>>
>>> On Mon, May 16, 2011 at 6:58 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 hi,

 On Mon, May 16, 2011 at 8:23 AM, Amila Suriarachchi wrote:

> hi,
>
> This is regarding this issue[1].
>
> Can we change the admin role name? if so what is the meaning of the
> ADMIN_ROLE = "admin" in
>  org.wso2.carbon.utils.ServerConstants?
>
>
 We don't have a hard-coded admin rolename.
 +1 for removing it or if it is used for some other purpose rename it.

>>>
>>> I renamed the admin and every one Roles. But still see the admin role as.
>>>
>>>
>>> Please see the attachments.
>>>
>>> thanks,
>>> Amila,
>>>

 tx,
 dimuthul


> And also,
>
> userRealm.getAuthorizationManager().isUserAuthorized(
> loggedInUser, topicResourcePath,
>
> EventBrokerConstants.EB_PERMISSION_CHANGE_PERMISSION)
>
> returns false if user is not explicitly given the permission to that
> resource. But in carbon there is a convention to
> allow any user in admin role to do any activity. Then why don't we add
> that rule too to the user manager.
>
> Then everyone does not have to repeat admin role check every where.
>
> thanks,
> Amila.
>
>
> [1] https://wso2.org/jira/browse/CARBON-9959
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

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


>>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] How to check for Admin Role

2011-05-17 Thread Dimuthu Leelarathne
Hi,

Please see my comments inline.

On Tue, May 17, 2011 at 9:34 AM, Amila Suriarachchi  wrote:

> In the user-mgt.xml we have,
>
> 
> admin
> 
>  admin
>  admin
> 
> everyone 
>
> It seems there is no real admin user or admin role concept in carbon. What
> it does is create a user with the given user name and password and assign a
> role to that user given in Admin Role.
>
> Then this admin role is assigned all the permissions given in the
> compoent.xml files.
>
> In otherwords we only have the static permissions we define before the
> server starts. But there can be stituations where we need to create
> resourceIDs and assign permissions to them at system runtime. eg. adding
> queues, topics.
> And also I am not sure how this model work with XCMAL polices or with
> tenant configuration where we talk about a tenant Admin.
>
>
You can define dynamic permissions. Otherwise how can users give permissions
to newly created resources in registry?

tx,
dimuthu

> thanks,
> Amila.
>
>
>
>
> On Tue, May 17, 2011 at 9:21 AM, Amila Suriarachchi wrote:
>
>> User manager.xml
>>
>> thanks,
>> Amila.
>>
>>
>> On Tue, May 17, 2011 at 9:19 AM, Amila Suriarachchi wrote:
>>
>>>
>>>
>>> On Mon, May 16, 2011 at 6:58 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 hi,

 On Mon, May 16, 2011 at 8:23 AM, Amila Suriarachchi wrote:

> hi,
>
> This is regarding this issue[1].
>
> Can we change the admin role name? if so what is the meaning of the
> ADMIN_ROLE = "admin" in
>  org.wso2.carbon.utils.ServerConstants?
>
>
 We don't have a hard-coded admin rolename.
 +1 for removing it or if it is used for some other purpose rename it.

>>>
>>> I renamed the admin and every one Roles. But still see the admin role as.
>>>
>>>
>>> Please see the attachments.
>>>
>>> thanks,
>>> Amila,
>>>

 tx,
 dimuthul


> And also,
>
> userRealm.getAuthorizationManager().isUserAuthorized(
> loggedInUser, topicResourcePath,
>
> EventBrokerConstants.EB_PERMISSION_CHANGE_PERMISSION)
>
> returns false if user is not explicitly given the permission to that
> resource. But in carbon there is a convention to
> allow any user in admin role to do any activity. Then why don't we add
> that rule too to the user manager.
>
> Then everyone does not have to repeat admin role check every where.
>
> thanks,
> Amila.
>
>
> [1] https://wso2.org/jira/browse/CARBON-9959
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

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


>>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] How to check for Admin Role

2011-05-17 Thread Dimuthu Leelarathne
Hi,

On Tue, May 17, 2011 at 9:19 AM, Amila Suriarachchi  wrote:

>  renamed the admin and every one Roles. But still see the admin role as.
>
>
You have to clean the database. You can see the new admin role. If you want
to delete the existing admin role you have to explicitly delete it.
user-mgt.xml is only for configuration. It is not recommended to use it for
subsequent start-ups.

In-order to avoid this confusion I propose to check for "-Dsetup" option
when creating initial data in the database. WDYT ?

tx,
dimuthul



> Please see the attachments.
>
> thanks,
> Amila,
>
>>
>> tx,
>> dimuthul
>>
>>
>>> And also,
>>>
>>> userRealm.getAuthorizationManager().isUserAuthorized(
>>> loggedInUser, topicResourcePath,
>>> EventBrokerConstants.EB_PERMISSION_CHANGE_PERMISSION)
>>>
>>> returns false if user is not explicitly given the permission to that
>>> resource. But in carbon there is a convention to
>>> allow any user in admin role to do any activity. Then why don't we add
>>> that rule too to the user manager.
>>>
>>> Then everyone does not have to repeat admin role check every where.
>>>
>>> thanks,
>>> Amila.
>>>
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-9959
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Script for making a webapp of Carbon 3.2.0 (Beta)

2011-05-17 Thread Tharindu Mathew
Yes sure. I was inspired to do this by a script created by Manu to deploy
Carbon in Tomcat which never made it to the dev list.

Here is that script as well.

On Tue, May 17, 2011 at 10:30 AM, Afkham Azeez  wrote:

> Tharindu,
> Is there a possibility to include this with the next Carbon release? The
> createWAR Ant target does something similar. Can we merge the functionality.
>
> 1.
> http://tharindu-mathew.blogspot.com/2011/05/script-for-making-webapp-of-carbon-320.html
>
> --
> *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*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Regards,

Tharindu


runcarbontomcat.sh
Description: Bourne shell script
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Potential Memory Leak in ESB

2011-05-17 Thread Hiranya Jayathilaka
On Mon, May 16, 2011 at 7:53 PM, Srinath Perera  wrote:

> https://wso2.org/jira/browse/CARBON-10031
>
> Though I do not think that is the cause for MB client side trouble.
> Still this will bring down the server sooner or later.
>

The only reason I can think of is mediation stat collection thread dying
unexpectedly causing stats to accumulate in the mediation engine. I ran some
load tests on my own and couldn't reproduce this. Will implement a fail-safe
just in case.

Thanks,
Hiranya


> --Srinath
>
> --
> 
> Srinath Perera, Ph.D.
>   Senior Software Architect, WSO2 Inc.
>   Visiting Faculty, University of Moratuwa
>   Member, Apache Software Foundation
>   Research Scientist, Lanka Software Foundation
>   Blog: http://srinathsview.blogspot.com/
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>



-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Error While Starting Sample Axis2 Server of ESB

2011-05-17 Thread Afkham Azeez
A carbon.home system prop has to be set. This was an enhancement required by
another Jira related to log file locations. Amani could provide more
background info.

On Tue, May 17, 2011 at 1:00 PM, Hiranya Jayathilaka wrote:

> It's something to do with how file paths are specified in log4j.properties.
> Earlier file paths were defined as follows:
>
>
> log4j.appender.CARBON_LOGFILE.File=repository/logs/${instance.log}/wso2-esb${instance.log}.log
>
> Now they are defined as follows:
>
> log4j.appender.CARBON_LOGFILE.File=*${carbon.home}*
> /repository/logs/${instance.log}/wso2carbon${instance.log}.log
>
> Note the ${carbon.home} place holder in the new file path. How does it
> resolve the ${carbon.home} place holder?
>
> Thanks,
> Hiranya
>
>
> On Tue, May 17, 2011 at 12:48 PM, Hiranya Jayathilaka wrote:
>
>>
>>
>> On Tue, May 17, 2011 at 12:42 PM, Hiranya Jayathilaka 
>> wrote:
>>
>>>
>>>
>>> On Tue, May 17, 2011 at 11:20 AM, Amila Maha Arachchi 
>>> wrote:
>>>
 Hi,

 I remember a thread going on to make esb log file names consistent with
 other carbon products' log file names (due to introduction of syslog).
 Something to do with that?

>>>
>> Actually you are right. When I put the old log4j.properties the error
>> doesn't occur. So this is a regression caused by the above change.
>>
>> Thanks,
>> Hiranya
>>
>>
>>>
>>> I don't think so. It's looking for some log files in repository/logs
>>> directory according to the stack trace. But the log files actually exist in
>>> CARBON_HOME/repository/logs. It's picking up the correct log file names from
>>> the main log4j.properties file. But apparently it cannot resolve the
>>> CARBON_HOME.
>>>
>>> Thanks,
>>> Hiranya
>>>
>>>

 Thanks,
 AmilaM.

  On Tue, May 17, 2011 at 11:14 AM, Hiranya Jayathilaka <
 hira...@wso2.com> wrote:

>  Any idea why this happens?
>
>
>  Using JAVA_HOME:   /opt/jdk1.6.0_16
>  Using AXIS2 Repository :
> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository
>  Using AXIS2 Configuration :
> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository/conf/axis2.xml
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /repository/logs/wso2carbon.log (No such
> file or directory)
>  at java.io.FileOutputStream.openAppend(Native Method)
> at java.io.FileOutputStream.(FileOutputStream.java:177)
>  at java.io.FileOutputStream.(FileOutputStream.java:102)
> at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>  at
> org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>  at
> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
> at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>  at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
> at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>  at
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
> at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>  at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
> at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>  at
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
> at org.apache.log4j.LogManager.(LogManager.java:122)
>  at org.apache.log4j.Logger.getLogger(Logger.java:104)
> at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
>  at
> org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>  at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
>  at
> org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
>  at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
>  at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
> at samples.util.SampleAxis2Server.(SampleAxis2Server.ja

[Carbon-dev] "WSO2 Carbon Continuous Build has FAILED"

2011-05-17 Thread WSO2 Carbon-Builder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.348 sec
Running org.apache.synapse.mediators.base.SequenceMediatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.275 sec
Running org.apache.synapse.util.TextFileDataSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.13 sec
Running org.apache.synapse.mediators.TestMediator
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.399 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.396 sec
Running org.apache.synapse.config.xml.endpoints.AddressEndpointSerializationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.444 sec
Running org.apache.synapse.eventing.SynapseEventSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec
Running org.apache.synapse.config.xml.OutMediatorSerializationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.366 sec
Running org.apache.synapse.TestMessageContextBuilder
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.synapse.config.xml.SequenceMediatorSerializationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.438 sec

Results :

Failed tests: 

Tests run: 259, Failures: 4, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test 
failures.
at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 
[INFO] Total time: 109 minutes 35 seconds
[INFO] Finished at: Tue May 17 12:57:12 IST 2011
[INFO] Final Memory: 925M/1816M
[INFO] 
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Error While Starting Sample Axis2 Server of ESB

2011-05-17 Thread Hiranya Jayathilaka
It's something to do with how file paths are specified in log4j.properties.
Earlier file paths were defined as follows:

log4j.appender.CARBON_LOGFILE.File=repository/logs/${instance.log}/wso2-esb${instance.log}.log

Now they are defined as follows:

log4j.appender.CARBON_LOGFILE.File=*${carbon.home}*
/repository/logs/${instance.log}/wso2carbon${instance.log}.log

Note the ${carbon.home} place holder in the new file path. How does it
resolve the ${carbon.home} place holder?

Thanks,
Hiranya

On Tue, May 17, 2011 at 12:48 PM, Hiranya Jayathilaka wrote:

>
>
> On Tue, May 17, 2011 at 12:42 PM, Hiranya Jayathilaka wrote:
>
>>
>>
>> On Tue, May 17, 2011 at 11:20 AM, Amila Maha Arachchi wrote:
>>
>>> Hi,
>>>
>>> I remember a thread going on to make esb log file names consistent with
>>> other carbon products' log file names (due to introduction of syslog).
>>> Something to do with that?
>>>
>>
> Actually you are right. When I put the old log4j.properties the error
> doesn't occur. So this is a regression caused by the above change.
>
> Thanks,
> Hiranya
>
>
>>
>> I don't think so. It's looking for some log files in repository/logs
>> directory according to the stack trace. But the log files actually exist in
>> CARBON_HOME/repository/logs. It's picking up the correct log file names from
>> the main log4j.properties file. But apparently it cannot resolve the
>> CARBON_HOME.
>>
>> Thanks,
>> Hiranya
>>
>>
>>>
>>> Thanks,
>>> AmilaM.
>>>
>>>  On Tue, May 17, 2011 at 11:14 AM, Hiranya Jayathilaka >> > wrote:
>>>
  Any idea why this happens?


  Using JAVA_HOME:   /opt/jdk1.6.0_16
  Using AXIS2 Repository :
 /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository
  Using AXIS2 Configuration :
 /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository/conf/axis2.xml
 log4j:ERROR setFile(null,true) call failed.
 java.io.FileNotFoundException: /repository/logs/wso2carbon.log (No such
 file or directory)
  at java.io.FileOutputStream.openAppend(Native Method)
 at java.io.FileOutputStream.(FileOutputStream.java:177)
  at java.io.FileOutputStream.(FileOutputStream.java:102)
 at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
  at
 org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
 at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
  at
 org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
 at
 org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
  at
 org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
 at
 org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
  at
 org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
 at
 org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
  at
 org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
 at
 org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
  at
 org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
 at org.apache.log4j.LogManager.(LogManager.java:122)
  at org.apache.log4j.Logger.getLogger(Logger.java:104)
 at
 org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
  at
 org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at
 org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
  at
 org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
 at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
  at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
 at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
  at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
 at samples.util.SampleAxis2Server.(SampleAxis2Server.java:27)
 log4j:ERROR setFile(null,true) call failed.
 java.io.FileNotFoundException: /repository/logs/wso2-esb-errors.log (No
 such file or directory)
 at java.io.FileOutputStream.openAppend(Native Method)
  at java.io.FileOutputStream.(FileOutputStream.java:177)
 at java.io.FileOutputStream.(FileOutputStream.java:102)
  at org.apache.log4j.FileAppender.setFile(F

Re: [Carbon-dev] Error While Starting Sample Axis2 Server of ESB

2011-05-17 Thread Hiranya Jayathilaka
On Tue, May 17, 2011 at 12:42 PM, Hiranya Jayathilaka wrote:

>
>
> On Tue, May 17, 2011 at 11:20 AM, Amila Maha Arachchi wrote:
>
>> Hi,
>>
>> I remember a thread going on to make esb log file names consistent with
>> other carbon products' log file names (due to introduction of syslog).
>> Something to do with that?
>>
>
Actually you are right. When I put the old log4j.properties the error
doesn't occur. So this is a regression caused by the above change.

Thanks,
Hiranya


>
> I don't think so. It's looking for some log files in repository/logs
> directory according to the stack trace. But the log files actually exist in
> CARBON_HOME/repository/logs. It's picking up the correct log file names from
> the main log4j.properties file. But apparently it cannot resolve the
> CARBON_HOME.
>
> Thanks,
> Hiranya
>
>
>>
>> Thanks,
>> AmilaM.
>>
>>  On Tue, May 17, 2011 at 11:14 AM, Hiranya Jayathilaka 
>> wrote:
>>
>>>  Any idea why this happens?
>>>
>>>
>>>  Using JAVA_HOME:   /opt/jdk1.6.0_16
>>>  Using AXIS2 Repository :
>>> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository
>>>  Using AXIS2 Configuration :
>>> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository/conf/axis2.xml
>>> log4j:ERROR setFile(null,true) call failed.
>>> java.io.FileNotFoundException: /repository/logs/wso2carbon.log (No such
>>> file or directory)
>>>  at java.io.FileOutputStream.openAppend(Native Method)
>>> at java.io.FileOutputStream.(FileOutputStream.java:177)
>>>  at java.io.FileOutputStream.(FileOutputStream.java:102)
>>> at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>>>  at
>>> org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
>>> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>>>  at
>>> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
>>> at
>>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>>>  at
>>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>>> at
>>> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>>>  at
>>> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>>> at
>>> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>>>  at
>>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>>> at
>>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>>>  at
>>> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
>>> at org.apache.log4j.LogManager.(LogManager.java:122)
>>>  at org.apache.log4j.Logger.getLogger(Logger.java:104)
>>> at
>>> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
>>>  at
>>> org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>  at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at
>>> org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
>>>  at
>>> org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
>>> at
>>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
>>>  at
>>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
>>> at
>>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
>>>  at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
>>> at samples.util.SampleAxis2Server.(SampleAxis2Server.java:27)
>>> log4j:ERROR setFile(null,true) call failed.
>>> java.io.FileNotFoundException: /repository/logs/wso2-esb-errors.log (No
>>> such file or directory)
>>> at java.io.FileOutputStream.openAppend(Native Method)
>>>  at java.io.FileOutputStream.(FileOutputStream.java:177)
>>> at java.io.FileOutputStream.(FileOutputStream.java:102)
>>>  at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>>> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>>>  at
>>> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
>>> at
>>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>>>  at
>>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>>> at
>>> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>>>  at
>>> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>>> at
>>> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>>>  at
>>> org.apach

Re: [Carbon-dev] Error While Starting Sample Axis2 Server of ESB

2011-05-17 Thread Hiranya Jayathilaka
On Tue, May 17, 2011 at 11:20 AM, Amila Maha Arachchi wrote:

> Hi,
>
> I remember a thread going on to make esb log file names consistent with
> other carbon products' log file names (due to introduction of syslog).
> Something to do with that?
>

I don't think so. It's looking for some log files in repository/logs
directory according to the stack trace. But the log files actually exist in
CARBON_HOME/repository/logs. It's picking up the correct log file names from
the main log4j.properties file. But apparently it cannot resolve the
CARBON_HOME.

Thanks,
Hiranya


>
> Thanks,
> AmilaM.
>
> On Tue, May 17, 2011 at 11:14 AM, Hiranya Jayathilaka wrote:
>
>> Any idea why this happens?
>>
>>
>>  Using JAVA_HOME:   /opt/jdk1.6.0_16
>>  Using AXIS2 Repository :
>> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository
>>  Using AXIS2 Configuration :
>> /home/hiranya/Projects/Test/stats/wso2esb-4.0.0-SNAPSHOT/samples/axis2Server/repository/conf/axis2.xml
>> log4j:ERROR setFile(null,true) call failed.
>> java.io.FileNotFoundException: /repository/logs/wso2carbon.log (No such
>> file or directory)
>>  at java.io.FileOutputStream.openAppend(Native Method)
>> at java.io.FileOutputStream.(FileOutputStream.java:177)
>>  at java.io.FileOutputStream.(FileOutputStream.java:102)
>> at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>>  at
>> org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
>> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>>  at
>> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
>> at
>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>>  at
>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>> at
>> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>>  at
>> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>> at
>> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>>  at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>> at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>>  at
>> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
>> at org.apache.log4j.LogManager.(LogManager.java:122)
>>  at org.apache.log4j.Logger.getLogger(Logger.java:104)
>> at
>> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
>>  at
>> org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>  at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
>>  at
>> org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
>>  at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
>>  at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
>> at samples.util.SampleAxis2Server.(SampleAxis2Server.java:27)
>> log4j:ERROR setFile(null,true) call failed.
>> java.io.FileNotFoundException: /repository/logs/wso2-esb-errors.log (No
>> such file or directory)
>> at java.io.FileOutputStream.openAppend(Native Method)
>>  at java.io.FileOutputStream.(FileOutputStream.java:177)
>> at java.io.FileOutputStream.(FileOutputStream.java:102)
>>  at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>>  at
>> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
>> at
>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>>  at
>> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>> at
>> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>>  at
>> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>> at
>> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>>  at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>> at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>>  at
>> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
>> at org.apache.log4j.LogManager.(LogManager.java:122)
>>  at org.apache.log4j.Logger.