[jboss-jira] [JBoss JIRA] Updated: (JBMETA-94) @Resource injection for SessionContext is expecting a mapped-name, should not be processed at all

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Wed Aug 13 02:09:40 EDT 2008


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

Andrew Lee Rubinger updated JBMETA-94:
--------------------------------------

     Summary: @Resource injection for SessionContext is expecting a mapped-name, should not be processed at all  (was: @Resource injection for SessionContext is expecting a mapped-name)
    Assignee: Ales Justin  (was: Alexey Loubyansky)


> @Resource injection for SessionContext is expecting a mapped-name, should not be processed at all
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBMETA-94
>                 URL: https://jira.jboss.org/jira/browse/JBMETA-94
>             Project: JBoss Metadata
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.0.Beta35
>            Reporter: Andrew Lee Rubinger
>            Assignee: Ales Justin
>            Priority: Blocker
>
> Source is:
> @Resource
> public void setSessionContext(SessionContext sc)  {
>   sctx = sc;
> }
> jboss-metadata populates ResourceEnvironmentReferenceMetaData properly, given that there's no mapped-name.
> However, EJB3 Module in AS has error:
> java.lang.RuntimeException: mapped-name is required for sessionContext of deployment someEjbTest
>     at org.jboss.ejb3.client.ClientResourceHandler.loadXmlResourceEnvRefs(ClientResourceHandler.java:181)
>     at org.jboss.ejb3.client.ClientResourceHandler.loadXml(ClientResourceHandler.java:212)
>     at org.jboss.ejb3.client.ClientContainer.processMetadata(ClientContainer.java:341)
>     at org.jboss.ejb3.client.ClientContainer.<init>(ClientContainer.java:123)
>     at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:83)
>     at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:184)
>     at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:177)
> This is a regression; was some code removed which populates mapped-name, given that the injection target is javax.ejb.SessionContext?

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

        



More information about the jboss-jira mailing list