wso2

WSO2 as service on Windows

梦想与她 提交于 2019-12-08 05:59:32
问题 Need to install WSO2 API Manager as service on Windows (Have tried on Windows 7 and Windows Server 2012. The problem is the same). Documantation: https://docs.wso2.com/display/AM210/Installing+as+a+Windows+Service I am using yajsw. And when trying to run "runConsole.bat" for testing as it was said in the documatation I got such message/error: D:\WSO2\yajsw-stable-12.08\yajsw-stable-12.08\bat>call setenv.bat "java" -Xmx30m -Djna_tmpdir="D:\WSO2\yajsw-stable-12.08\yajsw-stable-12.08\bat\/../tmp

Using Siddhi patterns for events that haven't happened

送分小仙女□ 提交于 2019-12-08 05:50:55
问题 In the CEP engine can I look for a patterns for events that haven't occurred. Editing the fraud pattern detection query: Can I fire the event if two purchases of the same card are made within one day and if the first purchase is less than $10 and the second one isn't greater than $10,000. from every (a1 = purchase[price > 10] ) NOT -> a2 = purchase [price >10000 and 1.cardNo==a2.cardNo] within 1 day insert into potentialFraud a1.cardNo as cardNo, a2.price as price, a2.place as place; Fire if

WSO2 AM: Type mistake in Oracle SQL scripts

China☆狼群 提交于 2019-12-08 05:41:48
问题 In the Oracle sql script of the APIMGT, there is a type mistake. The AUTOINCREMENT is not working and a syntax error in the create trigger. The correct syntax is: CREATE TABLE AM_WORKFLOWS( WF_ID INTEGER, WF_REFERENCE VARCHAR(255) NOT NULL, WF_TYPE VARCHAR(255) NOT NULL, WF_STATUS VARCHAR(255) NOT NULL, WF_CREATED_TIME TIMESTAMP, WF_UPDATED_TIME TIMESTAMP, WF_STATUS_DESC VARCHAR(1000), TENANT_ID INTEGER, TENANT_DOMAIN VARCHAR(255), WF_EXTERNAL_REFERENCE VARCHAR(255) NOT NULL UNIQUE, PRIMARY

Change default admin password on WSO2 DAS

元气小坏坏 提交于 2019-12-08 05:40:35
问题 After installing WSO2 Data Analytics Server and changing the default admin password i am getting the following ERROR ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://localhost:7711 {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} org.wso2.carbon.databridge.agent.exception.DataEndpointAuthenticationException: Cannot borrow client for ssl://localhost:7711 Does

WSO2 - Restrict concurrent login with same user simultaneously

孤街浪徒 提交于 2019-12-08 05:39:56
问题 I've integrated Java jar based application with WSO2 identity server, this application has login portal whereas it is possible to login with same user simultaneously through different systems and browser. Is there any way to restrict Simultaneous or concurrent login at WSO2 server end. if there is any way to prevent concurrent logins with same user then please let me know. thanks 回答1: With IS 5.3.0 you can find all the login sessions of a given user. To get this done you need to write an

WSO2 API Manager authentication Violation of UNIQUE KEY constraint error

久未见 提交于 2019-12-08 05:30:17
问题 We have implemented WSO2 API Manager (v1.10.0) in a distributed architecture as outlined in the online documentation here. This consists of the following (on 5 separate servers): Gateway (x2) Publisher & Store (on a single server) Key Manager (x2) These are wired-up to the 3 normal API Manager databases (Registry, User Manager & API Manager), which are on a SQL Server 2014 instance. We are using the Key Managers for the authentication (login, forgotten password, etc.) of the website users, as

WSO2 API PayloadFactory mediator XML array to JSON array

好久不见. 提交于 2019-12-08 05:13:26
I am trying to build a Proxy between a client and a server using WSO2-AM. The ultimate goal is changing the content of the response the server sends to a format that the client understands. Therefore I wrote a custom mediator using a PayloadFactory. This works OK when the server sends just 1 element, but it can be possible that the servers sends multiple elements. I am trying to use an iterator to iterate all the elements and aplying a payloadfactory to each element, but this only returns the first element, or (when the response of the server is enclosed with a root element) the last element.

Writing on a text file using VFS in WSO2 ESB 4.8.1

懵懂的女人 提交于 2019-12-08 05:10:05
问题 I am using VFS transport to poll a simple text file and then i send the text of a file to a queue. This flow works fine but in case of error scenario when fault sequence is executed , i want to write my error message to a simple text file and it is not Working. Note: I am using WSO2 ESB Version 4.8.1. I have enabled the VFS transport in my "axis2.xml" file. I have also tried all the solutions provided in this question which is related to mine. My Service Code: <?xml version="1.0" encoding=

How to call python script file from wso2 proxy services

别来无恙 提交于 2019-12-08 05:03:01
问题 How to call python script file from wso2 proxy service. We tried with send mediator to call the python script file which is located in my local machine. <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="FilepythonTest" transports="http https" startOnLoad="true"> <description/> <target > <inSequence> <send> <endpoint> <address uri="local:///Users/vikashsaharan/Desktop/python/testpy.py"/> </endpoint> </send> </inSequence> <outSequence> <log level="full"

Unable to create Access token grant type in wso2 API manager store to test API

拟墨画扇 提交于 2019-12-08 05:02:49
问题 I am following this link Read this paragraph "The API is now available in the API Store and ...." Am working on window in this paragraph they are saying create Access token "curl" command. But i am unable to do that. Also am creating access token after subscribe API In "MY Subscription" tab there are two option to create Access token "Production" and "Sandbox" but by using that token API calling giving error. " 900910 The access token does not allow you to access the requested resource Access