[
https://jira.jboss.org/jira/browse/JBMETA-94?page=com.atlassian.jira.plug...
]
Andrew Lee Rubinger commented on JBMETA-94:
-------------------------------------------
Error is not in jboss-metadata itself, same version 1.0.0.35 used.
In working revisions, the stack trace posted in description is never even run through; the
calling code sees ResourceEnvRefs as null, not refs to SessionContext.
@Resource injection for SessionContext is expecting a mapped-name
-----------------------------------------------------------------
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: Alexey Loubyansky
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