[
https://issues.jboss.org/browse/AS7-3021?page=com.atlassian.jira.plugin.s...
]
Ondřej Chaloupka commented on AS7-3021:
---------------------------------------
I have the test again and the problem is to get business interface from the remote one.
The old test could be found on:
https://svn.jboss.org/repos/jbossas/projects/ejb3/trunk/testsuite/src/tes...
My implementation of migration is mentioned above. The exception which comes is
following:
{code}
Caused by: java.lang.ClassCastException: $Proxy28 cannot be cast to
org.jboss.as.test.integration.ejb.ejb2.reference.eararchive.Test3Business
at
org.jboss.as.test.integration.ejb.ejb2.reference.eararchive.Test2Bean.testAccess(Test2Bean.java:39)
[multideploy-ejb2.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_23]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_23]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_23]
{code}
The line with error:
https://github.com/ochaloup/jboss-as/blob/JBQA-5483-test-migration-ejb2re...
I have checked my test case and it seems to me fine but I'm not sure whether the
behavior in AS7 is not different from AS5. In case please close the jira.
Reference between ejb2 and ejb3 beans failing
---------------------------------------------
Key: AS7-3021
URL:
https://issues.jboss.org/browse/AS7-3021
Project: Application Server 7
Issue Type: Bug
Reporter: Ondřej Chaloupka
Assignee: John Bailey
The way how it was possible to reference EJB2 beans in EJB3 beans does not work. The
migration of test from AS5 could be check on (2 jars in an ear file):
https://github.com/ochaloup/jboss-as/tree/JBQA-5483-test-migration-ejb2re...
There is 2 problems currently:
- to use EJB2 bean from EJB3 has problem in case that ejb-jar.xml (for EJB3 bean) does
not specify <remote> interface (deploy fails)
- @EJB annotation not bound ejb2 bean via mappedName (see the test example)
--
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