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