[
https://jira.jboss.org/browse/JBAS-8644?page=com.atlassian.jira.plugin.sy...
]
Pete Muir moved WELD-758 to JBAS-8644:
--------------------------------------
Project: JBoss Application Server (was: Weld)
Key: JBAS-8644 (was: WELD-758)
Affects Version/s: (was: 1.1.0.Beta2)
Security: Public
Component/s: Weld/CDI
(was: Proxies)
@SessionBean name attribute usage results in WELD-000079
--------------------------------------------------------
Key: JBAS-8644
URL:
https://jira.jboss.org/browse/JBAS-8644
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Weld/CDI
Reporter: Nicklas Karlsson
Using something like
@Stateful(name="LTKKirjautumistoiminnot")
results in
WELD-000079 Could not find the EJB in JNDI: class
fi.affecto.kake.kirjautuminen.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$C:$Java$AS$jboss-6$0$0-SNAPSHOT$server$default$deploy$KaKe$war"-SessionBean-Kirjautumistoiminnot_$$_WeldProxy
with a stacktrace like
org.jboss.weld.exceptions.CreationException: WELD-000079 Could not find the EJB in JNDI:
class
fi.affecto.kake.kirjautuminen.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$C:$Java$AS$jboss-6$0$0-SNAPSHOT$server$default$deploy$KaKe$war"-SessionBean-Kirjautumistoiminnot_$$_WeldProxy
at org.jboss.weld.bean.SessionBean.create(SessionBean.java:344)
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:117)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:669)
at org.jboss.weld.bean.AbstractReceiverBean.getReceiver(AbstractReceiverBean.java:83)
at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:141)
at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:360)
at
org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:59)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:669)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:707)
at fi.affecto.kake.sys.apu.BeanUtil.getInstance(BeanUtil.java:35)
at fi.affecto.kake.sys.jsf.KaKePhaseListener.asetaMDCtiedot(KaKePhaseListener.java:51)
at fi.affecto.kake.sys.jsf.KaKePhaseListener.beforePhase(KaKePhaseListener.java:30)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Error retreiving EJB from JNDI
Kirjautumistoiminnot (SFSB); BeanClass: class
fi.affecto.kake.kirjautuminen.Kirjautumistoiminnot; Local Business Interfaces: [Business
interface: class fi.affecto.kake.kirjautuminen.Kirjautumistoiminnot]
at org.jboss.weld.integration.ejb.JBossEjbServices.resolveEjb(JBossEjbServices.java:71)
at org.jboss.weld.bean.SessionBean.createReference(SessionBean.java:452)
at
org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:76)
at org.jboss.weld.bean.SessionBean.create(SessionBean.java:327)
... 41 more
Caused by: javax.naming.NamingException: Could not dereference object [Root exception is
java.lang.RuntimeException: Could not push the context
jboss.j2ee:jar=LTK.war,name=Kirjautumistoiminnot,service=EJB3 from its current state
**ERROR** to INSTALLED]
at
org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
org.jboss.weld.integration.ejb.JBossSessionObjectReference.<init>(JBossSessionObjectReference.java:44)
at org.jboss.weld.integration.ejb.JBossEjbServices.resolveEjb(JBossEjbServices.java:67)
... 44 more
Caused by: java.lang.RuntimeException: Could not push the context
jboss.j2ee:jar=LTK.war,name=Kirjautumistoiminnot,service=EJB3 from its current state
**ERROR** to INSTALLED
at
org.jboss.ejb3.nointerface.impl.view.factory.StatefulNoInterfaceViewFacade.createNoInterfaceView(StatefulNoInterfaceViewFacade.java:99)
at
org.jboss.ejb3.nointerface.impl.objectfactory.StatefulNoInterfaceViewObjectFactory.getObjectInstance(StatefulNoInterfaceViewObjectFactory.java:73)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)
at
org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)
... 49 more
Caused by: java.lang.UnsupportedOperationException: Cannot invoke set on unmodifiable
wrapper.
at
org.jboss.dependency.spi.helpers.UnmodifiableControllerContext.setRequiredState(UnmodifiableControllerContext.java:149)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:936)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
at
org.jboss.ejb3.nointerface.impl.view.factory.StatefulNoInterfaceViewFacade.createNoInterfaceView(StatefulNoInterfaceViewFacade.java:95)
... 53 more
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira