Topic
12 replies Latest Post - ‏2011-06-21T16:16:51Z by SystemAdmin
SystemAdmin
SystemAdmin
462 Posts
ACCEPTED ANSWER

Pinned topic CDI problem

‏2011-05-19T15:00:00Z |
Hello,
when trying to deploy a working CDI app into Websphere 8 (it's working ok on Glassfish 3) I get the following exception:

5/19/11 16:53:50:576 CEST 00000025 BeansDeployer E BeansDeployer deploy
org.apache.webbeans.exception.WebBeansConfigurationException: Producer Method Bean must be business method of session bean : WSEjbBean businessLocals=[, ejbName=null
-681601614,Name:generator,WebBeans Type:ENTERPRISE,API Types:http://java.lang.Object,Qualifiers:http://javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named
at org.apache.webbeans.ejb.common.util.EjbUtility.checkProducerMethods(EjbUtility.java:183)
at org.apache.webbeans.ejb.common.util.EjbUtility.fireEvents(EjbUtility.java:93)
at org.apache.webbeans.ejb.WSEjbPlugin.defineSessionBean(WSEjbPlugin.java:375)
at org.apache.webbeans.config.EJBWebBeansConfigurator.defineEjbBean(EJBWebBeansConfigurator.java:71)
at org.apache.webbeans.config.BeansDeployer.defineEnterpriseWebBean(BeansDeployer.java:901)
at org.apache.webbeans.config.BeansDeployer.deploySingleAnnotatedType(BeansDeployer.java:544)
at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:482)
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)

I have seen a similar thread here but in that thread the workarround is by using the Local interface in the Session bean. Htere I think the exception has to do with the injection classes it self. Any ideas?

thanks,
Ignacio
Updated on 2011-06-21T16:16:51Z at 2011-06-21T16:16:51Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    462 Posts
    ACCEPTED ANSWER

    Re: CDI problem

    ‏2011-05-19T16:11:11Z  in response to SystemAdmin
    Hi Ignacio,

    Would it be possible for you to send us the app via an attachment that demonstrates the issue.
    This will help us confirm the root cause of the problem and confidently provide any workarounds.

    --Thanks,
    Rohit Kelapure
    • SystemAdmin
      SystemAdmin
      462 Posts
      ACCEPTED ANSWER

      Re: CDI problem

      ‏2011-05-20T15:44:40Z  in response to SystemAdmin
      Hello,
      thanks for your help.
      I've stripped some of the modules and prepared this demo application that should just deploy. It generates the same exception:
      5/20/11 17:38:50:679 CEST 00000018 BeansDeployer E BeansDeployer deploy
      org.apache.webbeans.exception.WebBeansConfigurationException: Producer Method Bean must be business method of session bean : WSEjbBean businessLocals=[, ejbName=null
      1444589729,Name:generator,WebBeans Type:ENTERPRISE,API Types:http://java.lang.Object,Qualifiers:http://javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named
      at org.apache.webbeans.ejb.common.util.EjbUtility.checkProducerMethods(EjbUtility.java:183)
      at org.apache.webbeans.ejb.common.util.EjbUtility.fireEvents(EjbUtility.java:93)
      at org.apache.webbeans.ejb.WSEjbPlugin.defineSessionBean(WSEjbPlugin.java:375)
      at org.apache.webbeans.config.EJBWebBeansConfigurator.defineEjbBean(EJBWebBeansConfigurator.java:71)
      at org.apache.webbeans.config.BeansDeployer.defineEnterpriseWebBean(BeansDeployer.java:901)
      at org.apache.webbeans.config.BeansDeployer.deploySingleAnnotatedType(BeansDeployer.java:544)
      at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:482)
      at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)
      at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
      It has multiple EJBs so needs a datasource. WAS 8 will ask for the datasource mapping when deploying. I've used the default Derby datasource and seems to go OK.

      Thanks again,
      Ignacio
      • RohitK
        RohitK
        38 Posts
        ACCEPTED ANSWER

        Re: CDI problem

        ‏2011-05-20T23:14:03Z  in response to SystemAdmin
        Dear Ignacio,

        I was able to reproduce your error with the attached application on the most recent beta build of WebSphere Application Server 8.

        After closer inspection of the error, I believe that the workaround mentioned in this post
        https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14601942&#14601942
        will work for you as well.

        I suggest creating an @Local interface and having com.servengine.Generator implement that in this bean.
        i.e. Convert the Generator No Inteface View(NIV) EJB to an EJB that explicitly implements a business interface, with the producer method as one of the methods of the interface.

        This issue will be fixed in WAS v8 once it is released publicly.

        --Thanks,
        Rohit Kelapure
        • SystemAdmin
          SystemAdmin
          462 Posts
          ACCEPTED ANSWER

          Re: CDI problem

          ‏2011-05-22T10:43:43Z  in response to RohitK
          Hello again,
          I've tried creating:

          @Local
          public interface GeneratorLocal
          {
          @Produces @Portalid
          public String getPortalid();
          }

          (Don't know if I should include @Produces and @Portalid in the interface method definition so tried it with and without those annotations)
          Later, modified the class:

          @Named
          @ApplicationScoped
          @Startup
          public class Generator extends com.servengine.util.Generator implements GeneratorLocal
          {
          @Produces @Portalid @Override
          public String getPortalid()
          {
          UserSessionSBean userSession = getUserSession();
          if (userSession == null)
          return "servengine";
          return userSession.getPortalid();
          }
          }

          But I'm still getting the exception:
          5/22/11 12:36:58:938 CEST 00000019 BeansDeployer E BeansDeployer deploy
          org.apache.webbeans.exception.WebBeansConfigurationException: Producer Method Bean must be business method of session bean : WSEjbBean businessLocals=[, ejbName=null
          -852840761,Name:generator,WebBeans Type:ENTERPRISE,API Types:http://java.lang.Object,Qualifiers:http://javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named
          at org.apache.webbeans.ejb.common.util.EjbUtility.checkProducerMethods(EjbUtility.java:183)
          at org.apache.webbeans.ejb.common.util.EjbUtility.fireEvents(EjbUtility.java:93)

          Thanks for your help,
          Ignacio
          • RohitK
            RohitK
            38 Posts
            ACCEPTED ANSWER

            Re: CDI problem

            ‏2011-05-26T14:50:31Z  in response to SystemAdmin
            Dear Ignacio,

            Can you please send us the application after you made the changes.
            Please include the src as well if that is possible.
            Otherwise we have to decompile the class and understand how the injections and EJBs are defined.

            --Thanks,
            Rohit
            • SystemAdmin
              SystemAdmin
              462 Posts
              ACCEPTED ANSWER

              Re: CDI problem

              ‏2011-05-26T16:13:04Z  in response to RohitK
              Hello Rohit,
              please find attached the app with the source code.
              I am getting the following exception at deployment (startup) time of the app:

              5/26/11 17:54:18:705 CEST 0000004c InjectInjecti E CWOWB0102E: A JCDI error has occurred: com.servengine.util.ApplicationUtils_$$_javassist_7 incompatible with javassist.util.proxy.ProxyObject
              5/26/11 17:54:18:706 CEST 0000004c webapp E com.ibm.ws.webcontainer.webapp.WebApp loadLifecycleListeners SRVE0322E: The http://com.servengine.util.WebListenerUtils listener class was found, but a resource injection failure has occurred.
              com.ibm.wsspi.injectionengine.InjectionException: The null factory encountered a problem getting the object instance java.lang.Object@3d9320fbinding object
              at com.ibm.ws.webbeans.services.InjectInjectionBinding.errorHandling(InjectInjectionBinding.java:141)
              at com.ibm.ws.webbeans.services.InjectInjectionBinding.getInjectionObject(InjectInjectionBinding.java:103)
              at com.ibm.wsspi.injectionengine.InjectionBinding.getInjectableObject(InjectionBinding.java:945)
              at com.ibm.wsspi.injectionengine.InjectionTarget.inject(InjectionTarget.java:106)
              at com.ibm.ws.injectionengine.AbstractInjectionEngine.inject(AbstractInjectionEngine.java:821)
              at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.inject(WASAnnotationHelper.java:359)
              at com.ibm.ws.webcontainer.webapp.WebAppImpl.loadListener(WebAppImpl.java:1163)
              at com.ibm.ws.webcontainer.webapp.WebApp.loadLifecycleListeners(WebApp.java:1502)
              at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:408)
              ...

              Caused by: java.lang.ClassCastException: com.servengine.util.ApplicationUtils_$$_javassist_7 incompatible with javassist.util.proxy.ProxyObject
              at org.apache.webbeans.proxy.JavassistProxyFactory.createNormalScopedBeanProxy(JavassistProxyFactory.java:209)
              at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:870)
              at org.apache.webbeans.container.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:777)
              at com.ibm.ws.webbeans.services.IBMBeanManagerImpl.getInjectableReference(IBMBeanManagerImpl.java:172)
              at com.ibm.ws.webbeans.services.InjectInjectionObjectFactory.getInjectableReference(InjectInjectionObjectFactory.java:236)
              at com.ibm.ws.webbeans.services.InjectInjectionObjectFactory.getObjectInstance(InjectInjectionObjectFactory.java:140)
              at com.ibm.ws.webbeans.services.InjectInjectionBinding.getInjectionObject(InjectInjectionBinding.java:100)
              ... 105 more
              After that, app deploys anyway and get the following when accessing main page:
              5/26/11 17:57:53:674 CEST 00000056 InjectionBind E CWNEN0030E: The com.ibm.ws.ejbcontainer.injection.factory.HybridJPAObjectFactory@2f84136 factory encountered a problem getting the object instance Reference Class Name: javax.persistence.EntityManager
              Type: JPAJndiLookupInfo
              Content: PuId=ServEngineDemoWeb#ServEngineDemoWeb.war#mainPersistenceUnit, ServEngineDemoWeb#ServEngineDemoWeb.war#com.servengine.portal.PortalManagerBean/entityManager, isFactory=false, isSFSB=true, PersistenceContextType=Transaction, properties=[]
              binding object.
              5/26/11 17:57:53:678 CEST 00000056 BusinessExcep E CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "getPortalByServerName". Exception data: javax.ejb.EJBException: Injection failure; nested exception is: java.lang.IllegalStateException: EntityManagerFactory has not been created for PU : PuId=ServEngineDemoWeb#ServEngineDemoWeb.war#mainPersistenceUnit
              java.lang.IllegalStateException: EntityManagerFactory has not been created for PU : PuId=ServEngineDemoWeb#ServEngineDemoWeb.war#mainPersistenceUnit
              at com.ibm.ws.jpa.management.JPAPUnitInfo.getEntityManagerFactory(JPAPUnitInfo.java:1432)
              at com.ibm.ws.jpa.management.JPAPUnitInfo.getEntityManagerPool(JPAPUnitInfo.java:1659)
              at com.ibm.ws.jpa.management.JPATxEntityManager.<init>(JPATxEntityManager.java:162)
              at com.ibm.ws.jpa.management.AbstractJPAComponent.getEntityManager(AbstractJPAComponent.java:508)
              at com.ibm.ws.jpa.management.JPAComponentImpl.getEntityManager(JPAComponentImpl.java:128)
              at com.ibm.ws.util.JPAJndiLookupObjectFactory.getObjectInstance(JPAJndiLookupObjectFactory.java:163)
              at com.ibm.wsspi.injectionengine.InjectionBinding.getInjectionObject(InjectionBinding.java:978)

              and some more of the type:
              Caused by: java.lang.ClassCastException: org.apache.webbeans.conversation.ConversationImpl_$$_javassist_8 incompatible with javassist.util.proxy.ProxyObject
              at org.apache.webbeans.proxy.JavassistProxyFactory.createNormalScopedBeanProxy(JavassistProxyFactory.java:213)
              at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:870)
              at org.apache.webbeans.conversation.ConversationManager.getConversationBeanReference(ConversationManager.java:292)
              at org.apache.webbeans.jsf.WebBeansPhaseListener.beforePhase(WebBeansPhaseListener.java:90)
              at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:76)
              at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:159)
              at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
              ... 30 more
              Thanks a lot for your time,
              Ignacio
              • RohitK
                RohitK
                38 Posts
                ACCEPTED ANSWER

                Re: CDI problem

                ‏2011-06-09T20:26:32Z  in response to SystemAdmin
                Dear Ignacio,

                We have revisited your issue again.Your deployment exception
                
                Caused by: java.lang.ClassCastException: org.apache.webbeans.conversation.ConversationImpl_$$_javassist_8 incompatible with javassist.util.proxy.ProxyObject at org.apache.webbeans.proxy.JavassistProxyFactory.createNormalScopedBeanProxy(JavassistProxyFactory.java:213)
                

                occurs at the point in Open Web Beans code where are creating a Javassist proxy for a managed bean.
                This operation is fairly routine and is done for ALL normal scoped beans except interceptors and decorators.

                Are you bundling your own version of Javassist library jar in your application which can lead to ClassCastExceptions if the Javassist classes are loaded by different classloaders ?

                --Thanks,
                Rohit Kelapure,
                IBM Advisory Software Engineer
                Apache OpenWebBeans committer
  • SystemAdmin
    SystemAdmin
    462 Posts
    ACCEPTED ANSWER

    Re: CDI problem

    ‏2011-06-15T22:10:39Z  in response to SystemAdmin
    Hello and thanks again for your reply,
    I have gone through all jar in the lib dir but found no javassist classes there. I anyway made a new reduced version of the app with much less code and libs, but get the same error:
    (I also enclose this new war)

    thanks,
    Ignacio

    6/16/11 0:07:54:727 CEST 0000001b FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /opt8/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_3ce659d_11.06.16_00.07.54.7006521167979465265777.txt com.ibm.ws.webbeans.services.InjectInjectionBinding.getInjectionObject 124
    6/16/11 0:07:54:886 CEST 0000001b webapp E com.ibm.ws.webcontainer.webapp.WebApp loadLifecycleListeners SRVE0322E: The http://com.servengine.util.WebListenerUtils listener class was found, but a resource injection failure has occurred.
    com.ibm.wsspi.injectionengine.InjectionException: The null factory encountered a problem getting the object instance java.lang.Object@3f41c27binding object
    at com.ibm.ws.webbeans.services.InjectInjectionBinding.errorHandling(InjectInjectionBinding.java:141)
    at com.ibm.ws.webbeans.services.InjectInjectionBinding.getInjectionObject(InjectInjectionBinding.java:103)
    at com.ibm.wsspi.injectionengine.InjectionBinding.getInjectableObject(InjectionBinding.java:945)
    at com.ibm.wsspi.injectionengine.InjectionTarget.inject(InjectionTarget.java:106)
    at com.ibm.ws.injectionengine.AbstractInjectionEngine.inject(AbstractInjectionEngine.java:821)
    at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.inject(WASAnnotationHelper.java:359)
    at com.ibm.ws.webcontainer.webapp.WebAppImpl.loadListener(WebAppImpl.java:1163)
    at com.ibm.ws.webcontainer.webapp.WebApp.loadLifecycleListeners(WebApp.java:1502)
    at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:408)
    at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
    at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:744)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:632)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1133)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1343)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:635)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:729)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1324)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2122)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:444)
    at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:387)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:115)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:662)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4678)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4804)
    at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:676)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:620)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1216)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
    at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
    at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
    at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1332)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1225)
    at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
    at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:241)
    at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:560)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
    at org.apache.struts.action.RequestProcessor.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1147)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:722)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:449)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1382)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:191)
    at org.apache.struts.action.RequestProcessor.doForward(Unknown Source)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown Source)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown Source)
    at org.apache.struts.action.RequestProcessor.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1147)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:722)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:449)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:932)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:499)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:320)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:883)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1625)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:197)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:275)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1048)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.readyInboundPostHandshake(SSLConnectionLink.java:716)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyHandshakeCompletedCallback.complete(SSLConnectionLink.java:412)
    at com.ibm.ws.ssl.channel.impl.SSLUtils.handleHandshake(SSLUtils.java:1058)
    at com.ibm.ws.ssl.channel.impl.SSLHandshakeIOCallback.complete(SSLHandshakeIOCallback.java:87)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)
    Caused by: java.lang.ClassCastException: com.servengine.util.ApplicationUtils_$$_javassist_0 incompatible with javassist.util.proxy.ProxyObject
    at org.apache.webbeans.proxy.JavassistProxyFactory.createNormalScopedBeanProxy(JavassistProxyFactory.java:209)
    at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:870)
    at org.apache.webbeans.container.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:777)
    at com.ibm.ws.webbeans.services.IBMBeanManagerImpl.getInjectableReference(IBMBeanManagerImpl.java:172)
    at com.ibm.ws.webbeans.services.InjectInjectionObjectFactory.getInjectableReference(InjectInjectionObjectFactory.java:236)
    at com.ibm.ws.webbeans.services.InjectInjectionObjectFactory.getObjectInstance(InjectInjectionObjectFactory.java:140)
    at com.ibm.ws.webbeans.services.InjectInjectionBinding.getInjectionObject(InjectInjectionBinding.java:100)
    ... 109 more
    • RohitK
      RohitK
      38 Posts
      ACCEPTED ANSWER

      Re: CDI problem

      ‏2011-06-18T22:28:46Z  in response to SystemAdmin
      Dear Ignacio,

      I was able to install both the small and large versions of your application on the WAS 8.0 GM install image after applying some patches. All these issues will be fixed in the next fixpack of WAS v8. We have opened defects for all the issues discovered.

      Please note that WAS 8 Beta has ended and WAS 8.0 is now generally available for production and support. For a free developer version please see http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/index.html

      --Thanks,
      Rohit Kelapure,
      IBM Advisory Software Engineer,
      Apache Open WebBeans Committer
      • RohitK
        RohitK
        38 Posts
        ACCEPTED ANSWER

        Re: CDI problem

        ‏2011-06-18T22:31:28Z  in response to RohitK
        A quick update to the last post. I was able to install and start successfully the ServEngineDemoWeb_war application without any CDI or Injection exceptions on the WAS 8.0 GM + patches (to be available in next fixpack of WAS8)

        --Thanks,
        Rohit Kelapure,
        IBM Advisory Software Engineer
  • SystemAdmin
    SystemAdmin
    462 Posts
    ACCEPTED ANSWER

    Re: CDI problem

    ‏2011-06-21T12:38:32Z  in response to SystemAdmin
    OOps... I didn't know it on G.A. Great news. Just installed along with multiple patches shown by IM and will test my apps on the fly... by the way I've searched and see no WAS v8 forum... (a part from this)
    Now it's GA will there be no dedicated forum for v8 and we have to go through standard IBM channels for bugs and support?

    Thanks a lot,
    Ignacio
    • SystemAdmin
      SystemAdmin
      462 Posts
      ACCEPTED ANSWER

      Re: CDI problem

      ‏2011-06-21T16:16:51Z  in response to SystemAdmin
      Hello Ignacio,

      Yes there will not be a dedicated forum for v8. I suggest going through standard IBM channels i.e. opening PMRs for bugs and support.
      You can still use the general WebSphere http://www.ibm.com/developerworks/forums/forum.jspa?forumID=266 for posting any questions or to seek help.

      --Thanks,
      Rohit Kelapure,
      IBM Advisory Software Engineer