[
https://issues.jboss.org/browse/AS7-3588?page=com.atlassian.jira.plugin.s...
]
jaikiran pai commented on AS7-3588:
-----------------------------------
The application is packaging the bean interface in both the .war and the EJB .jar. This
will lead to typical ClassCastException like this one. Move the bean interface to a common
jar and place that jar in the .ear/lib folder so that it's accessible to both the .war
and the EJB jar.
Jboss can't inject a EJB reference
----------------------------------
Key: AS7-3588
URL:
https://issues.jboss.org/browse/AS7-3588
Project: Application Server 7
Issue Type: Bug
Components: EJB
Affects Versions: 7.1.0.CR1b
Environment: Fedora 16,
% java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)
Reporter: Denis Kostousov
Assignee: jaikiran pai
Attachments: test-4-two-ejb.tar.gz
I created a simple ear with ejb and war. The ejb module contains hello-world ejb (ejb
"A"). The war module contains a REST-enabled ejb (ejb "B"). The ejb
"B" has one @EJB-annotated field referring to EJB "A" and one
REST-enabled method. This method proxies an invocation to ejb "B" method.
I use utility "curl" for testing the application. Jboss reports an exception
when I try to invoke the REST-enabled method.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira