cancel
Showing results for 
Search instead for 
Did you mean: 

SAP JCo Error

Former Member
0 Kudos

Hi Guys,

I have created a normal java /SAP/Connet.java class which use Sapjco in Suse Linux Ver 9

I am not getting the .bash_profile to set the path , classpath and LD_library_path ,so I have done

1.I have placed sapjco.jar,librfccm.so,libsaprfc.so in the same folder

2.I have palced librfccm.so in /usr/lib

3. fired this query java -classpath ./sapjco.jar:. Connect

Same I have java code with same configuration it worked in Windows .

but below u see the errors i m receving in Suse linux

esb:/SAP# java -classpath ./sapjco.jar:. Connect

com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(Unknown Source)

at com.sap.mw.jco.JCO$Client.connect(Unknown Source)

at Connect.getSapCon(Connect.java:39)

at Connect.main(Connect.java:59)

esb:/SAP#

can anyone plese help me .

Thanks for your great work.

Regards

Roopesh

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

The error message is pretty clear - the provided user and password is not correct.

Please be aware, that from NW 7.0 passwords are case sensitive.

Markus

Former Member
0 Kudos

Hi

I have given same UserID and Password with proper case But still the problem remains same ....

I have created Java class(stand alone) with extending SAPJco.jar class.Exported to SUSE linux , Placed librfccm.so in /usr/lib and fired the command in console .Here we are not using any NW software.

Some clerification is required on

1.Correct verion of sapjco.tgz for SUSE linux

2.Setting of PATH, CLASSPATH and LD_LIBRARY PATH in SUSE linux

Thanks for your effort!!!

Regards

Roopesh

Former Member
0 Kudos

Hi,

check Note 636912 - Frequent installation problems with SAP Java Connector

Note 766185 - Installation guide for standalone SAP Java connector

regards,

kaushal

Former Member
0 Kudos

Hi kaushal,

Thanks But where to check this Note 636912,766185 .Can you tell me from where i can dowload this guide or doc.

Regards

Roopesh

Former Member
0 Kudos

Hi,

service.sap.com/notes

Service user and password is required

reagrds,

kaushal

Former Member
0 Kudos

Hi Kaushal,

Gone thorugh that doucment.It say`s of the settign of LD_LIBRARY_PATH and CLASSPATH . We understand that this should be done in the .bash.profile, however we are unable to locate it in the SuSE Linux 9, Any info on this will help us to a great extent.

Note: We are able to make this work on Windows box successfully, now we are trying to implement the same on SuSE Linux.