帶有 XPath 擴展的 WSO2 Developer Studio (WSO2 Developer Studio with XPath extensions)


問題描述

帶有 XPath 擴展的 WSO2 Developer Studio (WSO2 Developer Studio with XPath extensions)

We have extented Apache Synapse in WSO2 ESB 4.5.1 with additional XPath variables. In the synapse.properties we point to our new XPath classes:     synapse.xpath.var.extensions=com.avintis.esb.xpath.CountXpathVariableResolver,com.avintis.esb.xpath.UUIDXpathVariableResolver

Start with wso2server.bat  all works fine and the above extensions are working without a problem.

But starting with the Developer Studio from eclipse, the server starts fine and works, but our XPath extensions aren't recogniced and do not work

I just saw that the server start arguments does contain our library with the classes and also the correct synapse.properties with the declaration. So what may be wrong here by starting from eclipse?

Environment: WSO2‑ESB 4.5.1, Developer Studio 2.1.0

‑‑‑‑‑

參考解法

方法 1:

To fix the error with Developer Studio follow the instructions given below. 

  1. Stop the ESB Server instance if you are running it from Eclipse. 

  2. Double Click on the ESB Server in the Servers view in Eclipse and it will open up the Eclipse Server Overview editor

  3. Click on the "Open Launch Configuration" link button and it will open up the Eclipse Server Launch configuration dialog. 

  4. Switch "Arguments" tab and add ‑Dconf.location="<ESB_HOME>/repository/conf" to the VM Argements section. Make sure to replace the <ESB_HOME> section with your actual server location. For E.g: ‑Dconf.location="/home/harshana/wso2esb‑4.5.1/repository/conf" 

  5. Start the ESB instance in Dev Studio and try out the variables 

Now you should be able to use it without any issues. 

/Harshana

(by FredyHarshana Martin)

參考文件

  1. WSO2 Developer Studio with XPath extensions (CC BY‑SA 3.0/4.0)

#wso2-esb #synapse #wso2-integration-studio #xpath #wso2






相關問題

WSO2 Carbon 管理控制台異常 (WSO2 Carbon Management Console Exception)

WSO2 ESB 中介序列與代理服務 (WSO2 ESB Mediation Sequence vs Proxy Service)

帶有 XPath 擴展的 WSO2 Developer Studio (WSO2 Developer Studio with XPath extensions)

我們可以使用 wso2esb Jms 消費消息嗎 (Can we Consume the Messages using wso2esb Jms)

使用 WSO2 peoplehr 連接器時出錯 (Error using WSO2 peoplehr connector)

在路徑中找不到 WSO2ESB 自定義中介 Java 類 (WSO2ESB Custom Mediator Java Class is not found in the path)

WSO2 豐富陣列 (WSO2 Enrich array)

wso2代理服務出錯 (Error in wso2 proxy service)

如何豐富 OM 屬性中的節點值? (How to enrich a node value in OM property?)

如何發送字符串內容作為來自 WSO2 ESB 代理的響應? (How to send string content as the response from WSO2 ESB Proxy?)

wso2-esb 集群後,每個 carbon 控制台(管理和工作人員)都不工作 (wso2-esb After clustering, every carbon console(management and worker) doesn't work)

WSO2 ESB:如何處理端點返回的內部錯誤 (WSO2 ESB: How to handle internal error returned by an endpoint)







留言討論