cancel
Showing results for 
Search instead for 
Did you mean: 

JCO installation 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 (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Hello,

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

Do you have a X-Server running on "mazda"? If not try to use this Java X Server: http://www.jcraft.com/weirdx/ and redirect with the DISPLAY environment variable.

Regards

Gregor