Hi!
I'm using glassfish for a J2EE website.
I use EJB3 container and session beans for interfaces.
Since I have put the declaration:
@EJB private CountryFacadeLocal countryFacade;
in my class, the code compile, but don't deploy on the platform, the exception is:
Cannot resolve reference Unresolved Ejb-Ref trustbnwar.listCountry/cou
ntryFacade
@jndi: @null@gateways.inputs.ejbc
ontainer.C
ountryFaca
deLocal@Se
ssion@null
Exception occured in J2EEC Phasejava.lang.RuntimeExce
ption: Cannot resolve reference Unresolved Ejb-Ref trustbnwar.listCountry/cou
ntryFacade
@jndi: @null@gateways.inputs.ejbc
ontainer.C
ountryFaca
deLocal@Se
ssion@null
com.sun.enterprise.deploym
ent.backen
d.IASDeplo
ymentExcep
tion: Error loading deployment descriptors for module [TrustBN-war] -- Cannot resolve reference Unresolved Ejb-Ref trustbnwar.listCountry/cou
ntryFacade
@jndi: @null@gateways.inputs.ejbc
ontainer.C
ountryFaca
deLocal@Se
ssion@null
at com.sun.enterprise.deploym
ent.backen
d.Deployer
.loadDescr
iptors(Dep
loyer.java
:390)
at com.sun.enterprise.deploym
ent.backen
d.ModuleDe
ployer.loa
dDescripto
rs(ModuleD
eployer.ja
va:423)
at com.sun.enterprise.deploym
ent.backen
d.WebModul
eDeployer.
deploy(Web
ModuleDepl
oyer.java:
157)
at com.sun.enterprise.deploym
ent.backen
d.ModuleDe
ployer.doR
equestFini
sh(ModuleD
eployer.ja
va:179)
at com.sun.enterprise.deploym
ent.phasin
g.J2EECPha
se.runPhas
e(J2EECPha
se.java:19
1)
at com.sun.enterprise.deploym
ent.phasin
g.Deployme
ntPhase.ex
ecutePhase
(Deploymen
tPhase.jav
a:108)
at com.sun.enterprise.deploym
ent.phasin
g.PEDeploy
mentServic
e.executeP
hases(PEDe
ploymentSe
rvice.java
:919)
at com.sun.enterprise.deploym
ent.phasin
g.PEDeploy
mentServic
e.deploy(P
EDeploymen
tService.j
ava:279)
at com.sun.enterprise.deploym
ent.phasin
g.PEDeploy
mentServic
e.deploy(P
EDeploymen
tService.j
ava:788)
at com.sun.enterprise.managem
ent.deploy
.DeployThr
ead.deploy
(DeployThr
ead.java:1
87)
at com.sun.enterprise.managem
ent.deploy
.DeployThr
ead.run(De
ployThread
.java:223)
Caused by: java.lang.RuntimeException
: Cannot resolve reference Unresolved Ejb-Ref trustbnwar.listCountry/cou
ntryFacade
@jndi: @null@gateways.inputs.ejbc
ontainer.C
ountryFaca
deLocal@Se
ssion@null
at com.sun.enterprise.deploym
ent.util.E
jbBundleVa
lidator.ac
cept(EjbBu
ndleValida
tor.java:4
30)
at com.sun.enterprise.deploym
ent.WebBun
dleDescrip
tor.visit(
WebBundleD
escriptor.
java:1406)
at com.sun.enterprise.deploym
ent.archiv
ist.WebArc
hivist.val
idate(WebA
rchivist.j
ava:188)
at com.sun.enterprise.deploym
ent.archiv
ist.Applic
ationArchi
vist.openA
rchive(App
licationAr
chivist.ja
va:790)
at com.sun.enterprise.deploym
ent.archiv
ist.Applic
ationArchi
vist.openA
rchive(App
licationAr
chivist.ja
va:744)
at com.sun.enterprise.deploym
ent.backen
d.Deployer
.loadDescr
iptors(Dep
loyer.java
:349)
... 10 more
What is the problem?