Hy,
I've created a simple persistent object X and the created my jar file containing X.class and X.hmb.xml. When I deploy the jar file in jonas I got the following error in jonas console can anyone please help me or help me find a good tutorial on how to integrate Hibernate in Jonas.
Jonas search for a deployment descriptor but when I create a persistent object using hibernate, there's no need for a deployment descriptor? Why does Jonas ask for it? Thanks in advance
EjbDeploymentDescManager.getDeploymentDescriptor : Cannot read the XML deployment descriptors for /C:/JONAS_4_1_4/work/ejbjars/jonas/alarm_2
005.03.03-15.18.38.jar:
org.objectweb.jonas_lib.deployment.api.DeploymentDescException: The entry 'META-INF/ejb-jar.xml' was not found in the file '/C:/JONAS_4_1_4/
work/ejbjars/jonas/alarm_2005.03.03-15.18.38.jar'.
at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getDeploymentDescriptor(EjbDeploymentDescManager.java:1124)
at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.loadDeploymentDesc(EjbDeploymentDescManager.java:369)
at org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getDeploymentDesc(EjbDeploymentDescManager.java:267)
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:324)
at org.objectweb.jonas_ejb.deployment.lib.wrapper.EjbManagerWrapper.getDeploymentDesc(EjbManagerWrapper.java:87)
at org.objectweb.jonas.container.EJBServiceImpl.createContainer(EJBServiceImpl.java:611)
at org.objectweb.jonas.container.EJBServiceImpl.createContainerMBean(EJBServiceImpl.java:1068)
at org.objectweb.jonas.container.EJBServiceImpl.createContainer(EJBServiceImpl.java:1053)
at org.objectweb.jonas.adm.Adm.addBeans(Adm.java:246)
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:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.runDispatch(JUnicastServerRef.java:160)
at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispatch(JUnicastServerRef.java:145)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
EJBServiceImpl.createContainer : Cannot read the deployment descriptors '/C:/JONAS_4_1_4/ejbjars/alarm.jar': org.objectweb.jonas_lib.deploym
ent.api.DeploymentDescException: Cannot read the XML deployment descriptors for /C:/JONAS_4_1_4/work/ejbjars/jonas/alarm_2005.03.03-15.18.38
.jar:org.objectweb.jonas_lib.deployment.api.DeploymentDescException: The entry 'META-INF/ejb-jar.xml' was not found in the file '/C:/JONAS_4
_1_4/work/ejbjars/jonas/alarm_2005.03.03-15.18.38.jar'.
RemoteException : java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: java.lang.Exception: Cannot create Container: org.objectweb.jonas.service.ServiceException : Cannot read t
he XML deployment descriptors for /C:/JONAS_4_1_4/work/ejbjars/jonas/alarm_2005.03.03-15.18.38.jar:org.objectweb.jonas_lib.deployment.api.De
ploymentDescException: The entry 'META-INF/ejb-jar.xml' was not found in the file '/C:/JONAS_4_1_4/work/ejbjars/jonas/alarm_2005.03.03-15.18
.38.jar'.: org.objectweb.jonas_lib.deployment.api.DeploymentDescException: Cannot read the XML deployment descriptors for /C:/JONAS_4_1_4/wo
rk/ejbjars/jonas/alarm_2005.03.03-15.18.38.jar:org.objectweb.jonas_lib.deployment.api.DeploymentDescException: The entry 'META-INF/ejb-jar.x
ml' was not found in the file '/C:/JONAS_4_1_4/work/ejbjars/jonas/alarm_2005.03.03-15.18.38.jar'.
|