Skip to Content
author's profile photo Former Member
Former Member

java.lang.ClassNotFoundException: com.sap.mw.jco.IRepository

Hi,

We have deployed the EJB on WAS 6.4.0. We are making a JCO call and getting this remote exception. We are not sure how to provide the sapjco.jar together with our EAR. We are using NWDS to generate the EAR file.

regards,

ss

-


at com.mycompany.uk.xi.rfc.preprocessor.ejb.PreProcessorBean.initialise(PreProcessorBean.java:167)
        at com.mycompany.uk.xi.rfc.preprocessor.ejb.PreProcessorBean.startProcessing(PreProcessorBean.java:81)
        at com.mycompany.uk.xi.rfc.preprocessor.ejb.PreProcessorObjectImpl0_0.startProcessing(PreProcessorObjectImpl0_0.java:119)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: com.sap.mw.jco.IRepository^M
------------------------- Loader Info -------------------------^M
ClassLoader name: [sap.com/R4EarProject]^M
 Parent loader name: [Frame ClassLoader]^M
 References:^M
   common:service:http;service:servlet_jsp^M
   service:ejb^M
   common:service:iiop;service:naming;service:p4;service:ts^M
   service:jmsconnector^M
   library:jsse^M
   library:servlet^M
   common:library:IAIKSecurity;library:activation;library:mail;library:tc~sec~ssl^M
   library:ejb20^M
   library:j2eeca^M
   library:jms^M
   library:opensql^M
   common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore^M
   interface:resourcecontext_api^M
   interface:webservices^M
   interface:cross^M
   interface:ejbserialization^M
 Resources:^M
   /usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/R4EarProject/EJBContainer/clientjars/clientR4EjbModuleProject.jar^M
   /usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/R4EarProject/EJBContainer/applicationjars/R4EjbModuleProject.jar^M
 Loading model: {parent,references,local}^M
---------------------------------------------------------------
        at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
        ... 16 more

; nested exception is:
        java.lang.NoClassDefFoundError: com.sap.mw.jco.IRepository
        at com.sap.engine.services.ejb.exceptions.BaseRemoteException.writeReplace(BaseRemoteException.java:276)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1061)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1042)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:309)
        at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:144)
        at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:322)
        at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
        at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
        at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
        at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
        at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
        at java.security.AccessController.doPrivileged(AccessController.java:219)
        at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
        at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.NoClassDefFoundError: com.sap.mw.jco.IRepository
        at java.lang.J9VMInternals.verifyImpl(Native Method)
        at java.lang.J9VMInternals.verify(J9VMInternals.java:69)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
        at com.mycompany.uk.xi.rfc.preprocessor.ejb.PreProcessorBean.initialise(PreProcessorBean.java:167)
        at com.mycompany.uk.xi.rfc.preprocessor.ejb.PreProcessorBean.startProcessing(PreProcessorBean.java:81)
        at com.mycompany.uk.xi.rfc.preprocessor.ejb.PreProcessorObjectImpl0_0.startProcessing(PreProcessorObjectImpl0_0.java:119)
        at com.mycompany.uk.xi.rfc.preprocessor.ejb.PreProcessorObjectImpl0_0p4_Skel.dispatch(PreProcessorObjectImpl0_0p4_Skel.java:111)
        at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
        ... 8 more
Caused by: java.lang.ClassNotFoundException: com.sap.mw.jco.IRepository^M
------------------------- Loader Info -------------------------^M
ClassLoader name: [sap.com/R4EarProject]^M
 Parent loader name: [Frame ClassLoader]^M
 References:^M
   common:service:http;service:servlet_jsp^M
   service:ejb^M
   common:service:iiop;service:naming;service:p4;service:ts^M
   service:jmsconnector^M
   library:jsse^M
   library:servlet^M
   common:library:IAIKSecurity;library:activation;library:mail;library:tc~sec~ssl^M
   library:ejb20^M
   library:j2eeca^M
   library:jms^M
   library:opensql^M
   common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore^M
   interface:resourcecontext_api^M
   interface:webservices^M
   interface:cross^M
   interface:ejbserialization^M
 Resources:^M
   /usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/R4EarProject/EJBContainer/clientjars/clientR4EjbModuleProject.jar^M
   /usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/R4EarProject/EJBContainer/applicationjars/R4EjbModuleProject.jar^M
 Loading model: {parent,references,local}^M
---------------------------------------------------------------
        at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
        ... 16 more
class load: java/util/Hashtable$2
class load: java/util/Collections$SynchronizedList
class load: java/util/Collections$SynchronizedRandomAccessList
Tue Aug 30 14:02:49 BST 2011: XI Dispatcher - Waiting for threads to end...
Tue Aug 30 14:02:49 BST 2011: XI Dispatcher - Active threads: 0
Tue Aug 30 14:02:49 BST 2011: XI Dispatcher - All threads ended...
-----

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 15, 2011 at 04:23 PM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 03, 2012 at 01:08 PM

    this is due to wrong jco version. the web server being used and the jco file has version issues.

    you need to be on same patch level.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.