Hi,
I have a problem where I can't the cause for it. I have a JBoss 4.2.3 application server running
in a clustered configuration. Ihave about 160 session and entity beans and also 2 ears running with no problem. Due to some open projects I needed to create 2 new entity beans.
98% of the beans stil use thel EJB 2.0 spec, a few use EJB 3.0 spec. The new beans also use the EJB 2.0 spec. Both beans are deployed succesful. But the moment I try to create a home instance I receive a NameNotFoundException.
This is what I get during server start:
...
17:34:16,480 INFO [EjbModule] Deploying CoReductionDetail
17:34:16,511 INFO [ProxyFactory] Bound EJB Home 'CoReductionDetail' to jndi 'CoReductionDetail'
17:34:16,511 INFO [EJBDeployer] Deployed: file:/C:/jboss-4.2.3.GA/se
rver/dev/d
eploy/CoRe
ductionDet
ailEnterpr
iseBean.ja
r
17:34:16,652 INFO [EjbModule] Deploying CoReductionHead
17:34:16,668 INFO [ProxyFactory] Bound EJB Home 'CoReductionHead' to jndi 'CoReductionHead'
17:34:16,668 INFO [EJBDeployer] Deployed: file:/C:/jboss-4.2.3.GA/se
rver/dev/d
eploy/CoRe
ductionHea
dEnterpris
eBean.jar
...
This is the message I recieve when I try to instanciate the bean:
java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: Could not instantiate bean; nested exception is: javax.ejb.EJBException: javax.ejb.EJBException: javax.naming.NameNotFoundE
xception: CoReductionHead not bound; nested exception is: javax.ejb.EJBException: javax.naming.NameNotFoundE
xception: CoReductionHead not bound; nested exception is: javax.naming.NameNotFoundE
xception: CoReductionHead not bound
at org.jboss.ejb.plugins.LogI
nterceptor
.handleExc
eption(Log
Intercepto
r.java:365
)
at org.jboss.ejb.plugins.LogI
nterceptor
.invokeHom
e(LogInter
ceptor.jav
a:136)
at org.jboss.ejb.plugins.Clea
nShutdownI
nterceptor
.invokeHom
e(CleanShu
tdownInter
ceptor.jav
a:212)
at org.jboss.ejb.plugins.Prox
yFactoryFi
nderInterc
eptor.invo
keHome(Pro
xyFactoryF
inderInter
ceptor.jav
a:107)
at org.jboss.ejb.SessionConta
iner.inter
nalInvokeH
ome(Sessio
nContainer
.java:637)
at org.jboss.ejb.Container.in
voke(Conta
iner.java:
981)
at sun.reflect.GeneratedMetho
dAccessor1
22.invoke(
Unknown Source)
at sun.reflect.DelegatingMeth
odAccessor
Impl.invok
e(Delegati
ngMethodAc
cessorImpl
.java:25)
at java.lang.reflect.Method.i
nvoke(Meth
od.java:59
7)
at org.jboss.mx.interceptor.R
eflectedDi
spatcher.i
nvoke(Refl
ectedDispa
tcher.java
:155)
at org.jboss.mx.server.Invoca
tion.dispa
tch(Invoca
tion.java:
94)
at org.jboss.mx.server.Invoca
tion.invok
e(Invocati
on.java:86
)
at org.jboss.mx.server.Abstra
ctMBeanInv
oker.invok
e(Abstract
MBeanInvok
er.java:26
4)
at org.jboss.mx.server.MBeanS
erverImpl.
invoke(MBe
anServerIm
pl.java:65
9)
at org.jboss.invocation.unifi
ed.server.
UnifiedInv
okerHA.inv
oke(Unifie
dInvokerHA
.java:148)
at org.jboss.remoting.ServerI
nvoker.inv
oke(Server
Invoker.ja
va:809)
at org.jboss.remoting.transpo
rt.socket.
ServerThre
ad.process
Invocation
(ServerThr
ead.java:6
08)
at org.jboss.remoting.transpo
rt.socket.
ServerThre
ad.dorun(S
erverThrea
d.java:420
)
at org.jboss.remoting.transpo
rt.socket.
ServerThre
ad.run(Ser
verThread.
java:173)
I checked the ejb-jar.xml and jboss.xml deployment descriptors over and over. I even wrote complete new, with no changes.
When I shut the server I get the folowing messages:
...
17:40:53,839 INFO [EJBDeployer] Undeploying: file:/C:/jboss-4.2.3.GA/se
rver/dev/d
eploy/CoRe
ductionHea
d EnterpriseBean.jar
17:40:53,839 INFO [ProxyFactory] Bound EJB Home 'CoReductionHead' to jndi 'CoReductionHead'
17:40:53,855 INFO [ProxyFactory] Unbind EJB Home 'CoReductionHead' from jndi 'CoReductionHead'
17:40:53,855 INFO [EjbModule] Undeployed CoReductionHead
17:40:53,855 INFO [EJBDeployer] Undeploying: file:/C:/jboss-4.2.3.GA/se
rver/dev/d
eploy/CoRe
ductionDet
ailEnterpr
iseBean.ja
r
17:40:53,855 INFO [ProxyFactory] Bound EJB Home 'CoReductionDetail' to jndi 'CoReductionDetail'
17:40:53,871 INFO [ProxyFactory] Unbind EJB Home 'CoReductionDetail' from jndi 'CoReductionDetail'
17:40:53,871 INFO [EjbModule] Undeployed CoReductionDetail
...
When the sever is running I can see the bean in the JMX console.
To me this exception makes no sense, since the console tells that the beans are deployed succesful.
I also checked the lookup of the beans, the are identical with the lookup of the other EJB 2.0 beans, ecept that the name is different. I also checked severel times the Name of the bean inside the source code of the lookup.
Has anybody the slightest idea why this exception occurs?
Thanks,
CB