GeeCON Prague 2014*
The moose likes Other JSE/JEE APIs and the fly likes connectivity from sap server (sapjco.jar) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "connectivity from sap server (sapjco.jar)" Watch "connectivity from sap server (sapjco.jar)" New topic
Author

connectivity from sap server (sapjco.jar)

Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
hi...
I am trying to connect a java application from SAP Server
my environment is

RED HAT LINUX 9.0,OMCAT 5.0,JSDK 1.5 USING SAPJCO.JAR

AS SOON AS MY SERVLET TRYING TO CONNECT SAP SERVER
it give me this exception....
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: Invoker service() exception
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:477)
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
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/java/jdk1.5.0_01/jre/lib/i386/libsapjcorfc.so: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory]. java.library.path [/usr/java/jdk1.5.0_01/jre/lib/i386/client:/usr/java/jdk1.5.0_01/jre/lib/i386:/usr/java/jdk1.5.0_01/jre/../lib/i386:/usr/Tomcat_4_1/shared/lib:/usr/lib:/usr/java/jdk1.5.0_01/jre/lib/i386:]
com.sap.mw.jco.JCO.<clinit>(JCO.java:731)
ConnectionPool.ReturnConnection(ConnectionPool.java:12)
CurrentBalance.doGet(CurrentBalance.java:64)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.

Apache Tomcat/5.5.4

IT IS RUNNING SMOOTHLY AT WIN20000

please suggest me what should I do

THANKS
Arto Pastinen
Ranch Hand

Joined: Dec 13, 2002
Posts: 79
do you have this?

/usr/java/jdk1.5.0_01/jre/lib/i386/libsapjcorfc.so
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connectivity from sap server (sapjco.jar)