Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Unable to Deploy EJB with JCo code

Built an EJB to call a BAPI. Following is the line of code that gets the JCo client connection.

<hr>

IWDJCOClientConnection client = WDSystemLandscape.getJCOClientConnection("WD_MODELDATA_DEST");

<hr>

Tobe able to comile the code, I've included tc/wd/webdynpro library along with other libraries.

It's compiling and be able to create EAR file. However, when deploying on portal server (Developer workplace), getting the following Error:

<hr>

ERROR: Not updated. Deploy Service returned ERROR:

java.rmi.RemoteException: Cannot deploy application sap.com/ProfileParamEJBEAR..

Reason: Exception during generation of components of application sap.com/ProfileParamEJBEAR in container EJBContainer.; nested exception is:

com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/ProfileParamEJBEAR in container EJBContainer.

at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:569)

at com.sap.engine.services.deploy.server.DeployServiceImpl.deployApplicationDuringUpdate(DeployServiceImpl.java:703)

at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:668)

at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:330)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)

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(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/ProfileParamEJBEAR in container EJBContainer.

at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:621)

at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)

at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)

at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3187)

at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:554)

... 12 more

<b> Caused by: java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/services/sal/sl/api/IWDJCOClientConnection </b> at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)

at java.lang.Class.getConstructors(Class.java:865)

at com.sap.engine.services.ejb.deploy.verifier.BeanClassCheck.check(BeanClassCheck.java:33)

at com.sap.engine.services.ejb.deploy.verifier.session.SessionBeanCheck.check(SessionBeanCheck.java:51)

at com.sap.engine.services.ejb.deploy.verifier.Verifier.checkBean(Verifier.java:82)

at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:46)

at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:254)

at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2163)

at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)

... 18 more

For detailed information see the log file of the Deploy Service.

<hr>

Any ideas? Appreciate your reivew and help!

Thanks

Edited by: Sat Narayana on May 19, 2011 4:54 PM

Edited by: Sat Narayana on May 19, 2011 4:58 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question