Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Blocker Blocker
    • Resolution: Done
    • Affects Version/s: JBossAS-5.0.0.Beta2, JBossAS-5.0.0.Beta4
    • Fix Version/s: JBossAS-5.0.0.CR2
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      Using mappedName on an @EJB in a JSF managed bean doesn't work.
      DefaultAnnotationProcessor ignores mappedName and will then perform a standard field lookup <bean>/<field>, resulting in a NameNotFoundException.

      16:12:46,859 ERROR [JBossInjectionProvider] Injection failed on managed bean.
      javax.naming.NameNotFoundException: com.genloop.web.Projektabrechnung.Projektabrechnung_v13.beans.screen.Partner_Einzelperson_Screen not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:628)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.apache.catalina.util.DefaultAnnotationProcessor.lookupFieldResource(DefaultAnnotationProcessor.java:203)
      at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:139)
      at org.jboss.web.jsf.integration.injection.JBossInjectionProvider.inject(JBossInjectionProvider.java:104)
      at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:298)
      at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:531)
      at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
      at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
      at org.apache.el.parser.AstValue.getValue(AstValue.java:86)
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
      at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
      at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
      at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
      at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)

        Issue Links

          Activity

          Hide
          piokoch
          added a comment -

          I checked JBossAS-5.0.0.Beta4, It still does not work

          Show
          piokoch
          added a comment - I checked JBossAS-5.0.0.Beta4, It still does not work
          Hide
          Dimitris Andreadis
          added a comment -

          Stan, can you take a look?

          Show
          Dimitris Andreadis
          added a comment - Stan, can you take a look?
          Hide
          Dimitris Andreadis
          added a comment -

          Assign to Stan.

          Show
          Dimitris Andreadis
          added a comment - Assign to Stan.
          Hide
          Stan Silvert
          added a comment -

          Scott will look at hooking managed beans into the the mc layer and then assign back to Stan if needed.

          Show
          Stan Silvert
          added a comment - Scott will look at hooking managed beans into the the mc layer and then assign back to Stan if needed.
          Hide
          Dimitris Andreadis
          added a comment -

          If Scott doesn't have time for this, we should move it to CR2.

          Show
          Dimitris Andreadis
          added a comment - If Scott doesn't have time for this, we should move it to CR2.
          Hide
          Scott Stark
          added a comment -

          Its mostly I have not had time to create an example that shows whether or not this is working. Is there a unit test or tck test?

          Show
          Scott Stark
          added a comment - Its mostly I have not had time to create an example that shows whether or not this is working. Is there a unit test or tck test?
          Hide
          Scott Stark
          added a comment -

          The case of a jsf bean using an explicit mapped-name should be handled now, but there is a more general resolution problem with web components not specified in the JBossWebMetaData that needs to be addressed.

          Show
          Scott Stark
          added a comment - The case of a jsf bean using an explicit mapped-name should be handled now, but there is a more general resolution problem with web components not specified in the JBossWebMetaData that needs to be addressed.
          Hide
          Scott Stark
          added a comment -

          The JBossInjectionProvider.inject method should be delegating to the TomcatInjectionContainer.newInstance(Object instance) to avoid duplication annotation processing code.

          Show
          Scott Stark
          added a comment - The JBossInjectionProvider.inject method should be delegating to the TomcatInjectionContainer.newInstance(Object instance) to avoid duplication annotation processing code.
          Hide
          Emanuel Muckenhuber
          added a comment -

          this should be done in trunk now.

          Show
          Emanuel Muckenhuber
          added a comment - this should be done in trunk now.

            People

            • Assignee:
              Emanuel Muckenhuber
              Reporter:
              Carlo de Wolf
            • Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: