Working example on Spring Mediator in WSO2 ESB 4.6.0

后端 未结 4 1954
情话喂你
情话喂你 2021-01-16 11:24

Hi i am working on Spring Mediator in WSO2 ESB 4.6.0, using this and this tutorial

I am getting the Error as follows:

ERROR - SpringMediator Cannot l         


        
4条回答
  •  梦毁少年i
    2021-01-16 12:14

    This is because of the esb finds the springsample.xml file in the path repository/conf/sample/resources

    file:repository/conf/sample/resources/
    

    But the springsample.xml file location is in repository/samples/resources/ . Therefore it should be corrected as the following,

    file:repository/samples/resources/
    

    In documentation, the configuration is not correct, If you start the esb by the command wso2esb-samples -sn 470 (as mentioned in the documentation) the esb will load the file in repository/samples/synapse_sample_470.xml where in this file above parameter is correctly configured.

    Hope this will solve your problem :)

    UPDATED:

    According to your comment, as your are directly using sample spring example, this occur due to permission of the file trying to access, Or this can be due to file path error. So please try with absolute file url.

提交回复
热议问题