Tuesday, 29 August 2017

OSB-398016 Error loading the WSDL from the repository: Failed to read wsdl file from url due to -- java.net.MalformedURLException: Unknown protocol: servicebus

While running my OSB project on integrated weblogic server, I came across the below error


[OSB-398016] Error loading the WSDL from the repository: Failed to read wsdl file from url due to -- java.net.MalformedURLException: Unknown protocol: servicebus





I found out that it is a known bug.
Bug: 18856204
Cause: WSDL Errors Can Occur When Oracle Service Bus and Oracle Business Process Manager Are on the Same Domain

I came across this solution which worked for me


Steps

1) Login to weblogic console
2) In the domain structure panel select OSGi Fraemework from services node.

    An OSGi Framework provides an OSGi runtime environment to support applications which make use of OSGi features, such as packaging, lifecycle management, and an active registry



s

3) Click on the bac-svnserver-osgi-framework link
4) In the init properties text field at the bottom add felix.service.urlhandlers=false

  • ·         init properties- The properties to be used when initializing the framework. All standard properties and all properties specific to the framework can be set.
  • ·         felix.service.urlhandlers - Flag to indicate whether to activate the URL Handlers service for the framework instance; the default value is true. Activating the URL Handlers service will result in the URL.setURLStreamHandlerFactory() and URLConnection.setContentHandlerFactory() being called.





    5) Click Save
    6) Restart  Weblogic Server 


    HAPPY LEARNING!!!!

    1 comment:

    Demystifying getActiveUnitofWork property of DB Adpater

    Here in this I am going to discuss one of the interaction options available in Database adapter configuration, getActiveUnitofWork The p...