[Dev] [ESB] Tenant ID -1 in wso2carbon.log

2016-09-09 Thread Chamila De Alwis
Hi,

In ESB 5.0.0 it seems that some of the classes log the tenant ID as -1
while others log as -1234. I don't have any tenants created. What does this
-1 tenant ID stand for?

TID: [-1234] [] [2016-09-10 00:30:04,385]  INFO
{org.wso2.carbon.core.init.CarbonServerManager} -  Shutdown hook
triggered {org.wso2.carbon.core.init.CarbonServerManager}
TID: [-1234] [] [2016-09-10 00:30:04,386]  INFO
{org.wso2.carbon.core.init.CarbonServerManager} -  Gracefully shutting down
WSO2 Enterprise Service Bus...
{org.wso2.carbon.core.init.CarbonServerManager}
TID: [-1234] [] [2016-09-10 00:30:04,388]  INFO
{org.wso2.carbon.core.ServerManagement} -  Starting to switch to
maintenance mode... {org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,388]  INFO
{org.apache.synapse.transport.passthru.PassThroughHttpListener} -  Stopping
Pass-through HTTP Listener..
{org.apache.synapse.transport.passthru.PassThroughHttpListener}
TID: [-1234] [] [2016-09-10 00:30:04,389]  INFO
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}
-  Shutting down IO Reactor bind for port 8280
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}
*TID: [-1] [] [2016-09-10 00:30:04,391]  INFO
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}
-  HTTP-Listener I/O dispatcher Listener shutdown.
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}*
TID: [-1234] [] [2016-09-10 00:30:04,391]  INFO
{org.apache.synapse.transport.passthru.PassThroughHttpSSLListener} -
 Stopping Pass-through HTTPS Listener..
{org.apache.synapse.transport.passthru.PassThroughHttpSSLListener}
TID: [-1234] [] [2016-09-10 00:30:04,392]  INFO
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}
-  Shutting down IO Reactor bind for port 8243
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}
*TID: [-1] [] [2016-09-10 00:30:04,393]  INFO
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}
-  HTTPS-Listener I/O dispatcher Listener shutdown.
{org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager}*
TID: [-1234] [] [2016-09-10 00:30:04,393]  INFO
{org.wso2.carbon.core.ServerManagement} -  Stopped all transport listeners
{org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,393]  INFO
{org.wso2.carbon.core.ServerManagement} -  Waiting for request service
completion... {org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,406]  INFO
{org.wso2.carbon.core.ServerManagement} -  All requests have been served.
{org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,407]  INFO
{org.wso2.carbon.core.ServerManagement} -  Waiting for deployment
completion... {org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,409]  INFO
{org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
completed. {org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,409]  INFO
{org.wso2.carbon.core.ServerManagement} -  Waiting for server task
completion... {org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,441]  INFO
{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
 Writing logs
 {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}
TID: [-1234] [] [2016-09-10 00:30:04,442]  INFO
{org.wso2.carbon.core.ServerManagement} -  All server tasks have been
completed. {org.wso2.carbon.core.ServerManagement}
TID: [-1234] [] [2016-09-10 00:30:04,443]  INFO
{org.wso2.carbon.core.init.CarbonServerManager} -  Shutting down WSO2
Enterprise Service Bus... {org.wso2.carbon.core.init.CarbonServerManager}
TID: [-1234] [] [2016-09-10 00:30:04,443]  INFO
{org.wso2.carbon.core.init.CarbonServerManager} -  Shutting down OSGi
framework... {org.wso2.carbon.core.init.CarbonServerManager}
TID: [-1234] [] [2016-09-10 00:30:04,554]  INFO
{org.wso2.carbon.event.publisher.core.EventPublisherDeployer} -  Event
Publisher undeployed successfully : MessageFlowStatisticsPublisher.xml
{org.wso2.carbon.event.publisher.core.EventPublisherDeployer}
TID: [-1234] [] [2016-09-10 00:30:04,557]  INFO
{org.wso2.carbon.event.publisher.core.EventPublisherDeployer} -  Event
Publisher deployment held back and in inactive state :
MessageFlowStatisticsPublisher.xml, waiting for Output Event Adapter
dependency : wso2event
{org.wso2.carbon.event.publisher.core.EventPublisherDeployer}
TID: [-1234] [] [2016-09-10 00:30:04,557]  INFO
{org.wso2.carbon.event.publisher.core.internal.CarbonEventPublisherService}
-  Event publisher : MessageFlowStatisticsPublisher  is in inactive state
because dependency could not be found : wso2event
{org.wso2.carbon.event.publisher.core.internal.CarbonEventPublisherService}
TID: [-1234] [] [2016-09-10 00:30:04,557]  INFO
{org.wso2.carbon.event.publisher.core.EventPublisherDeployer} -  Event
Publisher 

[Dev] [VOTE] Release WSO2 Identity Server 5.2.0- RC1

2016-09-09 Thread Kasun Bandara
Hi All,

This is the 1st Release Candidate of WSO2 Identity Server 5.2.0

Please download, test the product and vote. Vote will be open for 72 hours
or as needed.

This release fixes the following issues:
https://wso2.org/jira/issues/?filter=13329

Source and distribution

Run-time   : https://github.com/wso2/product-is/releases/tag/v5.2.0-rc1
Analytics   :
https://github.com/wso2/analytics-is/releases/tag/v5.2.0-rc1

Please vote as follows.
[+] Stable - go ahead and release
[-] Broken - do not release (explain why)

Thanks,
- WSO2 Identity Server Team -

-- 
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
<%2B94%20%280%29%20773%20451194>
kas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ISSUE IN CREATING PROXY SERVICE FOR HL7 IN ESB 5.0.0

2016-09-09 Thread Amutheezan Sivagnanam
Hi,
It worked sucessfully when,
1. Clone the repository https://github.com/wso2/carbon-mediation/tree/v4.6.6

2. Go to
/component/business-adaptors/hl7/org.wso2.carbon.business.messaging.hl7.common/main/java/org/wso2/carbon/business/messaging/hl7/common/data/conf/
and edit HL7MessagePublisherConfig.java file, by replacing bam by das
that is include import
org.wso2.carbon.das.data.publisher.util.PublisherUtil; instead of import
org.wso2.carbon.bam.data.publisher.util.PublisherUtil;
then edit the pom.xml related to
/component/business-adaptors/hl7/org.wso2.carbon.business.messaging.hl7.common/
by adding dependency for das
   
org.wso2.carbon.mediation
org.wso2.carbon.das.data.publisher.util

instead of
   
org.wso2.carbon
org.wso2.carbon.bam.data.publisher.util

3. Then build the total project and get the required jar file for the
patch, and added patch to your downloaded ESB directory and restart the ESB
Server.
Thanks,

On Fri, Sep 9, 2016 at 12:37 PM, Jagath Sisirakumara Ariyarathne <
jaga...@wso2.com> wrote:

> Hi Amutheezan,
>
> The reason for the issue is that HL7MessagePublisherConfig uses incorrect
> PublisherUtil. Could you please create a JIRA for this issue in [1].
>
> [1] - https://wso2.org/jira/browse/ESBJAVA
>
> Thanks.
>
> On Fri, Sep 9, 2016 at 9:31 AM, Amutheezan Sivagnanam  > wrote:
>
>> Hi,
>> I faced some issues when sending message through HAPi Test Panel. I have
>> attached the error_log related to that.
>> Thanks,
>>
>> On Thu, Sep 8, 2016 at 3:43 PM, Jagath Sisirakumara Ariyarathne <
>> jaga...@wso2.com> wrote:
>>
>>> Hi Amutheezan,
>>>
>>> You need to install HL7 feature version 4.6.6 for ESB 5.0.0. Seems it is
>>> not there in feature repo and we will add it soon.
>>>
>>> Meantime, you can build it locally and add through a local repository in
>>> ESB.
>>>
>>> Thanks.
>>>
>>> On Thu, Sep 8, 2016 at 12:08 PM, Amutheezan Sivagnanam <
>>> amuthee...@wso2.com> wrote:
>>>
 Hi,
 I redo every tasks from beginning and same error occurs as previous
 case. I have attached the errorlog and modified Axis2.xml file (for
 enabling HL7 transport).
 Thanks,

 On Thu, Sep 8, 2016 at 11:42 AM, Amutheezan Sivagnanam <
 amuthee...@wso2.com> wrote:

> Hi,
> I have attached the files for Error Occured While Creating the Proxy
> Service and the corresponding proxy service file.
> Thanks,
>
> On Thu, Sep 8, 2016 at 10:43 AM, Jagath Sisirakumara Ariyarathne <
> jaga...@wso2.com> wrote:
>
>> Hi,
>>
>> Could you please attach your proxy configuration and the complete
>> carbon log file. By looking at the error, it is due to a missing class.
>>
>> Thanks,
>>
>> On Wed, Sep 7, 2016 at 1:31 PM, Amutheezan Sivagnanam <
>> amuthee...@wso2.com> wrote:
>>
>>> Hi,
>>> I am doing HL7 Monitoring Solution Project, for part of initial
>>> study I need to configure HL7 for DAS. For this I tried ESB 4.8.1 and 
>>> ESB
>>> 4.9.0, it successfully publish data to DAS, but when I tried with ESB
>>> 5.0.0, It makes the proxy-service  which I used for other version(ESB
>>> 4.8.1, ESB 4.9.0) to disabled. I have attached the "error log" which I
>>> received while creating proxy-service.
>>>
>>> Regards,
>>> S.Amutheezan
>>> --
>>> S.Amutheezan
>>> *Software Engineering Intern*
>>> Mobile : +94 76 771 1924
>>> amuthee...@wso2.com
>>> Public Profile : 
>>> 
>>> 
>>> 
>>>
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Jagath Ariyarathne
>> Technical Lead
>> WSO2 Inc.  http://wso2.com/
>> Email: jaga...@wso2.com
>> Mob  : +94 77 386 7048
>> 
>>
>
>
>
> --
> S.Amutheezan
> *Software Engineering Intern*
> Mobile : +94 76 771 1924
> amuthee...@wso2.com
> Public Profile : 
> 
> 
> 
>
> 
>



 --
 S.Amutheezan
 *Software Engineering Intern*
 Mobile : +94 76 771 1924
 amuthee...@wso2.com
 Public Profile : 
 
 
 

 


Re: [Dev] MSF4J Handling CORS

2016-09-09 Thread Afkham Azeez
On Fri, Sep 9, 2016 at 7:25 PM, Janak Amarasena  wrote:

>
>  Can you implement it and send us a PR?
>
>
> Not sure about implementing at the moment.
>

Why is that? Implementing it should be pretty straighforward & an
interesting weekend coding project. :)

>
>  Please also create an issue for this at https://github.com/wso2/msf
>> 4j/issues
>
>
> Will do.
>
> Thank You
>
> On Fri, Sep 9, 2016 at 7:19 PM, Afkham Azeez  wrote:
>
>> Please also create an issue for this at https://github.com/wso2/msf
>> 4j/issues
>>
>> On Fri, Sep 9, 2016 at 7:15 PM, Afkham Azeez  wrote:
>>
>>> We don't support Options at the moment. Can you implement it and send us
>>> a PR?
>>>
>>> On Fri, Sep 9, 2016 at 6:14 PM, Janak Amarasena  wrote:
>>>
 Hi,

 I created  a microservice using MSF4J and tested the resources with
 postman all works fine but when I use it with a AngularJS client app; the
 browser sends an additional http OPTIONS request to check CORS I get a "405
 Method Not Allowed" Response.

 I created a resource with @OPTIONS (javax.ws.rs) annotation to the
 same path still the same result, 405 response, the method doesn't even get
 triggered.

 @OPTIONS
 @Path("/")
 public Response options() {

 return Response.ok()
 .header("Access-Control-Allow-Origin", "*")
 .header("Access-Control-Allow-Credentials", "true")
 .header("Access-Control-Allow-Methods", "POST, GET, PUT, 
 UPDATE, DELETE, OPTIONS, HEAD")
 .header("Access-Control-Allow-Headers", "Content-Type, Accept, 
 X-Requested-With")
 .build();
 }


 I think the http OPTIONS request is not recognized.


 For your advise please.


 Thank You,
 Best Regards,


 --
 Janak Amarasena

 *Intern*

 *WSO2, Inc. *

 *lean . enterprise . middleware *

 *Mobile: +9464144 <%2B9464144>*

 *Email: *ja...@wso2.com

>>>
>>>
>>>
>>> --
>>> *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 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> *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 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Janak Amarasena
>
> *Intern*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
> *Mobile: +9464144 <%2B9464144>*
>
> *Email: *ja...@wso2.com
>



-- 
*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 3320919blog: **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] MSF4J Handling CORS

2016-09-09 Thread Janak Amarasena
>  Can you implement it and send us a PR?


Not sure about implementing at the moment.

 Please also create an issue for this at https://github.com/wso2/
> msf4j/issues


Will do.

Thank You

On Fri, Sep 9, 2016 at 7:19 PM, Afkham Azeez  wrote:

> Please also create an issue for this at https://github.com/wso2/
> msf4j/issues
>
> On Fri, Sep 9, 2016 at 7:15 PM, Afkham Azeez  wrote:
>
>> We don't support Options at the moment. Can you implement it and send us
>> a PR?
>>
>> On Fri, Sep 9, 2016 at 6:14 PM, Janak Amarasena  wrote:
>>
>>> Hi,
>>>
>>> I created  a microservice using MSF4J and tested the resources with
>>> postman all works fine but when I use it with a AngularJS client app; the
>>> browser sends an additional http OPTIONS request to check CORS I get a "405
>>> Method Not Allowed" Response.
>>>
>>> I created a resource with @OPTIONS (javax.ws.rs) annotation to the same
>>> path still the same result, 405 response, the method doesn't even get
>>> triggered.
>>>
>>> @OPTIONS
>>> @Path("/")
>>> public Response options() {
>>>
>>> return Response.ok()
>>> .header("Access-Control-Allow-Origin", "*")
>>> .header("Access-Control-Allow-Credentials", "true")
>>> .header("Access-Control-Allow-Methods", "POST, GET, PUT, 
>>> UPDATE, DELETE, OPTIONS, HEAD")
>>> .header("Access-Control-Allow-Headers", "Content-Type, Accept, 
>>> X-Requested-With")
>>> .build();
>>> }
>>>
>>>
>>> I think the http OPTIONS request is not recognized.
>>>
>>>
>>> For your advise please.
>>>
>>>
>>> Thank You,
>>> Best Regards,
>>>
>>>
>>> --
>>> Janak Amarasena
>>>
>>> *Intern*
>>>
>>> *WSO2, Inc. *
>>>
>>> *lean . enterprise . middleware *
>>>
>>> *Mobile: +9464144 <%2B9464144>*
>>>
>>> *Email: *ja...@wso2.com
>>>
>>
>>
>>
>> --
>> *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 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> *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 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
Janak Amarasena

*Intern*

*WSO2, Inc. *

*lean . enterprise . middleware *

*Mobile: +9464144 <%2B9464144>*

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


Re: [Dev] MSF4J Handling CORS

2016-09-09 Thread Afkham Azeez
We don't support Options at the moment. Can you implement it and send us a
PR?

On Fri, Sep 9, 2016 at 6:14 PM, Janak Amarasena  wrote:

> Hi,
>
> I created  a microservice using MSF4J and tested the resources with
> postman all works fine but when I use it with a AngularJS client app; the
> browser sends an additional http OPTIONS request to check CORS I get a "405
> Method Not Allowed" Response.
>
> I created a resource with @OPTIONS (javax.ws.rs) annotation to the same
> path still the same result, 405 response, the method doesn't even get
> triggered.
>
> @OPTIONS
> @Path("/")
> public Response options() {
>
> return Response.ok()
> .header("Access-Control-Allow-Origin", "*")
> .header("Access-Control-Allow-Credentials", "true")
> .header("Access-Control-Allow-Methods", "POST, GET, PUT, UPDATE, 
> DELETE, OPTIONS, HEAD")
> .header("Access-Control-Allow-Headers", "Content-Type, Accept, 
> X-Requested-With")
> .build();
> }
>
>
> I think the http OPTIONS request is not recognized.
>
>
> For your advise please.
>
>
> Thank You,
> Best Regards,
>
>
> --
> Janak Amarasena
>
> *Intern*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
> *Mobile: +9464144 <%2B9464144>*
>
> *Email: *ja...@wso2.com
>



-- 
*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 3320919blog: **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] MSF4J Handling CORS

2016-09-09 Thread Afkham Azeez
Please also create an issue for this at https://github.com/wso2/msf4j/issues

On Fri, Sep 9, 2016 at 7:15 PM, Afkham Azeez  wrote:

> We don't support Options at the moment. Can you implement it and send us a
> PR?
>
> On Fri, Sep 9, 2016 at 6:14 PM, Janak Amarasena  wrote:
>
>> Hi,
>>
>> I created  a microservice using MSF4J and tested the resources with
>> postman all works fine but when I use it with a AngularJS client app; the
>> browser sends an additional http OPTIONS request to check CORS I get a "405
>> Method Not Allowed" Response.
>>
>> I created a resource with @OPTIONS (javax.ws.rs) annotation to the same
>> path still the same result, 405 response, the method doesn't even get
>> triggered.
>>
>> @OPTIONS
>> @Path("/")
>> public Response options() {
>>
>> return Response.ok()
>> .header("Access-Control-Allow-Origin", "*")
>> .header("Access-Control-Allow-Credentials", "true")
>> .header("Access-Control-Allow-Methods", "POST, GET, PUT, UPDATE, 
>> DELETE, OPTIONS, HEAD")
>> .header("Access-Control-Allow-Headers", "Content-Type, Accept, 
>> X-Requested-With")
>> .build();
>> }
>>
>>
>> I think the http OPTIONS request is not recognized.
>>
>>
>> For your advise please.
>>
>>
>> Thank You,
>> Best Regards,
>>
>>
>> --
>> Janak Amarasena
>>
>> *Intern*
>>
>> *WSO2, Inc. *
>>
>> *lean . enterprise . middleware *
>>
>> *Mobile: +9464144 <%2B9464144>*
>>
>> *Email: *ja...@wso2.com
>>
>
>
>
> --
> *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 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*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 3320919blog: **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] MSF4J Handling CORS

2016-09-09 Thread Janak Amarasena
Hi,

I created  a microservice using MSF4J and tested the resources with postman
all works fine but when I use it with a AngularJS client app; the browser
sends an additional http OPTIONS request to check CORS I get a "405 Method
Not Allowed" Response.

I created a resource with @OPTIONS (javax.ws.rs) annotation to the same
path still the same result, 405 response, the method doesn't even get
triggered.

@OPTIONS
@Path("/")
public Response options() {

return Response.ok()
.header("Access-Control-Allow-Origin", "*")
.header("Access-Control-Allow-Credentials", "true")
.header("Access-Control-Allow-Methods", "POST, GET, PUT,
UPDATE, DELETE, OPTIONS, HEAD")
.header("Access-Control-Allow-Headers", "Content-Type,
Accept, X-Requested-With")
.build();
}


I think the http OPTIONS request is not recognized.


For your advise please.


Thank You,
Best Regards,


-- 
Janak Amarasena

*Intern*

*WSO2, Inc. *

*lean . enterprise . middleware *

*Mobile: +9464144 <%2B9464144>*

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


[Dev] [VOTE] Release WSO2 Machine Learner 1.2.0 RC2

2016-09-09 Thread Supun Sethunga
Hi Devs,

This is the 2nd Release Candidate of the WSO2 Machine Learner 1.2.0. This
release includes the  following improvements and fixes:

   - ML-DAS integration
   - Spark upgrade to v1.6.2
   - Security fixes associated with the WSO2 Carbon 4.4.9 platform release


Please download, test the product and vote. Vote will be open for 72 hours
or as needed.
Refer to github readme for guides.

The distribution is available to download at [1].

Fixed Issue in [2]. Tag to be vote upon [3].

[1]
https://github.com/wso2/product-ml/releases/download/v1.2.0-rc2/wso2ml-1.2.0-rc2.zip
[2] https://wso2.org/jira/issues/?filter=13325
[3] https://github.com/wso2/product-ml/releases/tag/v1.2.0-rc2

Please vote as follows.
[+] Stable - go ahead and release
[-]  Broken - do not release (please explain why)

Thanks,
WSO2 ML Team

-- 
*Supun Sethunga*
Senior Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
Blog: http://supunsetunga.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Vote] Release WSO2 Data Analytics Server (DAS) 3.1.0-RC3

2016-09-09 Thread Niranda Perera
Hi Devs,

This is the third release candidate (RC) of WSO2 Data Analytics Server
3.1.0 release.

New / Improvements In This Release after RC2

   - Bug fixes in ML integration
   - Spark configuration parameters for long running jobs

Issues Fixed in This Release

   - WSO2 DAS 3.1.0 Fixed Issues
   

Known Issues

   - WSO2 DAS 3.1.0 Known Issues
   

Source and distribution packages:

   - https://github.com/wso2/product-das/releases/tag/v3.1.0-RC3

Please download, test, and vote. The README file under the distribution
contains guide and instructions on how to try it out locally.

[+] Stable - Go ahead and release
[-] Broken - Do not release (explain why)

This vote will be open for 72 hours or as needed.

Regards,
WSO2 DAS Team

-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ISSUE IN CREATING PROXY SERVICE FOR HL7 IN ESB 5.0.0

2016-09-09 Thread Jagath Sisirakumara Ariyarathne
Hi Amutheezan,

The reason for the issue is that HL7MessagePublisherConfig uses incorrect
PublisherUtil. Could you please create a JIRA for this issue in [1].

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

Thanks.

On Fri, Sep 9, 2016 at 9:31 AM, Amutheezan Sivagnanam 
wrote:

> Hi,
> I faced some issues when sending message through HAPi Test Panel. I have
> attached the error_log related to that.
> Thanks,
>
> On Thu, Sep 8, 2016 at 3:43 PM, Jagath Sisirakumara Ariyarathne <
> jaga...@wso2.com> wrote:
>
>> Hi Amutheezan,
>>
>> You need to install HL7 feature version 4.6.6 for ESB 5.0.0. Seems it is
>> not there in feature repo and we will add it soon.
>>
>> Meantime, you can build it locally and add through a local repository in
>> ESB.
>>
>> Thanks.
>>
>> On Thu, Sep 8, 2016 at 12:08 PM, Amutheezan Sivagnanam <
>> amuthee...@wso2.com> wrote:
>>
>>> Hi,
>>> I redo every tasks from beginning and same error occurs as previous
>>> case. I have attached the errorlog and modified Axis2.xml file (for
>>> enabling HL7 transport).
>>> Thanks,
>>>
>>> On Thu, Sep 8, 2016 at 11:42 AM, Amutheezan Sivagnanam <
>>> amuthee...@wso2.com> wrote:
>>>
 Hi,
 I have attached the files for Error Occured While Creating the Proxy
 Service and the corresponding proxy service file.
 Thanks,

 On Thu, Sep 8, 2016 at 10:43 AM, Jagath Sisirakumara Ariyarathne <
 jaga...@wso2.com> wrote:

> Hi,
>
> Could you please attach your proxy configuration and the complete
> carbon log file. By looking at the error, it is due to a missing class.
>
> Thanks,
>
> On Wed, Sep 7, 2016 at 1:31 PM, Amutheezan Sivagnanam <
> amuthee...@wso2.com> wrote:
>
>> Hi,
>> I am doing HL7 Monitoring Solution Project, for part of initial study
>> I need to configure HL7 for DAS. For this I tried ESB 4.8.1 and ESB 
>> 4.9.0,
>> it successfully publish data to DAS, but when I tried with ESB 5.0.0, It
>> makes the proxy-service  which I used for other version(ESB 4.8.1, ESB
>> 4.9.0) to disabled. I have attached the "error log" which I received 
>> while
>> creating proxy-service.
>>
>> Regards,
>> S.Amutheezan
>> --
>> S.Amutheezan
>> *Software Engineering Intern*
>> Mobile : +94 76 771 1924
>> amuthee...@wso2.com
>> Public Profile : 
>> 
>> 
>> 
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
> 
>



 --
 S.Amutheezan
 *Software Engineering Intern*
 Mobile : +94 76 771 1924
 amuthee...@wso2.com
 Public Profile : 
 
 
 

 

>>>
>>>
>>>
>>> --
>>> S.Amutheezan
>>> *Software Engineering Intern*
>>> Mobile : +94 76 771 1924
>>> amuthee...@wso2.com
>>> Public Profile : 
>>> 
>>> 
>>> 
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Jagath Ariyarathne
>> Technical Lead
>> WSO2 Inc.  http://wso2.com/
>> Email: jaga...@wso2.com
>> Mob  : +94 77 386 7048
>> 
>>
>
>
>
> --
> S.Amutheezan
> *Software Engineering Intern*
> Mobile : +94 76 771 1924
> amuthee...@wso2.com
> Public Profile : 
> 
> 
> 
>
> 
>



-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048

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