Re: [Dev] Patch for Kernel - CARBON-14495

2013-09-25 Thread Manoj Kumara
Hi,

Committed with r186482.

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Thu, Sep 26, 2013 at 11:58 AM, Afkham Azeez  wrote:

> Yes, go ahead
>
>
> On Thu, Sep 26, 2013 at 11:57 AM, Manoj Kumara  wrote:
>
>> HI Sameera/ Azeez,
>>
>> By adding a public method getPrimaryHazelcastConfig() it can change the
>> existing API. Is it ok to proceed with the commit.
>>
>> Thanks,
>> Manoj
>>
>> Best Regards..
>>
>>
>> Manoj Kumara
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Twitter:  http://twitter.com/ManKuma
>> Mobile: +94713448188
>>
>>
>> On Thu, Sep 26, 2013 at 11:42 AM, Isuru Wimalasundera wrote:
>>
>>> [adding Azeez]
>>>
>>>
>>> On Thu, Sep 26, 2013 at 11:41 AM, Isuru Wimalasundera 
>>> wrote:
>>>
 Hi Sameera/Manoj

 Please apply the attached patch diff (org.wso2.carbon.core.patch) in
 https://wso2.org/jira/browse/CARBON-14495 to the kernel patch.

 Regards
 IsuruW

 --
 *Isuru Wimalasundera*
 Senior Software Engineer;
 WSO2, Inc.; http://wso2.com,
 mobile: +94 77 920 5641

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


Re: [Dev] Patch for Kernel - CARBON-14495

2013-09-25 Thread Afkham Azeez
Yes, go ahead


On Thu, Sep 26, 2013 at 11:57 AM, Manoj Kumara  wrote:

> HI Sameera/ Azeez,
>
> By adding a public method getPrimaryHazelcastConfig() it can change the
> existing API. Is it ok to proceed with the commit.
>
> Thanks,
> Manoj
>
> Best Regards..
>
>
> Manoj Kumara
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Twitter:  http://twitter.com/ManKuma
> Mobile: +94713448188
>
>
> On Thu, Sep 26, 2013 at 11:42 AM, Isuru Wimalasundera wrote:
>
>> [adding Azeez]
>>
>>
>> On Thu, Sep 26, 2013 at 11:41 AM, Isuru Wimalasundera wrote:
>>
>>> Hi Sameera/Manoj
>>>
>>> Please apply the attached patch diff (org.wso2.carbon.core.patch) in
>>> https://wso2.org/jira/browse/CARBON-14495 to the kernel patch.
>>>
>>> Regards
>>> IsuruW
>>>
>>> --
>>> *Isuru Wimalasundera*
>>> Senior Software Engineer;
>>> WSO2, Inc.; http://wso2.com,
>>> mobile: +94 77 920 5641
>>>
>>
>>
>>
>> --
>> *Isuru Wimalasundera*
>> Senior Software Engineer;
>> WSO2, Inc.; http://wso2.com,
>> mobile: +94 77 920 5641
>>
>
>


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


Re: [Dev] Patch for Kernel - CARBON-14495

2013-09-25 Thread Manoj Kumara
HI Sameera/ Azeez,

By adding a public method getPrimaryHazelcastConfig() it can change the
existing API. Is it ok to proceed with the commit.

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Thu, Sep 26, 2013 at 11:42 AM, Isuru Wimalasundera wrote:

> [adding Azeez]
>
>
> On Thu, Sep 26, 2013 at 11:41 AM, Isuru Wimalasundera wrote:
>
>> Hi Sameera/Manoj
>>
>> Please apply the attached patch diff (org.wso2.carbon.core.patch) in
>> https://wso2.org/jira/browse/CARBON-14495 to the kernel patch.
>>
>> Regards
>> IsuruW
>>
>> --
>> *Isuru Wimalasundera*
>> Senior Software Engineer;
>> WSO2, Inc.; http://wso2.com,
>> mobile: +94 77 920 5641
>>
>
>
>
> --
> *Isuru Wimalasundera*
> Senior Software Engineer;
> WSO2, Inc.; http://wso2.com,
> mobile: +94 77 920 5641
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Patch for Kernel - CARBON-14495

2013-09-25 Thread Isuru Wimalasundera
[adding Azeez]


On Thu, Sep 26, 2013 at 11:41 AM, Isuru Wimalasundera wrote:

> Hi Sameera/Manoj
>
> Please apply the attached patch diff (org.wso2.carbon.core.patch) in
> https://wso2.org/jira/browse/CARBON-14495 to the kernel patch.
>
> Regards
> IsuruW
>
> --
> *Isuru Wimalasundera*
> Senior Software Engineer;
> WSO2, Inc.; http://wso2.com,
> mobile: +94 77 920 5641
>



-- 
*Isuru Wimalasundera*
Senior Software Engineer;
WSO2, Inc.; http://wso2.com,
mobile: +94 77 920 5641
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Patch for Kernel - CARBON-14495

2013-09-25 Thread Isuru Wimalasundera
Hi Sameera/Manoj

Please apply the attached patch diff (org.wso2.carbon.core.patch) in
https://wso2.org/jira/browse/CARBON-14495 to the kernel patch.

Regards
IsuruW

-- 
*Isuru Wimalasundera*
Senior Software Engineer;
WSO2, Inc.; http://wso2.com,
mobile: +94 77 920 5641
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Serialzing single array element represent in JSON [bug in jettision 1.3.4]

2013-09-25 Thread Manoj Kumara
Hi Dushan,

Commited.

Thanks,

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Thu, Sep 26, 2013 at 11:24 AM, Dushan Abeyruwan  wrote:

> Hi Manoj,
>   There are few unit test failures in Jettison due to the changers, please
> find the patch which fix those jettison unit tests.
>
> Cheers
> Dushan
>
>
> On Tue, Sep 24, 2013 at 6:36 PM, Dushan Abeyruwan  wrote:
>
>> Hi
>>  Thanks Manoj
>>
>> Cheers
>> Dushan
>>
>>
>> On Tue, Sep 24, 2013 at 5:57 PM, Manoj Kumara  wrote:
>>
>>> Hi,
>>>
>>> Applied the patch.
>>>
>>> Thanks,
>>> Manoj
>>>
>>> Best Regards..
>>>
>>>
>>> Manoj Kumara
>>> Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Twitter:  http://twitter.com/ManKuma
>>> Mobile: +94713448188
>>>
>>>
>>> On Tue, Sep 24, 2013 at 4:56 PM, Dushan Abeyruwan wrote:
>>>
 Hi Sameera,

 $subject, is due to a JSON 1.3.4 issue and found out this issue has not
 yet fixed by codehaus, and I did a quick fix and the kernel patch is
 already in [1], please go through patch and if possible apply this
 immediately.


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

 Cheeers,
 Dushan Abeyruwan
 Associate Tech Lead
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)714408632*

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


>>>
>>
>>
>> --
>> Dushan Abeyruwan
>> Associate Tech Lead
>> *Integration Technologies Team*
>> *WSO2 Inc. http://wso2.com/*
>> *Mobile:(+94)714408632*
>>
>
>
>
> --
> Dushan Abeyruwan
> Associate Tech Lead
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com/*
> *Mobile:(+94)714408632*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Serialzing single array element represent in JSON [bug in jettision 1.3.4]

2013-09-25 Thread Dushan Abeyruwan
Hi Manoj,
  There are few unit test failures in Jettison due to the changers, please
find the patch which fix those jettison unit tests.

Cheers
Dushan


On Tue, Sep 24, 2013 at 6:36 PM, Dushan Abeyruwan  wrote:

> Hi
>  Thanks Manoj
>
> Cheers
> Dushan
>
>
> On Tue, Sep 24, 2013 at 5:57 PM, Manoj Kumara  wrote:
>
>> Hi,
>>
>> Applied the patch.
>>
>> Thanks,
>> Manoj
>>
>> Best Regards..
>>
>>
>> Manoj Kumara
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Twitter:  http://twitter.com/ManKuma
>> Mobile: +94713448188
>>
>>
>> On Tue, Sep 24, 2013 at 4:56 PM, Dushan Abeyruwan wrote:
>>
>>> Hi Sameera,
>>>
>>> $subject, is due to a JSON 1.3.4 issue and found out this issue has not
>>> yet fixed by codehaus, and I did a quick fix and the kernel patch is
>>> already in [1], please go through patch and if possible apply this
>>> immediately.
>>>
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-14490
>>>
>>> Cheeers,
>>> Dushan Abeyruwan
>>> Associate Tech Lead
>>> *Integration Technologies Team*
>>> *WSO2 Inc. http://wso2.com/*
>>> *Mobile:(+94)714408632*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Dushan Abeyruwan
> Associate Tech Lead
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com/*
> *Mobile:(+94)714408632*
>



-- 
Dushan Abeyruwan
Associate Tech Lead
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com/*
*Mobile:(+94)714408632*
Index: src/test/java/org/codehaus/jettison/mapped/MappedXMLStreamReaderTest.java
===
--- src/test/java/org/codehaus/jettison/mapped/MappedXMLStreamReaderTest.java   
(revision 186311)
+++ src/test/java/org/codehaus/jettison/mapped/MappedXMLStreamReaderTest.java   
(working copy)
@@ -519,16 +519,16 @@
 assertEquals("root", reader.getName().getLocalPart());
 
 assertEquals(XMLStreamReader.START_ELEMENT, reader.next());
-assertEquals("root", reader.getName().getLocalPart());
+assertEquals("root_encJSONElm_", reader.getName().getLocalPart());
 
 assertEquals(XMLStreamReader.START_ELEMENT, reader.next());
-assertEquals("relationships", reader.getName().getLocalPart());
+assertEquals("relationships_encJSONElm_", 
reader.getName().getLocalPart());
 
 assertEquals(XMLStreamReader.CHARACTERS, reader.next());
 assertEquals("friend", reader.getText());
 
 assertEquals(XMLStreamReader.END_ELEMENT, reader.next());
-assertEquals("relationships", reader.getName().getLocalPart());
+assertEquals("relationships_encJSONElm_", 
reader.getName().getLocalPart());
 
 assertEquals(XMLStreamReader.START_ELEMENT, reader.next());
 assertEquals("emails", reader.getName().getLocalPart());
@@ -561,7 +561,7 @@
 assertEquals("emails", reader.getName().getLocalPart());
 
 assertEquals(XMLStreamReader.END_ELEMENT, reader.next());
-assertEquals("root", reader.getName().getLocalPart());
+assertEquals("root_encJSONElm_", reader.getName().getLocalPart());
 
 assertEquals(XMLStreamReader.END_ELEMENT, reader.next());
 assertEquals("root", reader.getName().getLocalPart());
@@ -962,7 +962,7 @@
"}}";
 // Expected XML
 String expXml = "" +
-"" +
+"" +
 "folder1" +
 "" +
 "subfolder1" +
@@ -976,7 +976,7 @@
 "" +
 "file2" +
 "" +
-"" +
+"" +
 "";
 
 doTestEvents(json, expXml);
@@ -1018,7 +1018,7 @@
 mpdReader.close();
 
 String mpdXml = sb.toString();
-
+System.out.println(mpdXml);
 assertEquals(expXml, mpdXml);
 assertEquals(refEvents, mpdEvents);
 }
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kernel patch 0001 build failed in clean repo

2013-09-25 Thread Chamara Silva
Build failing due to invalid parent pom path refers in kernel patch 0001.
This is blocker for support branch continues integration. Please advise

[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.axis2:axis2-clustering:1.6.1-wso2v9
(/home/chamara/wso2/carbon/public_branch/branches/kernel/4.1.0/patches/patch0001/dependencies/axis2/modules/clustering/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.apache.axis2:axis2-parent:pom:1.6.1-wso2v9 in central (
http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
wrong local POM @ line 24, column 13 -> [Help 2]
[ERROR]
[ERROR]   The project org.apache.axis2:axis2-transport-http:1.6.1-wso2v9
(/home/chamara/wso2/carbon/public_branch/branches/kernel/4.1.0/patches/patch0001/dependencies/axis2/modules/transport/http/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Failure to find
org.apache.axis2:axis2-parent:pom:1.6.1-wso2v9 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced and 'parent.relativePath' points at wrong
local POM @ line 24, column 13 -> [Help 2]
[ERROR]
[ERROR]   The project org.apache.axis2:axis2-transport-msmq:1.1.0-wso2v8
(/home/chamara/wso2/carbon/public_branch/branches/kernel/4.1.0/patches/patch0001/dependencies/transports/modules/msmq/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.apache.axis2:axis2-transports:pom:1.1.0-wso2v8 in apache-incubating (
http://people.apache.org/repo/m2-incubating-repository/) and
'parent.relativePath' points at wrong local POM @ line 26, column 14 ->
[Help 2]
[ERROR]
[ERROR]   The project org.apache.axis2:axis2-transport-udp:1.1.0-wso2v8
(/home/chamara/wso2/carbon/public_branch/branches/kernel/4.1.0/patches/patch0001/dependencies/transports/modules/udp/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Failure to find
org.apache.axis2:axis2-transports:pom:1.1.0-wso2v8 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced and 'parent.relativePath' points at wrong
local POM @ line 25, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
chamara@chamara-ThinkPad-T520
:~/wso2/carbon/public_branch/branches/kernel/4.1.0/patches/patch0001$

Thanks,
Chamara Silva


-- 
A. Suminda Chamara Silva
Senior Software Engineer
WSO2 Inc.
Mobile: +94718302858
blog: http://chamaras.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [GREG][Blocker] IndexOutOfBoundsException thrown for tenants

2013-09-25 Thread Lalaji Sureshika
Hi,

Similar error observed in APIM 24th nightly build pack as well.

Thanks;


On Wed, Sep 25, 2013 at 11:13 PM, Nuwan Silva  wrote:

> IndexOutOfBoundsException thrown for tenants.
>
> JIRA: https://wso2.org/jira/browse/REGISTRY-2015
>
> TID: [0] [Greg] [2013-09-25 18:54:06,662] INFO
> {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} - Starting to
> clean tenant : 
> nu1silva.com{org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils}
> TID: [0] [Greg] [2013-09-25 18:54:06,725] ERROR
> {org.wso2.carbon.core.multitenancy.MultitenantServerManager} - Error
> occurred while executing tenant cleanup
> {org.wso2.carbon.core.multitenancy.MultitenantServerManager}
> java.lang.IndexOutOfBoundsException: Index: 10, Size: 1
> at java.util.LinkedList.checkElementIndex(LinkedList.java:553)
> at java.util.LinkedList.remove(LinkedList.java:523)
> at
> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$2.terminatingConfigurationContext(IndexingServiceComponent.java:97)
>
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.doPreConfigContextTermination(TenantAxisUtils.java:525)
>
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:487)
>
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:436)
>
> at
> org.wso2.carbon.core.multitenancy.MultitenantServerManager$TenantCleanupTask.run(MultitenantServerManager.java:73)
>
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
> at java.lang.Thread.run(Thread.java:724)
>
>
> --
> *
> *
> *Nuwan Silva
> *
> *Senior Software Engineer - QA*
> Mobile: +94779804543
>
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lalaji Sureshika
WSO2, Inc.;  http://wso2.com/
email: lal...@wso2.com; cell: +94 71 608 6811
blog: http://lalajisureshika.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Nightly build packs 25/09/2013 (AM,CEP,UES,GREG,ELB)

2013-09-25 Thread Sanjeewa Malalgoda
QA Team,

Latest nightly packs (API Manager, CEP, UES, GREG, ELB) built off
revision 186442 can be downloaded from [1]. There was an issue in building
feature repo and i will upload it once finished. CEP, UES, GREG, ELB
Products built with integration tests.


[1] -http://ec2-54-224-94-128.compute-1.amazonaws.com/chunk-02/N-25_09_2013/



Thanks,
sanjeewa
-- 
*
*
*Sanjeewa Malalgoda*
Senior Software Engineer
WSO2 Inc.
Mobile : +94713068779

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


Re: [Dev] Start up errors - ConcurrentModificationException from CarbonDeploymentSchedulerTask

2013-09-25 Thread Manoj Kumara
Hi Shameera,

Thanks for the info. I'll check.

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Wed, Sep 25, 2013 at 7:08 PM, Shameera Rathnayaka wrote:

> Hi Ajith,
>
> Could you able to check whether this is a problem of HumenTask call twice
> in execution flow?
>
> Hi Manoj,
>
> I have created a JIRA for this issue[1]  and added my finding there please
> have a look at that. As i explain in the JIRA we could solve it by making
> innere map to ConcurrentHashMap.This will produce another issue becuase we
> can't put  null as a key or value to a Concurrent HashMap and we do this in
> above map in such a case where we don't have extension for a particular
> deployer (eg: jaggery deployer doesn't has any extension associate it hence
> it is registered with null as it extension).
>
> [1] https://wso2.org/jira/browse/CARBON-14275
>
>
> Thanks,
> Shameera.
>
>
>
> On Wed, Sep 25, 2013 at 8:37 AM, Manoj Kumara  wrote:
>
>> Hi,
>>
>> Tried to reproduce with 21st Sept GReg pack but could not reproduced. I
>> will keep on looking to this.
>>
>> Thanks,
>> Manoj
>>
>> Best Regards..
>>
>>
>> Manoj Kumara
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Twitter:  http://twitter.com/ManKuma
>> Mobile: +94713448188
>>
>>
>> On Wed, Sep 25, 2013 at 10:49 AM, Manoj Kumara  wrote:
>>
>>> Hi Sumedha,
>>>
>>> I'll work on this.
>>>
>>> Thanks,
>>> Manoj
>>>
>>> Best Regards..
>>>
>>>
>>> Manoj Kumara
>>> Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Twitter:  http://twitter.com/ManKuma
>>> Mobile: +94713448188
>>>
>>>
>>> On Wed, Sep 25, 2013 at 10:32 AM, Sumedha Rubasinghe 
>>> wrote:
>>>
 Sameera,
 Can we have someone to attend to this pls?


 On Fri, Sep 13, 2013 at 3:57 PM, Ajith Vitharana wrote:

> Hi All,
>
> Observed the following error  in the latest pack (G-Reg) - chunk02
>
> [2013-09-13 15:52:39,357] ERROR
> {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
> while running deployment scheduler..
> java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
> at java.util.HashMap$EntryIterator.next(HashMap.java:834)
>  at java.util.HashMap$EntryIterator.next(HashMap.java:832)
> at
> org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(RepositoryListener.java:270)
>  at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:253)
> at
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
>  at
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
>  at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:65)
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:110)
>  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>  at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>  at java.lang.Thread.run(Thread.java:662)
> [2013-09-13 15:52:39,614]  INFO
> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 /sumedha
 m: +94 773017743
 b :  bit.ly/sumedha

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


>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Software Engineer - WSO2 Inc.*
> *email: shameera AT wso2.com  , shameera AT 
> apache.org
> *
> *phone:  +9471 922 1454*
> *
> *
> *Linked in : *http://l

Re: [Dev] Hazelcast instance is not active!

2013-09-25 Thread Shelan Perera
Attaching a possible fix.


On Thu, Sep 26, 2013 at 9:56 AM, Shelan Perera  wrote:

> Yes i fixed same in some other places as well. I think it is better to
> check in the
> memberRemoved()  and memberAdded() so it will cover most of the other
> scenarios as well.
>
> Thanks
>
>
> On Thu, Sep 26, 2013 at 9:53 AM, Afkham Azeez  wrote:
>
>>
>> On Thu, Sep 26, 2013 at 9:49 AM, Ajith Vitharana  wrote:
>>
>>> ntask
>>
>>
>> The ntask  ClusterGroupCommunicator.isLeader code has to be changed to
>> first check whether the Hazelcast lifecycle service is active before
>> calling into Hazelcast
>>
>>
>> --
>> *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*
>>
>
>
>
> --
> *Shelan Perera*
>
> Senior Software Engineer
> **
> Integration Technology Group
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Blog* :   blog.shelan.org
> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>


-- 
*Shelan Perera*

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

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

*Mobile*  : +94 772 604 402


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


Re: [Dev] Hazelcast instance is not active!

2013-09-25 Thread Shelan Perera
Yes i fixed same in some other places as well. I think it is better to
check in the
memberRemoved()  and memberAdded() so it will cover most of the other
scenarios as well.

Thanks


On Thu, Sep 26, 2013 at 9:53 AM, Afkham Azeez  wrote:

>
> On Thu, Sep 26, 2013 at 9:49 AM, Ajith Vitharana  wrote:
>
>> ntask
>
>
> The ntask  ClusterGroupCommunicator.isLeader code has to be changed to
> first check whether the Hazelcast lifecycle service is active before
> calling into Hazelcast
>
>
> --
> *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*
>



-- 
*Shelan Perera*

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

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

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


Re: [Dev] Start up errors - ConcurrentModificationException from CarbonDeploymentSchedulerTask

2013-09-25 Thread Ajith Vitharana
On Wed, Sep 25, 2013 at 6:07 PM, Manoj Kumara  wrote:

> Hi,
>
> Tried to reproduce with 21st Sept GReg pack but could not reproduced. I
> will keep on looking to this.
>


Got it again,

*[2013-09-26 09:52:40,244]*  INFO
{org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -  Added
member: Host:10.100.1.51, Remote Host:null, Port: 5000, HTTP:-1, HTTPS:-1,
Domain: null, Sub-domain:null, Active:true
[2013-09-26 09:52:40,275] ERROR
{org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
while running deployment scheduler..
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
at java.util.HashMap$EntryIterator.next(HashMap.java:834)
at java.util.HashMap$EntryIterator.next(HashMap.java:832)
at
org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(RepositoryListener.java:270)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:253)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:65)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:110)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)


>
> Thanks,
> Manoj
>
> Best Regards..
>
>
> Manoj Kumara
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Twitter:  http://twitter.com/ManKuma
> Mobile: +94713448188
>
>
> On Wed, Sep 25, 2013 at 10:49 AM, Manoj Kumara  wrote:
>
>> Hi Sumedha,
>>
>> I'll work on this.
>>
>> Thanks,
>> Manoj
>>
>> Best Regards..
>>
>>
>> Manoj Kumara
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Twitter:  http://twitter.com/ManKuma
>> Mobile: +94713448188
>>
>>
>> On Wed, Sep 25, 2013 at 10:32 AM, Sumedha Rubasinghe wrote:
>>
>>> Sameera,
>>> Can we have someone to attend to this pls?
>>>
>>>
>>> On Fri, Sep 13, 2013 at 3:57 PM, Ajith Vitharana wrote:
>>>
 Hi All,

 Observed the following error  in the latest pack (G-Reg) - chunk02

 [2013-09-13 15:52:39,357] ERROR
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
 while running deployment scheduler..
 java.util.ConcurrentModificationException
 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
 at java.util.HashMap$EntryIterator.next(HashMap.java:834)
  at java.util.HashMap$EntryIterator.next(HashMap.java:832)
 at
 org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(RepositoryListener.java:270)
  at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:253)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
  at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
  at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:65)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:110)
  at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
  at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:

Re: [Dev] Hazelcast instance is not active!

2013-09-25 Thread Afkham Azeez
On Thu, Sep 26, 2013 at 9:49 AM, Ajith Vitharana  wrote:

> ntask


The ntask  ClusterGroupCommunicator.isLeader code has to be changed to
first check whether the Hazelcast lifecycle service is active before
calling into Hazelcast


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


[Dev] Hazelcast instance is not active!

2013-09-25 Thread Ajith Vitharana
Hi All,

I'm getting following error in yesterday packs. This is happened while shut
down the server.


[2013-09-26 09:43:52,641]  INFO {org.wso2.carbon.core.ServerManagement} -
 Waiting for request service completion...
Exception in thread "hz.wso2.governance.domain.instance.cached.thread-6"
com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance
is not active!
at
com.hazelcast.spi.AbstractDistributedObject.throwNotActiveException(AbstractDistributedObject.java:53)
at
com.hazelcast.spi.AbstractDistributedObject.lifecycleCheck(AbstractDistributedObject.java:48)
at
com.hazelcast.spi.AbstractDistributedObject.getNodeEngine(AbstractDistributedObject.java:42)
at com.hazelcast.queue.proxy.QueueProxyImpl.peek(QueueProxyImpl.java:140)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.isLeader(ClusterGroupCommunicator.java:153)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.memberRemoved(ClusterGroupCommunicator.java:207)
at
com.hazelcast.cluster.ClusterServiceImpl.dispatchEvent(ClusterServiceImpl.java:972)
at
com.hazelcast.cluster.ClusterServiceImpl.dispatchEvent(ClusterServiceImpl.java:46)
at
com.hazelcast.spi.impl.EventServiceImpl$LocalEventDispatcher.run(EventServiceImpl.java:500)
at
com.hazelcast.util.executor.StripedExecutor$Worker.run(StripedExecutor.java:130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build issue coming in org.wso2.carbon.registry.extensions

2013-09-25 Thread Shelan Perera
Hi Dulitha,

Thanks for sharing this info. None of us got this error in the build and
that is worrying us.

Thanks


On Wed, Sep 25, 2013 at 10:53 PM, Dulitha Wijewantha wrote:

> Hi Shelan,
> I resolved the compilation issue - there was a problem with the POM -
>
> Below is the edited POM file of org.wso2.carbon.registry.extensions. I
> have made the changes in italics and bold.
>
>
> 
> 
>
> http://maven.apache.org/POM/4.0.0";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>
> 
> org.wso2.carbon
> registry
> 4.2.0
>  ../../pom.xml
> 
>
> 4.0.0
> org.wso2.carbon.registry.extensions
> 4.2.0
> bundle
> WSO2 Carbon - Registry - Extensions
>
> 
> 
> clover
> 
> 
> clover
> 
> 
> 
> 
> 
> com.atlassian.maven.plugins
> maven-clover2-plugin
> 
> 
> 60%
> false
> false
> true
> 
> 
> 
> verify
> 
> aggregate
> instrument
> clover
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> org.apache.felix
> maven-scr-plugin
> 
> 
> org.apache.felix
> maven-bundle-plugin
>
> true
> 
> 
>
> org.wso2.carbon.registry.core
>
> ${project.artifactId}
> ${project.artifactId}
> 
> org.wso2.carbon.registry.extensions.jmx.*,
> org.wso2.carbon.registry.extensions.utils.*,
> org.wso2.carbon.registry.extensions.handlers.*,
> org.wso2.carbon.registry.extensions.filters.*,
> org.wso2.carbon.registry.extensions.aspects.*,
> org.wso2.carbon.registry.extensions.beans.*
> 
> 
> common.*,
> !org.wso2.carbon.registry.extensions.utils.*,
> org.wso2.carbon.registry.extensions.*,
> 
> 
> org.wso2.carbon.registry.core.*,
>  *org.wso2.carbon.registry.admin.api.*,*
> org.apache.maven.scm.*,
> org.codehaus.plexus.*,
> !javax.xml.namespace,
> javax.xml.namespace; version=0.0.0,
> org.apache.axiom.*;
> version="${axiom.osgi.version.range}",
> *;resolution:=optional
> 
> 
> 
>  
> 
> maven-surefire-plugin
> true
> 
> pertest
> -enableassertions
> false
> 
> **/APPBasedLifeCycleTest.java
> **/AbstractAPPTest.java
> **/FactoryTest.java
> **/ResourceRenamingTest.java
> **/UserTest.java
> **/BaseTestCase.java
> **/IndexingTest.java
> 
>  
> 
> 
> 
>
> 
> 
> wsdl4j.wso2
> wsdl4j
> 
> 
> org.wso2.carbon
> org.wso2.carbon.registry.core
> 
> 
> org.wso2.carbon
> org.wso2.carbon.user.core
> 
> 
> org.wso2.carbon
> org.wso2.carbon.core
> 
> 
> org.wso2.carbon
> org.wso2.carbon.utils
> 
> 
> org.wso2.carbon
> org.wso2.carbon.user.mgt
> 
>
>  
> org.wso2.carbon
> org.wso2.carbon.user.api
>  
>
> **
> *org.wso2.carbon*
> *org.wso2.carbon.registry.admin.api*
> * *
> 
> org.wso2.carbon
> org.wso2.carbon.registry.common
> 
> 
> wsdl4j
> wsdl

Re: [Dev] Error - Illegal access attempt to cache

2013-09-25 Thread Afkham Azeez
On Thu, Sep 26, 2013 at 9:33 AM, Ajith Vitharana  wrote:

> APIProviderImpl


Check how the cache is obtained in APIProviderImpl. Possibly there is an
invalid reference.


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


[Dev] Error - Illegal access attempt to cache

2013-09-25 Thread Ajith Vitharana
Hi All,

I'm getting following error while try to create an API in embedded API
publisher.



[2013-09-26 09:30:02,836] ERROR
{org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject} -  Error while
adding the API- newTest-5.5.5
java.lang.SecurityException: Illegal access attempt to cache ] owned by
tenant {[carbon.super],[-1234]} by tenant {[vaji.com],[4]}
at org.wso2.carbon.caching.impl.Util.checkAccess(Util.java:45)
at org.wso2.carbon.caching.impl.CacheImpl.get(CacheImpl.java:196)
at
org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:378)
at
org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addAPI(UserAwareAPIProvider.java:45)
at
org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_addAPI(APIProviderHostObject.java:436)
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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.productapipublisher.modules.api.c3._c_anonymous_1(/productapipublisher/modules/api/add.jag:6)
at
org.jaggeryjs.rhino.productapipublisher.modules.api.c3.call(/productapipublisher/modules/api/add.jag)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at
org.jaggeryjs.rhino.productapipublisher.modules.api.c0._c_anonymous_1(/productapipublisher/modules/api/module.jag:5)
at
org.jaggeryjs.rhino.productapipublisher.modules.api.c0.call(/productapipublisher/modules/api/module.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.productapipublisher.site.blocks.item_add.ajax.c0._c_anonymous_1(/productapipublisher/site/blocks/item-add/ajax/add.jag:105)
at
org.jaggeryjs.rhino.productapipublisher.site.blocks.item_add.ajax.c0.call(/productapipublisher/site/blocks/item-add/ajax/add.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at
org.jaggeryjs.rhino.productapipublisher.site.blocks.item_add.ajax.c0._c_script_0(/productapipublisher/site/blocks/item-add/ajax/add.jag:4)
at
org.jaggeryjs.rhino.productapipublisher.site.blocks.item_add.ajax.c0.call(/productapipublisher/site/blocks/item-add/ajax/add.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at
org.jaggeryjs.rhino.productapipublisher.site.blocks.item_add.ajax.c0.call(/productapipublisher/site/blocks/item-add/ajax/add.jag)
at
org.jaggeryjs.rhino.productapipublisher.site.blocks.item_add.ajax.c0.exec(/productapipublisher/site/blocks/item-add/ajax/add.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:570)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:432)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomc

Re: [Dev] How to expose REST and consume SOAP BE using APIM

2013-09-25 Thread Asela Pathberiya
Thanks for reply

On Thu, Sep 26, 2013 at 2:09 AM, Sumedha Rubasinghe wrote:

> You should be using Synapse config editor. That would have saved most of
> these trouble.
>

I did not use it  Yes. it would work.


>
> On Thu, Sep 26, 2013 at 12:40 AM, Asela Pathberiya  wrote:
>
>> Hi all,
>>
>> I tried to do this using APIM 1.4.0 and it works.  But is there any
>> recommend way to achieve this? Because I have come across several issues
>> while i am trying to do. Please let me know whether i am in the correct
>> path.
>>
>> 1. Create a API in the API publisher
>>
>> 2. Now i want to edit the API configuration to do some changes to support
>> for this use case.
>>
>> 3. In Publisher, there is not way to edit API config. so login to
>> management console. User has no permission to edit API config
>>
>> 4.  Login as admin user and edit it.  But it was also not
>> successful...(May be som issue in the XML UI editor)
>>
>
> You need to use the Synapse config editor (not the API editor in Admin
> console) .
>
>>
>> 5. Then file system is used. it works.
>>
>> 6. Need to add new sequence for API flow, it is not allow to do using
>> publisher and management console and need to use file system.
>>
>
> Here again you need to use the Synapse config editor.
> In 1.5.0, there is an option to attach this to API through publisher UI
> (provided that added sequence extension definitions are in correct registry
> location).
>
+1


>
>> Are we recommend dev- studio for APIM ? sorry i did not try it
>>
>> 7. API is edited using publisher and all changes that i have done with
>> API config has been reverted.
>>
>
> API configuration can take full benefit of underlying Synapse semantics.
> There is no way for us to support all of that through Publisher UI. However
> we are going to add all ESB endpoint support in next release. This is a
> known issue. Marking hand edited ones & not allowing them to be edited
> through Publisher UI is an option. But it can be argued either way.
>
>
>> If  we want to expose SOAP as REST API, we may need to edit API config or
>> add additional sequences. Basically API publisher is not much useful to
>> implement this. I guess it is ok to improve to do this type of common use
>> cases using API publisher?
>>
>
> Just using SOAP endpoint & sending the envelop in the body (without any
> custom modifications) does not work?
>

Yes.. sending complete SOAP message in to API can be done... I followed
this [1] (I guess we can add this blog in to API doc, if it is not there).
When POX message is used with the same expected body,  we just need to add
format="soap11" in to end point configurations. But i actually use
form-urlencoded format, therefore need to build the SOAP body and also need
to do the conversion in the out sequence.

[1]
http://charithaka.blogspot.com/2012/07/consuming-soap-service-using-wso2-api.html

Thanks.
Asela.


>
>
>>
>> Thanks,
>> Asela.
>>
>> Thanks & Regards,
>> Asela
>>
>> ATL
>> Mobile : +94 777 625 933
>>
>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



-- 
Thanks & Regards,
Asela

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


Re: [Dev] CEP sample

2013-09-25 Thread Srinath Perera
Hi Rajeev,

If I remove the following line, it still shows as 2 even with group by.

stream1Handle1.send(new Object[]{"qsb", System.currentTimeMillis(), "up",
"192.121.0.2"});

Also do you find why array index outof bound happend when I uncomment


//stream1Handle1.send(new Object[]{"qsb", System.currentTimeMillis(),
"down", "192.121.0.1"});

--Srinath







On Thu, Sep 26, 2013 at 12:02 AM, Rajeev Sampath  wrote:

> Seems this is because group by is not used in the query.
>
> from StratosHealth  as h unidirectional join liveInstances as ls
>on h.domain==ls.domain
>select count(ls.ip) as instanceCount,  h.connections as  connections
>group by ls.ip
>insert into AutoscaleData
>
>
> Again, this can still result in duplicate events since siddhi will emit
> the events in the resulting joined table instead of one event.
>
>
> On Wed, Sep 25, 2013 at 4:02 PM, Srinath Perera  wrote:
>
>>
>>
>> --
>> 
>> Srinath Perera, Ph.D.
>>   Director, Research, WSO2 Inc.
>>   Visiting Faculty, University of Moratuwa
>>   Member, Apache Software Foundation
>>   Research Scientist, Lanka Software Foundation
>>   Blog: http://srinathsview.blogspot.com/
>>   Photos: http://www.flickr.com/photos/hemapani/
>>Phone: 0772360902
>>
>
>
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:* +94716265766
> *
>



-- 

Srinath Perera, Ph.D.
  Director, Research, WSO2 Inc.
  Visiting Faculty, University of Moratuwa
  Member, Apache Software Foundation
  Research Scientist, Lanka Software Foundation
  Blog: http://srinathsview.blogspot.com/
  Photos: http://www.flickr.com/photos/hemapani/
   Phone: 0772360902
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to expose REST and consume SOAP BE using APIM

2013-09-25 Thread Sumedha Rubasinghe
You should be using Synapse config editor. That would have saved most of
these trouble.

On Thu, Sep 26, 2013 at 12:40 AM, Asela Pathberiya  wrote:

> Hi all,
>
> I tried to do this using APIM 1.4.0 and it works.  But is there any
> recommend way to achieve this? Because I have come across several issues
> while i am trying to do. Please let me know whether i am in the correct
> path.
>
> 1. Create a API in the API publisher
>
> 2. Now i want to edit the API configuration to do some changes to support
> for this use case.
>
> 3. In Publisher, there is not way to edit API config. so login to
> management console. User has no permission to edit API config
>
> 4.  Login as admin user and edit it.  But it was also not
> successful...(May be som issue in the XML UI editor)
>

You need to use the Synapse config editor (not the API editor in Admin
console) .

>
> 5. Then file system is used. it works.
>
> 6. Need to add new sequence for API flow, it is not allow to do using
> publisher and management console and need to use file system.
>

Here again you need to use the Synapse config editor.
In 1.5.0, there is an option to attach this to API through publisher UI
(provided that added sequence extension definitions are in correct registry
location).

>
> Are we recommend dev- studio for APIM ? sorry i did not try it
>
> 7. API is edited using publisher and all changes that i have done with API
> config has been reverted.
>

API configuration can take full benefit of underlying Synapse semantics.
There is no way for us to support all of that through Publisher UI. However
we are going to add all ESB endpoint support in next release. This is a
known issue. Marking hand edited ones & not allowing them to be edited
through Publisher UI is an option. But it can be argued either way.


> If  we want to expose SOAP as REST API, we may need to edit API config or
> add additional sequences. Basically API publisher is not much useful to
> implement this. I guess it is ok to improve to do this type of common use
> cases using API publisher?
>

Just using SOAP endpoint & sending the envelop in the body (without any
custom modifications) does not work?


>
> Thanks,
> Asela.
>
> Thanks & Regards,
> Asela
>
> ATL
> Mobile : +94 777 625 933
>



-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to expose REST and consume SOAP BE using APIM

2013-09-25 Thread Asela Pathberiya
Hi all,

I tried to do this using APIM 1.4.0 and it works.  But is there any
recommend way to achieve this? Because I have come across several issues
while i am trying to do. Please let me know whether i am in the correct
path.

1. Create a API in the API publisher

2. Now i want to edit the API configuration to do some changes to support
for this use case.

3. In Publisher, there is not way to edit API config. so login to
management console. User has no permission to edit API config

4.  Login as admin user and edit it.  But it was also not successful...(May
be som issue in the XML UI editor)

5. Then file system is used. it works.

6. Need to add new sequence for API flow, it is not allow to do using
publisher and management console and need to use file system.

Are we recommend dev- studio for APIM ? sorry i did not try it

7. API is edited using publisher and all changes that i have done with API
config has been reverted.

If  we want to expose SOAP as REST API, we may need to edit API config or
add additional sequences. Basically API publisher is not much useful to
implement this. I guess it is ok to improve to do this type of common use
cases using API publisher?

Thanks,
Asela.

Thanks & Regards,
Asela

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


[Dev] [DEV] [GREG][Blocker] IndexOutOfBoundsException thrown for tenants

2013-09-25 Thread Nuwan Silva
IndexOutOfBoundsException thrown for tenants.

JIRA: https://wso2.org/jira/browse/REGISTRY-2015

TID: [0] [Greg] [2013-09-25 18:54:06,662] INFO
{org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} - Starting to
clean tenant : 
nu1silva.com{org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils}
TID: [0] [Greg] [2013-09-25 18:54:06,725] ERROR
{org.wso2.carbon.core.multitenancy.MultitenantServerManager} - Error
occurred while executing tenant cleanup
{org.wso2.carbon.core.multitenancy.MultitenantServerManager}
java.lang.IndexOutOfBoundsException: Index: 10, Size: 1
at java.util.LinkedList.checkElementIndex(LinkedList.java:553)
at java.util.LinkedList.remove(LinkedList.java:523)
at
org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$2.terminatingConfigurationContext(IndexingServiceComponent.java:97)

at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.doPreConfigContextTermination(TenantAxisUtils.java:525)

at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.terminateTenantConfigContext(TenantAxisUtils.java:487)

at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:436)

at
org.wso2.carbon.core.multitenancy.MultitenantServerManager$TenantCleanupTask.run(MultitenantServerManager.java:73)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:724)


-- 
*
*
*Nuwan Silva
*
*Senior Software Engineer - QA*
Mobile: +94779804543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build issue coming in org.wso2.carbon.registry.extensions

2013-09-25 Thread Dulitha Wijewantha
Hi Shelan,
I resolved the compilation issue - there was a problem with the POM -

Below is the edited POM file of org.wso2.carbon.registry.extensions. I have
made the changes in italics and bold.





http://maven.apache.org/POM/4.0.0";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>


org.wso2.carbon
registry
4.2.0
../../pom.xml


4.0.0
org.wso2.carbon.registry.extensions
4.2.0
bundle
WSO2 Carbon - Registry - Extensions



clover


clover





com.atlassian.maven.plugins
maven-clover2-plugin


60%
false
false
true



verify

aggregate
instrument
clover












org.apache.felix
maven-scr-plugin


org.apache.felix
maven-bundle-plugin

true



org.wso2.carbon.registry.core

${project.artifactId}
${project.artifactId}

org.wso2.carbon.registry.extensions.jmx.*,
org.wso2.carbon.registry.extensions.utils.*,
org.wso2.carbon.registry.extensions.handlers.*,
org.wso2.carbon.registry.extensions.filters.*,
org.wso2.carbon.registry.extensions.aspects.*,
org.wso2.carbon.registry.extensions.beans.*


common.*,
!org.wso2.carbon.registry.extensions.utils.*,
org.wso2.carbon.registry.extensions.*,


org.wso2.carbon.registry.core.*,
*org.wso2.carbon.registry.admin.api.*,*
org.apache.maven.scm.*,
org.codehaus.plexus.*,
!javax.xml.namespace,
javax.xml.namespace; version=0.0.0,
org.apache.axiom.*;
version="${axiom.osgi.version.range}",
*;resolution:=optional





maven-surefire-plugin
true

pertest
-enableassertions
false

**/APPBasedLifeCycleTest.java
**/AbstractAPPTest.java
**/FactoryTest.java
**/ResourceRenamingTest.java
**/UserTest.java
**/BaseTestCase.java
**/IndexingTest.java








wsdl4j.wso2
wsdl4j


org.wso2.carbon
org.wso2.carbon.registry.core


org.wso2.carbon
org.wso2.carbon.user.core


org.wso2.carbon
org.wso2.carbon.core


org.wso2.carbon
org.wso2.carbon.utils


org.wso2.carbon
org.wso2.carbon.user.mgt


 
org.wso2.carbon
org.wso2.carbon.user.api
 

**
*org.wso2.carbon*
*org.wso2.carbon.registry.admin.api*
* *

org.wso2.carbon
org.wso2.carbon.registry.common


wsdl4j
wsdl4j




org.wso2.carbon
org.wso2.carbon.registry.servlet


org.wso2.carbon
org.wso2.carbon.registry.uddi



junit
junit
test


com.h2database.wso2
h2-database-engine
test


commons-dbcp
commons-dbcp


org.wso2.carbon

Re: [Dev] [API-M] Cannot login to IS as a tenant, after installing AM Key management features

2013-09-25 Thread Sumedha Rubasinghe
Prabath,
This is due to a configuration issue. IS & AM have been started sharing
same registry database (including local registry).



On Wed, Sep 25, 2013 at 9:37 PM, Prabath Siriwardena wrote:

> Looking at the stacktrace - this is due to the following NPE.
>
> java.lang.NullPointerException
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:422)
>
> Thanks & regards,
> -Prabath
>
>
> On Wed, Sep 25, 2013 at 8:55 PM, Nirodha Pramod  wrote:
>
>> Hi,
>>
>> This is a blocker for using IS as Key manager in API-M distributed setup.
>> After installing key management features in IS you cannot log in as tenant,
>> get http 500 error page. Also you get invalid credentials error when the
>> token API endpoint is pointed to the OAuth2 web app in IS.
>>
>> https://wso2.org/jira/browse/APIMANAGER-1728
>>
>> regards,
>> Nirodha
>>
>> --
>> *
>> *
>> *Nirodha Gallage*
>> Senior Software Engineer, QA.
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94716429078
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API-M] Cannot login to IS as a tenant, after installing AM Key management features

2013-09-25 Thread Prabath Siriwardena
Looking at the stacktrace - this is due to the following NPE.

java.lang.NullPointerException
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.cleanupTenants(TenantAxisUtils.java:422)

Thanks & regards,
-Prabath


On Wed, Sep 25, 2013 at 8:55 PM, Nirodha Pramod  wrote:

> Hi,
>
> This is a blocker for using IS as Key manager in API-M distributed setup.
> After installing key management features in IS you cannot log in as tenant,
> get http 500 error page. Also you get invalid credentials error when the
> token API endpoint is pointed to the OAuth2 web app in IS.
>
> https://wso2.org/jira/browse/APIMANAGER-1728
>
> regards,
> Nirodha
>
> --
> *
> *
> *Nirodha Gallage*
> Senior Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,
Prabath

Mobile : +94 71 809 6732

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


[Dev] [API-M] Cannot login to IS as a tenant, after installing AM Key management features

2013-09-25 Thread Nirodha Pramod
Hi,

This is a blocker for using IS as Key manager in API-M distributed setup.
After installing key management features in IS you cannot log in as tenant,
get http 500 error page. Also you get invalid credentials error when the
token API endpoint is pointed to the OAuth2 web app in IS.

https://wso2.org/jira/browse/APIMANAGER-1728

regards,
Nirodha

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


[Dev] Code review summary - User Store Manager Configuration

2013-09-25 Thread Pushpalanka Jayawardhana
Hi All,

*Suggested Improvements *

   - To provide a meaningful error message at UI - provide test connection
   option at user store configuration
   - Flag faulty user store managers to indicate so
   - Handle the scenario, where an admin will try to delete own resident
   user store, throwing a proper error message

When returning an array, return an empty array instead of null.

Avoid call duplication at creating file for tenant and super tenant

Use threadLocalContext instead of currentContext in appropriate places.


Thanks,

Pushpalanka Jayawardhana

Software Engineer

WSO2 Lanka (pvt) Ltd
[image: 
Facebook]
[image:
Twitter]
[image:
LinkedIn]
[image:
Blogger]
[image:
SlideShare]
Mobile: +94779716248
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Start up errors - ConcurrentModificationException from CarbonDeploymentSchedulerTask

2013-09-25 Thread Shameera Rathnayaka
Hi Ajith,

Could you able to check whether this is a problem of HumenTask call twice
in execution flow?

Hi Manoj,

I have created a JIRA for this issue[1]  and added my finding there please
have a look at that. As i explain in the JIRA we could solve it by making
innere map to ConcurrentHashMap.This will produce another issue becuase we
can't put  null as a key or value to a Concurrent HashMap and we do this in
above map in such a case where we don't have extension for a particular
deployer (eg: jaggery deployer doesn't has any extension associate it hence
it is registered with null as it extension).

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


Thanks,
Shameera.



On Wed, Sep 25, 2013 at 8:37 AM, Manoj Kumara  wrote:

> Hi,
>
> Tried to reproduce with 21st Sept GReg pack but could not reproduced. I
> will keep on looking to this.
>
> Thanks,
> Manoj
>
> Best Regards..
>
>
> Manoj Kumara
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Twitter:  http://twitter.com/ManKuma
> Mobile: +94713448188
>
>
> On Wed, Sep 25, 2013 at 10:49 AM, Manoj Kumara  wrote:
>
>> Hi Sumedha,
>>
>> I'll work on this.
>>
>> Thanks,
>> Manoj
>>
>> Best Regards..
>>
>>
>> Manoj Kumara
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Twitter:  http://twitter.com/ManKuma
>> Mobile: +94713448188
>>
>>
>> On Wed, Sep 25, 2013 at 10:32 AM, Sumedha Rubasinghe wrote:
>>
>>> Sameera,
>>> Can we have someone to attend to this pls?
>>>
>>>
>>> On Fri, Sep 13, 2013 at 3:57 PM, Ajith Vitharana wrote:
>>>
 Hi All,

 Observed the following error  in the latest pack (G-Reg) - chunk02

 [2013-09-13 15:52:39,357] ERROR
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
 while running deployment scheduler..
 java.util.ConcurrentModificationException
 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
 at java.util.HashMap$EntryIterator.next(HashMap.java:834)
  at java.util.HashMap$EntryIterator.next(HashMap.java:832)
 at
 org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(RepositoryListener.java:270)
  at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:253)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
  at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
  at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:65)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:110)
  at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
  at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
  at java.lang.Thread.run(Thread.java:662)
 [2013-09-13 15:52:39,614]  INFO
 {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared

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


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


>>>
>>>
>>> --
>>> /sumedha
>>> m: +94 773017743
>>> b :  bit.ly/sumedha
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com  , shameera AT
apache.org
*
*phone:  +9471 922 1454*
*
*
*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] KeyManagerFactory ClassNotFoundException when starting ELB 2.0.3

2013-09-25 Thread Udara Liyanage
Started sucessfully in ,

java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)



On Wed, Sep 25, 2013 at 4:39 PM, Isuru Perera  wrote:

> which version?
>
>
> On Wed, Sep 25, 2013 at 4:34 PM, Udara Liyanage  wrote:
>
>> Installing newer version of JDX fixed the problem. Thanks.
>>
>>
>> On Wed, Sep 25, 2013 at 3:27 PM, Isuru Perera  wrote:
>>
>>> What is the JDK you are using?
>>>
>>> Please send the output of 'java -version'
>>>
>>> Thanks!
>>>
>>>
>>> On Wed, Sep 25, 2013 at 3:00 PM, Udara Liyanage  wrote:
>>>

 Hi,

 I got the following error while starting ELB 2.0.3 in a ec2 instance. I
 guess this is a problem with the jdk I am using. Is it so?


 [2013-09-25 09:18:59,936]  INFO - AgentDS Successfully deployed Agent
 Client
 [2013-09-25 09:19:06,030] FATAL - TomcatBundleActivator Error while
 starting server javax/net/ssl/KeyManagerFactory
 java.lang.NoClassDefFoundError: javax/net/ssl/KeyManagerFactory
 at
 org.apache.tomcat.util.net.AbstractEndpoint.(AbstractEndpoint.java:767)
  at org.apache.tomcat.util.net.NioEndpoint.(NioEndpoint.java:73)
 at
 org.apache.coyote.http11.Http11NioProtocol.(Http11NioProtocol.java:63)
  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 java.lang.Class.newInstance0(Class.java:355)
 at java.lang.Class.newInstance(Class.java:308)
 at org.apache.catalina.connector.Connector.(Connector.java:73)
  at
 org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
 at
 org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
 Source)
 at
 org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
  at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1556)
 at
 org.wso2.carbon.tomcat.internal.CarbonTomcat.configure(CarbonTomcat.java:66)
  at
 org.wso2.carbon.tomcat.internal.ServerManager.init(ServerManager.java:87)
 at
 org.wso2.carbon.tomcat.internal.TomcatBundleActivator.start(TomcatBundleActivator.java:45)
  at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(Native Method)
  at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
  at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
  at
 org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
  at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
  at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
  at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
  at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 Caused by: java.lang.ClassNotFoundException:
 javax.net.ssl.KeyManagerFactory
  at
 org.eclipse.osgi.internal.loader.Bu

[Dev] Two carbonapps directories are available in the Carbon 4.2.0 packs

2013-09-25 Thread Aparna Karunarathna
Hi,

Two carbonapps directories are available in the Carbon 4.2.0 packs, Which
carbonapps directory is the correct one?

-- 
*Regards,
Aparna Karunarathna.*
*Senior Software Engineer - QA
WSO2 Inc.
Mobile: 0714002533***
*Tel : 94 11 214 5345*
*Fax : 94 11 2145300*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Start up errors - ConcurrentModificationException from CarbonDeploymentSchedulerTask

2013-09-25 Thread Manoj Kumara
Hi,

Tried to reproduce with 21st Sept GReg pack but could not reproduced. I
will keep on looking to this.

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Wed, Sep 25, 2013 at 10:49 AM, Manoj Kumara  wrote:

> Hi Sumedha,
>
> I'll work on this.
>
> Thanks,
> Manoj
>
> Best Regards..
>
>
> Manoj Kumara
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Twitter:  http://twitter.com/ManKuma
> Mobile: +94713448188
>
>
> On Wed, Sep 25, 2013 at 10:32 AM, Sumedha Rubasinghe wrote:
>
>> Sameera,
>> Can we have someone to attend to this pls?
>>
>>
>> On Fri, Sep 13, 2013 at 3:57 PM, Ajith Vitharana  wrote:
>>
>>> Hi All,
>>>
>>> Observed the following error  in the latest pack (G-Reg) - chunk02
>>>
>>> [2013-09-13 15:52:39,357] ERROR
>>> {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
>>> while running deployment scheduler..
>>> java.util.ConcurrentModificationException
>>> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
>>> at java.util.HashMap$EntryIterator.next(HashMap.java:834)
>>>  at java.util.HashMap$EntryIterator.next(HashMap.java:832)
>>> at
>>> org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(RepositoryListener.java:270)
>>>  at
>>> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:253)
>>> at
>>> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
>>>  at
>>> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
>>> at
>>> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
>>>  at
>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:65)
>>> at
>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:110)
>>>  at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>>> at
>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>  at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>>>  at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>>  at java.lang.Thread.run(Thread.java:662)
>>> [2013-09-13 15:52:39,614]  INFO
>>> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> /sumedha
>> m: +94 773017743
>> b :  bit.ly/sumedha
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building kernel/patch0001 on a clean repo

2013-09-25 Thread Manoj Kumara
Hi,

Fixed. Please check now.

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Wed, Sep 25, 2013 at 5:09 PM, Ruwan Yatawara  wrote:

> wso2@ip-10-142-137-71:/build/branches/kernel/patches/patch0001$ mvn clean
> install
>
> Downloaded:
> http://repo.maven.apache.org/maven2/biz/aQute/bndlib/0.0.145/bndlib-0.0.145.pom(886
>  B at 96.1 KB/sec)
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.jar
> Downloading:
> http://repo.maven.apache.org/maven2/biz/aQute/bndlib/0.0.160/bndlib-0.0.160.jar
> Downloading:
> http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/1.0/maven-dependency-tree-1.0.jar
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-osgi/0.1.0/maven-osgi-0.1.0.jar
> Downloaded:
> http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-osgi/0.1.0/maven-osgi-0.1.0.jar(12
>  KB at 555.4 KB/sec)
> Downloaded:
> http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/1.0/maven-dependency-tree-1.0.jar(19
>  KB at 707.9 KB/sec)
> Downloaded:
> http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar(185
>  KB at 4979.1 KB/sec)
> Downloaded:
> http://repo.maven.apache.org/maven2/biz/aQute/bndlib/0.0.160/bndlib-0.0.160.jar(113
>  KB at 2605.7 KB/sec)
> Downloaded:
> http://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.jar(126
>  KB at 1389.6 KB/sec)
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project org.apache.ws.commons.axiom.wso2:axiom:1.2.11.wso2v4
> (/build/branches/kernel/patches/patch0001/dependencies/orbit/axiom/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:carbon-kernel-dependents:pom:4.1.0 in central (
> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
> wrong local POM @ line 23, column 13 -> [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Software Engineer,
> WSO2 Inc.
> lean . enterprise . middleware
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
> www: :http://wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when building kernel/patch0001 on a clean repo

2013-09-25 Thread Ruwan Yatawara
wso2@ip-10-142-137-71:/build/branches/kernel/patches/patch0001$ mvn clean
install

Downloaded:
http://repo.maven.apache.org/maven2/biz/aQute/bndlib/0.0.145/bndlib-0.0.145.pom(886
B at 96.1 KB/sec)
Downloading:
http://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.jar
Downloading:
http://repo.maven.apache.org/maven2/biz/aQute/bndlib/0.0.160/bndlib-0.0.160.jar
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar
Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/1.0/maven-dependency-tree-1.0.jar
Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-osgi/0.1.0/maven-osgi-0.1.0.jar
Downloaded:
http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-osgi/0.1.0/maven-osgi-0.1.0.jar(12
KB at 555.4 KB/sec)
Downloaded:
http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/1.0/maven-dependency-tree-1.0.jar(19
KB at 707.9 KB/sec)
Downloaded:
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar(185
KB at 4979.1 KB/sec)
Downloaded:
http://repo.maven.apache.org/maven2/biz/aQute/bndlib/0.0.160/bndlib-0.0.160.jar(113
KB at 2605.7 KB/sec)
Downloaded:
http://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.jar(126
KB at 1389.6 KB/sec)
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.ws.commons.axiom.wso2:axiom:1.2.11.wso2v4
(/build/branches/kernel/patches/patch0001/dependencies/orbit/axiom/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon:carbon-kernel-dependents:pom:4.1.0 in central (
http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
wrong local POM @ line 23, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


Thanks and Regards,

Ruwan Yatawara

Software Engineer,
WSO2 Inc.
lean . enterprise . middleware

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] KeyManagerFactory ClassNotFoundException when starting ELB 2.0.3

2013-09-25 Thread Isuru Perera
which version?


On Wed, Sep 25, 2013 at 4:34 PM, Udara Liyanage  wrote:

> Installing newer version of JDX fixed the problem. Thanks.
>
>
> On Wed, Sep 25, 2013 at 3:27 PM, Isuru Perera  wrote:
>
>> What is the JDK you are using?
>>
>> Please send the output of 'java -version'
>>
>> Thanks!
>>
>>
>> On Wed, Sep 25, 2013 at 3:00 PM, Udara Liyanage  wrote:
>>
>>>
>>> Hi,
>>>
>>> I got the following error while starting ELB 2.0.3 in a ec2 instance. I
>>> guess this is a problem with the jdk I am using. Is it so?
>>>
>>>
>>> [2013-09-25 09:18:59,936]  INFO - AgentDS Successfully deployed Agent
>>> Client
>>> [2013-09-25 09:19:06,030] FATAL - TomcatBundleActivator Error while
>>> starting server javax/net/ssl/KeyManagerFactory
>>> java.lang.NoClassDefFoundError: javax/net/ssl/KeyManagerFactory
>>> at
>>> org.apache.tomcat.util.net.AbstractEndpoint.(AbstractEndpoint.java:767)
>>>  at org.apache.tomcat.util.net.NioEndpoint.(NioEndpoint.java:73)
>>> at
>>> org.apache.coyote.http11.Http11NioProtocol.(Http11NioProtocol.java:63)
>>>  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 java.lang.Class.newInstance0(Class.java:355)
>>> at java.lang.Class.newInstance(Class.java:308)
>>> at org.apache.catalina.connector.Connector.(Connector.java:73)
>>>  at
>>> org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
>>> at
>>> org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
>>>  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>>> Source)
>>> at
>>> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
>>> Source)
>>>  at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
>>> Source)
>>> at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>>> Source)
>>>  at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>>> Source)
>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>>  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>>  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>>> Source)
>>>  at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1556)
>>> at
>>> org.wso2.carbon.tomcat.internal.CarbonTomcat.configure(CarbonTomcat.java:66)
>>>  at
>>> org.wso2.carbon.tomcat.internal.ServerManager.init(ServerManager.java:87)
>>> at
>>> org.wso2.carbon.tomcat.internal.TomcatBundleActivator.start(TomcatBundleActivator.java:45)
>>>  at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>  at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>>>  at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
>>>  at
>>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>>>  at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>>>  at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>>>  at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>  at
>>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>>> Caused by: java.lang.ClassNotFoundException:
>>> javax.net.ssl.KeyManagerFactory
>>>  at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
>>>  at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:10

Re: [Dev] KeyManagerFactory ClassNotFoundException when starting ELB 2.0.3

2013-09-25 Thread Udara Liyanage
Installing newer version of JDX fixed the problem. Thanks.


On Wed, Sep 25, 2013 at 3:27 PM, Isuru Perera  wrote:

> What is the JDK you are using?
>
> Please send the output of 'java -version'
>
> Thanks!
>
>
> On Wed, Sep 25, 2013 at 3:00 PM, Udara Liyanage  wrote:
>
>>
>> Hi,
>>
>> I got the following error while starting ELB 2.0.3 in a ec2 instance. I
>> guess this is a problem with the jdk I am using. Is it so?
>>
>>
>> [2013-09-25 09:18:59,936]  INFO - AgentDS Successfully deployed Agent
>> Client
>> [2013-09-25 09:19:06,030] FATAL - TomcatBundleActivator Error while
>> starting server javax/net/ssl/KeyManagerFactory
>> java.lang.NoClassDefFoundError: javax/net/ssl/KeyManagerFactory
>> at
>> org.apache.tomcat.util.net.AbstractEndpoint.(AbstractEndpoint.java:767)
>>  at org.apache.tomcat.util.net.NioEndpoint.(NioEndpoint.java:73)
>> at
>> org.apache.coyote.http11.Http11NioProtocol.(Http11NioProtocol.java:63)
>>  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 java.lang.Class.newInstance0(Class.java:355)
>> at java.lang.Class.newInstance(Class.java:308)
>> at org.apache.catalina.connector.Connector.(Connector.java:73)
>>  at
>> org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
>> at
>> org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
>>  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>> Source)
>> at
>> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
>> Source)
>>  at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
>> Source)
>> at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>> Source)
>>  at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>>  at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1556)
>> at
>> org.wso2.carbon.tomcat.internal.CarbonTomcat.configure(CarbonTomcat.java:66)
>>  at
>> org.wso2.carbon.tomcat.internal.ServerManager.init(ServerManager.java:87)
>> at
>> org.wso2.carbon.tomcat.internal.TomcatBundleActivator.start(TomcatBundleActivator.java:45)
>>  at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>>  at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
>>  at
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>>  at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>>  at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>>  at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>  at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>> Caused by: java.lang.ClassNotFoundException:
>> javax.net.ssl.KeyManagerFactory
>>  at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
>>  at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> ... 41 more
>> [2013-09-25 09:19:13,074]  INFO - EmbeddedRegistryService Configured
>> Registry in 69ms
>> [2013-09-25 09:1

[Dev] [Blocker] APIM tenant stores not showing APIs, due to registry pagination doesn't working as expected

2013-09-25 Thread Lalaji Sureshika
Hi,

QA team has reported the issue[1] appeared in their testing distributed
setup in which user-store is ldap.To avoid the jira[1] mentioned
exception,we have add the fix r186370 done by Senaka as a patch in our
setup.

Still,we cannot see APIs from APIStore and when debugging below code block
is returning an empty response.
GenericArtifact[] genericArtifacts =
artifactManager.findGenericArtifacts(listMap);

I have attached registry.xmls of publisher and store nodes.
@greg team :Please have a look on this..


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

-- 
Lalaji Sureshika
WSO2, Inc.;  http://wso2.com/
email: lal...@wso2.com; cell: +94 71 608 6811
blog: http://lalajisureshika.blogspot.com





wso2registry
false
true
/




jdbc/WSO2CarbonDB



jdbc/WSO2MountRegistryDB


   https://localhost:9443/registry";>
mountInstance
mountregistry
	AM150REG@jdbc:oracle:thin:@192.168.18.8:1521:daniddb
false
true
/



mountInstance
/_system/config



mountInstance
/_system/governance
   






.*







.*







true

/trunk/schemas/
	

/trunk/wsdls/
	

/trunk/policies/
	


application/wsdl+xml






application/wsdl+xml
application/xsd+xml
50
true

3

/trunk/schemas/


/trunk/wsdls/

	
application/vnd.wso2.governance-archive







1.0.0-SNAPSHOT
true

dev
qa
live


application/vnd.wso2-service+xml







application/vnd.wso2-service+xml




   


 
/_system/governance/event/topics/registry/notifications/.*
 







Created
Tested
Deployed


application/vnd.wso2-smart-link






	
/trunk/policies/
	

application/policy+xml







true

/trunk/schemas/


application/x-xsd+xml







application/vnd.wso2-hyperlink






application/vnd.wso2.endpoint

/trunk/endpoints/






	
	application/vnd.wso2-uri+xml
	





 
 .*
 





.*


















	 
50
4

50
 
10

/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime6




















   



true
true
true
true

/trunk/services/



  
false





























wso2registry
false
true
/




jdbc/WSO2CarbonDB



jdbc/WSO2MountRegistryDB


   https://localhost:9443/registry";>
mountInstance
mountregistry
AM150REG@jdbc:oracle:thin:@192.168.18.8:1521:daniddb
false
true
/



mountInstance
/_system/config



mountInstance
/_system/governance
   






.*







.*







true

/trunk/schemas/
	

/trunk/wsdls/
	

/trunk/policies/
	


application/wsdl+xml






application/wsdl+xml
application/xsd+xml
50
true

3

/trunk/schemas/


/trunk/wsdls/

	
application/vnd.wso2.governance-archive







1.0.0-SNAPSHOT
true

dev
qa
live


application/vnd.wso2-service+xml







application/vnd.wso2-service+xml




   


 
 

Re: [Dev] [DEV][Blocker]StAX dialect detection fails on IBM JRE 1.7

2013-09-25 Thread Manoj Kumara
Hi,

Commited with r186401.

Thanks,

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Tue, Sep 24, 2013 at 10:45 PM, Manoj Kumara  wrote:

> Hi Ravi,
>
> I tried to applied this but some problems occurred during applying it. Can
> we sort out this tomorrow.
>
> Thanks,
> Manoj
>
> Best Regards..
>
>
> Manoj Kumara
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Twitter:  http://twitter.com/ManKuma
> Mobile: +94713448188
>
>
> On Tue, Sep 24, 2013 at 7:14 PM, Ravi Undupitiya  wrote:
>
>> Hi Manoj,
>>
>> Please find the carbon kernel patch attached to [1].
>>
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-2462
>>
>>
>> On Tue, Sep 24, 2013 at 10:41 AM, Manoj Kumara  wrote:
>>
>>> Hi Ravi,
>>>
>>> Can you create the relevant kernel patches for relevant branches and
>>> attach that to the above JIRA issue. So we can commit that. Please follow
>>> the instructions given on [1].
>>>
>>> [1]
>>> http://docs.wso2.org/display/Carbon420/Creating+a+Carbon+Kernel+Patch
>>>
>>>
>>> Thanks,
>>> Manoj
>>>
>>> Best Regards..
>>>
>>>
>>> Manoj Kumara
>>> Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Twitter:  http://twitter.com/ManKuma
>>> Mobile: +94713448188
>>>
>>>
>>> On Mon, Sep 23, 2013 at 11:57 PM, Ravi Undupitiya  wrote:
>>>
 Hi Sagara,

 It wasn't clear what the other two commits were, so I left those out.
 I'll look into merging those.

 What should we do if the code is too out of sync (since the version we
 are patching is quite old), IIRC one of those commits was fixing a
 regression issue and seemed to be out of sync with the version we're using.


 Thanks


 On Mon, Sep 23, 2013 at 11:13 PM, Sagara Gunathunga wrote:

>
>
>
> On Mon, Sep 23, 2013 at 4:43 AM, Sameera Jayasoma wrote:
>
>> Hi Sagara,
>>
>> Can you please review this patch?
>>
>
>
> @Ravi,
>
> Why do you have take only part of the fix from AXIOM-443 ? This may
> solve only specific visible issue but as you can read from AXIOM-443
> comments we need complete fix to provide full support for IBM JRE. IMO if
> there is no specific reason then apply the full patch to local branch.
> (Generally when merging from Apache branch to out local branch don't merge
> part of a patch that may cause lot of incompatibilities in future)
>
> @Sameera
>
> Since we are merging from Apache trunk there can't be any technical
> issue with the fix let's just make sure we can pass test cases.
>
> Thanks !
>
> Thanks !
>
>>
>> Thanks,
>> Sameera.
>>
>>
>> On Mon, Sep 23, 2013 at 11:31 AM, Vanjikumaran Sivajothy <
>> va...@wso2.com> wrote:
>>
>>> @ravi
>>>
>>> Thank you for your patch.
>>>
>>> @sameera
>>> This is critical issue on IBM JRE 1.7!
>>>
>>> Please good enough to apply the patch to resolve this issue.
>>>
>>> Thank you,
>>> Best regards,
>>> vanji
>>>
>>>
>>>
>>> On Mon, Sep 23, 2013 at 11:26 AM, Ravi Undupitiya wrote:
>>>
 Hi Vanji,


 I exported the patch from AXIOM-443 and it solved this issue.
 There's a patch attached to [1].

 [1] https://wso2.org/jira/browse/ESBJAVA-2462


 On Fri, Sep 20, 2013 at 9:25 AM, Vanjikumaran Sivajothy <
 va...@wso2.com> wrote:

> Hi Carbon team,
>
> Please assist us to resolve [1] by applying patch in [2]. This
> is pretty urgent, because esb is not starting at all in AIX 7.1,
> IBM JDK 1.7 environment.
>
>
> [1]https://wso2.org/jira/browse/ESBJAVA-2462
> [2]https://issues.apache.org/jira/browse/AXIOM-443
>
> Quick action highly appreciate to solve the problem and thank you
> in advance.
>
> --
> Sivajothy Vanjikumaran
>  *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com/*
> *Mobile:(+94)777219209**
> *[image: Facebook]  [image:
> Twitter]  [image: 
> LinkedIn]
>  [image:
> Blogger]  [image: 
> SlideShare]
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Ravi Undupitiya*
 Software Engineer; WSO2 Inc.; http://wso2.com
 *
 *
 *E-mail: r...@wso2.com
 **M: **+94 772 930 712*
 *
 *Lea

Re: [Dev] KeyManagerFactory ClassNotFoundException when starting ELB 2.0.3

2013-09-25 Thread Isuru Perera
What is the JDK you are using?

Please send the output of 'java -version'

Thanks!


On Wed, Sep 25, 2013 at 3:00 PM, Udara Liyanage  wrote:

>
> Hi,
>
> I got the following error while starting ELB 2.0.3 in a ec2 instance. I
> guess this is a problem with the jdk I am using. Is it so?
>
>
> [2013-09-25 09:18:59,936]  INFO - AgentDS Successfully deployed Agent
> Client
> [2013-09-25 09:19:06,030] FATAL - TomcatBundleActivator Error while
> starting server javax/net/ssl/KeyManagerFactory
> java.lang.NoClassDefFoundError: javax/net/ssl/KeyManagerFactory
> at
> org.apache.tomcat.util.net.AbstractEndpoint.(AbstractEndpoint.java:767)
>  at org.apache.tomcat.util.net.NioEndpoint.(NioEndpoint.java:73)
> at
> org.apache.coyote.http11.Http11NioProtocol.(Http11NioProtocol.java:63)
>  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 java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at org.apache.catalina.connector.Connector.(Connector.java:73)
>  at
> org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
> at
> org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
>  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
> at
> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
>  at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>  at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>  at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1556)
> at
> org.wso2.carbon.tomcat.internal.CarbonTomcat.configure(CarbonTomcat.java:66)
>  at
> org.wso2.carbon.tomcat.internal.ServerManager.init(ServerManager.java:87)
> at
> org.wso2.carbon.tomcat.internal.TomcatBundleActivator.start(TomcatBundleActivator.java:45)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>  at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
>  at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>  at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>  at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>  at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>  at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
> Caused by: java.lang.ClassNotFoundException:
> javax.net.ssl.KeyManagerFactory
>  at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
>  at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> ... 41 more
> [2013-09-25 09:19:13,074]  INFO - EmbeddedRegistryService Configured
> Registry in 69ms
> [2013-09-25 09:19:13,288]  INFO - RegistryCoreServiceComponent Registry
> Mode: READ-WRITE
>
> --
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> ph

Re: [Dev] WSO2 ELB 2.0.3 log4j.properties files contains WSO2 ESB product name

2013-09-25 Thread Isuru Perera
Fixed in 4.2.0 branch with r186388 and in trunk with r186389


On Wed, Sep 25, 2013 at 10:43 AM, Isuru Haththotuwa  wrote:

>
> On Wed, Sep 25, 2013 at 10:33 AM, Isuru Perera  wrote:
>
>> I will fix it for ELB 2.1.0
>>
>> Thanks!
>>
>>
>> On Wed, Sep 25, 2013 at 10:26 AM, Isuru Udana  wrote:
>>
>>> It's same with ELB 2.1.0.
>>> Let's fix this for this release.
>>>
>> +1.
>
>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0/products/elb/2.1.0/modules/distribution/src/main/conf/log4j.properties
>>>
>>>
>>> On Wed, Sep 25, 2013 at 10:17 AM, Udara Liyanage  wrote:
>>>

 Hi,

 Seems WSO2 ESB log4g.properties files is mistakenly copied to WSO2 ELB
 product.
 The properties file inside ELB is attached.
 --
 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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


>>>
>>>
>>> --
>>> *Isuru Udana*
>>> *
>>>  *
>>> Senior *
>>> Software Engineer
>>> *
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>> twitter: http://twitter.com/isudana
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> Software Engineer, WSO2 Inc.
> +94 716 358 048
> *http://wso2.com/*
>
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

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


[Dev] KeyManagerFactory ClassNotFoundException when starting ELB 2.0.3

2013-09-25 Thread Udara Liyanage
Hi,

I got the following error while starting ELB 2.0.3 in a ec2 instance. I
guess this is a problem with the jdk I am using. Is it so?


[2013-09-25 09:18:59,936]  INFO - AgentDS Successfully deployed Agent Client
[2013-09-25 09:19:06,030] FATAL - TomcatBundleActivator Error while
starting server javax/net/ssl/KeyManagerFactory
java.lang.NoClassDefFoundError: javax/net/ssl/KeyManagerFactory
at
org.apache.tomcat.util.net.AbstractEndpoint.(AbstractEndpoint.java:767)
 at org.apache.tomcat.util.net.NioEndpoint.(NioEndpoint.java:73)
at
org.apache.coyote.http11.Http11NioProtocol.(Http11NioProtocol.java:63)
 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 java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.connector.Connector.(Connector.java:73)
 at
org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
 at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1556)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.configure(CarbonTomcat.java:66)
 at
org.wso2.carbon.tomcat.internal.ServerManager.init(ServerManager.java:87)
at
org.wso2.carbon.tomcat.internal.TomcatBundleActivator.start(TomcatBundleActivator.java:45)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
 at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
 at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: javax.net.ssl.KeyManagerFactory
 at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
 at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 41 more
[2013-09-25 09:19:13,074]  INFO - EmbeddedRegistryService Configured
Registry in 69ms
[2013-09-25 09:19:13,288]  INFO - RegistryCoreServiceComponent Registry
Mode: READ-WRITE

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

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


Re: [Dev] Removing duplicate tests from Old surefire based integration tests

2013-09-25 Thread Shelan Perera
Moved older tests to "tests-deprecate" ( Which is skipped from execution)
and retained "tests-old" for the tests that are possibly not covered by new
Integration tests. Eventually the plan is to get rid of all the older tests
and move them to newer framework.

Thanks


On Wed, Sep 25, 2013 at 10:22 AM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi,
>
> AFAIK, only registry handler based tests are not covered though new test
> framework. However those tests are already migrated to new framework. We
> just have to enable them and see.
>
> +1 to disable old framework based tests.
>
> Thanks,
>
>
> On Wed, Sep 25, 2013 at 9:44 AM, Shelan Perera  wrote:
>
>> Hi,
>>
>> We still have old surefire based tests in the GREG build and maintaining
>> them has been a problem for sometime. As per the offline chat with
>> Krishantha we are removing the duplicate tests from the old test base and
>> going the retire them. Some of the tests have been failing due to
>> inconsistencies and it is important that we are going to make sure
>> integration tests are in good shape ( passing as well as maintainable) so
>> support branch does not have any failures in future.
>>
>> Thanks
>>
>> --
>> *Shelan Perera*
>>
>> Senior Software Engineer
>> **
>> Integration Technology Group
>> *WSO2, Inc. : wso2.com*
>> lean.enterprise.middleware.
>>
>> *Blog* :   blog.shelan.org
>> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
>> *Twitter* :https://twitter.com/#!/shelan
>>
>> *Mobile*  : +94 772 604 402
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
*Shelan Perera*

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

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

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


Re: [Dev] Warning - We don't support method overloading. Ignoring [getAttributeName] was observed when starting the Greg

2013-09-25 Thread Aparna Karunarathna
Yes, same warning.

Regards,
Aparna


On Wed, Sep 25, 2013 at 12:59 PM, Senaka Fernando  wrote:

> Hi Aparna,
>
> Is this https://wso2.org/jira/browse/IDENTITY-1849?
>
> Thanks,
> Senaka.
>
>
> On Wed, Sep 25, 2013 at 12:34 PM, Aparna Karunarathna wrote:
>
>> Hi,
>>
>> Following warning message was observed when starting the Greg (24th Sep)
>> pack.
>>
>> TID: [0] [Greg] [2013-09-25 10:56:58,282]  WARN
>> {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator} -  We don't
>> support method overloading. Ignoring [getAttributeName]
>> {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator}
>>
>>
>> --
>> *Regards,
>> Aparna Karunarathna.*
>> *Senior Software Engineer - QA
>> WSO2 Inc.
>> Mobile: 0714002533***
>> *Tel : 94 11 214 5345*
>> *Fax : 94 11 2145300*
>>
>
>
>
> --
> * 
> *
> *
> *
> *Senaka Fernando*
> Senior Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>



-- 
*Regards,
Aparna Karunarathna.*
*Senior Software Engineer - QA
WSO2 Inc.
Mobile: 0714002533***
*Tel : 94 11 214 5345*
*Fax : 94 11 2145300*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test failures - components/module-mgt

2013-09-25 Thread Ashansa Perera
Hi Kasun,

I'm getting test failures[1] in the same class TestModuleAdminService.java
( 4.0.2 branch)

[1]
--
 T E S T S
---

---
 T E S T S
---
Running org.wso2.carbon.module.mgt.service.TestModuleAdminService
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 1.442 sec
<<< FAILURE!

Results :

Tests in error:

testTotalModules(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
org.wso2.carbon.user.api.RealmConfiguration.setRealmDomainConfigs(Ljava/util/Map;)V

testAxisMethodStuff(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
org.wso2.carbon.user.api.RealmConfiguration.setRealmDomainConfigs(Ljava/util/Map;)V

testEngageModules(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
org.wso2.carbon.user.api.RealmConfiguration.setRealmDomainConfigs(Ljava/util/Map;)V

testModuleStuff(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
org.wso2.carbon.user.api.RealmConfiguration.setRealmDomainConfigs(Ljava/util/Map;)V

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

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 6.145s
[INFO] Finished at: Wed Sep 25 14:17:27 IST 2013
[INFO] Final Memory: 31M/981M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
project org.wso2.carbon.module.mgt: There are test failures.



On Fri, Aug 2, 2013 at 11:41 PM, Kasun Gajasinghe  wrote:

>
> I have temporarily commented it out. Need to move this in to AS
> integration tests.
>
>
>
>
> On Fri, Aug 2, 2013 at 11:37 PM, Kasun Gajasinghe  wrote:
>
>>
>> I'll look in to this.
>>
>> Thanks,
>> KasunG
>>
>>
>> On Fri, Aug 2, 2013 at 10:20 PM, Ajith Vitharana  wrote:
>>
>>> Test set: org.wso2.carbon.module.mgt.service.TestModuleAdminService
>>>
>>> ---
>>> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 8.951
>>> sec <<< FAILURE!
>>> testTotalModules(org.wso2.carbon.module.mgt.service.TestModuleAdminService)
>>>  Time elapsed: 8.907 sec  <<< ERROR!
>>> org.apache.axis2.AxisFault: Configuration Registry is not available
>>> at
>>> org.wso2.carbon.core.persistence.AbstractPersistenceManager.(AbstractPersistenceManager.java:125)
>>> at
>>> org.wso2.carbon.core.persistence.ModulePersistenceManager.(ModulePersistenceManager.java:90)
>>> at
>>> org.wso2.carbon.module.mgt.service.TestModuleAdminService.setUp(TestModuleAdminService.java:101)
>>> at junit.framework.TestCase.runBare(TestCase.java:128)
>>> at junit.framework.TestResult$1.protect(TestResult.java:106)
>>> at junit.framework.TestResult.runProtected(TestResult.java:124)
>>> at junit.framework.TestResult.run(TestResult.java:109)
>>> at junit.framework.TestCase.run(TestCase.java:120)
>>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
>>> at junit.framework.TestSuite.run(TestSuite.java:225)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:95)
>>> at
>>> org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:121)
>>> at
>>> org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:98)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>> at
>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>> at
>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>>> at
>>> org.apa

Re: [Dev] Apply Patch for https://wso2.org/jira/browse/REGISTRY-2011 to Kernel

2013-09-25 Thread Manoj Kumara
Hi,

Committed on r186380.

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Wed, Sep 25, 2013 at 2:01 PM, Senaka Fernando  wrote:

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


[Dev] Apply Patch for https://wso2.org/jira/browse/REGISTRY-2011 to Kernel

2013-09-25 Thread Senaka Fernando
FYI, $subject.

Thanks,
Senaka.

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

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

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


Re: [Dev] Using a jar in plugins/ in the classpath for a library under the CXF runtime

2013-09-25 Thread Kasun Gajasinghe
On Wed, Sep 25, 2013 at 1:28 PM, Sagara Gunathunga  wrote:

>
>
>
> On Wed, Sep 25, 2013 at 12:46 AM, Kasun Gajasinghe wrote:
>
>> Hi,
>>
>> For the JAX-WS and JAX-RS service discovery to work properly, we need
>> access to the registry (to store unique id of each service), and the
>> AxisConfiguration (to get the Discovery url of the (super)tenant) etc. So,
>> the cxf-ws-discovery library needs jars in repository/components/plugins/
>> in its classpath. It also need CXF libraries (under lib/runtimes/cxf) since
>> the ws-discovery is performed by registering a CXF lifecycle listener.
>>
>> But we are keeping the libraries under the said two folders independent
>> of each other to provide better classloading environment for webapps. The
>> cxf-ws-discovery jar should probably go under lib/runtimes/cxf. So, what's
>> the best way for it to depend on libraries from plugins/?
>> If we duplicate the jars, the distribution size will grow considerably.
>>
>
> This is a very common requirement for lot of extended CXF features, let's
> not try to make it more complex by introducing something new instead let's
> use existing concepts.
>
> 1. Put cxf-ws-discovery jar and what ever the custom code we write for
> above feature into "lib/runtimes/cxf"
>
> 2. If a CXF app owner want to use WS-Discovery with standard way there is
> nothing new required.
>
> 3. If a CXF app owner want to use WS-Discovery on WSO2 Registry (Smart
> endpoint ) then he should also need to add "Carbon"as a classlaoder runtime
> environment in addition to "CXF".
>
>
+1.. This looks like a clean approach. Will try this out.

Thanks,
KasunG


>  Thanks !
>
>>
>>
>> --
>> *Kasun Gajasinghe*
>> Software Engineer;
>> WSO2 Inc.; http://wso2.com
>>
>>
>>  ,
>> *email: **kasung AT spamfree wso2.com
>>
>>
>> ** cell: **+94 (77) 678-0813*
>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>
>>
>> *
>> *
>> *blog: **http://kasunbg.org* 
>>
>>
>> *
>> twitter: **http://twitter.com/kasunbg* 
>>
>>
>> *
>> *
>>
>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
*Kasun Gajasinghe*
Software Engineer;
WSO2 Inc.; http://wso2.com


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


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


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


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


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


Re: [Dev] Using a jar in plugins/ in the classpath for a library under the CXF runtime

2013-09-25 Thread Sagara Gunathunga
On Wed, Sep 25, 2013 at 12:46 AM, Kasun Gajasinghe  wrote:

> Hi,
>
> For the JAX-WS and JAX-RS service discovery to work properly, we need
> access to the registry (to store unique id of each service), and the
> AxisConfiguration (to get the Discovery url of the (super)tenant) etc. So,
> the cxf-ws-discovery library needs jars in repository/components/plugins/
> in its classpath. It also need CXF libraries (under lib/runtimes/cxf) since
> the ws-discovery is performed by registering a CXF lifecycle listener.
>
> But we are keeping the libraries under the said two folders independent of
> each other to provide better classloading environment for webapps. The
> cxf-ws-discovery jar should probably go under lib/runtimes/cxf. So, what's
> the best way for it to depend on libraries from plugins/?
> If we duplicate the jars, the distribution size will grow considerably.
>

This is a very common requirement for lot of extended CXF features, let's
not try to make it more complex by introducing something new instead let's
use existing concepts.

1. Put cxf-ws-discovery jar and what ever the custom code we write for
above feature into "lib/runtimes/cxf"

2. If a CXF app owner want to use WS-Discovery with standard way there is
nothing new required.

3. If a CXF app owner want to use WS-Discovery on WSO2 Registry (Smart
endpoint ) then he should also need to add "Carbon"as a classlaoder runtime
environment in addition to "CXF".

Thanks !

>
>
> --
> *Kasun Gajasinghe*
> Software Engineer;
> WSO2 Inc.; http://wso2.com
>
>
>  ,
> *email: **kasung AT spamfree wso2.com
>
>
> ** cell: **+94 (77) 678-0813*
> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>
>
> *
> *
> *blog: **http://kasunbg.org* 
>
>
> *
> twitter: **http://twitter.com/kasunbg* 
>
>
> *
> *
>



-- 
Sagara Gunathunga

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


[Dev] Using a jar in plugins/ in the classpath for a library under the CXF runtime

2013-09-25 Thread Kasun Gajasinghe
Hi,

For the JAX-WS and JAX-RS service discovery to work properly, we need
access to the registry (to store unique id of each service), and the
AxisConfiguration (to get the Discovery url of the (super)tenant) etc. So,
the cxf-ws-discovery library needs jars in repository/components/plugins/
in its classpath. It also need CXF libraries (under lib/runtimes/cxf) since
the ws-discovery is performed by registering a CXF lifecycle listener.

But we are keeping the libraries under the said two folders independent of
each other to provide better classloading environment for webapps. The
cxf-ws-discovery jar should probably go under lib/runtimes/cxf. So, what's
the best way for it to depend on libraries from plugins/?
If we duplicate the jars, the distribution size will grow considerably.


-- 
*Kasun Gajasinghe*
Software Engineer;
WSO2 Inc.; http://wso2.com


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


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


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


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


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


Re: [Dev] Warning - We don't support method overloading. Ignoring [getAttributeName] was observed when starting the Greg

2013-09-25 Thread Senaka Fernando
Hi Aparna,

Is this https://wso2.org/jira/browse/IDENTITY-1849?

Thanks,
Senaka.


On Wed, Sep 25, 2013 at 12:34 PM, Aparna Karunarathna wrote:

> Hi,
>
> Following warning message was observed when starting the Greg (24th Sep)
> pack.
>
> TID: [0] [Greg] [2013-09-25 10:56:58,282]  WARN
> {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator} -  We don't
> support method overloading. Ignoring [getAttributeName]
> {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator}
>
>
> --
> *Regards,
> Aparna Karunarathna.*
> *Senior Software Engineer - QA
> WSO2 Inc.
> Mobile: 0714002533***
> *Tel : 94 11 214 5345*
> *Fax : 94 11 2145300*
>



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

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

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


[Dev] Warning - We don't support method overloading. Ignoring [getAttributeName] was observed when starting the Greg

2013-09-25 Thread Aparna Karunarathna
Hi,

Following warning message was observed when starting the Greg (24th Sep)
pack.

TID: [0] [Greg] [2013-09-25 10:56:58,282]  WARN
{org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator} -  We don't
support method overloading. Ignoring [getAttributeName]
{org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator}


-- 
*Regards,
Aparna Karunarathna.*
*Senior Software Engineer - QA
WSO2 Inc.
Mobile: 0714002533***
*Tel : 94 11 214 5345*
*Fax : 94 11 2145300*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev