-
1. Re: CDI-@ViewScope and Glassfish v3.0.1
kernstock Nov 26, 2010 10:06 AM (in response to kernstock)I simply move/copied the .jar with the cdi-extension to the lib directory of the EAR indstead of just holding it in the webapp.
That did teh trick - now it works like a charm.
Thomas
-
2. Re: CDI-@ViewScope and Glassfish v3.0.1
kernstock Nov 26, 2010 4:52 PM (in response to kernstock)After repeating the same procedure in my real project, I cannot create any EJBs from the ejb.jar.
Caused by: javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:720)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:200)
at com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSessionContainer.java:443)
... 65 more
Caused by: javax.ejb.CreateException: Could not create stateless EJB
at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:528)
at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:90)
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:718)
... 67 more
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:1171)
at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:132)
at org.glassfish.weld.services.JCDIServiceImpl.createJCDIInjectionContext(JCDIServiceImpl.java:145)
at org.glassfish.weld.services.JCDIServiceImpl.createJCDIInjectionContext(JCDIServiceImpl.java:122)
at com.sun.ejb.containers.BaseContainer.createEjbInstanceAndContext(BaseContainer.java:1616)
at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:469)
... 69 moreSo again a problem with the BeanManager.
Does anybody have a functioning project with a war and an ejb packed up in an ear that uses cdi-extensions mechanism like seam3, codi .....
regards
Thomas -
3. Re: CDI-@ViewScope and Glassfish v3.0.1
skorejo May 3, 2018 10:09 AM (in response to kernstock)Did you resolve this issue? if yes please tell me how did you solve it as i am facing the similar issue.