cancel
Showing results for 
Search instead for 
Did you mean: 

Error while Configuring JCO on Solaris

Former Member
0 Kudos

Hi all,

I configured JCO according to installation instructions in the documentation shiped with installation bundle, classpath and LD_LIBRARY_PATH variables are set correctly and I can echo and varify the paths. But whenever I access any class of JCO from JSP or run sapjco.jar from its folder, it throws an exception and restarts the server. I would highly appreciate any hint.

Here is error message with -stdout option:

mazda:dv1adm 44% java -jar sapjco.jar

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/sap/DV1/DVEBMGS00/j2ee/sapjco-install-path/libsapjcorfc.so: ld.so.1: java: fatal: /usr/sap/DV1/DVEBMGS00/j2ee/sapjco-install-path/libsapjcorfc.so: wrong ELF class: ELFCLASS64]. java.library.path [/usr/j2sdk1.4.2_04/jre/lib/sparc/client:/usr/j2sdk1.4.2_04/jre/lib/sparc:/usr/j2sdk1.4.2_04/jre/../lib/sparc:/usr/sap/DV1/SYS/exe/run:/usr/sap/DV1/SYS/exe/runU:/usr/sap/DV1/DVEBMGS00/j2ee/sapjco-install-path:/opt/dazel/lib:/usr/lib]

at com.sap.mw.jco.JCO.<clinit>(JCO.java:731)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at com.sap.mw.jco.About.<init>(About.java:33)

at com.sap.mw.jco.About.main(About.java:90)

X connection to mazda:13.0 broken (explicit kill or server shutdown).

mazda:dv1adm 45% java -jar sapjco.jar -stdout

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/sap/DV1/DVEBMGS00/j2ee/sapjco-install-path/libsapjcorfc.so: ld.so.1: java: fatal: /usr/sap/DV1/DVEBMGS00/j2ee/sapjco-install-path/libsapjcorfc.so: wrong ELF class: ELFCLASS64]. java.library.path [/usr/j2sdk1.4.2_04/jre/lib/sparc/client:/usr/j2sdk1.4.2_04/jre/lib/sparc:/usr/j2sdk1.4.2_04/jre/../lib/sparc:/usr/sap/DV1/SYS/exe/run:/usr/sap/DV1/SYS/exe/runU:/usr/sap/DV1/DVEBMGS00/j2ee/sapjco-install-path:/opt/dazel/lib:/usr/lib]

at com.sap.mw.jco.JCO.<clinit>(JCO.java:731)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at com.sap.mw.jco.About.<init>(About.java:33)

at com.sap.mw.jco.About.main(About.java:90)

-


SAP Java Connector (JCo)

Copyright (c) 2000-2004 SAP AG. All rights reserved.

Version Information

-


Java Runtime:

Operating System: SunOS 5.9 for sparc

Java VM: 1.4.2_04 Sun Microsystems Inc.

Java Codepage: ASCII

Versions:

JCo API: 2.1.3 (2004-03-08)

JCo middleware: Library not found

JCo library: Library not found

RFC library: Library not found

Paths:

JCo classes: System-defined path

JCo library: Library not found

RFC library: System-defined path

-


Manifest

-


Manifest-Version: 1.0

Implementation-Version: 20040430 0858 [2.1.3 (2004-03-08)]

Specification-Title: SAP Java Connector

Specification-Version: 2.1.3

Implementation-Title: com.sap.mw.jco

Main-Class: com.sap.mw.jco.About

Created-By: Ant 1.4.1

Implementation-Vendor-Id: com.sap

Implementation-Vendor: SAP AG, Walldorf

Specification-Vendor: SAP AG, Walldorf

-


Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Try to add the directory path where libsapjcorfc.so file resides in LD_LIBRARY_PATH environment variable and run the program.

Former Member
0 Kudos

Hi,

I have the same problem.

If anybody knows the solution, please reply.

Thanks

former_member184154
Active Contributor
0 Kudos

Somthing similar is happening to me as well... I found <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/bc-jas/~form/handler">note 542175</a> sounds interesting, but I'm still trying to figure out how to apply to my tricky scenario (MDM!)

former_member192029
Active Contributor
0 Kudos

Hi

Check this

1) Did you create the system in sld ?<http://<hostname>:<port>/sld

2)did Creat JCO and test it?

Cheers

Jawahar Govindaraj

PS:Rewards pts

Former Member
0 Kudos

Hi,

Did you solved this?

Can you tell us how?

kr,

dirk

Former Member
0 Kudos

Hello Moin,

This error might be caused by the different bitlength of your JDK and JCO library. If you use 32bit Jdk you should download 32bit JCO.

Kind Regards

Vyara