Your problem seems to be that ejbCreate throws a RemoteException, andyou define it in a @throws line. Because JBoss 4.0 is complaining, trytaking the references to RemoteException out.