-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problem integrating Hibernate with Jonas
PostPosted: Thu Mar 03, 2005 7:50 am 
Regular
Regular

Joined: Fri Feb 25, 2005 3:02 am
Posts: 71
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'.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 7:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This is not a hibernate problem, you are missing a required xml file for jonas - either read the jonas manual or ask at a jonas forum.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.