The FIX is:
1) Change the business method name to something else in the
interface:
public interface Advice extends EJBObject {
public String getTheMessage() throws
RemoteException;
}
2) Change the business method implementation in the bean class to
match.
3) Change the client code that calls the method, to reflect the new
method name.
4) Undeploy the current version and cleanup the server using;
* run "cleanup" (without the quotes) at the command-line
(this will undeploy your application and take the server back to the
state it was in when installed.)
* Delete your existing .ear file (and any .temp files,
if you see them in your projects or Advice directory)
5) Restart the server and restart deploytool
6) Recreate the application and the bean (using New -->
Enterprise bean) and start over.
7) Be sure to wear your 'lucky t-shirt' while doing this. The R.I
has been known to respond to some forms of superstition. Or maybe it's
just an urban legend...
8) Run the client again and voila! Success! Finally!
Let's go to the waterfront with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|