Monday, August 10, 2009

Automatic BPEL deployment with ant error: A problem occured while connecting to server

Our BPEL deployments with ant were always succesfull but after an while it was not working anymore during the deployment of an BPEL process we got the error as shown below:

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
[INSTALL_DIR]/common-build.xml:82: A problem occured while connecting to server "[host]" using port "[port]":

Deployment of an BPEL process by placing it in the $ORACLE_HOME/bpel/domains/[BPEL_DOMAIN]/deploy was successfull.

After we enabled the verbose option I noticed which url is used to deploy the BPEL process http://hostname:port/integration/services/deploy/deployHttpClientProcess.jsp . The application used is deploy_services in the oc4j_soa container. When the url is executed in an browser an popup is shown on which you should log on. But we got an other error:

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

This error was caused by an change in the file $ORACLE_HOME/Apache/Apache/conf/mod_oc4j.conf. A while ago we put an line in this config file:

Oc4jUseOHSErrors on

After we removed Oc4jUseOHSErrors on. Everything worked like it supposed to.

Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.

1 comment: