This content has been marked as final.
Show 6 replies
-
1. @Service Annotation Prblm with EJB
jaikiran Mar 14, 2011 6:47 AM (in response to anishnath)Which version of JBoss AS?
-
2. @Service Annotation Prblm with EJB
anishnath Mar 14, 2011 6:50 AM (in response to jaikiran)It's JBoss AS 6, and i'm deploying in farm folder,
Anish
-
3. @Service Annotation Prblm with EJB
jaikiran Mar 14, 2011 6:55 AM (in response to anishnath)Anish Nath wrote:
Q: does the DI is supported in the @Service(org.jboss.annotation.ejb.Service) Ejb's
You are using the wrong annotation for AS6. Starting AS5, those JBoss EJB3 annotations have been moved to org.jboss.ejb3.annotation.* package. So you should be using @org.jboss.ejb3.annotation.Service. You can find these annotations in JBOSS_HOME/client/jboss-ejb3-ext-api.jar file.
-
4. @Service Annotation Prblm with EJB
anishnath Mar 14, 2011 7:06 AM (in response to jaikiran)have changed the Annotion getting the same exception attached log file in the Original post
Anish
-
5. @Service Annotation Prblm with EJB
anishnath Mar 15, 2011 4:18 AM (in response to jaikiran)Hi JaiKiran,
Any reasolution if you can provide for this problem
Anish
-
6. Re: @Service Annotation Prblm with EJB
wolfc Mar 30, 2011 5:31 PM (in response to anishnath)java.lang.IllegalArgumentException: failed to set value Proxy to jboss.j2ee:jar=TestMDB.jar,name=TestEjb,service=EJB3 implementing [interface com.testmdb.TestEjbImpl] on field com.testmdb.TestEjb com.testmdb.TestService.testejb
public class TestService { @EJB(mappedName="ejb/TestEjb") TestEjb testejb; }
It can't inject a TestEjbImpl into TestService.testEjb. TestEjb is not a business view.