Hi everyone, I'm trying to deploy some session beans (both stateful and stateless) using the EJB3 deployer, using my existing XML deployment descriptors. However, the deployer always bombs, saying that ejbActivate() has the wrong signature. See below for all code involved:
| 15:31:39,005 INFO [Ejb3DescriptorHandler] adding class annotation javax.ejb.Stateless to com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean [EMAIL PROTECTED] | 15:31:39,005 INFO [Ejb3DescriptorHandler] adding class annotation javax.ejb.Remote to com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean [EMAIL PROTECTED] | 15:31:39,015 INFO [Ejb3DescriptorHandler] adding class annotation javax.ejb.TransactionManagement to com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean [EMAIL PROTECTED] | 15:31:39,015 INFO [Ejb3DescriptorHandler] adding class annotation javax.ejb.RemoteHome to com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean [EMAIL PROTECTED] | 15:31:39,025 INFO [Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.ejb.RemoteBinding to com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean [EMAIL PROTECTED] | 15:31:39,025 INFO [Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.ejb.RemoteBinding to com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean [EMAIL PROTECTED] | 15:31:39,095 INFO [Ejb3DescriptorHandler] adding class annotation javax.ejb.MessageDriven to com.simunex.snx.arcrecmgr.PlotMessageReceiver [EMAIL PROTECTED] | 15:31:39,095 INFO [Ejb3DescriptorHandler] adding class annotation javax.ejb.TransactionManagement to com.simunex.snx.arcrecmgr.PlotMessageReceiver [EMAIL PROTECTED] | 15:31:39,446 INFO [Ejb3Deployment] EJB3 deployment time took: 1272 | ... | 15:31:50,782 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SimuNex-Backend.ear,jar=Backend-ArcRecMgr.jar,name=ArcRecMgrServicesEJB,service=EJB3 with dependencies: | 15:31:51,053 WARN [ServiceController] Problem starting service jboss.j2ee:ear=SimuNex-Backend.ear,jar=Backend-ArcRecMgr.jar,name=ArcRecMgrServicesEJB,service=EJB3 | java.lang.RuntimeException: An exception occurred initialising interceptors for class com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean.getEJBHome | at org.jboss.ejb3.interceptor.EJB3InterceptorsFactory.createPerJoinpoint(EJB3InterceptorsFactory.java:106) | ... | Caused by: java.lang.RuntimeException: @javax.ejb.PostActivate annotated method has the wrong signature - public void com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean.ejbActivate() throws javax.ejb.EJBException | at org.jboss.ejb3.interceptor.InterceptorInfoRepository$ContainerInitialiser.resolveLifecycleMethod(InterceptorInfoRepository.java:753) | ... | | <session> | <ejb-name>ArcRecMgrServicesEJB</ejb-name> | <home>com.simunex.snx.arcrecmgr.ArcRecMgrServicesHome</home> | <remote>com.simunex.snx.arcrecmgr.ArcRecMgrServices</remote> | <ejb-class>com.simunex.snx.arcrecmgr.ArcRecMgrServicesBean</ejb-class> | <session-type>Stateless</session-type> | <transaction-type>Container</transaction-type> | </session> | | public interface ArcRecMgrServices extends EJBObject | {} | | public interface ArcRecMgrServicesHome extends EJBHome | { | com.simunex.snx.arcrecmgr.ArcRecMgrServices create() throws RemoteException, CreateException; | } | | public class ArcRecMgrServicesBean implements SessionBean | { | public ArcRecMgrServicesBean() {} | | public void ejbCreate() throws CreateException {} | | public void setSessionContext(SessionContext sessionContext) throws EJBException {} | | public void ejbRemove() throws EJBException {} | | public void ejbActivate() throws EJBException {} | | public void ejbPassivate() throws EJBException {} | } | I haven't really started implementing anything in this bean. It's there really for an example. But all my other beans have the same problem. Any ideas? This is running on 4.0.4-GA with RC8-FD. Thanks! --Scott View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955340#3955340 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955340 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 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user