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.

Similar Messages

  • Error while calling the BPEL from java program

    Hello All,
    I am tring to call the Synchronous BPEL process from the following code:
    package callbpelfromjava;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.NormalizedMessage;
    import com.oracle.bpel.client.delivery.IDeliveryService;
    import java.util.Map;
    import java.util.Properties;
    import oracle.xml.parser.v2.XMLElement;
    public class BPELCaller {
    public static void main(String args[]){
    String input = "krrish";
    String xmlInput= "<ns1:AccessDBBPELProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/AccessDBBPEL\"><ns1:input>"+input+"</ns1:input></ns1:AccessDBBPELProcessRequest>";
    try{        
    Properties props=new Properties();
    props.setProperty("orabpel.platform","ias_10g");
    props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
    props.setProperty("java.naming.provider.url","opmn:ormi://192.168.137.40:6004/home/orabpel");
    props.setProperty("java.naming.security.principal","oc4jadmin");
    props.setProperty("java.naming.security.credentials","welcome1");
    props.setProperty("dedicated.rmicontext", "true");
    Locator locator = new Locator("default", "bpel", props);
    System.out.println("After creating the locator object......");
    IDeliveryService deliveryService =(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    System.out.println("Befor creating the NormalizedMessage object......");
    NormalizedMessage nm = new NormalizedMessage();
    System.out.println("After creating the NormalizedMessage object.*.*.*...");
    nm.addPart("payload", xmlInput);
    System.out.println("Before creating response object......");
    NormalizedMessage res = deliveryService.request("AccessDBBPEL", "process", nm);
    System.out.println("After calling the AccessDBBPEL .*.*.*...");
    Map payload = res.getPayload();
    System.out.println("BPEL called");
    XMLElement xmlEl=(oracle.xml.parser.v2.XMLElement)payload.get("payload");
    String replyText=xmlEl.getText();
    System.out.println("Reply from BPEL Process>>>>>>>>>>>>> "+replyText);
    catch (Exception e) {
    e.printStackTrace();
    I Included the following jar files:
    Orabpel-ant.jar
    Orabpel.jar
    Orabpel-common.jar
    Orabpel-boot.jar
    Xmlparserv2.jar
    Ejb30.jar
    and getting the exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at callbpelfromjava.BPELCaller.main(BPELCaller.java:39)
    Am I doing any thing wrong ?
    Thanks
    Krrish

    Hello Marc,
    Thank you for the reply.
    I could not find some of the jar files in my Jdeveloper 10.1.3.1.0
    ../lib/olite40.jar
    ../lib/wsclient_extended.jar
    ../lib/log4j-1.2.14.jar
    could you please help me locating these jars.
    or If possible, could you mail me those jars at [email protected]
    I have included all other jar files you have listed and getting the following errror:
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at callbpelfromjava.BPELCaller.main(BPELCaller.java:39)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at callbpelfromjava.BPELCaller.main(BPELCaller.java:39)
    Thanks
    Krrrish

  • Error while installing the SAP J2EE add-on for SAP NW XI installation

    Error while installing the SAP J2EE add-on for SAP NW XI installation  
    Posted: Jan 24, 2007 5:23 PM         Reply      E-mail this post 
    Hello,
    When I am installing the SAP SAP J2EE add-on for SAP NW XI installation I am getting the follwing error:
    CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: Executable /oracle/XID/920_64/bin/sqlplus returns 127.. SOLUTION: See ora_sql_results.log and the Oracle documentation for details
    Could some one help me to resolve this error and install the SAP J2EE add-on?
    Thanks,
    George

    Hi George,
    Kindly use the latest installation Masted in Service market place. That will possibly solve your problem.
    Regards
    Vivek

  • Error while installing the SAP

    i'm having an error poped up everytime i try to install..the error is saying SQL error 942..
    Cannot install anymore wht could be the possible solution to continue witht the installation without making it from the start again.

    D:\usr\sap\DRS\SYS\exe\run/R3load.exe: START OF LOG: 20080228181446
    D:\usr\sap\DRS\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/620/src/R3ld/R3load/R3ldmain.c#5 $ SAP
    D:\usr\sap\DRS\SYS\exe\run/R3load.exe: version R6.20/V1.2
    D:\usr\sap\DRS\SYS\exe\run/R3load.exe -dbcodepage 1100 -i C:\SAPinst ORACLE KERNEL/SAPVIEW.cmd -l C:\SAPinst ORACLE KERNEL/SAPVIEW.log -stop_on_error
    DbSl Trace: Got ORACLE_HOME=C:\oracle\ora81 from environment
    DbSl Trace: Client NLS settings: AMERICAN_AMERICA.WE8DEC
    DbSl Trace: Logon as OPS$-user to get SAPDRS's password
    DbSl Trace: Connecting as /@DRS on connection 0 ...
    DbSl Trace: Attaching to DB Server DRS (con_hdl=0,svchp=002BD8A0,svrhp=002BD6AC)
    DbSl Trace: Starting user session (con_hdl=0,svchp=002BD8A0,srvhp=002BD6AC,usrhp=0030570C)
    DbSl Trace: Now I'm connected to ORACLE
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    DbSl Trace: Disconnecting from connection 0 ...
    DbSl Trace: Closing user session (con_hdl=0,svchp=002BD8A0,usrhp=0030570C)
    DbSl Trace: Now I'm disconnected from ORACLE
    DbSl Trace: Try to connect with default password
    DbSl Trace: Connecting as SAPDRS/<pwd>@DRS on connection 0 ...
    DbSl Trace: Starting user session (con_hdl=0,svchp=002BD8A0,srvhp=002BD6AC,usrhp=0030570C)
    DbSl Trace: Now I'm connected to ORACLE
    DbSl Trace: Database NLS settings: AMERICAN_AMERICA.WE8DEC
    DbSl Trace: Database instance drs is running on SOMBATHLA with ORACLE version 8.1.7.4.1 since 20080228
    (DB) INFO: connected to DB
    (DB) ERROR: DDL statement failed
    (DROP VIEW "/SDF/SMODICOMP")
    DbSlExecute: rc = 103
      (SQL error 942)
      error message returned by DbSl:
    ORA-00942: table or view does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) ERROR: DDL statement failed
    (CREATE VIEW "/SDF/SMODICOMP" ( "OBJ_TYPE" , "SUB_TYPE" , "INT_TYPE" , "OPERATION" , "INACTIVE" , "COMPONENT" , "PS_POSID" , "SUB_NAME" , "INT_NAME" , "PGMID" , "OBJECT" , "OBJ_NAME" , "DEVCLASS" , "FCTR_ID" , "AS4LOCAL"  ) AS SELECT T0001."OBJ_TYPE", T0001."SUB_TYPE", T0001."INT_TYPE", T0001."OPERATION", T0001."INACTIVE",  T0003."COMPONENT", T0004."PS_POSID", T0001."SUB_NAME", T0001."INT_NAME", T0002."PGMID", T0002."OBJECT", T0002."OBJ_NAME", T0003."DEVCLASS", T0004."FCTR_ID", T0004."AS4LOCAL" FROM "SMODILOG" T0001, "TADIR" T0002, "TDEVC" T0003, "DF14L" T0004 WHERE T0001."OBJ_TYPE" = T0002."OBJECT" AND T0001."OBJ_NAME" = T0002."OBJ_NAME" AND T0002."DEVCLASS" = T0003."DEVCLASS" AND T0003."COMPONENT" = T0004."FCTR_ID" AND T0002."PGMID" = 'R3TR' AND T0004."AS4LOCAL" = 'A')
    DbSlExecute: rc = 103
      (SQL error 942)
      error message returned by DbSl:
    ORA-00942: table or view does not exist
    DbSl Trace: Disconnecting from connection 0 ...
    DbSl Trace: Closing user session (con_hdl=0,svchp=002BD8A0,usrhp=0030570C)
    DbSl Trace: Detaching from DB Server (con_hdl=0,svchp=002BD8A0,srvhp=002BD6AC)
    DbSl Trace: Now I'm disconnected from ORACLE
    (DB) INFO: disconnected from DB
    D:\usr\sap\DRS\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    D:\usr\sap\DRS\SYS\exe\run/R3load.exe: END OF LOG: 20080228181447

  • Error while faxing the remittance advice through payment run

    Hi,
    Message number (XS 826) " Cannot Process message : No route From ******(User) to *****(Faxnumber). ", Under what circumstances this error message comes while faxing the remittance advice through payment run, and also how to rectify that?
    Regards,
    Pooja

    Hi Pooja..
    It could be that the node that you are using for Fax is not active. Activate this and part of a problem was solved.
    However, the fax no. has to be in the format <country code><fax no.> 
    This will solve the remaining problem and fax can now be sent.
    Incase you need anything else, please feel free to write to me..
    Good Luck!
    Lucid-Mind...

  • Error while deploying the aplication-jco error

    Hello Experts,
    i know   thousends of questions in jco error. I have followed that threads , still i am getting an error.
    Plz help me out from that error.
    My EP server is running on was 6.20,
    and xi server is running on was 6.40.
    what i have done:
    I have downloaded fightslist  application from sdn.
    i have deployed that application to was 6.40.
    i created one technical system for abap.
    i configured sld.
    i entered service name(sapms147 3600/tcp(this is ides(4.7) serversid and port)) in servicefile in was 6.40 machine.
    when maintaing jco connections the following error has come:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=mlbpsap06 GROUP=PUBLIC R3NAME=I47 MSSERV=sapmsI47 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       service 'sapmsI47' unknown TIME        Fri Dec 01 15:27:10 2006 RELEASE     640 COMPONENT   NI (network interface) VERSION     37 RC          -3 MODULE      ninti.c LINE        494 DETAIL      NiPGetServByName2: service 'sapmsI47' not found SYSTEM CALL getservbyname_r COUNTER     7 
    My doubts are:
    1.where i have to enter service i.e which machine (6.40  or 4.7 machine).
    2.while creating technicalsystem which product i have to choose).
    3while creating jco connection
        whichone i have to choose either dictinory mata data or applicationdata.
        in message server connection which user id & password i have to give means 4.7 userid or xiserver userid & password.
    Plz helpme out from this.
    Thanks in advance.

    Hello Sai,
    NWDS is local means which machine i am using.
    My EP 6.0 SP2 in 172....202 but it is reunning on was 6.20.(mlbpsap02)
    and here was 6.40 ip is 172.....203 IP ,but XI is installed on this server)(mlbpsap03)
    and R/3 ECC ip is 172......201.(mlbpsap01)
    no sneak preview edition and all.
    I have downloaded application(sample flight) in webdynpro.
    and i configured sld in 203(cim test connection is successfull) ip.and also entered the service name(sapmsecc 3600/tcp).After entering the service name i restarted the server
    and created technical system for abap (and here selectiong products ecc components are not there.)
    in webdynpro content admin while maintaing jco , the above error is coming.
    i am unable to find where the problem is
    the main thing is ep is not in was 6.40
    further what i do
    and where i enter the host ip and aliases.

  • Error while initiating the sap in my personal computer

    Dear Pals,
    I have installed sap package in my system, now days, it is giving following error, please help me to over come this problem:
    1. Error: In table TCPDB, there are "0" entries.  showing in syslog.
    2. most of the time disp+work.exe-sapservice R35
    94,816k to 97,100, 93,792K fluctating and taking 99% of CPU's usage.
    Please let me know the exact solution for this problem.
    even with the above problem, I could able to do work on sap on my system.
    Thanking you in anticipation.
    Regards
    Madhu Vaddi

    Rahul,
    Which function module or transaction are you trying to call?
    It looks like that this update only can happen when logged in to SAP itself.. Because it is trying to call the sap gui..
    Possible solutions you can find in following thread:
    Dump during BAPI_ENTRYSHEET_CREATE calling from Portal
    kind regards,
    Robin

  • How to run the jmeter through java program

    i wnat interact jmeter through my java program
    i will pass values to jmeter through my java program
    i wnat retrive the results from jmeter to my java program

    Read the manual.

  • Running Discoverer Desktop query.... via command line

    Hi Everyone,
    Hope all is well,
    I have learned how to run Discoverer using command line.
    My question is:
    ===========
    When you log into Discoverer manually, the parameters values that were last used in the last run display when
    the query opens....
    When i run Discoverer command line, i have to explicitly mention all the parameter names and their values
    If i do not mention the parameters, i get an error message: unresolve parameter...
    I'd really like to run the query command line style WITHOUT mentioning parameters, and wish Discoverer to run
    the query with the default parameters....
    Is this possible...
    Thx for your ideas and advice, sandra

    Hi Tamir,
    sigh...
    tx for writing...
    i just found this post.... says if parm is used in calc, cannot be made optional...
    Parameters - do they have to be mandatory?
    tx, s

  • Error while Reimporting the table

    Hi All,
    I am getting the following error while reimporting the target table.
    java.lang.NullPointerException.
    Can anybody tell me the solution plz.
    Regards,
    Siva

    This ussualy means that object with required ID is missing or OWB thinks it's missing. Try deleting it, and than do the import.

  • Need help in installing the SAP Jco

    Hi All,
    I'm installing HP Change Impact analysis on Quality center and bring SAP in Sync later.One of the installtion step isto install the SAP JCo(Java connector ).I have installed the SAP Jco and on starting the CIT Server..I get a exception messsage
    "SAP Jco is not installed;noclassdeffounderror com\sap\mw\jco\Jco "
    Can anyone help in installing the SAP Jco successfully.
    Thanks,
    Venky

    Hi venkatesh,
    To create JCO follow the procedure.
    Logon to portal>content admn>create JCO destination-->Here u have create Jco for ?Model data and Metadata.
    steps invovled in it.
    1.      Define general data
    2.      Define the J2EE cluster
    3.      Define the data type and connection type
    4.      Define the application server or message server
    5.      Define the security settings.
    Please follow the link for more information.
    http://help.sap.com/saphelp_nw04/helpdata/EN/3a/3b1b40fcdd8f5ce10000000a155106/content.htm
    Regards,
    srikanth

  • Error message in scanning:"The scanning software was launched with improper command- line arguments"

    We have downloaded and installed the HP Photosmart full feature Sostware and Drivers to Photosmart C3183 All-in-one.
    Click the Scan document in Solution Center-
    Error message displayed:
    The scanning software was launched with improper command-line arguments"
    Extended error information: 8,[(-1,0,0)]
    When Hp scan diagnostic utility  was used  - the message was: no scanners installed.
    how can we resolve the scanning problem
    nidataytay

    I have the same problem on a HP 5610 Officejet All-in-One.
    "The scanning software was launched with improper command-line arguments.
    8, [(-1, 0, 0)]"
    What is the solution? The scanner does not work. All other functions, print, fax, copy work from with in the HP Solutions Center software - but not the scanner.

  • JCO.Server Error while trying to execute a RFC program from SAP

    Hi,
    We are connecting to an external registered server program from SAP via Web Methods.
    The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.
    An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.
    We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below
    Number - 10
    LUname - dev01
    TPName - sapgw00
    User - KRAORANE
    Status - CONNECTED
    Symbolic - PRDB2B
    Conversation - 86520353
    Prot - REG
    SAP return code - 0
    CPIC rtn code - 0
    The external program returns results as expected.
    However sometimes the RFC fails and returns the message “JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS”.
    We are not able to figure what exactly is causing this error. Any help will be highly appreciated.
    -Kiran

    Hi,
    Please see the below links..
    JCO.Server Error while trying to execute a RFC program from SAP
    Re: JCO.Servcer could not find server function
    Re: JCO.Server could not find server function 'SET_SLD_DATA'
    /people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
    Re: interfacing SAP with an existing java applications
    http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
    http://www.sapgenie.com/faq/jco.htm
    Regards
    Chilla..

  • I have error while testing the system created from a sap business objects template in SAP portal

    I have error while testing the system created from a sap business objects template in SAP portal. Error text:
    com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: A nested exception occurred. Could not initialize physical connection. Connection Failed: A nested exception occurred. Could not initialize physical connection. Connection Failed: A nested exception occurred. Could not create JCO connection. 'mshost' missing
    I configure integration SAP portal and SAP BW system. All system requirements are complied.
    Environment
    SAP Business Objects 4.0
    SAP BW 7.31
    1.     I configure SSSO between SAP BW and SAP Business Objects Enterprise 4.0
    2.     Next I setting integration SAP PORTAL with SAP BW system
    3.     I download certificate from portal. Select Certificates and key (http://sapserver:port/nwa) – See scren_
    4.     In next window selected Ticketkeystore and Saplogonticketpair-cert( near part window form)
    5. Select Export entry button and binary format file certificate for download. Press download.
    6.     Save certificate file in local PC folder
    In next step need export certificate file to SAP system. Sequence of step:
    1.       Run STRUSTSS02 transaction .
    2.       Chose certificate ->import.
    3.       Select downloaded certificate file
    4.       Select Add to certificate list button and Add to ACL button
    5.       Inter System ID and Client(000)
    6.       In next I download iview sap business objects template into sap portal: System administration->transport->Import. And select and download sap business Objects iview template in .epa format into sap portal.
    7.       Result – downloaded iview.
    8.       In next step I create system from template. System administration->system landscape.
    9. In next step I input parameters for my system in Connector category, Sap business objects and user management categories: See screen _2
    10.   When I created the system and test the connection error occurred: See screen_3
    This issue is important enough. I would be grateful for opinions and ideas. Thanks in advance.

    Did you find a solution?

  • Error while creating the JCO destinations

    Hi All,
    I am getting the following error while creating the JCO destinations.
    <b>There are no message servers maintained in the associated SLD. Please contact your system administrator.</b>
    Please help me in resolving this
    Thanks

    http://help.sap.com/saphelp_erp2005vp/helpdata/en/24/8fa93e08503614e10000000a114084/frameset.htm
    Creating New Web AS ABAP Technical Systems
    /*Reward if helpful
    Message was edited by:
            Anant
    Message was edited by:
            Anant

Maybe you are looking for