JCO with miniSAP???

Hi!
Has anybody tried to use jCO with miniSAP? Or shortly, is it possible?
I've done all what is said. I was able to compile the first of example codes came in the package but when I tried to execute it, the error "Exception in thread "main" java.lang.NoClassDefFoundError: Example1" emerged.
I have only changed the user info to open the connection in the original code and so I am sure that the only public class name in the code is "Example1".
Thanks...
*--Serdar

I installed MiniSap WAS 6.2 and try to connected java application with JCO.
But I didn't obtain sucessfull.
Need to do something in Minisap ? sm59 ?  My user need special authorization ?
The error on the screen is "User or password is wrong ".
Thank you,
Rogerio

Similar Messages

  • JCO with miniSAP ? Need something special ?

    I installed MiniSap WAS 6.2 and try to connected java application with JCO.
    But I didn't obtain sucessfull.
    Need to do something in Minisap ? sm59 ? My user need special authorization ?
    The error on the screen is "User or password is wrong ".
    Thank you,
    Rogerio

    Gregor,
    I'm just accessing it on my local pc. No plans of opening up the port in my router for the apache server.  Anyway here is the code for my servlet.
    //Add a connection pool to the specified system
    JCO.addClientPool(SID, 100, "000", "bcuser","minisap","EN","ALPHA","00");
    //Alias for this pool, Max. number of connections, SAP client, userid, password, language, host name
    repository = JCO.createRepository("MYRepository",SID);
    I have even tried the "SAP*", "pass" user and it still did not work.
    I have another question for the host name. I assume that I could use a IP address for there one?  If not I also tried to define a name in the hosts file on windows xp.
    I assume that my parameters are correct since the error is about the user not authorized??

  • Error in creation of JCO with Load balancing server

    Hi,
    We are using a ABAP user base for our WEBAS server 6.40 (with ABAP+JAVA). i have created a Public group in concerned ECC 5.0 system. I have already configured SLD, and then i maintain data supplier bridge in SLD and run RZ70 in ECC 5.0 system to load system information.. i can see details in SLD ..
    now i am trying to create JCO connections .. here i am unable to create JCO with load balancing option..  i get
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=<servername> GROUP=PUBLIC R3NAME=SID MSSERV=sapms<SID> PCS=1 ERROR       service 'sapms<SID>' unknown TIME        Fri Jun 16 12:41:20 2006 RELEASE     640 COMPONENT   NI (network interface) VERSION     37 RC          -3 MODULE      ninti.c LINE        505 DETAIL      NiPGetServByName2: service 'sapms<SID>' not found SYSTEM CALL getservbyname_r COUNTER     1
    i am able to create single server JCO, but it fails in load balancing.. is there anything i have  missed out in settings...
    Thanks and regards,
    Sudhir

    Thanks, Bogdan Rokosa
    I have the same problem,and solved it following the steps provided by Bogdan Rokosa  :
    you must insert an entry for your R3 system
    (like: sapms<SID> 3600/tcp)
    in services file
    (C:\WINDOWS\system32\drivers\etc\services) on Java WAS.
    I test the Jco successful without restart J2EE Engine.

  • Problems with Unicode in extending JCo with JNI/librfc

    Hello,
    Problem:
    We are using JCo for communication with a SAP-System. We have an extension written in C using JNI for handling callbacks. Let's call it cb.dll.
    This extension is not unicode enabled. Now we have to connect to an unicode SAP-System. We do it with JCo, so the connection is in unicode mode. The result is, that our cb.dll does not work.
    If you want to enable the dll to handle unicode, the last step beside reengineering the C-code, is to link it against the librfc32u.dll.
    But then the communication in the cb.dll with SAP does not work, because the initial connection was made with JCo an JCo is using librfc32.dll. The cb.dll uses the RFC-handle from JCo.
    Question:
    How communicates JCo with a unicode SAP-System using librfc32 (non unicode) ?
    How can I use this method for our own dll ?
    thanks in advance

    The current settings are
    select * from nls_database_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.1.0.3.0
    20 rows selected
    I use NVARCHAR2 as Datatype.
    My problem is as follows ...
    I use the oracle Table as external Data Table in Access. When I copy a russian text from an Access Table in the oracle Table I see only ??????. In the Access Table I see the correct russian text.

  • Problem with minisap 4.6 installation..Please help..URGENT!!

    Hi,
    Can somebody help me with this problem? when i start to install the minisap into my windows XP, i encounter this problem. may i know what shoud i put into the field?
    <img src="http://i35.photobucket.com/albums/d194/keyepvc/minisap1.jpg">
    This is the next step after the above screen. May i know what to enter into the field?
    <img src="http://i35.photobucket.com/albums/d194/keyepvc/minisap2.jpg">
    Or is there anything wrong with my PC? btw, i just reformat my window.
    Thank you.. Your help is much appreciated.

    Hi,
    Check the link below links
    http://www.christianfeichtner.com/documents/install_mbs.html
    Mini SAP Installation
    http://www.sap-img.com/basis/common-mini-sap-installation-question-and-answers.htm
    Hope this will help u..
    Regards,
    Omkar.

  • Using JCO with callback

    Hi,
    I'm not sure if there may be a better forum for my problem as I'm not using JCO on an application server (but I couldn't find a better one).
    I'm currently trying to call some function modules that use callbacks. in order to have a easy understandable example I tried to call the function "STFC_CONNECTION_BACK". Well, as soon as I request a callback the program terminates with some kind of error (the error itself doesn't help me).
    Has anybode here ever tried to implement necessary RFC-Callbacks using JCO? I'm curious that i couldn't find any documentation about callbacks regarding JCO while LIBRFC or .NET-Connector seem to cover that topic.
    Any helpful answer will be rewarded,
    thanks in advance,
    Michael

    Hi,
    After getting the value list from the r/3 you need to addthe value list into an arraylist and then set the arraylist in the application scope.
    Now use the html:options collection tag :
    eg
    <html:select property="selectedItem">     <html:options collection="customers" value="id" label="name" /></html:select>
    Where customers is the bean name.
    This is will solve the problem
    Thanks
    Ritu

  • JCO with poolmanager in a clustered server environment

    Hi experts: 
    The issue I am having is the following: we are creating connection pools for each user that logs in.  In other words, a connection pool would be created for both userids XXXX and YYYY if both logged into the system.  As per best practices, all connections are being managed by one PoolManager.  We release connections as we go.
    This works fine for a single server.  However, now that we are moving to the cluster, we are trying to figure out the best way to implement.  The best option seems to be to implement the PoolManager as a cluster singleton, and then do a JNDI lookup every time we want to access.  That way, if a managed server goes up or down, we don't have to worry about it.  Any other option we could think of was sketchy, like trying to create the connection pool on each managed server with our code, since servers could (in theory) be added or removed at any time (including after the connection pools were established for a user), and as soon as a server is added to the cluster, the load balancers would begin routing requests to it.
    Long story short, as much as JCO has been used, we can't really find many examples of people using the PoolManager as a singleton.
    So can this be done? and if so are there any tricks to getting this accomplished?
    thanks,
    chris.

    I am not familior with anything called Quartz but I think this issue should be handled task scheduler itself.
    In the place I work the task scheduler we use (I house developed one) has following approach
    Once the task is posted it is in "posted" state and once a batch server (Thats what we call the service that executes it) picks a task up it changes the state to "executing". Once the execution is complete it change the state to "ready". If an exception occures it will abort the operation and set the state to "error".
    Batch Server can pick up only the tasks with state "Posted" so two services will not pick up same task.
    By the way the tasks with error state can be reset to posted state by the user.
    probably you need a solution like this. Either you have to develop one or find one which considers the existance of multiple execution services

  • NoClassDefFoundError - SAP JCo with Websphere on AIX

    We are having problems deploying a Web application on WebSphere v6 with AIX, however it works fine on the localhost Windows platform.
    We have created a shared library for the SAP JCo which points to the sapjco.jar and the 2 .so native files. We are getting a NoClassDefFoundError which I think means the JAR file is being found in the classpath, but the dependant files are not. Looking at the Class Loader details it shows that the Shared Library is being found.
    Does anyone have experience of this problem? Any ideas what we could try to get WebSphere to recognise the .so files?
    Many thanks

    /usr/sap/trans
    /usr/sap/<SID>
    /db2/<SID>/sapdata1
    /db2/<SID>/sapdata2
    /db2/<SID>/sapdata3
    /db2/<SID>/sapdata4
    /db2/<SID>/log_dir
    /db2/<SID>/log"_archive

  • Sap connector with Minisap

    Hi,
    I'm need implement a project for access sap r/3 with visual studio 2005. I will use SAP connector dll, but I need to test the access first in MiniSAP. Is this possible?
    Regards
    Balbino

    Dear Guys
    I am using SAP 4.6 C and do not want to upgrade it for time being. Basically working on personel project and trying to connect SAP4.6C with a webserver using ASP.NET and .NET Connectors installled in middleware server.
    WebServer (ASP.NET) -
    > Middleware (C#) -
    > SAP4.6C
    I want to transfer data from webserver in XML format to middleware and from middleware to SAP using RFC or IDOC.
    My question is regarding event triggering that is when an XML file is submitted to Middleware, how middleware can know that a file has been reached and will be sent to SAP.
    I have already tried the direct call from WebServer to SAP and it working fine but I want a middleware solution in between in form of C# and .NET Connector.

  • Sap JCO with Servlet

    Hi All,
    Trying to fetch  data from sap server using JCO,Below is the Code, and i am giving correct username, password and hostaddress.
    i am unable to fetch the data from Sap server.
    Function module ---ZLBSFUNCTION
    Table name----  ZLBS_EMMOBILE
    Name,Plotnum,City,State,Citycode,Country are the Field of the table...
    Function Module is as Below
    FUNCTION-pool ZLBSFUNCTION .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(NAME) LIKE  ZLBS_EMMOBILE-NAME
    *"  TABLES
    *"      ITAB STRUCTURE  ZLBSEM
    FUNCTION ZLBSFUNCTION.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(NAME) LIKE  ZLBS_EMMOBILE-NAME
    *"  TABLES
    *"      ITAB STRUCTURE  ZLBSEM
    SELECT NAME PLOTNUM STATE CITY CITYCODE COUNTRY FROM ZLBS_EMMOBILE into TABLE ITAB .
    ENDFUNCTION.
    Servlet code is as Below
    IRepository repository;
            try
          // add a connection pool to the sap system
          JCO.addClientPool(LBS,10,"100","USERName","Passwd","EN","Host name","00");
          repository = JCO.createRepository("myRepository",LBS);// new repository
          IFunctionTemplate ftemplate = repository.getFunctionTemplate("ZLBSFUNCTION");
          JCO.Function function = new JCO.Function(ftemplate);
          JCO.Client client = JCO.getClient(LBS);
          JCO.ParameterList input = function.getImportParameterList();
          client.execute(function);
          JCO.Table dataTable = function.getTableParameterList().getTable("ZLBS_EMMOBILE");
            for(int i=0;i<dataTable.getNumRows();i++){
                 dataTable.setRow(i);
               if(dataTable.getString("Name")=="star"){
                   out.println(dataTable.getString("Name"));
                   out.println(dataTable.getString("Plotnum"));
                   out.println(dataTable.getString("City"));
                   out.println(dataTable.getString("State"));
                   out.println(dataTable.getString("Citycode"));
                   out.println(dataTable.getString("Country"));
    } //end of if.
    } //end of for
    } //end of try
    Would like to know anything Wrong with this Code,,, or anything Else That we need to code.........
    Please help us....
    Thanks and Regards
      Preethi

    Hi all.........
    Thanks for your reply........
    I resolved it on my own. yes i am getting the data from backend to client.
    there was a problem in my function module.
    Regards
    Preethi

  • How do I get started replacing JCo with JCA?

    Hi all,
    After upgrading to EP SP15 I'm now reading that I should stop using JCo for client connection and start using JCA.
    I've searched but can't seem to find any step-by-step procedure that shows me how to convert my existing Java code to be JCA-compliant. 
    Basically, I was doing client = poolEntry.getClient() and then using the client.execute("myrfc").  What code change is required to replace that code with JCA code?
    Thanks,
    Mike

    Hey Mike,
    Glad I could help!!
    There have been a couple things that I have noticed.  If you are using a table as an input parameter, use a table.close() once you are done filling it and before adding it to the importParams("table_name",table) code.  I have two scenarios for that.  Here is the first:
    for (int j = 0; j < exportTable.length; j++) {
         table.insertRow();
         table.setString("VAR1", exportTable[j][0]);
         table.setString("VAR2", exportTable[j][1]);
    table.close();
    importParams.put("EXTAB", table);
    ,and the second one:
    table.insertRow();          
    table.setString("VAR1", "This is variable 1");
    table.setString("VAR2", "This is variable 2");
    table.close();
    importParams.put("EXTAB", table);
    We are running EP6 SP14.  In that booklet, it doesn't show using table.close().  You may not have to use it, but for me, I couldn't get it to work any other way.  Once it was working, I removed it, and I would receive nothing.
    Other than that right now, I haven't really run into any other problems... yet... haha.
    Cheers,
    Kevin

  • Problems with MiniSAP-Installation JAVA and ABAP Stack

    Hi,
    I am a freelance SAP application developer had bought the book and SAP Interactive Forms by Adobe, in order to incorporate me into the topic. In chapter 3, the installation and configuration of an exercise Systemes is described so that you can perform the practical part. I downloaded at the website mentioned the installation files and have performed the installation as described in the book. I have also stopped the service as described in SAP DB WWW.
    The installation of the JAVA section runs smoothly and is operational after the installation. The ABAP part crashes, however. According to my research, it is because the ABAP part is also intends to install a MAXDB, although the Java-part has realized this already. Anyone know what I need to do, so I only described as the application server of the ABAP part of getting installed and not again the MAXDB.
    Regards

    Hello Reza,
    Just to clarify, Best practise is to update your kernel to the latest before you start patching in your system.
    So download SAPEXE.SAR (Database independent kernel package), SAPEXEDB (Database dependent kernel package) and IGSEXE.SAR (IGS Package) from the SMP. kernel is dependent on your operating system and database and therefore make sure you download the right package otherwise you'll end up in messing up the system.
    follow SAPnote # 19466 for help.
    Once you are done with the kernel update then patch you Abap stack by SPAM and JAva stack by JSPM.
    I hope that makes things clear.
    Best Regards
    NIraj

  • Problems reading DB with minisap

    Hey!
    I've bought the book "ABAP Objects" and been trying to get the minisap to work. I've installed all the parts without any errors, but when I start the Object Viewer, I can't see the example DB (S_FLIGHT...).
    When I start SAP MBS before logging on, I get this message:
    C:\MBS>set DIR_LIBRARY=.
    C:\MBS>set MSSQL_DBNAME=MBS
    C:\MBS>rem del pxastat
    C:\MBS>start /B msg_server.exe pf=MBS_D00.pfl
    C:\MBS>disp+work.exe break pf=MBS_D00.pfl
    dp Ctrl-C enabled
    rslgwr1(21): Searching for overlap point in pre-existing SysLog
    Tue Jun 07 10:42:09 2005
    SemSpinning: 13268 usec for 642906 loops -> 48 loops per usec
    dp Ctrl-C enabled
    dp Ctrl-C enabled
    gw Ctrl-C enabled
    Tue Jun 07 10:42:12 2005
    SemSpinning: 14276 usec for 642902 loops -> 45 loops per usec
    Tue Jun 07 10:42:12 2005
    SemSpinning: 15277 usec for 642904 loops -> 42 loops per usec
    Hope someone can help me!

    Check if you have DMA mode changed to PIO mode in the device properties.

  • Problems with MiniSAP

    Hello!
    I am a freelance SAP application developer and had bought the book SAP Interactive Forms by Adobe, in order to incorporate me into the topic. In chapter 3, the installation and configuration of an exercise Systemes is described so that you can perform the practical part. I downloaded at the website mentioned the installation files and have performed the installation as described in the book. The installation of the JAVA section runs smoothly and is operational after the installation. The ABAP part crashes, however. According to my research, it is because the ABAP part is also intends to install a MAXDB, although the Java-part has realized this already. I have also stopped the service as described in SAP DB WWW. Anyone know what I need to do, so I only described as the application server of the ABAP part of getting installed and not again the MAXDB.
    Regards

    Hello!
    I am a freelance SAP application developer and had bought the book SAP Interactive Forms by Adobe, in order to incorporate me into the topic. In chapter 3, the installation and configuration of an exercise Systemes is described so that you can perform the practical part. I downloaded at the website mentioned the installation files and have performed the installation as described in the book. The installation of the JAVA section runs smoothly and is operational after the installation. The ABAP part crashes, however. According to my research, it is because the ABAP part is also intends to install a MAXDB, although the Java-part has realized this already. I have also stopped the service as described in SAP DB WWW. Anyone know what I need to do, so I only described as the application server of the ABAP part of getting installed and not again the MAXDB.
    Regards

  • Error in creating JCo connection with destination type'Load-Balanced Con'

    Hi,
    I am working on webdynpro application(NW 04s), i need to connect with the backend system(ECC 6.0) using model.I configured my SLD and created technical system successfully.
    The technical system got created with an error:
    CIM_ERR_ALREADY_EXISTS: Instance already exists: SAP_BCApplicationServer.CreationClassName="SAP_BCApplicationServer",Name="ID1.Number.01.HostName.ahsides"
    But the system got created so I proceeded with Jco connection creation:
    I need to create 2 Jco connections for this,
    First with Data Type 'Application Data' & Destination Type 'Single-Server connection'. Second with Data Type 'Data Dictionary' & Destination type 'Load-balanced Connection'. 
    The first Jco with 'Single-Server connection' got created successfully and ping and test is also successfull.
    The second Jco connection with 'Load-Balanced Connection' got created successfull but it is throwing error while pinging and testing.
    Ping Error : Failed to ping JCo destination 'WD_EMPLOYEE_RFC_METADATA_DEST'.
    Test Error : com.sap.mw.jco.JCO$Exception: (102) JCO_ERROR_COMMUNICATION: JCO.Client not connected in repository call
    Please help me in this.This problem was with 'Load-Balanced Connection' only.

    Hi,
    Have you taken a look at the file %windir%\system32\drivers\etc\services?
    If you haven't, try and find the line sapms<sid>, where sid is de SID of the system you-re trying to reach.
    If the line isn't there write it down like this.
    sapms<sid>     36<nr>/tcp
    That works for me.

Maybe you are looking for