I have an entity bean with an ejbCreate & ejbPostCreate with xdoclets as MyEclipse generated by default:
/**
* @throws CreateException Thrown if method fails due to system-level error.
* @throws CreateException
* @throws RemoteException
* @ejb.create-method
*/
public Integer ejbCreate(
Author author,
String title,
String text) throws CreateException, RemoteException {
this.setStoryId(new Integer((new Object()).hashCode()));
this.setTitle(title);
this.setText(text);
this.setPubDate(new Date());
this.setUsername(author.getUsername());
return null;
}
and
/**
* @throws CreateException Thrown if method fails due to system-level error.
*/
public void ejbPostCreate(
Author author,
String title,
String text) throws CreateException {
}
but when I run xdoclet and deploy it in JBoss 4.0, the JBoss prompts:
20:19:40,328 WARN [verifier] EJB spec violation:
Bean : Story
Method : public abstract StoryLocal create(Author, String, String) throws CreateException, RemoteException
Section: 12.2.11
Warning: The methods in the local home interface must not include java.rmi.RemoteException in their throws clause.
Please, if possible, let me know what to do.
Regards
Goodness, this error message is eplains it all. And you are still asking what you are doing wrong? Read!