Well, I think I got things running and am just sorta looking for an explanation. I deleted all my ejb.home-method tags and my ejb's load fine in my JBoss server and was just wondering if anyone knew why that might be w/ the following class bean definition. Otherwise, if I put /** * @ejb.home-method */ tags before ejbRemove(), ejbActivate(), etc... I get errors when trying to load my ejb's in the app server.
--- /** * * @ejb.bean * name="comp/RegisterDevice" * display-name="Register Device Session Bean" * type="Stateless" * view-type="remote" * jndi-name="ejb/comp/RegisterDevice" * * @ejb.home * extends="javax.ejb.EJBHome" * remote-class="com.place.management.ejb.session.RegisterDeviceHome" * * @ejb.interface * extends="javax.ejb.EJBObject" * remote-class="com.place.management.ejb.session.RegisterDevice" */ public class RegisterDeviceBean implements SessionBean { private transient SessionContext context = null; public void setSessionContext(SessionContext ctx) { context = ctx; } public void unsetSessionContext() throws EJBException { context = null; } /** * @ejb.create-method */ public void ejbCreate() throws CreateException { } // note: if i put @ejb.home-method here, I get the following errors. public void ejbRemove() throws EJBException { } public void ejbActivate() throws EJBException { } public void ejbPassivate() throws EJBException { } public boolean register(Device dev) { return true; } } 10:52:12,557 ERROR [StatelessSessionContainer] Initialization failed jboss.j2ee:jndiName=ejb/comp/RegisterDevice,service=EJB java.lang.NoSuchMethodException: org.jboss.ejb.StatelessSessionContainer.removeHome() at java.lang.Class.getMethod(Class.java:978) at org.jboss.ejb.StatelessSessionContainer.setupHomeMapping(StatelessSessionContainer.java:488) at org.jboss.ejb.StatelessSessionContainer.createService(StatelessSessionContainer.java:142) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:219) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user