[jboss-jira] [JBoss JIRA] Resolved: (JBAS-7703) org.jboss.test.web.test.JSPAnnotationENCUnitTestCase.testSimpleEjbJSPAnnotations

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Fri Sep 3 11:27:52 EDT 2010


     [ https://jira.jboss.org/browse/JBAS-7703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remy Maucherat resolved JBAS-7703.
----------------------------------

    Resolution: Won't Fix


Support for dynamic beans should not be added back, because it was only added for JSPs. Also, all the backend which handles injectors is not synced.

> org.jboss.test.web.test.JSPAnnotationENCUnitTestCase.testSimpleEjbJSPAnnotations
> --------------------------------------------------------------------------------
>
>                 Key: JBAS-7703
>                 URL: https://jira.jboss.org/browse/JBAS-7703
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service
>            Reporter: Brian Stansberry
>            Assignee: Remy Maucherat
>             Fix For: TBD
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list