JBoss Community

5.1.0.GA - Problems with Dependency Injection

created by Pasquale Imbemba in Beginner's Corner - View the full discussion

Hi,

 

I have two JARs deployed on my JBoss AS. JAR1 contains a SLSB which tries to use a SLSB from JAR2 which exposes a LocalBusiness Interface.

 

SLSB from JAR1:

 


@Stateless
@WebService
public class AnaUniEJB implements AURemoteBusiness, AnaUniWebService {


          @PersistenceContext(
                              unitName = "AnaUniDb")
          private EntityManager manager;
          @EJB
          private GVCCLocalBusiness gvcc;


 

SLSB from JAR2:

 


@Stateless
public class GvccBean implements GVCCLocalBusiness {
...

 

When I start JBoss, I get the following message:

 

 

WARN  org.jboss.deployment.MappedReferenceMetaDataResolverDeployer (main) Unresolved references exist in JBossMetaData:

[#AnaUniEJB:AnnotatedEJBReferenceMetaData{name=it.bz.prov.anauni.blogic.AnaUniEJB/gvcc,ejb-ref-type=null,link=null,

ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface it.bz.gvcc.interfaces.GVCCLocalBusiness}]

 

 

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community