問題描述
帶有 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.
Stop the ESB Server instance if you are running it from Eclipse.
Double Click on the ESB Server in the Servers view in Eclipse and it will open up the Eclipse Server Overview editor
Click on the "Open Launch Configuration" link button and it will open up the Eclipse Server Launch configuration dialog.
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"
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 Fredy、Harshana Martin)