Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7726 Resolve JBoss AS 6.0.0 M3 Test Suite Issues
  3. JBAS-7703

org.jboss.test.web.test.JSPAnnotationENCUnitTestCase.testSimpleEjbJSPAnnotations

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: Major Major
    • No Release
    • None
    • Web (Tomcat) service
    • None

      Test case is failing because of a problem in the ENC mapping to global JNDI.

      Test deploys a JSP with the following field:

      @EJB
      private SimpleStateless simpleStateless;

      Populating the field results in an exception with the following critical part:

      javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: SimpleStatelessBean not bound]
      org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1356)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:819)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
      org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44)
      org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75)
      org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
      org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:391)
      org.jboss.web.tomcat.service.TomcatInjectionContainer.processAnnotations(TomcatInjectionContainer.java:445)
      org.jboss.web.tomcat.service.TomcatInjectionContainer.processDynamicBeanAnnotations(TomcatInjectionContainer.java:407)
      org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:290)
      org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:281)
      org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:145)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      The ENC contains a LinkRef of type LinkAddress, content SimpleStatelessBean. Problem is "SimpleStatelessBean" does not match the global JNDI namespace binding for the EJB. The EJB is contained in a jbosstest-jsp-injection.ear and the global JNDI namespace bindings for the EJB are:

      +- jbosstest-jsp-injection (class: org.jnp.interfaces.NamingContext)

      +- SimpleStatelessBean (class: org.jnp.interfaces.NamingContext)
        +- local-org.jboss.test.web.ejb3.SimpleLocal (class: Proxy for: org.jboss.test.web.ejb3.SimpleLocal)
        +- local (class: Proxy for: org.jboss.test.web.ejb3.SimpleLocal)
        +- remote (class: Proxy for: org.jboss.test.web.ejb3.SimpleStateless)
        +- remote-org.jboss.test.web.ejb3.SimpleStateless (class: Proxy for: org.jboss.test.web.ejb3.SimpleStateless)

            rmaucher Remy Maucherat
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: