On Fri, 2006-07-14 at 10:22, tomasz wrote: > hi all, > > I use xdoclet 1.2.3 with ejb, and my problem is : > > I try to add my custom exception to session bean > > /* @ejb.bean name="UserService" > * description="UserService" > * display-name="UserService" > * jndi-name="UserService" > * type="Stateless" > * transaction-type="Container" > * > */ > > public class UserServiceImpl implements SessionBean { > > /* > * @ejb.interface-method > */
Those aren't javadoc comments - they should begin with /**, not /*. If you fix that, do you get the same error? Regards, Andrew. > public void blockUser(LoginTO loginTO) throws ConnectException, > DataUpdateException, DataFormatException, DataNotFoundException { > .. > } > > and then i generate interfaces and descriptors with use xdoclet. > > during deploying my app on jboos, the excpetion occured: > > 10:54:30,995 WARN [verifier] EJB spec violation: > Bean : UserService > Method : public abstract void blockUser(LoginTO) throws RemoteException > Section: 7.11.5 > Warning: All the exceptions defined in the throws clause of the matching > method of the session bean class must be defined in the throws clause of the > method of the remote interface. > > In fact , there is no my custo exception in Interfaces, e.g.: > > public interface UserServiceLocal > extends javax.ejb.EJBLocalObject > { > public void blockUser(LoginTO loginTO ) ; > } > > What is wrong in my example and what should i do to run it with automatically > generated Interfaces? > > thanks in advance > > regards > > Tom ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user