cancel
Showing results for 
Search instead for 
Did you mean: 

Error during .Ear deployment..

Former Member
0 Kudos

Hi all,

I m creating an EJB project. for which i have created a java dictionary project,which contains 2 tables.

For those 2 tables i have made 2 corresponding entity beans.i have establishd a relation b/w them via a common field.

later on i have created a java project which contains wrapper class.

After doin this I have Created a session bean in Ejb project ,which contains business method via this method m storing all the values of first table into database.

When I deploy .Ear file it gives an exception

. Reason: Incorrect application sap.com/PPm_KEar:Error in the remote interface com.sap.PPm_Kejb.Session_Kejb of bean Session_KejbBean: No corresponding business method in the bean class com.sap.PPm_Kejb.Session_KejbBean was found for method SaveM.; nested exception is: com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/PPm_KEar:Error in the remote interface com.sap.PPm_Kejb.Session_Kejb of bean Session_KejbBean: No corresponding business method in the bean class com.sap.PPm_Kejb.Session_KejbBean was found for method SaveM.

Regards,

Khushboo

Accepted Solutions (1)

Accepted Solutions (1)

siddharth_jain
Active Contributor
0 Kudos

Hi,

Please make sure that in EJB Remote interface you have declared the methods and methods are throwing RemoteException.

Regards,

Siddharth Jain

Answers (3)

Answers (3)

siddharth_jain
Active Contributor
0 Kudos

Hi ,

In addition to the Earlier reply if in your Bean class your method is throwing some exception then in remote and Local interface throwing the same exception along with RemoteException(only for Remote Interface) might solve the Problem.

Regards,

Siddharth

Former Member
0 Kudos

Hi all,

Thanks for ur timely rply..thre was sme problem wid my local interface.now its resolved

Regards,

Khushboo

Former Member
0 Kudos

hi ,

Go thru this thread

the thread name:Ejb

the person there had a similar problm the solution given to it was.

Hi,

after creation of business method are you try to change the return type for the same method...??

Coz it's not like that you can't change but some time this type of activity may land you in such situation.

Do one thing copy the code of you respective method. then delete the method from the EJB and try to recreate the method again.

May be this solve your problem, coz in past i had face same issue and did the same.

Hope this may help you.

Former Member
0 Kudos

Hi nikhil,

I havnt change anything aftr method creation. n i have tried wid d above thread which u have refrred me.

Regards,

Khushboo

Former Member
0 Kudos

Hi,

Do you have this method

"No corresponding business method in the bean class com.sap.PPm_Kejb.Session_KejbBean was found for method SaveM"

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

yeah,I have this SaveM method in session bean. for save method.I referrd Ejb car rental application for writing this method.

Regards,

Khushboo

Former Member
0 Kudos

The syntax may be different in remote interface and bean class for this method.

cross check the method return type, parameters and name

Former Member
0 Kudos

Hi,

Remote interface generates code automatically during method creation..so return type ,method n parameters r the same for remote interface n bean class.

Regards,

Khushboo