[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3618) CNFE javax.ejb.PostActivate with non-ejb3 seam app in websphere v6.1.0.17

Denis Forveille (JIRA) jira-events at lists.jboss.org
Fri Oct 24 10:56:20 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBSEAM-3618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12435389#action_12435389 ] 

Denis Forveille commented on JBSEAM-3618:
-----------------------------------------

Pete,
I downloaded the new version of the Component class but not the HibernateSessionProxyInterceptor class as I can not compile it due to the "import javax.annotation.PostConstruct;" statement that relates to ejb3
The problem still exists. Same problem at thesame point
The "if (interceptor.isInterceptorEnabled())" test on line 961 always return false it seems (?) and so we never enter in the block...


> CNFE javax.ejb.PostActivate with non-ejb3 seam app in websphere v6.1.0.17
> -------------------------------------------------------------------------
>
>                 Key: JBSEAM-3618
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3618
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.1.0.GA
>         Environment: Seam v2.1.0GA, WebSphere v6.1.0.17 (Without EJB3 FP), RF v3.2.2, facelets 1.1.14, JSF RI 1.2_09
>            Reporter: Denis Forveille
>            Assignee: Pete Muir
>            Priority: Critical
>             Fix For: 2.1.0.SP1, 2.1.1.CR1
>
>
> We cannot start our app migrated from v2.0.2SP1 to v2.1.0GA, we receive a ClassNotFoundException: javax.ejb.PostActivate when the application starts. The app is deployed in WebSphere v6.1.0.17 without the EJB3 feature pack
> The aplication works fine with seam v2.0.2SP1
> It seems that some (internal?0) component is trying to access an EJB3 class even if we deploy our app in a non-EJB3 container...
> The component in question is defined as 
> @Name("achatPromotionUtils")
> @Scope(ScopeType.APPLICATION)
> @Startup
> public class AchatPromotionUtils implements Serializable {
>    private static final long             serialVersionUID = 1L;
> ...
> The exception we receive on startup is :
> 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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list