In my J2ee project.
I have added Few new methods in the session bean i.e. ConfigSessionBean.java which has correctly been declared in the remote interface i.e. ConfigSession.java .
Project got build successfully but when i created EAP of this project and tried to deployed it on server after building it , i am getting error that:
Error in the remote interface i.e. ConfigSession.java : There is No corresponding business method in the bean class i.e. ConfigSessionBean was found for method createOdc.
However i have implemented all the methods in bean class.
Secondly this error is coming only for the new methods i have added.....and not for the methods which were existing earlier.
Thanks in Advance!!
First check that the methods fro which "no corresponding business method" error has occured are present in the Remote, Home, Local and Local Home Interfcaes of the bean.
With this, I mean that, open up these files and check if the method signatures of the new methods are present in these files.
If you have added, these methods directly in the ConfigSessionBean.java file, then this can be the problm. You should be adding the business methods to the bean using the Session Bean wizard under the ejb-jar.xml node of the project.
This problem can also occur, if it is a DC development, where only the bean file is checked-out.
To resolve this,
1. Expand ejb-jar.xml
2. Expand your session bean,
3. For the methods for which the error is coming,
right click on them and select Propagate to Remote and Local
This should add the signature of the business methods in all the interfaces.
Hope this helps.