cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

We are tryibg to use Sap Jco under J2EE Tomcat application running on

AIX 5.3 64 bit, with JRe 1.4.2.

We are reciving this error :

HTTP Status 500 -

-


Type Exception report message

description The server encountered an internal error () that prevented

it from fulfilling this request.

Exception

javax.servlet.ServletException: #{pc_Index.doButton1Action}:

javax.faces.el.EvaluationException:

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

[/opt/sapjco/libsapjcorfc.so: load ENOEXEC on shared library

(s) /opt/sapjco/libsapjcorfc.so]. java.library.path

[/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/opt/sapjco:.:/usr/lib]

javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)

root cause

javax.faces.FacesException: #{pc_Index.doButton1Action}:

javax.faces.el.EvaluationException:

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

[/opt/sapjco/libsapjcorfc.so: load ENOEXEC on shared library

(s) /opt/sapjco/libsapjcorfc.so]. java.library.path

[/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/opt/sapjco:.:/usr/lib]

com.sun.faces.application.ActionListenerImpl.processAction

(ActionListenerImpl.java:78)

javax.faces.component.UICommand.broadcast(UICommand.java:312)

javax.faces.component.UIViewRoot.broadcastEvents

(UIViewRoot.java:267)

javax.faces.component.UIViewRoot.processApplication

(UIViewRoot.java:381)

com.sun.faces.lifecycle.InvokeApplicationPhase.execute

(InvokeApplicationPhase.java:75)

com.sun.faces.lifecycle.LifecycleImpl.phase

(LifecycleImpl.java:200)

com.sun.faces.lifecycle.LifecycleImpl.execute

(LifecycleImpl.java:90)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)

Any suggestion ?

thansk in advance

0 Likes
View Entire Topic
Former Member
0 Likes

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.

For example on AIX: cp librfccm.o libsapjcorfc.o libsapjcorfc.so /usr/java14_64/jre/bin/

make sure permissions/owner/group are okay.