Link to home
Create AccountLog in
Avatar of OTSSolutions
OTSSolutionsFlag for India

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/autoload/TraderX.ear/TraderXEJB.jar/:
      at org.objectweb.jonas_ejb.genic.GenIC.fatalError(GenIC.java:1247)
      at org.objectweb.jonas_ejb.genic.GenIC.main(GenIC.java:453)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.objectweb.jonas_ejb.genic.wrapper.GenicServiceWrapper.callGenic(GenicServiceWrapper.java:68)
      ... 15 more
Caused by: org.objectweb.jonas_lib.deployment.api.DeploymentDescException: /C:/JONAS_4_10_9/apps/autoload/TraderX.ear/TraderXEJB.jar/ file not found
      at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getDeploymentDescriptor(EjbDeploymentDescManager.java:987)
      at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getDeploymentDesc(EjbDeploymentDescManager.java:957)
      at org.objectweb.jonas_ejb.genic.GenIC.main(GenIC.java:404)
      ... 20 more
2013-07-09 20:17:14,888 : EJBServiceImpl.createContainer : Cannot read the deployment descriptors '/C:/JONAS_4_10_9/apps/autoload/TraderX.ear/TraderXEJB.jar/'
2013-07-09 20:17:14,888 : EJBServiceImpl.createContainer : DeploymentDescException:org.objectweb.jonas_lib.deployment.api.DeploymentDescException: C:\JONAS_4_10_9\apps\autoload\TraderX.ear\TraderXEJB.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/autoload/TraderX.ear/TraderXEJB.jar/'
org.objectweb.jonas.service.ServiceException : Cannot read the deployment descriptors '/C:/JONAS_4_10_9/apps/autoload/TraderX.ear/TraderXEJB.jar/': org.objectweb.jonas_lib.deployment.api.DeploymentDescException: C:\JONAS_4_10_9\apps\autoload\TraderX.ear\TraderXEJB.jar\META-INF\jonas-ejb-jar.xml file not found
      at org.objectweb.jonas.container.EJBServiceImpl.createContainer(EJBServiceImpl.java:856)
      at org.objectweb.jonas.container.EJBServiceImpl.deployJars(EJBServiceImpl.java:1673)
      at org.objectweb.jonas.ear.EarServiceImpl.deployEar(EarServiceImpl.java:970)
      at org.objectweb.jonas.ear.EarServiceImpl.doStart(EarServiceImpl.java:1347)
      at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
      at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
      at org.objectweb.jonas.server.Server$1.run(Server.java:578)
Caused by: org.objectweb.jonas_lib.deployment.api.DeploymentDescException: C:\JONAS_4_10_9\apps\autoload\TraderX.ear\TraderXEJB.jar\META-INF\jonas-ejb-jar.xml file not found
      at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getDeploymentDescriptor(EjbDeploymentDescManager.java:1007)
      at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.loadDeploymentDesc(EjbDeploymentDescManager.java:351)
      at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getDeploymentDesc(EjbDeploymentDescManager.java:264)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.objectweb.jonas_ejb.deployment.lib.wrapper.EjbManagerWrapper.getDeploymentDesc(EjbManagerWrapper.java:87)
      at org.objectweb.jonas.container.EJBServiceImpl.createContainer(EJBServiceImpl.java:851)
      ... 6 more
Avatar of girionis
girionis
Flag of Greece image

Have you packed the deployment descriptor in the file?
Where is jonas-ejb-jar.xml located?
Avatar of OTSSolutions

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
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer