Eclipse + Jboss + Lomboz  And Sap Jco

Hello Friends,
I am using the Eclipse, Jboss with Lomboz plateform to develop the J2EE application using Sap JCO,
But when in my servlet i try to establish the connection with SAP R3 it gives me following error!
HTTP ERROR: 500 com/sap/mw/jco/JCO.
Note: I have put sapjco.jar to project buildpath and also to the WEB-INF\Lib dir,
Dont know what is wronge!
its kind of frustrating for me cause when i try to use some other third party jars (e.g struts) then it works fine,!
Please help me, if some one has used this env, or please suggest the WORKABLE env, for such kind of development!
One another thing, with my plain java file, I can connect to the SAP System, and things works pretty well, it just gives me problem in web context(Servlet),
Many thanks for sharing your comments!
Marek

Hallo Kalle,
Here is the code which I am using,
JCO.Pool pool = JCO.getClientPoolManager().getPool(POOL_NAME);
if (pool == null) {
Properties props = new Properties();
in = new FileInputStream("C:/Programe/eclipse/workspace/TestProject/de/fhnon/pool/logon.properties");
props.load(in);
JCO.addClientPool(POOL_NAME, 5, props);
  mConnection = JCO.getClient(POOL_NAME);
catch (Exception ex) {
ex.printStackTrace(out);
And I am getting this error!
HTTP ERROR: 500 com/sap/mw/jco/JCO$Pool
Even I am passing Printwriter in stackTrace, but it wont give me any futher exception!
PS: and above code segment works just fine with normal java application, it gives me exception in only Web Context!
Pleas help!!
Marek
Message was edited by: Marek Jöricke

Similar Messages

  • Eclipse, Jboss-Ide and XDoclet

    Hello everybody.
    I am just starting with EJB and I am using Eclipse 3.0. I already installed EMF 2.0 and JBOss-Ide 1.3.30 but... When I try to use XDoclet by Project - right click - Properies, I got the next error:
    Unable to create the selected property page
    Reason:
    Pulg-in org.jboss.ide.eclipse.xdoclet.run was unable to load class
    org.jboss.ide.eclipse.xdoclet.run.ui.properties.ConfigurationPropertyPage
    Any idea? Do I have to install anything else?
    Thanks a lot in advanced.
    LJ

    ... probably you've already solved your problem long time ago. Stil, I followed
    the JBossIDE article below and everything worked fine:
    http://www.devx.com/opensource/Article/20242/0/page/1
    Amir

  • 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

  • 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

  • Eclipse Lomboz and oc4j

    hi All,
    Can anyone guide me step by step as to how to configure oc4j standalone with Eclipse 3.0 and Lomboz J2EE plug -in. The default server settings that come with Lomboz has all the classpath settings wrong. I'm using oc4j 10.0.3.
    Thanks in advance.
    Regards,
    Niranjan

    Thanks for the quick reply. I switched to the 904 file and it's amost working. It's having trouble finding one library.
    {CLASSPATH}/javacache/lib/cache.jar
    on my local install, that .jar fiule is located under
    {CLASSPATH}/oc4j/javacache/lib/cache.jar
    Can I just modify the .server file, or am I missing something else.
    _mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problems with Lomboz and eclipse

    I have Eclipse 3.1 installed, latest version of Lomboze and Tomcat 5.0.30.
    I created a new j2ee project, it has indx.jsp in it by default, so i tried to run it, but when ever i try to load tomcat through eclipse I get thrown to debug perspective and
    get LogFactoryIpl.getLogConstructor() line 374
    SOURCE NOT FOUND
    <button for editing source lookup paths>
    error
    I have followed the install guied on lomboz web page
    http://www.objectlearn.com/support/docs/installation/install.jsp
    to the letter except when they where asking to separate binray and source files i didn't have have New Project in options->Java

    it is sipposed to be
    get LogFactoryImpl.getLogConstructor() line 374

  • Migration of SAP jco 2.1.10 - 3.0

    Hey ,
    I am trying to upgrade a middleware component developed in jco 2.1.10 to jco 3.0 .All I have done that is I have replaced the sapjco 3.0 jar files in eclipse and there seems to be typical syntax problems after this , out of which I am unable to resolve some of the syntaxes also these are not provided in the documentation guide (Obtained from SAP market place).
    1) JCO.releaseClient(..) //how to replace this in SAP jco 3.0 cant find anything resemblance
    2) JCO.addClientClientPool(pool_name , pool_size , properties); //how to replace this in SAP jco 3.0 cant find anything resemblance
    3) Further in the documentation it has been said to replace JCO.Client (jco 2.1.10) -> JCoClient (jco 3.0) , but it is showing "JCoClient cannot be resolved to a type" , same with JCO.Server
    Can anyone plz help regarding these syntaxes.
    Thanks in advance

    > 1) JCO.releaseClient(..) //how to replace this in SAP jco 3.0 cant find anything resemblance
    > 2) JCO.addClientClientPool(pool_name , pool_size , properties); //how to replace this in SAP jco 3.0 cant find anything resemblance
    Please read Adapting Connection Management (p.7) in document (see example code).
    > 3) Further in the documentation it has been said to replace JCO.Client (jco 2.1.10) -> JCoClient (jco 3.0) , but it is showing "JCoClient cannot be resolved to a type" , same with JCO.Server
    Can you provide link to document where you found this statement?

  • SAP JCO 3 UnsatisfiedLinkError: /Library/Java/Extensions/libsapjco3.jnilib:

    Hi i'm building an app using Sap JCo 3 migrating from 2.1.8.  I imported the example apps and had problems in eclipse running it.   So i dropped the process all together because of past frustrations with jco i didn't have the time or patience. A month or so later I'm trying again, but this time i packaged my app in a jar then ran java -cp /Library/Java/Extensions/sapjco.jar:myapp.jar StepByStepClient.java and it worked from the command line.
    I was inspired again.  However I wrote a junit test and I still get the same problem (java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path) when running inside eclipse.  Despite it being listed in my classpath in eclipse.  In fact when i try to add the external jar it fails because its already listed.  The native library is in the same folder as sapjco3.jar.
    So i went into project properties, libraries and under JRE System Library, i saw a Native Library Location  and edited it to add /Library/Java/Extensions and tried to run it again.  Now I have different error:
    java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/libsapjco3.jnilib:
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1715)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1030)
         at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.java:423)
         at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.java:292)
         at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:862)
         at com.sap.conn.rfc.driver.CpicDriver.<clinit>(CpicDriver.java:947)
         at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:41)
         at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:213)
         at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:186)
         at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:77)
         at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
         at com.sap.conn.jco.rt.RuntimeEnvironment.setDestinationDataProvider(RuntimeEnvironment.java:117)
         at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:174)......
    Any advice would be appreciated.
    Thanks in advance.
    Joe

    Thanks.  I should have pointed out that I'm running mac os x 10.5.5.
    And I have in /Library/Java/Extensions/ (which is in java.library.path)
    libsapjco3.jnilib       sapjco3.jar
    Also, when i run it from the command line it works fine, however when running from eclipse it fails.  So i guess more specifically this is a question on using Eclipse with JCO3 on Mac.
    Thanks again,
    Joe

  • [Eclipse&JBoss] JBoss doesn't start

    Hi there.
    I encountered a problem in starting JBoss with Eclipse. The strange thing is that I have the same configuration on my laptop and it works. On this second computer it doesn't work and I can't understand why.
    Here my configuration:
    - Eclipse Galileo
    - JDK 1.6
    - JBoss 5.0.0 for jdk6
    I inserted JBoss as a server in Eclipse and then I launched my Enterprise Application in there. The server starts correctly, in more or less 20 seconds. Then I find in the console something like:
    +22:32:07,937 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 23s:111ms+
    It could make me think that JBoss actually started, because there aren't errors. But Eclipse doesn't recognise it, and the bar in the right corner says "Starting JBoss..." since it goes in timeout.
    I found a post in this forum that says to change the timeout, or to replace JBoss with a new copy, or to do the same thing with Eclipse. I have done all these things, pushing the timeout to 1000 seconds, deleting the JBoss folder and replacing it, and deleting the Eclipse folder (but not the workspace). Still getting the same error. And I can't understand why.
    It's weird because I would expect to find an error in the console, but it's error free...
    Could anyone help me? I would be very very grateful!!
    Thank you for your attention.
    Eleanore
    Edited by: Eleanore on May 31, 2010 2:06 PM

    you may want to install jboss-tools.
    [http://www.jboss.org/tools|http://www.jboss.org/tools]
    Among a pile of other helper plugins, it has JbossAS tools. Using the server runtime setup from JBoss Tools, I've never had any problems with any version of JBoss.
    btw: Jboss 5.0 was fairly broken; I would consider upgrading to JBoss 5.1-jdk6 which is far more stable.

  • SAP Jco to PI

    Hi ALL,
    we have some interfaces working currently on SAP Jco ,customer has asked for best practice to move this interfaces from SAP Jco to PI system 7.1.
    Can you pls brief ..wht is this SAP -Jco is  and how does it works ..and what is the right method to move this is in PI 7.1.
    thanks
    Souz

    > Can you pls brief ..wht is this SAP -Jco is  and how does it works ..
    you know google.com?
    http://help.sap.com/saphelp_NW04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
    > and what is the right method to move this is in PI 7.1.
    That cannot be answered without knowing the whole scenario.

  • Crystal Reports and SAP BO XI 3.1 License purshase

    Dear Professionals,
    My company is looking forward to go for Crystal Reports 2008 from BEx.
    I am looking for link for purchasing license for Crystal Reports and SAP BO XI 3.1 as well.
    Besides the above, i am currently working on a free trial version of Crystal Reportds and also installed Crystal Viewer to publish the reports on the portal, but it was asking for Java Connector license key.
    So, in addition to the above i also want to know the pricing for License of Javas Connector (JCo)
    Your help is appreciated.

    Hi
    the Java connector is available here
    service.sap.com/connectors
    Regarding licenses and pricing I would recommend to contact your local SAP sales office.
    Regards
    Stratos

  • OIM - SAP Employee Recon and SAP User Management Connectors vs. OC4J

    In reading through the SAP connector documentation I've found that we cannot use OC4J to run OIM if the 9.0.3 SAP User Management Connector or SAP Employee Recon Connector is used. This is all related to a conflict in JDK versions supported between the SAP JCo (Java Connector) library and OC4J. A thought we've had is to use a Remote Manager for these connectors. Can anyone validate this approach? Is it possible to use a different JDK version with your remote manager? Is there another workaround that anyone is aware of?
    Thanks

    Hi,
    The remote manager should work with different JDKs. We are going to be doing the same thing for one of our adapters.
    As for SAP, I cannot think of another workaround -- we actually abandoned the SAP JCo approach and are doing web services with XI.
    Thanks,
    Deborah
    http://www.linkedin.com/in/dvolk

  • 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

  • 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

  • Xcelsius 2008 SP3 and SAP Netweaver 7.01 Connection

    Hello everyone,
    Im getting the next spanish error "El sistema al que está conectado en estos momentos no es BW 7.02 ni posterior. Desconéctese y elija otro sistema.". Just when im trying to connect xcelsius 2008 and sap netweaver 7.01. I get this error when i try to set a SAP Netweaver BW Connection.
    My configuration is like this:
    Server Side:
    Windows Server Enterprise 2008 SP1 64 bits
    BusinessObjects Enterprise XI 3.1 SP2 FixPack 4
    Java Connector (Jco): 2.1.8 32 bits
    Integration Kit for SAP BusinessObjects XI 3.1 SP2 FixPack 4
    SAP GUI 710 Patch Level 14
    Client Side:
    OS: Windows 7
    Xcelsius Designer 2008
    Thanks a lot to everyone
    ramonms

    Ashish thanks for your reply,
    im not using a live office connection, my problem is from xcelsius directly.
    I try to connect using the sap native client (SAP LOGON APPLICATION) and i have no problem, it works fine.
    in the client side i also have installed SAP GUI 710 patch level 11 but also i tested with level patch 14
    thanks
    ramonms

Maybe you are looking for