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
Request clarification before answering.
Hi this error most likely occurs in following scenario
when you have different versions of sapjcorfc.dll and sapjco.jar installed. everytime the JCO connector is upgraded to a new version, you need to ensure that all three libraries are updated (librfc32.dll, sapjcorfc.dll, and sapjco.jar). This error will occur if any one of them is still in older version.
To resolve this try out extracting sapjcorfc.dll and sapjco.jar from the original JCO jar file. Copy these files to the appropriate locations, overwriting the originally installed versions( Mostly the in the Sysem32 folder of your windows). Ensure that the PATH statement is updated to reflect the directory location of the DLL files and the Java CLASSPATH points to sapjco.jar.
Hope this resolves your issue. Please dont forget to award points if this helps you.
Regards,
Sesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.