on 09-13-2004 4:11 PM
I have a AIX 5.1 ppc64 machine which I am currenty using tomcat on. We want to use the SAP JCo to connect to out oracle instance for certain information. I'm trying to get the native libraries working to no avail.
1) The package that you download for the 64 aix machines did not have the right extension. I would always get an error stating:
Can't find library sapjcorfc (libsapjcorfc.a or .so) in java.library.path
2) I changed the suffix to ".a" and now I get the error:
Could not initialize dynamic link library sapjcorfc [/usr/lib/libsapjcorfc.a: load ENOEXEC on shared library(s)
Has anybody gotten this to work for a 64bit unix?
I discovered a way to fix this error:
load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc
[/opt/sapjco/libsapjcorfc.so: load ENOEXEC on shared library
Answer: First, make sure you've downloaded the proper version of sapjco for your system including 32 or 64-bit. Also, make sure you copy lib files to right directory that get extracted with the sapjco file. If you download right file it will give you the so file. You should not have to rename any file (as I also originally tried).
For example on AIX: cp librfccm.o libsapjcorfc.o libsapjcorfc.so /usr/java14_64/jre/bin/
make sure permissions/owner/group are okay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm also getting this error and, like the last post to the original message, would be interested in hearing a bit more detail. I'm on an IBM AIX 5.2 64 bit box. The JCO software we downloaded seems be for AIX_64 (correct), and puts libsapjcorfc.o in /usr/sap/SID/DVEBMGS00/j2ee/os_libs. The error messages I see in the log seem to indicate it wants to find a .so version of this library. Is this correct for IBM AIX? Anyone know how to resolve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In posting this question I have answered my own question.
I thought that I downloaded the correct JCo, but when posting this question I noticed the I downloaded the HP AIX, not the IBM AIX libraries. Once downloading the correct version everything ran as planned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To add I have attached the response when I run the SAPJCo.jar from the unix command line. Hope this helps.
$ /usr/java14_64/bin/java 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/lib/libsapjcorfc.a: load ENOEXEC on shared library(s) /usr/lib/libsapjcorfc.a]. java.library.path [/usr/java14_64/jre/bin:/usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/lib]
at at com.sap.mw.jco.JCO.<clinit>(JCO.java:731).null(Unknown Source)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:161)
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: AIX 5.1 for ppc64
Java VM: 1.4.0 IBM Corporation
Java Codepage: ISO8859_1
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
-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.