Concurrent use of SAP JCO

Hello everybody.
I'm developing a Java web application where I have to access the SAP system inside a company. I'm using JCO and it works fine, but whenever I deploy the web application in Tomcat, I must restart it to work with it again. If not I get the following exception:
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [Native Library /usr/lib/libsapjcorfc.so already loaded in another classloader]
I found some threads about this problem in the forums, and the solution was to put the SapJco.jar into tomcat commons/lib directory, not inside the WEB-INF/lib. I did that and it's still not working.
Does anyone know what to do?
Thank's in advance.
Regards.
Daniel.

Hi Daniel,
You have to add following XML elements in your XML file.
<application-j2ee-engine>
     <reference
          reference-type="weak">
          <reference-target
               provider-name="sap.com"
               target-type="library">com.sap.mw.jco</reference-target>
     </reference>
     <provider-name>sap.com</provider-name>
     <fail-over-enable
          mode="disable"/>
</application-j2ee-engine>
We are using this in WAS server. I guess for tomcat also its similar to this only.
Regards,
Bhavik

Similar Messages

  • Data transfer b/w SAP to Java using IDOC and Interface SAP Jco

    Dear Experts,
    The challenging requirement we are having is, we need to create the interface for data transfer between SAP system and the Java system. The data will be transferred from SAP to java and similarly once some processing done in Java again the details needs to be transferred from Java to SAP.
    For this data transferred we are planning to use IDOC process and for interface "SAP Java connector (Version 3.0.5)" we are planning to use. As per our understanding, from Java side one program needs to be written to connect with SAP as "Registered program". This registered program will appear in SAP GATEWAY automatically and using tRFC, TCP/IP connection both SAP and Java system will be connected.
    In this case we are having some doubts.
    1. The data from SAP is going to be transfered from one Custom transaction (Z tcode). Once "Outbound IDOC" will get triggered and will carry the details. Now the doubt is, whether the data / details will get transfered to JAVA system automatically or we need to perform any other steps from SAP ABAP coding...(like converting in to flat file, XML file and etc) ??
    2. We are planning to install "SAP Jco" in Java server. Is this correct...??
    3. Other than SAP Jco any other softwares needs to be installed or not..??
    4. Since we are going to trigger the "outbound IDOC" from custom transaction, we are planning to develope one program in SE37. Other than this any other program we need to develop or not..??
    5. Any sample Java program for the SAP Jco version 3.0.5 to create the "Registered program" with SAP..? (e.g. SAP Listener program).?
    If anybody has detailed steps or explanation please share it with us.
    Thanks in advance
    Warm Regards,
    VEL

    Hi All,
      For the above mentioned issue, we implemented JCo software in JAVA system and created the JAVA program including SAP logon credential details like Client, User name, password and Language details.
    When this JAVA program was compiled successfully then, that non SAP system will appear in SAP gateway Tcode.
    Once non SAP system started appearing in SAP gateway that means, both SAP & Non SAP are connected automatically.
    Regards,
    Velmurugan P

  • Unable to create sales Order/Inquiry object using SAP JCo

    Hi All,
    Pls can you help me.
    I am using BAPI_INQUIRY_CREATEFROMDATA2 and BAPI_Trancation_commit to create Inquiry object.From my Client JCo code there is no error.I debugged the BAPI_Trasaction_commit, there is no error,  return code is 0.  But th system is not creating Inquiry object. When I try the same from SAP GUI client with exactly the same input parameters it works.
    Do I need to set any option/value to commit the Inquiry to the SAP database? How to maintain the same session between the different BAPI's. Is there any issue with Session maintainance? I would appreciate if you can provide me any sample SAP JCo code for creating a Sales Order/Inquiry.
    Thanks
    mars

    Can you put the part of your code that fill the ORDER_PARTNERS table, also you could compare your coding with [Sales order creation using BAPI|http://wiki.sdn.sap.com/wiki/display/Snippets/SalesordercreationusingBAPI] in [Community Code Gallery |http://wiki.sdn.sap.com/wiki/display/Snippets/CommunityCodeGallery] (don't forget that there is a conversion exit on the partner role, so use internal codes "AG" and "WE")
    Regards,
    Raymond

  • How to query an Infoset using SAP JCO APIs

    Hi
    How can I  query an Infoset (on SAP ECC) using SAP JCO APIs?
    Thanks

    Hi,
    Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
    Thanks,
    Arun

  • IDOC data transfer SAP to Java using SAP JCo

    Dear Experts,
              The challenging requirement we are having is, we need to create the interface for data transfer between SAP system and the Java system. The data will be transferred from SAP to java and similarly once some processing done in Java again the details needs to be transferred from Java to SAP.
                 For this data transferred we are planning to use IDOC process and for interface "SAP Java connector" we are planning to use. In this case we are having some doubts.
    1. The data from SAP is going to be transfered from one Custom transaction (Z tcode). Once  "Outbound IDOC" will get triggered and will carry the details. Now the doubt is, whether the data / details will get transfered to JAVA system automatically or we need to perform any other steps from SAP ABAP coding...(like converting in to flat file, XML file and etc) ??
    2. We are planning to install "SAP Jco" in Java server. Is this correct...??
    3. Other than SAP Jco any other softwares needs to be installed or not..??
    4. Since we are going to trigger the "outbound IDOC" from custom transaction, we are planning to develope one program in SE37. Other than this any other program we need to develop or not..??
    If anybody has detailed steps or explanation please share it with us.
    Warm Regards,
    VEL

    Hi All,
      For the above mentioned issue, we implemented JCo software in JAVA system and created the JAVA program including SAP logon credential details like Client, User name, password and Language details.
    When this JAVA program was compiled successfully then, that non SAP system will appear in SAP gateway Tcode.
    Once non SAP system started appearing in SAP gateway that means, both SAP & Non SAP are connected automatically.
    Regards,
    Velmurugan P

  • How to retrieve ABAP query field metedata using SAP JCO?

    How can I retrieve all field details (such as field name, field description, output length field type) using SAP JCO for an ABAP Query?
    I have query name, user group, query area and infoset name with me.
    Thanks

    Hi,
    Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
    Thanks,
    Arun

  • CVP VXML Custom Action Element using SAP Java Connector (SAP Jco)

    Mates,
    Have any of you built one of these? CVP 4.x, 7.x, 8.x - doesn't matter much.
    I've built plenty (!) of custom action elements, decision elements, SayItSmart and so on, but never one to talk SAP Jco.
    Just wondering if someone has any experience they can share on the Forum.
    Thanks heaps - in advance.
    Regards,
    Geoff

    Hi Geoff,
    You may try posting your question to the Cisco Developer Network forum for greater visibility at: http://developer.cisco.com/web/cdc/forums?src=/forums/category.jspa
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    Thanks,
    Hitesh

  • Writing a java program to access SAP tables using SAP JCO

    Hi all,
           I have a requirement where I need to access the VBAK table and get some values out of it based on a query on some of it fields. I would like to know how this can be done via a Java program by utilising the SAP JCo library. Has anyone done this before? A sample program would be very helpful.
    Thanks in advance!

    Hi SAM,
    Welcome to SDN!!!!!!
    Chk this help doc.
    http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm
    Also chk these thread.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8798be90-0201-0010-d093-85f728778d37
    Re: How to access SAP database tables with Java (Jco)
    Regards.
    Maha

  • Error while running the SAP JCO java program running via command line

    Hi,
        We are facing an issue while using SAP JCO. When i try to run the sample program using RAD 8.0 ( IBM IDE tool For Java Development) its working fine.
    The same sample program if i try to run using command line, Then its giving below exception message.
    Exception in thread "main" java.lang.NoClassDefFoundError: Integration
    NOTE: I have configured proper sapjco jar & Dll files path in class path settings in my batch file.

    Hi,
    class loader can't find class definition during runtime but it could find it during compilation. So the problem is with your classpath. Does your classpath point to file with class Integration? Check this [blog|http://javarevisited.blogspot.com.au/2011/06/noclassdeffounderror-exception-in.html].
    Cheers
    Added reference to blog.

  • RFC calls with SAP JCO and IBM resource adapter for SAP - basic tuning

    Hi experts,
    we are working on a java portal connected to a backend system SAP by calling RFCs.
    On our first integration tests, it appears to be quite slow fetching data from SAP by calling the remote functions from the custom portal. We are using SAP JCo 3.0.6 and IBM resource adapter for SAP 7.0.0.3 to integrate SAP with our portal.
    Is there any basic tuning to achieve to improve performances or any hint of where to tune in SAP ?
    Any help would be greatly appreciated.
    Thanks a lot,
    Jamal

    Hi Jamal,
    I understand you have already checked performance issues in the SAP Server. We had some problems with certain RFC calls and it turned out to be a badly developed ABAP sentence.
    I'd recommend you to use httpwatch or another tool to check the response times from the browser, so you can point accurately where the is.
    Regards
    Francisco

  • Urgent: SAP JCO vs FTP

    Hi Gurus,
      We have two servers(one SAP and another non-SAP) installed in our network(at two different locations). Our requirement is to upload data from a flat file(located in non SAP server) into SAP. For this, we thought of two options.
    1. To use SAP JCo, installing it on non SAP server and connecting to SAP system through it and uploading the data by calling some function module using JAVA Program.
    2. To use FTP transfer, transferring the file to SAP Server and uploading data from there.
    Here, we have to consider the facts like performance, security, scheduling etc. As per my research I found that performance wise and security wise option2 is better than option1.
      Would appreciate your inputs on this. 
    Thanks in advance.
    Best Regards,
    Lee

    hi lee,
        option 1 is better. Advantages are :-
    E-mail Requirement:
    - MAPI compatible email client (Outlook Express etc.)
    - Standard SMTP e-mail server
    - Exchange Server
    - Outlook
    - Lotus Notes
    Security can be added to any PDF format. The different types of security are:
    - 128 bit encryption
    - Password
    - Printing restrictions
    - Copy restrictions
    - Saving restrictions
    - Editing restrictions
    performance and scheduling also good so better you go with SAP JCO , its my opinion.
    Thanks & Regards
      Varun Kumar CN

  • SAP XI V/S SAP JCO

    Hi All
    I am new to SAP XI.
    Pls let me know the advantages / dis-advantages of using SAP JCO instead of SAP XI
    Regards
    MD

    Hi Madhan,
    Sap JCO is mainly used to connect the Java based applications do chk the below links it gives u a clear picture.
    http://help.sap.com/saphelp_nw04/helpdata/en/64/52d651ac492749b7152609b001c81d/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/e8/bda7c0cef411d6b2bd00508b5d5211/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/01/43e13d82fcfb34e10000000a114084/frameset.htm
    Regards
    Sampath

  • SAP JCo Clarifications

    Hi Experts,
    I have installed SAP Business Connector 4.8 for one of our ECC 6 EHP 4 systems (without AS JAVA) and maintained all the settings for SAP server and listener in adapter settings. I have also maintained correct settings in SAPBC rfc in SM59. The SAPBC is working fine for the xml documents. The client also wants an external Java application to be able to call up the SAP system for business reasons. Now in help.sap.com page "http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm" its written that "SAP JCo is automatically installed when you use SAP Business Connector or SAP Web Application Server for Java." Since I have already installed SAP BC, the JCo should have got installed automatically (I checked LD_LIBPATH, no entry for jco path there, also no classpath is set). How do I check whether this has happened or not? I am dealing with JCo as well as BC for the first time and don't have much idea about them. When the JAVA team is trying to do some work on this, they are getting the below error:
    com.sap.mw.jco.JCO$Exception: (102) JCO_ERROR_COMMUNICATION: JCO.Client not connected in repository call
    at com.sap.mw.jco.JCO$Repository.getVersion(JCO.java:17820)
    at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:18148)
    at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:17881)
    at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:17991)
    at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(JCO.java:17062)
    Also, I am getting the below output for the mentioned command:
    sapqat01.putnaminv.com:ecqadm 210> java -jar /opt/sapbc48/server/packages/SAP/code/jars/static/sapjco3.jar -stdout
    The java class could not be loaded. java.lang.UnsupportedClassVersionError: (com/sap/conn/jco/rt/About) bad major version at offset=6
    We are currently running jre 1.4.2, so there is a mismatch in the version in which jco was compiled. What JCO or SAP BC version should I use in this case?
    Your help is appreciated.
    Best Regards,
    Vikash Chandra

    Vikas,
    I hope, the below link should help you.
    Link Removed: asset deleted
    Thanks,
    Hamendra
    Edited by: Jason Lax on Feb 1, 2012 11:21 AM

  • I am getting the Error as "Returned Content XMl is Empty" in SAP Jco Config

    Hi,
    I am facing the problem in SAP Jco Config in SAP_JCo_Interface Action,
    while searching the BAPI (I am Using search Pattern as BAPI*) I am getting the error like following
    "Returned Content XMl is Empty".
    this URL refer the same problem ... Re: Reg : JCOProxy error:null
    But I am able to connect the SAP R/3 system successfully .. because  from the Existing Transaction the BAPI is called successfully.
    Regards,
    Dhanabal T
    Edited by: Dhanabal Thangavel on Jan 15, 2009 8:30 AM
    Edited by: Dhanabal Thangavel on Jan 15, 2009 8:37 AM

    Hi,
    Are you deploying Office 365 with the latest Office Deployment Tool? Try to download the latest version of ODT from below link, then try again:
    http://www.microsoft.com/en-us/download/details.aspx?id=36778
    A similar issue was resolved here, you might want to have a look:
    http://social.technet.microsoft.com/Forums/en-US/eeb7b577-7868-487a-851d-a6d8c1c6bbda/office-c2r-installation-error-17002?forum=officeitpro
    BTW, Microsoft Office 365 Community > Forums > Deploy Office 365
    is a better source for this kind of problem and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • SAP Open Hub Vs SAP JCO for Extraction

    Hi,
    I would like to clarify for SAP JCO connectivity from some third party tool to SAP BW Server in compare to open hub:
    We want to connect our internal third party tool to SAP BW/BI server by using Java technology through SAP defined JCO. Later we will create RFC and BAPIs at SAP BW server for data extraction. Those defined BAPIs and RFCs we would call from my java programs.
    In such kind of scenario we can extract metadata as well as data for all defined data targets (InfoCube/ODS/DSO/InfoObject) and also can make otherdata load scheduling program to extract data and store it at my non-SAP application.
    As per my understanding since we are using SAP provided JCO so there won't be any issue of license for the same. And Open hub require license if it is used to extract and send data from data targets to third party tools.
    Can someone confirm for license out of above mentioned cases when exactly it would be required. Mainly I would like to know if we doun't use SAP provided JCO for connectivity and data exttraction then license woould be required or not?
    You speedy response would be highly appreciatted.
    Regards,
    Vivek

    hi,
    refer this links
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b6d59590-0201-0010-5f9d-adb9f6b14d80
    help.sap.com/bp_biv270/documentation/SAP_BW_3.5_Functoin_Detail.pdf
    www.sapbasis.ru/library/ep_tech_and_program/ep_tech_and_program-7_8.pdf
    thanks
    naresh

Maybe you are looking for

  • Labels are not clearly visible on Horizontal Axis

    I want to display a full timestamp on the horizontal axis of a LineSeries. But the labels are not clearly visible. The below is the screenshot. I have already tried using LabelRenderer and set a larger font size and also tried increasing the width of

  • Classpath in ear

    Hi, I have a classpath problem with my EAR archive and strange effects. I pack an EAR archive wich contains : - 1 jar containings EJB's - 1 war that use struts - several jars with common objects (DTO) - several jars like common-logging,... + struts j

  • HR Forms Assignment for Check Print & Direct Deposit

    Is it possible to assign HR forms for Print Check (tran code : PC00_M10_FFOC - Print check) and for Direct Deposit (tran code: PC00_M10_FFOT - Create DME ) from tran fbzp or any other way round? What are the pre-requisites for getting the HR Forms in

  • ActiveSync Quarantine Administrator Email Changed - No ECP Link

    For some reason the emails generated by the Exchange 2010 servers when a mobile device is quarantined have changed. We now no longer have the clickable link to open the device within the ECP. Old Email The Exchange ActiveSync service has quarantined

  • Compiz Broken [Fixed]

    Updated this morning, now can't get compiz to start-> leaves me without windows borders or any of the compiz effects. When I try to start fusion-icon I get: * Detected Session: kde * Searching for installed applications... * NVIDIA on Xorg detected,