Skip to Content
0
Former Member
Aug 30, 2011 at 02:09 PM

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

132 Views

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...
-----