[jboss-user] [Beginner's Corner] - 5.1.0.GA - Problems with Dependency Injection
Pasquale Imbemba
do-not-reply at jboss.com
Tue Apr 12 05:50:26 EDT 2011
Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the discussion
"5.1.0.GA - Problems with Dependency Injection"
To view the discussion, visit: http://community.jboss.org/message/599460#599460
--------------------------------------------------------------
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:
{code}
@Stateless
@WebService
public class AnaUniEJB implements AURemoteBusiness, AnaUniWebService {
@PersistenceContext(
unitName = "AnaUniDb")
private EntityManager manager;
@EJB
private GVCCLocalBusiness gvcc;
{code}
SLSB from JAR2:
{code}
@Stateless
public class GvccBean implements GVCCLocalBusiness {
{code}
I've noticed that when I start JBoss, I get the following message:
{code}
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}]
{code}
and this NPE
{code}
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3 state=Create
java.lang.NullPointerException{code}
and finally {code}
ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")
DEPLOYMENTS IN ERROR:
Deployment "jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3" is in error due to the following reason(s): java.lang.NullPointerException, **ERROR**{code}
Where am I doing wrong?
Thanks,
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599460#599460]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110412/78fc6409/attachment.html
More information about the jboss-user
mailing list