My Oracle Support Banner

Error: Could Not Connect to the Remote Server When Using Admin.Jar (Doc ID 1195156.1)

Last updated on APRIL 05, 2019

Applies to:

Oracle Containers for J2EE - Version 10.1.2.0.2 to 10.1.3.5.0 [Release AS10gR2 to AS10gR3]
Information in this document applies to any platform.

Symptoms

When trying to configure OC4J with admin.jar the following error message is returned :-

Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused: connect


Example command

java -jar $ORACLE_HOME\j2ee\home\admin.jar ormi://localhost:23793 oc4jadmin welcome1 -application ApplicationName -installDataSource -jar <PATH>/ojdbc14dms.jar -url jdbc:oracle:thin:@//localhost:1521/orcl -location jdbc/DSName -username username -password password -className oracle.jdbc.pool.OracleDataSource


The RMI port matches the information in $ORACLE_HOME\j2ee\home\config\rmi.xml

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.