-->
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.  [ 6 posts ] 
Author Message
 Post subject: net/sf/hibernate/jca/hibernate-service.xml in hibernate2.jar
PostPosted: Fri Jun 04, 2004 1:09 pm 
Newbie

Joined: Tue Dec 02, 2003 8:04 am
Posts: 4
The Hibernate 2.1.4 version now comes with this file (net/sf/hibernate/jca/hibernate-service.xml) in hibernate2.jar

I'm using JBoss 3.2.3 with no JCA service, and during the deployment of my application (I configured hibernate to run as jboss service, called hibernate.sar) the following error occurs:

java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.resource.connectionmanager.LocalTxConnectionManager
.
.
.
Caused by: javax.management.InstanceNotFoundException: jboss.jca:service=LocalTxCM,name=Hibernate Resource Adapter is not registered.



It seems to me that hibernate-service.xml can't be in hibernate2.jar, so, I deleted it from the jar and everything worked fine.


hibernate-service.xml is configured for MySQL...

Does hibernate-service.xml need to exist inside the hibernate jar file ?
Isn't that wrong in Hibernate 2.1.4 release ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 04, 2004 1:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
No it should *not* be there. That is a mistake.


Top
 Profile  
 
 Post subject: Then why not fix the mistake.
PostPosted: Fri Jun 18, 2004 11:37 am 
Newbie

Joined: Fri Jun 18, 2004 11:33 am
Posts: 6
Location: Pennsylvania, USA
steve wrote:
No it should *not* be there. That is a mistake.


Then why not release an version that's fixed. I've been working for 3 hours on JBoss integration only to find this.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 28, 2004 2:08 am 
Beginner
Beginner

Joined: Wed Mar 03, 2004 6:02 am
Posts: 46
Location: Kuala Lumpur, Malaysia
Jason,

I got a different problem when I upgraded to hibernate 2.1.4.
Code:
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute:
name=ManagedConnectionFactoryName value=jboss.jca:service=LocalTxDS,name=Hibernate Resource Adapter on
mbean jboss.jca:service=LocalTxCM,name=Hibernate Resource Adapter;
- nested throwable: (javax.management.AttributeNotFoundException: Writable attribute 'ManagedConnectionFactoryName' not found),
ObjectName: jboss.jca:service=LocalTxDS,name=Hibernate Resource Adapter


I followed your advice. It works fine once I removed the hibernate-service.xml file.

Regards,

Alistair


Top
 Profile  
 
 Post subject: Re: Then why not fix the mistake.
PostPosted: Thu Aug 05, 2004 12:51 am 
Newbie

Joined: Thu Aug 05, 2004 12:46 am
Posts: 1
jasonvanbrackel wrote:
steve wrote:
No it should *not* be there. That is a mistake.


Then why not release an version that's fixed. I've been working for 3 hours on JBoss integration only to find this.


Ditto - this also cost me 1/2 a day. I didn't think to look *inside* the released jar file for the problem. For others that have this problem - you will see this manifest itself when the MBean is attempting to deploy in JBoss. If you pick through the messages, you'll see a reference to hibernate-service.xml. If you see that, check the hibernate2.jar for the file and remove it.

That oughtta save you a number of hours.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 6:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This is fixed in 2.1.5


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.