[英]WSO2 SAP endpoint property file - searching for wrong file name and path
I have "export" proxy service which aims to "obtain" sequence.我有旨在“获取”序列的“导出”代理服务。 The sequence points to
${server}/services/sapBapi
or "sapBapi" proxy service.该序列指向
${server}/services/sapBapi
或“sapBapi”代理服务。 The "sapBapi" proxy service points to gov:endpoints/sapbapiendpoint.xml
endpoint, where is the concrete address: bapi:/abc
“sapBapi”代理服务指向
gov:endpoints/sapbapiendpoint.xml
端点,具体地址在哪里: bapi:/abc
I have abc.dest and abc.server property files with SAP endpoint parameters on path $WSO2_HOME/repository/conf/sap
according to official documentation here根据此处的官方文档,我在路径
$WSO2_HOME/repository/conf/sap
上有带有 SAP 端点参数的 abc.dest 和 abc.server 属性文件
When I want to use "export" proxy service and send data, I will find this in logs:当我想使用“导出”代理服务并发送数据时,我会在日志中找到:
DEBUG - Started sending message to uri=bapi:/abc/services/sapBapi/services/export {org.wso2.carbon.transports.sap.SAPTransportSender}
WARN - JCo configuration file for the destination : abc/services/sapBapi/services/export does not exist - Please specify the JCo configuration in $WSO2_HOME/conf/sap/abc/services/sapBapi/services/export.dest or abc/services/sapBapi/services/export.dest {org.wso2.carbon.transports.sap.CarbonDestinationDataProvider}
ERROR - Error while sending request to the EPRbapi:/abc/services/sapBapi/services/export {org.wso2.carbon.transports.sap.SAPTransportSender}
com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination abc/services/sapBapi/services/export does not exist
When I put export.dest
file to path $WSO2_HOME/repository/conf/sap/abc/services/sapBapi/services/
, then it works perfectly.当我将
export.dest
文件放到路径$WSO2_HOME/repository/conf/sap/abc/services/sapBapi/services/
,它就完美运行了。
My questions:我的问题:
$WSO2_HOME/conf/sap/abc/services/sapBapi/services/
instead of $WSO2_HOME/repository/conf/sap/
?$WSO2_HOME/conf/sap/abc/services/sapBapi/services/
而不是$WSO2_HOME/repository/conf/sap/
上搜索 .dest 属性文件? WSO2 version: 6.5.0 WSO2 版本:6.5.0
I don't know WSO2 Enterprise Integrator, but obviously an instance of class org.wso2.carbon.transports.sap.CarbonDestinationDataProvider
is the registered DestinationDataProvider
at the JCo runtime.我不知道 WSO2 Enterprise Integrator,但显然类
org.wso2.carbon.transports.sap.CarbonDestinationDataProvider
一个实例是 JCo 运行时注册的DestinationDataProvider
。 This is the instance that decides alone from where to obtain the logon parameters for a JCoDestination
based on the destination name string that it gets from the JCoDestinationManager
.这是一个实例,它根据从
JCoDestinationManager
获取的目标名称字符串单独决定从何处获取JCoDestination
的登录参数。
From your example error message, this destination name string seems to be "abc/services/sapBapi/services/export" in this case for which the org.wso2.carbon.transports.sap.CarbonDestinationDataProvider
is searching a property file with name abc/services/sapBapi/services/export.dest从您的示例错误消息中,此目标名称字符串似乎是“abc/services/sapBapi/services/export”,在这种情况下,
org.wso2.carbon.transports.sap.CarbonDestinationDataProvider
正在搜索名为abc/的属性文件服务/sapBapi/services/export.dest
I hope this info will help you to adapt your code/configuration to fit your expectations.我希望这些信息能帮助您调整代码/配置以满足您的期望。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.