1 Reply Latest reply on Oct 23, 2008 4:30 PM by Denis Forveille

    SEAM 2.1  +WAS 6.1 (non ejb3) = CNF javax.ejb.PostActivate

    Denis Forveille Novice

      We tried to move our seam 2.0.2SP1 app to seam 2.1 with websphere v6.1.0.17 without the EJB 3.0 feature pack (ie seam in POJO mode...) and we receive the following exception:


      java.lang.TypeNotPresentException: Type javax.ejb.PostActivate not present


      which is a ejb3 class, not present in was v6.1.0.17...


      WebApp        E   Exception caught while initializing context 
      java.lang.RuntimeException: Could not create Component: achatPromotionUtils
           at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1155)
           at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1071)
           at org.jboss.seam.init.Initialization.init(Initialization.java:720)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:645)
           at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:319)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)
           at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
           at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1303)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
           at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1486)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4042)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4139)
           at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1491)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:618)
           at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
           at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:618)
           at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
           at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1090)
           at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
           at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
           at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
           at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1081)
           at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
           at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:974)
           at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
           at com.ibm.ws.management.connector.rmi.RMIConnectorService.invoke(RMIConnectorService.java:179)
           at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie.invoke(_RMIConnectorService_Tie.java:395)
           at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie._invoke(_RMIConnectorService_Tie.java:160)
           at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:621)
           at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:474)
           at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
           at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
           at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2701)
           at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2575)
           at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
           at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
           at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
      Caused by: java.lang.TypeNotPresentException: Type javax.ejb.PostActivate not present
           at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
           at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
           at com.ibm.oti.reflect.Method.getDeclaredAnnotations(Method.java:31)
           at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:722)
           at java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObject.java:191)
           at com.ibm.oti.reflect.Method.getAnnotation(Method.java:20)
           at java.lang.reflect.Method.getAnnotation(Method.java:711)
           at java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:187)
           at org.jboss.seam.intercept.Interceptor.init(Interceptor.java:130)
           at org.jboss.seam.intercept.Interceptor.<init>(Interceptor.java:97)
           at org.jboss.seam.Component.initDefaultInterceptors(Component.java:1029)
           at org.jboss.seam.Component.initInterceptors(Component.java:927)
           at org.jboss.seam.Component.<init>(Component.java:251)
           at org.jboss.seam.Component.<init>(Component.java:205)
           at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1139)
           ... 53 more
      Caused by: java.lang.ClassNotFoundException: javax.ejb.PostActivate
           at java.lang.Class.forNameImpl(Native Method)
           at java.lang.Class.forName(Class.java:163)
           at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:33)



      This occurs with the following component:


      @Name("achatPromotionUtils")
      @Scope(ScopeType.APPLICATION)
      @Startup
      public class AchatPromotionUtils implements Serializable {
         private static final long             serialVersionUID = 1L;
      ...