OTSSolutions
asked on
EJB - Cannot read the Deployment Descriptors
Caused by: java.lang.RuntimeException : Cannot read the Deployment Descriptors from /C:/JONAS_4_10_9/apps/auto load/Trade rX.ear/Tra derXEJB.ja r/:
at org.objectweb.jonas_ejb.ge nic.GenIC. fatalError (GenIC.jav a:1247)
at org.objectweb.jonas_ejb.ge nic.GenIC. main(GenIC .java:453)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
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.objectweb.jonas_ejb.ge nic.wrappe r.GenicSer viceWrappe r.callGeni c(GenicSer viceWrappe r.java:68)
... 15 more
Caused by: org.objectweb.jonas_lib.de ployment.a pi.Deploym entDescExc eption: /C:/JONAS_4_10_9/apps/auto load/Trade rX.ear/Tra derXEJB.ja r/ file not found
at org.objectweb.jonas_ejb.de ployment.l ib.EjbDepl oymentDesc Manager.ge tDeploymen tDescripto r(EjbDeplo ymentDescM anager.jav a:987)
at org.objectweb.jonas_ejb.de ployment.l ib.EjbDepl oymentDesc Manager.ge tDeploymen tDesc(EjbD eploymentD escManager .java:957)
at org.objectweb.jonas_ejb.ge nic.GenIC. main(GenIC .java:404)
... 20 more
2013-07-09 20:17:14,888 : EJBServiceImpl.createConta iner : Cannot read the deployment descriptors '/C:/JONAS_4_10_9/apps/aut oload/Trad erX.ear/Tr aderXEJB.j ar/'
2013-07-09 20:17:14,888 : EJBServiceImpl.createConta iner : DeploymentDescException:or g.objectwe b.jonas_li b.deployme nt.api.Dep loymentDes cException : C:\JONAS_4_10_9\apps\autol oad\Trader X.ear\Trad erXEJB.jar \META-INF\ jonas-ejb- jar.xml file not found
2013-07-09 20:17:14,891 : EJBServiceImpl.deployJars : Error when deploying '/C:/JONAS_4_10_9/apps/aut oload/Trad erX.ear/Tr aderXEJB.j ar/'
org.objectweb.jonas.servic e.ServiceE xception : Cannot read the deployment descriptors '/C:/JONAS_4_10_9/apps/aut oload/Trad erX.ear/Tr aderXEJB.j ar/': org.objectweb.jonas_lib.de ployment.a pi.Deploym entDescExc eption: C:\JONAS_4_10_9\apps\autol oad\Trader X.ear\Trad erXEJB.jar \META-INF\ jonas-ejb- jar.xml file not found
at org.objectweb.jonas.contai ner.EJBSer viceImpl.c reateConta iner(EJBSe rviceImpl. java:856)
at org.objectweb.jonas.contai ner.EJBSer viceImpl.d eployJars( EJBService Impl.java: 1673)
at org.objectweb.jonas.ear.Ea rServiceIm pl.deployE ar(EarServ iceImpl.ja va:970)
at org.objectweb.jonas.ear.Ea rServiceIm pl.doStart (EarServic eImpl.java :1347)
at org.objectweb.jonas.servic e.AbsServi ceImpl.sta rt(AbsServ iceImpl.ja va:80)
at org.objectweb.jonas.servic e.ServiceM anager.sta rtServices (ServiceMa nager.java :336)
at org.objectweb.jonas.server .Server$1. run(Server .java:578)
Caused by: org.objectweb.jonas_lib.de ployment.a pi.Deploym entDescExc eption: C:\JONAS_4_10_9\apps\autol oad\Trader X.ear\Trad erXEJB.jar \META-INF\ jonas-ejb- jar.xml file not found
at org.objectweb.jonas_ejb.de ployment.l ib.EjbDepl oymentDesc Manager.ge tDeploymen tDescripto r(EjbDeplo ymentDescM anager.jav a:1007)
at org.objectweb.jonas_ejb.de ployment.l ib.EjbDepl oymentDesc Manager.lo adDeployme ntDesc(Ejb Deployment DescManage r.java:351 )
at org.objectweb.jonas_ejb.de ployment.l ib.EjbDepl oymentDesc Manager.ge tDeploymen tDesc(EjbD eploymentD escManager .java:264)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
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.objectweb.jonas_ejb.de ployment.l ib.wrapper .EjbManage rWrapper.g etDeployme ntDesc(Ejb ManagerWra pper.java: 87)
at org.objectweb.jonas.contai ner.EJBSer viceImpl.c reateConta iner(EJBSe rviceImpl. java:851)
... 6 more
at org.objectweb.jonas_ejb.ge
at org.objectweb.jonas_ejb.ge
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.objectweb.jonas_ejb.ge
... 15 more
Caused by: org.objectweb.jonas_lib.de
at org.objectweb.jonas_ejb.de
at org.objectweb.jonas_ejb.de
at org.objectweb.jonas_ejb.ge
... 20 more
2013-07-09 20:17:14,888 : EJBServiceImpl.createConta
2013-07-09 20:17:14,888 : EJBServiceImpl.createConta
2013-07-09 20:17:14,891 : EJBServiceImpl.deployJars : Error when deploying '/C:/JONAS_4_10_9/apps/aut
org.objectweb.jonas.servic
at org.objectweb.jonas.contai
at org.objectweb.jonas.contai
at org.objectweb.jonas.ear.Ea
at org.objectweb.jonas.ear.Ea
at org.objectweb.jonas.servic
at org.objectweb.jonas.servic
at org.objectweb.jonas.server
Caused by: org.objectweb.jonas_lib.de
at org.objectweb.jonas_ejb.de
at org.objectweb.jonas_ejb.de
at org.objectweb.jonas_ejb.de
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.objectweb.jonas_ejb.de
at org.objectweb.jonas.contai
... 6 more
Have you packed the deployment descriptor in the file?
Where is jonas-ejb-jar.xml located?
ASKER
Hi Sharonseth,
I have placed my jonas-ejb-jar.xml inside the META-INF FOLDER.I am attaching the snapshot for the structure of my project.
project-structure.png
I have placed my jonas-ejb-jar.xml inside the META-INF FOLDER.I am attaching the snapshot for the structure of my project.
project-structure.png
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.