Unable to Deploy BPEL Process Containing a Reference Service Defined by a WSDL Location Secured by HTTP Basic Authentication (Doc ID 1351104.1)

Last updated on OCTOBER 16, 2017

Applies to:

Oracle(R) BPEL Process Manager - Version 10.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

You have an established installation of Oracle Application Server 10g Release 3 (10.1.3.x) where you are running composite applications in the BPEL Process Manager component and are developing a new business to a service that has been secured using HTTP Basic Authentication.

At development time, using JDeveloper 10.1.3.x to define the BPEL process, when you access the service definition (WSDL) for the secured service, a pop up dialog box requesting the username/password and is able to obtain the service definition once this is provided.

However, the password is not retained and used at deployment time so you are not able to successfully build and deploy the composite to the BPEL Process Manager as the server environment encounters the same security constraint accessing the WSDL but is unable to prompt for a username and password.

During deployment, the following error is received at JDeveloper:

/home/jdevhome/mywork/TEST_SECURED_WSDL/TestSecuredWsdl/build.xml:78:
A problem occured while connecting to server "myServiceHost.myServiceDomain" using port "7777": bpel_TestSecuredWsdl_1.0.jar failed to deploy.
Exception message is: Error while loading process.
The process domain encountered the following errors while loading the process "TestSecuredWsdl" (revision "1.0"): Failed to read wsdl.
Error happened when reading wsdl at "/home/OracleAS_1/bpel/domains/default/tmp/.
bpel_TestSecuredWsdl_1.0_c334b70eba8a8681ff397b1047ba4528.tmp/SecuredWebServiceServiceDefinitions1.wsdl",
because "WSDLException: faultCode=INVALID_WSDL: Error reading import of file:/home/OracleAS_1/bpel/domains/default/tmp/.
bpel_TestSecuredWsdl_1.0_c334b70eba8a8681ff397b1047ba4528.tmp/SecuredWebServiceServiceDefinitions1.wsdl:
oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=OTHER_ERROR:
Failed to read WSDL from http://mySoaHost.mySoaDomain:27001/SECURED_WS/SecuredWebService?WSDL: HTTP connection error code is 401".
Make sure wsdl exists at that URL and is valid.

Total time: 4 seconds


On the SOA Server side, the following error is in the oc4j_soa log:

<2011-05-22 13:57:36,204> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError>
Error while invoking bean "domain manager": Error while loading process.
The process domain encountered the following errors while loading the process "TestSecuredWsdl" (revision "1.0"):
Failed to read wsdl. Error happened when reading wsdl at
"/home/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.
bpel_TestSecuredWsdl_1.0_c334b70eba8a8681ff397b1047ba4528.tmp/SecuredWebServiceServiceDefinitions1.wsdl",
because "WSDLException: faultCode=INVALID_WSDL: Error reading import of file:/refresh/home/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/
.bpel_TestSecuredWsdl_1.0_c334b70eba8a8681ff397b1047ba4528.tmp/SecuredWebServiceServiceDefinitions1.wsdl:
oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=OTHER_ERROR:
Failed to read WSDL from http://mySoaHost.mySoaDomain:27001/SECURED_WS/SecuredWebService?WSDL: HTTP connection error code is 401".
Make sure wsdl exists at that URL and is valid.
.
If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.

ORABPEL-05215

Error while loading process.
The process domain encountered the following errors while loading the process "TestSecuredWsdl" (revision "1.0"): Failed to read wsdl.
Error happened when reading wsdl at "/home/OracleAS_1/bpel/domains/default/tmp/
.bpel_TestSecuredWsdl_1.0_c334b70eba8a8681ff397b1047ba4528.tmp/SecuredWebServiceServiceDefinitions1.wsdl",
because "WSDLException: faultCode=INVALID_WSDL:
Error reading import of file:/home/OracleAS_1/bpel/domains/default/tmp/
.bpel_TestSecuredWsdl_1.0_c334b70eba8a8681ff397b1047ba4528.tmp/SecuredWebServiceServiceDefinitions1.wsdl:
oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=OTHER_ERROR:
Failed to read WSDL from http://mySoaHost.mySoaDomain:27001/SECURED_WS/SecuredWebService?WSDL: HTTP connection error code is 401".
Make sure wsdl exists at that URL and is valid.
.
If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.

at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:246)
at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:994)
at com.collaxa.cube.engine.deployment.DeploymentManager.deploySuitcase(DeploymentManager.java:848)
at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:464)
...

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms