cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Deploying Entity EJB in SAP J2EE Engine 6.2

Former Member
0 Kudos

Hi,

I am using SAP J2EE Engine 6.2 SP1 for deploying my application.

I have deployed the session EJBs which are working perfectly. But while deploying the Entity Beans (using Graphical Deploy tool) I am getting following error message

-


04/04/17 09:48:07 - ***********************************************************

04/04/17 09:48:07 - Applying user role management mappings.

04/04/17 09:48:07 - Start updating EAR-file...C:\SAP_J2EEngine6.20\deploying\bscprojx\bscprojx1.ear

04/04/17 09:48:07 - Temp files deleted...

04/04/17 09:48:07 - Ear-file updated successfully for 130ms.

04/04/17 09:48:09 - Start deploying ...

04/04/17 09:48:09 - Ear-file uploaded to server for 130ms.

04/04/17 09:48:10 - ERROR: ID90506: NOT Deployed. ERROR returned from deploy service :

com.inqmy.services.deploy.container.DeploymentException: ID020207 Incorrect Bean.

          • The following error(s) occurred in the home interface of "MD"***** :

ID020044:The ejbFind<method> methods must include the javax.ejb.FinderException in their throws clause.

ID020108:The finder method "findByHelpField" must match an ejbFind<> method.

at com.inqmy.services.ejb.deploy.tools.DeployGenerator.generateCommon(DeployGenerator.java:492)

at com.inqmy.services.ejb.deploy.tools.DeployGenerator.generateOrd(DeployGenerator.java:260)

at com.inqmy.services.ejb.deploy.tools.DeployGenerator.generate(DeployGenerator.java:186)

at com.inqmy.services.ejb.AdminImpl.deploy(AdminImpl.java:491)

at com.inqmy.services.deploy.server.DeployServiceImpl.makeEJBeans(DeployServiceImpl.java:2625)

at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeployServiceImpl.java:366)

at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:131)

at com.inqmy.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:184)

at com.inqmy.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:163)

at com.inqmy.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:121)

at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:34)

at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:45)

at java.security.AccessController.doPrivileged(Native Method)

at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:126)

04/04/17 09:48:10 - ***********************************************************

-


But, in Home interface the finder methods are throwing FinderException. Also the signature of Finder method matches that in Bean class. (I have deployed same EJB on different application server).

Here is the code of the Home interface

-


package MasterData;

import javax.ejb.EJBHome;

import java.rmi.RemoteException;

import javax.ejb.CreateException;

import javax.ejb.FinderException;

import java.util.Collection;

public interface MDHome extends EJBHome

{

public MD create(String hfield,String hfieldvalue,String hdesc) throws RemoteException, CreateException;

public MD findByPrimaryKey(int key) throws FinderException, RemoteException;

public Collection findByHelpField(String value) throws FinderException, RemoteException;

}

-


I am not able to trace the cause of error.

please help me.

Thanks in advance

Abhijit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I got the same error with SAP Basic Java Libs deployment.(One of the steps before IPC Web Applications can be deployed.)

All the deployment steps go fine except the last one -> (Deployment action for Business Communication Broker ICI) which says

The remote method "processFunction" must match an EJB class method. See the snap shot for details.

How do I really fix it?

Regards,

Ruchika

Former Member
0 Kudos

Hi,

There was problem in Bean class. Correcting it resolved the problem

Thanks anyway

Abhijit