[Dev] Difficulty Running an Axis2 Service in WSO2 AS

2014-04-10 Thread Dumidu Handakumbura
Hi,

The service has dependency jars all those were copied into WEB-INF/lib in
the Axis2 directory and then the service is invoked correctly. In WSO2 AS I
copied the jars to repository/components/lib (According to the AS doc),
when I deploy the .aar it is getting following error;

Error: java.lang.NoClassDefFoundError:
org/wso2/ws/dataservice/DataServiceFault at java.lang.Class.forName0(Native
Method) at java.lang.Class.forName(Class.java:270) at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.(DefaultSchemaGenerator.java:140)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:453)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:397)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
at
org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServeError:java.lang.NoClassDefFoundError
,rManager.java:219) at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
at
org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java

Re: [Dev] Oracle IDM

2014-04-10 Thread Isura Karunaratne
Hi Amal

Thanks for quick reply. I need to setup Oracle IDM for testing SPML
provisioning, I will follow the links you mentioned.


On Fri, Apr 11, 2014 at 11:59 AM, Amal Gunatilake  wrote:

> Hi Isura,
>
> When I was in support I worked on a similar support issue.
> To the above support issue the client had an Oracle IDM environemnt. But
> in this case it doesn't matter which environment it involves since this
> issue occurred due to huge number of user accounts in the database. So
> initially to reproduce this error I used Apache DS. If you are having
> something similar scenario I recommend the same. You can find a step by
> step guide in my blog [1] .
> However if you need to setup Oracale IDM then the below links would help
> you.
>
> [1] http://tutorials-for-developers.blogspot.com/
> [2] http://docs.oracle.com/cd/E12839_01/install./e10033.pdf
> [3]
> http://www.makina-corpus.org/blog/howto-install-oracle-11g-ubuntu-linux-1204-precise-pangolin-64bits
>
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> On Fri, Apr 11, 2014 at 11:27 AM, Lali Devamanthri  wrote:
>
>> Hi,
>> I do remember AmalG worked on Oracle IDM related support issue.
>> @AmalG can you  shed some light on here.
>>
>>
>>
>> On Fri, Apr 11, 2014 at 10:56 AM, Isura Karunaratne wrote:
>>
>>> Does anybody have experience with $subject installation on ubuntu
>>>
>>> --
>>> Isura Dilhara Karunaratne
>>> Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Lali Sudaththa Devamanthri*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 71 895 4922
>>  
>>
>
>


-- 
Isura Dilhara Karunaratne
Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identifier is too long for Sequences and Triggers of some Identity tables

2014-04-10 Thread Chamath Gunawardana
Created https://wso2.org/jira/browse/IDENTITY-2143


On Fri, Apr 11, 2014 at 12:05 PM, Sumedha Rubasinghe wrote:

> Let's use SEQ and TRG at the end.
> On Apr 11, 2014 11:50 AM, "Lakmali Baminiwatta"  wrote:
>
>> Hi all,
>>
>> Oracle is complaining with "identifier is too long" for below Sequences
>> and Triggers.
>>
>> IDN_APPMGT_CLAIM_MAPPING_SEQUENCE
>> IDN_APPMGT_CLAIM_MAPPING_TRIGGER
>>
>> IDN_APPMGT_ROLE_MAPPING_SEQUENCE
>> IDN_APPMGT_ROLE_MAPPING_TRIGGER
>>
>> We need to change those to smaller names (< 30 chars).
>>
>> Thanks,
>> Lakmali
>> --
>> Lakmali Baminiwatta
>>  Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 71 2335936
>> blog : lakmali.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
>
>


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


Re: [Dev] Identifier is too long for Sequences and Triggers of some Identity tables

2014-04-10 Thread Sumedha Rubasinghe
Let's use SEQ and TRG at the end.
On Apr 11, 2014 11:50 AM, "Lakmali Baminiwatta"  wrote:

> Hi all,
>
> Oracle is complaining with "identifier is too long" for below Sequences
> and Triggers.
>
> IDN_APPMGT_CLAIM_MAPPING_SEQUENCE
> IDN_APPMGT_CLAIM_MAPPING_TRIGGER
>
> IDN_APPMGT_ROLE_MAPPING_SEQUENCE
> IDN_APPMGT_ROLE_MAPPING_TRIGGER
>
> We need to change those to smaller names (< 30 chars).
>
> Thanks,
> Lakmali
> --
> Lakmali Baminiwatta
>  Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.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


Re: [Dev] Oracle IDM

2014-04-10 Thread Amal Gunatilake
Hi Isura,

When I was in support I worked on a similar support issue.
To the above support issue the client had an Oracle IDM environemnt. But in
this case it doesn't matter which environment it involves since this issue
occurred due to huge number of user accounts in the database. So initially
to reproduce this error I used Apache DS. If you are having something
similar scenario I recommend the same. You can find a step by step guide in
my blog [1] . However if you
need to setup Oracale IDM then the below links would help you.

[1] http://tutorials-for-developers.blogspot.com/
[2] http://docs.oracle.com/cd/E12839_01/install./e10033.pdf
[3]
http://www.makina-corpus.org/blog/howto-install-oracle-11g-ubuntu-linux-1204-precise-pangolin-64bits


Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


On Fri, Apr 11, 2014 at 11:27 AM, Lali Devamanthri  wrote:

> Hi,
> I do remember AmalG worked on Oracle IDM related support issue.
> @AmalG can you  shed some light on here.
>
>
>
> On Fri, Apr 11, 2014 at 10:56 AM, Isura Karunaratne wrote:
>
>> Does anybody have experience with $subject installation on ubuntu
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lali Sudaththa Devamanthri*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 71 895 4922
>  
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Identifier is too long for Sequences and Triggers of some Identity tables

2014-04-10 Thread Lakmali Baminiwatta
Hi all,

Oracle is complaining with "identifier is too long" for below Sequences and
Triggers.

IDN_APPMGT_CLAIM_MAPPING_SEQUENCE
IDN_APPMGT_CLAIM_MAPPING_TRIGGER

IDN_APPMGT_ROLE_MAPPING_SEQUENCE
IDN_APPMGT_ROLE_MAPPING_TRIGGER

We need to change those to smaller names (< 30 chars).

Thanks,
Lakmali
-- 
Lakmali Baminiwatta
 Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Oracle IDM

2014-04-10 Thread Lali Devamanthri
Hi,
I do remember AmalG worked on Oracle IDM related support issue.
@AmalG can you  shed some light on here.



On Fri, Apr 11, 2014 at 10:56 AM, Isura Karunaratne  wrote:

> Does anybody have experience with $subject installation on ubuntu
>
> --
> Isura Dilhara Karunaratne
> Software Engineer
>
> Mob +94 772 254 810
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lali Sudaththa Devamanthri*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 895 4922

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


[Dev] Oracle IDM

2014-04-10 Thread Isura Karunaratne
Does anybody have experience with $subject installation on ubuntu

-- 
Isura Dilhara Karunaratne
Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2014-04-10 Thread Suresh Attanayaka
NO, I do not think any of the products have a JWT authenticator, +1 for
having this in DSS, AS and ESB. Here are my suggestion to improve this.

#1. Have signature validation enabled. We can not trust a JWT assertion
until we validate the signature.
#2. Have a Config UI to:
   a. Upload the certificate/s for signature validation.
   b. Enable/Disable JWT Authentication for services.

Here the #2 is a must to get this working in multi-tenant mode.



On Fri, Apr 11, 2014 at 8:38 AM, Anjana Fernando  wrote:

> @Sumedha, do we have any similar functionality at the moment with any APIM
> integration efforts to other products? ..
>
> Cheers,
> Anjana.
>
>
> On Fri, Apr 11, 2014 at 1:45 AM, Shani Ranasinghe  wrote:
>
>> Hi,
>>
>> Please use this file for your reference and ignore the previous. Sorry
>> for the inconvenience.
>>
>>
>> On Thu, Apr 10, 2014 at 1:12 PM, Shani Ranasinghe  wrote:
>>
>>> Hi,
>>>
>>> Please find an axis2 handler I have written for DSS, which is capable of
>>> extracting the JWT token and performing operations based on it. DSS
>>> currently does not have an inbuilt support to handle JWT tokens. For now, I
>>> have only done this for user name extraction. I have a method which
>>> extracts the user name from the JWT token and adds it to the message
>>> context.
>>>
>>> The reason for this is to enable security , with user name token, and in
>>> a case that we send a JWT token and expect underlying services from APIM
>>> onwards to be trusted, we need to make use of this JWT token and carry on
>>> the rest of the operations.
>>>
>>> The reason for the inception of this process is that, I needed a way to
>>> extract the JWT user name and use it for DSS security and thereby use the
>>> content filtering capability of DSS.
>>>
>>> I have attached the axis2 handler, and as per Anjana's suggestion, could
>>> we add this to the platform and have this commented by default in axi2.xml ?
>>>
>>> Please let me know if there are any improvement points that I could use
>>> for this piece of code.
>>>
>>> --
>>> Thanks and Regards
>>> *, Shani Ranasinghe*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273555
>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>
>>
>>
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>
>
> --
> *Anjana Fernando*
> Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Configure with ActiveMQ 5.8.0 and above

2014-04-10 Thread Dakshika Jayathilaka
Got it.. Thanks lot


On Fri, Apr 11, 2014 at 10:24 AM, Chanaka Fernando wrote:

> I was referring the sample documentation [1]. There it says
>
> [1] (
> https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
> )
>
> What you have pointed out [2] needs to be corrected.
>
> https://docs.wso2.org/display/ESB481/Configure+with+ActiveMQ
>
>
> Adding Rukshani.
>
>
>
> On Fri, Apr 11, 2014 at 10:12 AM, Dakshika Jayathilaka 
> wrote:
>
>> Thanks for the update.. but documentation mentioned that we need to copy
>> that for *Earlier version of ActiveMQ.*
>>
>> https://docs.wso2.org/display/ESB481/Configure+with+ActiveMQ
>>
>>
>> On Fri, Apr 11, 2014 at 10:03 AM, Chanaka Fernando wrote:
>>
>>> Hi Dakshika,
>>>
>>> In the above documentation, it is mentioned that you need to copy the 
>>> "geronimo-j2ee-management_1.0_spec-1.0.jar"
>>> as well.
>>>
>>>
>>> You will now need to configure the Axis2 instance used by ESB (not the
>>> sample Axis2 server) to enable JMS support using the above provider. Refer
>>> to the Axis2 documentation on setting up JMS for more details (
>>> http://ws.apache.org/axis2/1_1/jms-transport.html). You must also copy
>>> activemq-core-5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar, and
>>> geronimo-jms_1.1_spec-1.1.1.jar from /lib to
>>> /repository/components/lib to allow the ESB to connect to the
>>> JMS provider.
>>>
>>>
>>> Thanks,
>>> Chanaka
>>>
>>>
>>> On Fri, Apr 11, 2014 at 6:28 AM, Dakshika Jayathilaka >> > wrote:
>>>
 On step 03 its mentioned  to Copy the following client libraries from 
 /lib
 directory to /repository/components/lib directory.

 *ActiveMQ 5.8.0 and above *

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


 but some samples will not work without having

-

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


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

 please be kind enough to review and update.

 Thank you.

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

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


>>>
>>>
>>> --
>>> --
>>> Chanaka Fernando
>>> Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>> Wordpress:http://chanakaudaya.wordpress.com
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


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


Re: [Dev] issue when running remote server

2014-04-10 Thread Shavantha Weerasinghe
Hi

Thanks

Yes restarting mysql fixed this

regards,

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



On Fri, Apr 11, 2014 at 7:33 AM, Shashika Ubhayaratne wrote:

> Yes it was the issue.. I had to increase sql max no of connections and
> restart sql to overcome this issue.
> Please follow same and re-try
>
> Shashika
> Shashika Ubhayaratne
> Associate Technical Lead - QA
> WSO2 Inc: http://www.wso2.com/
> Mobile: +94773383831
>
>
> On Thu, Apr 10, 2014 at 9:29 PM, Shavantha Weerasinghe
>  wrote:
> > Hi Guys
> >
> > Got this error when starting the RC2 on a remote server.
> >
> > @Shashika : was this one issue you got today
> >
> > Regards
> > Shavantha Weerasinghe
> > Senior Software Engineer QA
> > WSO2, Inc.
> > lean.enterprise.middleware.
> > http://wso2.com
> > http://wso2.org
> > Tel : 94 11 214 5345
> > Fax :94 11 2145300
> >
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configure with ActiveMQ 5.8.0 and above

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

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

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

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


Adding Rukshani.



On Fri, Apr 11, 2014 at 10:12 AM, Dakshika Jayathilaka wrote:

> Thanks for the update.. but documentation mentioned that we need to copy
> that for *Earlier version of ActiveMQ.*
>
> https://docs.wso2.org/display/ESB481/Configure+with+ActiveMQ
>
>
> On Fri, Apr 11, 2014 at 10:03 AM, Chanaka Fernando wrote:
>
>> Hi Dakshika,
>>
>> In the above documentation, it is mentioned that you need to copy the 
>> "geronimo-j2ee-management_1.0_spec-1.0.jar"
>> as well.
>>
>>
>> You will now need to configure the Axis2 instance used by ESB (not the
>> sample Axis2 server) to enable JMS support using the above provider. Refer
>> to the Axis2 documentation on setting up JMS for more details (
>> http://ws.apache.org/axis2/1_1/jms-transport.html). You must also copy
>> activemq-core-5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar, and
>> geronimo-jms_1.1_spec-1.1.1.jar from /lib to
>> /repository/components/lib to allow the ESB to connect to the
>> JMS provider.
>>
>>
>> Thanks,
>> Chanaka
>>
>>
>> On Fri, Apr 11, 2014 at 6:28 AM, Dakshika Jayathilaka 
>> wrote:
>>
>>> On step 03 its mentioned  to Copy the following client libraries from 
>>> /lib
>>> directory to /repository/components/lib directory.
>>>
>>> *ActiveMQ 5.8.0 and above *
>>>
>>>- activemq-broker-5.8.0.jar
>>>- activemq-client-5.8.0.jar
>>>- geronimo-jms_1.1_spec-1.1.1.jar
>>>
>>>
>>> but some samples will not work without having
>>>
>>>-
>>>
>>>geronimo-j2ee-management_1.0_spec-1.0.jar
>>>
>>>
>>> Ex: sample 250
>>> (
>>> https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
>>> )
>>>
>>> please be kind enough to review and update.
>>>
>>> Thank you.
>>>
>>> --
>>> *Dakshika Jayathilaka*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>> Chanaka Fernando
>> Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>
>
> --
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>



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

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


Re: [Dev] Configure with ActiveMQ 5.8.0 and above

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

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


On Fri, Apr 11, 2014 at 10:03 AM, Chanaka Fernando wrote:

> Hi Dakshika,
>
> In the above documentation, it is mentioned that you need to copy the 
> "geronimo-j2ee-management_1.0_spec-1.0.jar"
> as well.
>
>
> You will now need to configure the Axis2 instance used by ESB (not the
> sample Axis2 server) to enable JMS support using the above provider. Refer
> to the Axis2 documentation on setting up JMS for more details (
> http://ws.apache.org/axis2/1_1/jms-transport.html). You must also copy
> activemq-core-5.7.0.jar, geronimo-j2ee-management_1.1_spec-1.0.1.jar, and
> geronimo-jms_1.1_spec-1.1.1.jar from /lib to
> /repository/components/lib to allow the ESB to connect to the
> JMS provider.
>
>
> Thanks,
> Chanaka
>
>
> On Fri, Apr 11, 2014 at 6:28 AM, Dakshika Jayathilaka 
> wrote:
>
>> On step 03 its mentioned  to Copy the following client libraries from 
>> /lib
>> directory to /repository/components/lib directory.
>>
>> *ActiveMQ 5.8.0 and above *
>>
>>- activemq-broker-5.8.0.jar
>>- activemq-client-5.8.0.jar
>>- geronimo-jms_1.1_spec-1.1.1.jar
>>
>>
>> but some samples will not work without having
>>
>>-
>>
>>geronimo-j2ee-management_1.0_spec-1.0.jar
>>
>>
>> Ex: sample 250
>> (
>> https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
>> )
>>
>> please be kind enough to review and update.
>>
>> Thank you.
>>
>> --
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


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


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

2014-04-10 Thread Thilina Piyasundara
Hi Gayatri,

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

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

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

Thanks and regards,

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

WSO2, Inc.
​
​ 
lean . enterprise . middleware


On Thu, Apr 10, 2014 at 10:55 PM, Gayatri SN wrote:

> Hi all,
>
> I have submitted a Google Summer of Code(GSoC 2014) proposal. This is the
> link to it:
> http://www.google-melange.com/gsoc/proposal/review/student/google/gsoc2014/gayatri2709/5629499534213120
>
>
> I have been working on this proposal and as Mr.Gajasinghe had suggested,
> here are some of my findings:
> 1. I have been trying out different front-end options and using Bootstrap
> with jQuery seems to be the best choice due to it's wide usage and
> simplicity of code.
> 2. Using bootstrap will be beneficial because it will provide responsive
> front-end design.
> 3. Trying my code on small screen devices like cell phones and tablets,
> the drag and drop area seems insufficient, so for them we can also provide
> an alternate menu based GUI for ease-of-use.
>
> In my proposal, have mentioned some features like image export that can be
> added this GUI tool, and currently working on their jQuery implementation.
>
> I would like to have some suggestions for any more features you would want
> me to implement, so that we can give the users the best GUI experience.
>
> Regards,
> Gayatri Nesarikar
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configure with ActiveMQ 5.8.0 and above

2014-04-10 Thread Chanaka Fernando
Hi Dakshika,

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


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


Thanks,
Chanaka


On Fri, Apr 11, 2014 at 6:28 AM, Dakshika Jayathilaka wrote:

> On step 03 its mentioned  to Copy the following client libraries from 
> /lib
> directory to /repository/components/lib directory.
>
> *ActiveMQ 5.8.0 and above *
>
>- activemq-broker-5.8.0.jar
>- activemq-client-5.8.0.jar
>- geronimo-jms_1.1_spec-1.1.1.jar
>
>
> but some samples will not work without having
>
>-
>
>geronimo-j2ee-management_1.0_spec-1.0.jar
>
>
> Ex: sample 250
> (
> https://docs.wso2.org/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
> )
>
> please be kind enough to review and update.
>
> Thank you.
>
> --
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


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

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

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

Regards,
Dinusha.



On Thu, Apr 10, 2014 at 11:57 AM, Dinusha Senanayaka wrote:

> Thanks Thanuja. will check.
>
> Regards,
> Dinusha.
>
>
> On Thu, Apr 10, 2014 at 11:51 AM, Thanuja Jayasinghe wrote:
>
>> Hi Dinusha,
>>
>> Fixed with r19.
>>
>>
>> Thanks
>>
>>
>> On Thu, Apr 10, 2014 at 10:06 AM, Darshana Gunawardana > > wrote:
>>
>>> Hi Dinusha,
>>>
>>> We are looking into this..
>>>
>>> Thanks,
>>>
>>>
>>> On Thu, Apr 10, 2014 at 6:50 AM, Dinusha Senanayaka wrote:
>>>
 Hi,

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


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


 Regards,
 Dinusha.

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

>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>>
>>> *Darshana Gunawardana *Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>>
>>> * E-mail: darsh...@wso2.com *
>>> *Mobile: +94718566859 <%2B94718566859> *Lean . Enterprise . Middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Thanuja Lakmal*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94715979891
>>
>
>
>
> --
> Dinusha Dilrukshi
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



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


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

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

Cheers,
Anjana.


On Fri, Apr 11, 2014 at 1:45 AM, Shani Ranasinghe  wrote:

> Hi,
>
> Please use this file for your reference and ignore the previous. Sorry for
> the inconvenience.
>
>
> On Thu, Apr 10, 2014 at 1:12 PM, Shani Ranasinghe  wrote:
>
>> Hi,
>>
>> Please find an axis2 handler I have written for DSS, which is capable of
>> extracting the JWT token and performing operations based on it. DSS
>> currently does not have an inbuilt support to handle JWT tokens. For now, I
>> have only done this for user name extraction. I have a method which
>> extracts the user name from the JWT token and adds it to the message
>> context.
>>
>> The reason for this is to enable security , with user name token, and in
>> a case that we send a JWT token and expect underlying services from APIM
>> onwards to be trusted, we need to make use of this JWT token and carry on
>> the rest of the operations.
>>
>> The reason for the inception of this process is that, I needed a way to
>> extract the JWT user name and use it for DSS security and thereby use the
>> content filtering capability of DSS.
>>
>> I have attached the axis2 handler, and as per Anjana's suggestion, could
>> we add this to the platform and have this commented by default in axi2.xml ?
>>
>> Please let me know if there are any improvement points that I could use
>> for this piece of code.
>>
>> --
>> Thanks and Regards
>> *, Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



-- 
*Anjana Fernando*
Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] issue when running remote server

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

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


On Thu, Apr 10, 2014 at 9:29 PM, Shavantha Weerasinghe
 wrote:
> Hi Guys
>
> Got this error when starting the RC2 on a remote server.
>
> @Shashika : was this one issue you got today
>
> Regards
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Configure with ActiveMQ 5.8.0 and above

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

*ActiveMQ 5.8.0 and above *

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


but some samples will not work without having

   -

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


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

please be kind enough to review and update.

Thank you.

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


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

2014-04-10 Thread Shani Ranasinghe
Hi,

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


On Thu, Apr 10, 2014 at 1:12 PM, Shani Ranasinghe  wrote:

> Hi,
>
> Please find an axis2 handler I have written for DSS, which is capable of
> extracting the JWT token and performing operations based on it. DSS
> currently does not have an inbuilt support to handle JWT tokens. For now, I
> have only done this for user name extraction. I have a method which
> extracts the user name from the JWT token and adds it to the message
> context.
>
> The reason for this is to enable security , with user name token, and in a
> case that we send a JWT token and expect underlying services from APIM
> onwards to be trusted, we need to make use of this JWT token and carry on
> the rest of the operations.
>
> The reason for the inception of this process is that, I needed a way to
> extract the JWT user name and use it for DSS security and thereby use the
> content filtering capability of DSS.
>
> I have attached the axis2 handler, and as per Anjana's suggestion, could
> we add this to the platform and have this commented by default in axi2.xml ?
>
> Please let me know if there are any improvement points that I could use
> for this piece of code.
>
> --
> Thanks and Regards
> *, Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



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

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
package org.wso2;
import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

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

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

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

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

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


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

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

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

} catch (UnsupportedEncodingException e) {
	throw e;
}
			}
		}
	}
}
__

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

2014-04-10 Thread Shani Ranasinghe
Hi,

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

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

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

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

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

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

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
package org.wso2;
import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

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

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

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

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

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


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

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

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

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


Re: [Dev] Kernel commit to patch0006

2014-04-10 Thread Manoj Kumara
HI Chamath,

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

Thanks,
Manoj


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


On Thu, Apr 10, 2014 at 5:19 PM, Chamath Gunawardana wrote:

> Hi Kernel team,
>
> Please apply the patch attached to jira [1]. This fix is for
> org.wso2.carbon.ui and org.wso2.carbon.utils.
>
> [1] - https://wso2.org/jira/browse/IDENTITY-2138
>
>
> --
> Thanks,
> Best Regards,
> Chamath Gunawardana
> Technical Lead; WSO2 Inc.
> Mobile : +94776322240
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2014-04-10 Thread Anjana Fernando
Hi guys,

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

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

Cheers,
Anjana.


On Tue, Apr 8, 2014 at 7:45 PM, Anjana Fernando  wrote:

> Hi,
>
> There is an issue reported for BAM here [1], where in a registry put
> operation, a MySQL integrity constraint violation exception is thrown, can
> someone from GREG team please look into it.
>
> [1] https://wso2.org/jira/browse/BAM-1542
>
> Cheers,
> Anjana.
> --
> *Anjana Fernando*
> Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
*Anjana Fernando*
Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

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

[image: Inline image 1]


On Thu, Apr 10, 2014 at 10:57 PM, Hasitha Hiranya  wrote:

> Miyuru and I had a look how other broker vendors like Active MQ is
> providing this feature.
> We found that it has active and inactive subscriptions for durable topics
> were shown separately.
>
> I was trying to impalement a similar onefor MB, but with cluster concept
> embedded.
>
>
> On Thu, Apr 10, 2014 at 10:46 PM, Hasitha Hiranya wrote:
>
>> Hi,
>>
>> There was a requirement bought out by a MB customer that they need to
>> view *who are the subscribers for queues and topics* at a given moment
>> in the Broker.
>>
>> At the Andes side all requirements to gather this information is
>> available.
>> Most importantly, for MB cluster subscribers can come from any MB node.
>> So this view should have cluster wide information.
>>
>> I am trying to implement this for MB 2.2.0.
>>
>> Thanks.
>> --
>> *Hasitha Abeykoon*
>> Software Engineer; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* 
>>
>>
>
>
> --
> *Hasitha Abeykoon*
> Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


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


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

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

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


On Thu, Apr 10, 2014 at 10:46 PM, Hasitha Hiranya  wrote:

> Hi,
>
> There was a requirement bought out by a MB customer that they need to view 
> *who
> are the subscribers for queues and topics* at a given moment in the
> Broker.
>
> At the Andes side all requirements to gather this information is
> available.
> Most importantly, for MB cluster subscribers can come from any MB node. So
> this view should have cluster wide information.
>
> I am trying to implement this for MB 2.2.0.
>
> Thanks.
> --
> *Hasitha Abeykoon*
> Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


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


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

2014-04-10 Thread Gayatri SN
Hi all,

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


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

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

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

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


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

2014-04-10 Thread Hasitha Hiranya
Hi,

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

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

I am trying to implement this for MB 2.2.0.

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


[Dev] JDBC - Get Auto generated Keys

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

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

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

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

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

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

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

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

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


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

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


On Thu, Apr 10, 2014 at 12:11 PM, Anjana Fernando  wrote:

> Hi,
>
> There is an issue reported for BAM here [1], in a scenario when tenant is
> unloaded and loaded again, and when a Jaggery web app deployment happens, a
> call to
> "org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder()"
> seems to be called recursively indefinitely, which causes a
> StacKOverflowError. Can someone from the Carbon Core team please look into
> it.
>
> [1] https://wso2.org/jira/browse/BAM-1513
>
> Cheers,
> Anjana.
> --
> *Anjana Fernando*
> Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



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

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


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

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

Thanks,
Nuwanw


On Tue, Apr 1, 2014 at 12:43 PM, Kasun Gajasinghe  wrote:

> I guess the nexus has cleaned up the rampart snapshots via its cleanup
> period task. We might need to re-visit how the cleanup happens. We always
> need to keep the latest SNAPSHOTs.
>
>
> On Tue, Apr 1, 2014 at 8:44 AM, Nuwan Wimalasekara wrote:
>
>> I am getting below error when building the carbon-platform-integration[1]
>> and the rampart-core jar file can not be found in the repository[2].
>>
>> Please deploy the rampart-core jar into the SNAPSHOT repository.
>>
>> [ERROR] Failed to execute goal on project org.wso2.carbon.automation.test
>> .utils: Could not resolve dependencies for project org.wso2.carbon.
>> automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT:
>> Failure to find org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-SNAPSHOT
>> in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
>> the local repository, resolution will not be reattempted until the update
>> interval of wso2-nexus has elapsed or updates are forced ->
>>
>> [1] https://github.com/wso2/carbon-platform-integration
>> [2]
>> http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart-core/
>>
>>
>> Thanks,
>> Nuwanw
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Delay observed when CEP server started with -Dsetup

2014-04-10 Thread Shashika Ubhayaratne
Hi,

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

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

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

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

Full start-up log is attached with this mail.

Thanks,
Shashika



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


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


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

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

> Hi,
>
> Is there a naming convention when writing the test classes, it has to be
> ended with "Test" postfix, like "XxxxXxxTest.java" ?
>
Yes. Usually we have a naming convention. Test class should be ended with "
TestCase" like "XxxTestCase.java"

>
> I observed the following peculiar behavior when running test classes.
>
> 1. If the test package contain only one test class, it has to be named as
> "XxxxXxxTest.java"
>
> 2. If the test package contains more than one test class *at least one of
> them have to be* like "XxxxXxxTest.java".
>
> If neither of the above requirements are met, surefire plugin *will not
> pick* the test classes. I came across this situation because my test
> class was named as XxxxXxx*Tests*.java and it was not picked up by the
> surefire plugin.
>
> This is mentioned in the Surefire 
> documentation
> .
>
> "By default, the Surefire Plugin will automatically include all test
> classes with the following wildcard patterns:
>
>- "**/Test*.java" - includes all of its subdirectories and all 
> javafilenames that start with "Test".
>- "**/*Test.java" - includes all of its subdirectories and all 
> javafilenames that end with "Test".
>- "**/*TestCase.java" - includes all of its subdirectories and all 
> javafilenames that end with "
>TestCase"."
>
> But as we are using the TestNG with Surefire, we are suppose to have any
> test class and point to it using testng.xml like below.
>
> 
> 
> 
> 
> 
>
> This is also not working unless we have the above naming conventions.
>
>
>
> Is this a known behavior ? Any idea why this is happening ?
>
Thanks for reporting this issue. I think this is an issue in surefire
plugging. Otherwise It should pick the test class since the test class name
is defined in testng.xml and the default configuration should be
 overridden("**/*Test.java").

Thanks,
Nuwanw

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


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kernel commit to patch0006

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

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

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


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


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

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

On Thursday, April 10, 2014, Vanjikumaran Sivajothy  wrote:

> During the run time of the ESB 4.9.0-SNAPSHOT, we got the below error
> stack.
>
> [2014-04-09 17:06:56,018] ERROR - AxisEngine Failed to determine
> Activation status.
> org.apache.axis2.AxisFault: Failed to determine Activation status.
> at
> org.wso2.carbon.activation.module.ActivationHandler.invoke(ActivationHandler.java:102)
>  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>  at
> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
>  at
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NullPointerException: Tenant domain has not been set
> in CarbonContext
>  at
> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
>  at
> org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:288)
> at
> org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:271)
>  at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
>  at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:246)
>  at
> org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:629)
> at
> org.wso2.carbon.stratos.common.util.CloudServicesUtil.isCloudServiceActive(CloudServicesUtil.java:155)
>  at
> org.wso2.carbon.stratos.common.util.CloudServicesUtil.isCloudServiceActive(CloudServicesUtil.java:140)
>  *at
> org.wso2.carbon.activation.module.ActivationHandler.invoke(ActivationHandler.java:93)*
>  ... 10 more
>
> After Some debugging session and analysis on the issue, We found
> that org.wso2.carbon.tenant.activation is getting packed in
> org.wso2.carbon.tenant.common.server.feature!!
>
> Therefore, Please apply the patch that has been given in this email to
> solve this issue.
>
> Thank you in advance,
>
> --
> Sivajothy Vanjikumaran
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com *
> *Mobile:(+94)777219209*
> *Mobile USA:**(+1)918 813 2403*
> [image: Facebook]  [image: 
> Twitter] [image:
> LinkedIn]  
> [image:
> Blogger]  [image: 
> SlideShare]
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>


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


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

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

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

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

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

Thank you in advance,

-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
*Mobile USA:**(+1)918 813 2403*
[image: Facebook]  [image:
Twitter] [image:
LinkedIn] 
[image:
Blogger]  [image:
SlideShare]

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

 
org.wso2.carbon:org.wso2.carbon.tenant.dispatcher
-
org.wso2.carbon:org.wso2.carbon.tenant.activation
+

 

 

 

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


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

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

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


On Thu, Apr 10, 2014 at 12:03 PM, Thayalan  wrote:
> Hi Ajith,
>
> Sorry, I couldn't respond to you immediately as I haven't noticed this mail
> somehow. I've attached the conf files to JIRA now.
>
> Thanks,
> Thayalan
>
>
> On Tue, Apr 8, 2014 at 11:17 PM, Anjana Fernando  wrote:
>>
>> Thayalan, please do the needful.
>>
>> Cheers,
>> Anjana.
>>
>>
>> On Tue, Apr 8, 2014 at 9:16 PM, Ajith Vitharana  wrote:
>>>
>>> Please attach your configuration files (conf dir) to the JIRA.
>>>
>>> -Ajith
>>>
>>>
>>>
>>>
>>> On Tue, Apr 8, 2014 at 7:45 PM, Anjana Fernando  wrote:

 Hi,

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

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

 Cheers,
 Anjana.
 --
 Anjana Fernando
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware
>>>
>>>
>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>
>>
>>
>> --
>> Anjana Fernando
>> Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>
>
>
>
> --
> Regards,
> Thayalan Sivapaleswararajah
> Associate Technical Lead - QA
> Mob: +94(0)777872485
> Tel : +94(0)(11)2145345
> Fax : +94(0)(11)2145300
> Email: thaya...@wso2.com
>
>
> Disclaimer: This communication may contain privileged or other confidential
> information and is intended exclusively for the addressee/s. If you are not
> the intended recipient/s, or believe that you may have received this
> communication in error, please reply to the sender indicating that fact and
> delete the copy you received and in addition, you should not print, copy,
> retransmit, disseminate, or otherwise use the information contained in this
> communication. Internet communications cannot be guaranteed to be timely,
> secure, error or virus-free. The sender does not accept liability for any
> errors or omissions.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unexpected behavior with Surefire plugin and TestNG

2014-04-10 Thread Nalin Chandraratne
Hi,

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

I observed the following peculiar behavior when running test classes.

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

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

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

This is mentioned in the Surefire
documentation
.

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

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

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







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



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

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


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

2014-04-10 Thread Madhawa Bandara
Thanks.


On Thu, Apr 10, 2014 at 1:35 PM, Krishantha Samaraweera  wrote:

> Hi,
>
> Can you check whether the aar file exists at
> /src/test/resources/artifacts/AXIS2/aar/LBService1.aar
>
> If it is not, then copy it from ESB
> 4.8.1/modules/integration/tests/src/test/resources/artifacts/ESB
>
> Thanks,
> Krishantha.
>
>
> On Thu, Apr 10, 2014 at 1:13 PM, Madhawa Bandara  wrote:
>
>> Hi,
>> I have written integration tests for an ESB Connector using ESB Test
>> suit. When I run the tests I get an exception as follows:
>>
>> java.io.FileNotFoundException:
>> /src/test/resources/artifacts/AXIS2/aar/LBService1.aar (No such file or
>> directory)
>>  at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.(FileInputStream.java:120)
>>  at java.io.FileInputStream.(FileInputStream.java:79)
>> at
>> org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.copyResourceToFileSystem(SampleAxis2Server.java:148)
>>  at
>> org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.deployService(SampleAxis2Server.java:131)
>>  at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:230)
>> at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
>>  at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>>  at org.testng.TestNG.run(TestNG.java:983)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
>>  at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>  at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>  at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>
>> This *hasn't* affected the execution and the test results up to now. How
>> does this affect the build and how can I fix this if it is required?
>>
>> --
>> Regards,
>>
>> *Madhawa Bandara*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+94777487726 <%2B94777487726>*
>> Blog* - *classdeffound.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Regards,

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

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


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

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


On Thu, Apr 10, 2014 at 2:42 PM, Janaka Ranabahu  wrote:

> Hi Amila,
>
> We have removed these handlers from the configurations. Please refer the
> following revision.
>
>
>
>
>
>
>
> *Author: jan...@wso2.com  Date: Mon Nov 25 14:14:57
> 2013New Revision: 191671
> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=191671
>  Log:Removing
> unwanted handler and mount configuration*
>
> Thanks,
> Janaka
>
>
> On Thu, Apr 10, 2014 at 1:51 PM, Amila Maha Arachchi wrote:
>
>> AF team,
>>
>> $Subject?
>>
>> > "org.wso2.carbon.appfactory.registry.handler.ReferenceHandler">
>>
>>   stage
>>
>> > "org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher">
>>
>>   /_system/governance/.*
>>
>> 
>>
>>
>>
>>
>> I hope we don't need those handlers now because we have separate
>> registered for the dev,test,prod environments.
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Janaka Ranabahu*
> Senior Software Engineer; WSO2 Inc.; http://wso2.com
>
>
> * E-mail: jan...@wso2.com **M: **+94 718370861
> <%2B94%20718370861>*
>
> Lean . Enterprise . Middleware
>



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

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


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

2014-04-10 Thread Janaka Ranabahu
Hi Amila,

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







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

Thanks,
Janaka


On Thu, Apr 10, 2014 at 1:51 PM, Amila Maha Arachchi wrote:

> AF team,
>
> $Subject?
>
>  "org.wso2.carbon.appfactory.registry.handler.ReferenceHandler">
>
>   stage
>
>  "org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher">
>
>   /_system/governance/.*
>
> 
>
>
>
>
> I hope we don't need those handlers now because we have separate
> registered for the dev,test,prod environments.
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


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

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


[Dev] WSO2 BAM 2.4.1 RC2 Released!

2014-04-10 Thread Dunith Dhanushka
Hi all,

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

Following are the bug fixes available with this release.

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


Regards,

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


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

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

$Subject?



  stage



  /_system/governance/.*



   


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

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

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


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

2014-04-10 Thread Thamayanthy Sripalan
Hi all,

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

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

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

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


Thanks in advance.

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


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

2014-04-10 Thread Krishantha Samaraweera
Hi,

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

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

Thanks,
Krishantha.


On Thu, Apr 10, 2014 at 1:13 PM, Madhawa Bandara  wrote:

> Hi,
> I have written integration tests for an ESB Connector using ESB Test suit.
> When I run the tests I get an exception as follows:
>
> java.io.FileNotFoundException:
> /src/test/resources/artifacts/AXIS2/aar/LBService1.aar (No such file or
> directory)
>  at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(FileInputStream.java:120)
>  at java.io.FileInputStream.(FileInputStream.java:79)
> at
> org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.copyResourceToFileSystem(SampleAxis2Server.java:148)
>  at
> org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.deployService(SampleAxis2Server.java:131)
>  at
> org.wso2.carbon.automation.core.PlatformExecutionManager.startSimpleAxis2Server(PlatformExecutionManager.java:230)
> at
> org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:190)
>  at
> org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>  at org.testng.TestNG.run(TestNG.java:983)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
>  at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>  at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>
> This *hasn't* affected the execution and the test results up to now. How
> does this affect the build and how can I fix this if it is required?
>
> --
> Regards,
>
> *Madhawa Bandara*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+94777487726 <%2B94777487726>*
> Blog* - *classdeffound.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


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

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

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

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

-- 
Regards,

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

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