Sunday, February 22, 2015

Deploy an undeployed proxy service at the wso2 ESB server startup



Question,


Hi all,
I have created a proxy service in the ESB. Then I had to restart the ESB server. When the time of start endpoint wsdl of the proxy service was not worked. So ESB gives me a error regarding couldn’t find the url …

TID: [0] [ESB] [2014-12-29 10:21:01,385]  INFO {org.apache.synapse.Axis2SynapseController} -  Deploying Proxy services... {org.apache.synapse.Axis2SynapseController}
TID: [0] [ESB] [2014-12-29 10:21:01,386]  INFO {org.apache.synapse.core.axis2.ProxyService} -  Building Axis service for Proxy service : ValidationService {org.apache.synapse.core.axis2.ProxyService}
TID: [0] [ESB] [2014-12-29 10:21:01,476] ERROR {org.apache.synapse.core.axis2.ProxyService} -  Error reading from wsdl URI {org.apache.synapse.core.axis2.ProxyService}
java.io.IOException: Server returned HTTP response code: 500 for URL: http://xxx.xxx.xxx.xxx:xxxx/services/ValidationService?wsdl
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)
       at org.apache.synapse.config.SynapseConfigUtils.getOMElementFromURL(SynapseConfigUtils.java:312)

TID: [0] [ESB] [2014-12-29 10:21:01,489]  WARN {org.apache.synapse.Axis2SynapseController} -  The proxy service ValidationService cannot be deployed - Continue in Proxy Service fail-safe mode. {org.apache.synapse.Axis2SynapseController}

Now my endpoint wsdl of the proxy service working.
Is there a way to up the created proxy service again (rather than creating a new one using same endpoint)?

Regards,
Akila

Answer 1


Hi Akila,

I don't think we have a way to do this in UI. But as a workaround you can redeploy it by touching the particular proxy configuration.

eg. touch repository/deployment/server/synapse-configs/default/proxy-services/yourwsdlproxy.xml 

Hope this helps.

Thanks,
Bhathiya

Answer 2


Hi Akila,

Going to 'Main > Manage > Service Bus > Source View ' and clicking on 'Update' will redeploy all the synapse artifacts including your 'ValidationService' proxy, if you haven't remove it already.

Thanks,
Pandula

More info


First answer is most appropriate one.
To know usage and more information about touch command please read below url.

1 comment:

  1. I feel Power BI is the most happening and sought out complex IT solution anyhow to look for more broader aspects and solutions.

    Powerbi Read Soap


    ReplyDelete