IBM Support

java.net.ConnectException: Connection refused" when creating a WebSphere Commerce instance *|* -1818C9D573DE20628525704A0

Question & Answer


Question

java.net.ConnectException: Connection refused" when creating a WebSphere Commerce instance *|* -1818C9D573DE20628525704A006EBC8B- *|*

Answer

Technote (troubleshooting)


Problem(Abstract)

When creating a WebSphere Commerce instance using a remote database the following error is found in the console of the Configuration Manager client after the database schema has been created:

Connected to jdbc:oracle:thin:@appserverhostname:1521:TESTDB
Driver Oracle JDBC driver
Version 9.2.0.1.0

. . . . . . .
java.rmi.ConnectException: Connection refused to host: xx.xx.xx.xx; nested exception is:
java.net.ConnectException: Connection refused

Cause

The remote database server is unable to resolve the host name address of the server which has WebSphere Application Server running.

Resolving the problem

Modify the /etc/hosts file on the remote database server by adding an entry for the WebSphere Application Server host name.

Cross reference information
SegmentProductComponentPlatformVersionEdition
CommerceWebSphere Commerce Professional EditionInstallation

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 October 2021

UID

ibm10764043