cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Connection Error in WebDynpro

Former Member
0 Kudos

I am trying to connect to a SAP ECC 5.0 server using SAP JCo Connection, and when i try to test the connection i am getting the following error.

-


com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed

Connect_PM TYPE=A ASHOST=10.18.8.135 SYSNR=10 GWHOST=10.18.8.135 GWSERV=sapgw10 PCS=1

LOCATION CPIC (TCP/IP) on local host with Unicode

ERROR service 'sapgw10' unknown

TIME Sun Sep 24 17:50:12 2006

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -3

MODULE ninti.c

LINE 501

DETAIL NiPGetServByName2: service 'sapgw10' not found

SYSTEM CALL getservbyname_r

COUNTER 2

-


I am able to ping the SAP server from the NetWeaver server and also able to login with the credentials provided in the connector using SAP Logon GUI. Even my JAVA Standalone application is able to connect using the same JCO connection details.

Any help will be greatly appreciated

Accepted Solutions (0)

Answers (1)

Answers (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Has an entry been made in the services file for the system which you are connecting to?

Check the services file in the following path on your netweaver server.

C:\WINDOWS\system32\drivers\etc

Regards,

Rich Heilman

Former Member
0 Kudos

Yes, My Application has the entry for Message Server in the services file. I have created an Standalone java class in the Netweaver with the same set of JCo Connection parameters and it is working fine.