on 10-09-2004 7:24 AM
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
-
Try to add the directory path where libsapjcorfc.so file resides in LD_LIBRARY_PATH environment variable and run the program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have the same problem.
If anybody knows the solution, please reply.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you solved this?
Can you tell us how?
kr,
dirk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.