-->
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.  [ 5 posts ] 
Author Message
 Post subject: JBoss 4.0 troubles with H2.1.6 because of H2.1.5 jar
PostPosted: Fri Oct 08, 2004 4:53 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
Hibernate version:2.1.6 ant later
JBoss version: 4.0.0

Be aware, JBoss 4.0.0 comes with Hibernate 2.1.5 in the distributive. The following configurations:
all, default, standard consist hibernate2.jar and cglib-full-2.0.1.jar from Hibernate 2.1.5.
Code:
INFO  [net.sf.hibernate.cfg.Environment] Hibernate 2.1.5


I tried to put Hibernate 2.1.6 jars into my har, sar, ear but JBoss used classes from its <configuration>/lib directory and it were Hibernate 2.1.5. The possible solution that I found it is a replacement of jars in <configuration>/lib by new ones.

The question:
Does anybody know how to make JBoss 4.0.0 use Hibernate jars from har, sar, ear? In production deployment it would be easier to deploy only one application.ear that consists ejb.jar, hibernate.har, needed jars and etc.

_________________
Leonid Shlyapnikov


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 7:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
That is currently not doable.

The effort needed to acheive that is way more than I have time for. Of course thats the beauty of open source; if you come up with the fix I'll consider it for commit.

It is believed that JBoss 5.x will include standard mechanisms to acheive this on behalf of services.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 09, 2004 9:32 pm 
Newbie

Joined: Tue Nov 11, 2003 5:25 pm
Posts: 17
Location: Milwaukee, Wi
Why don't you just drop the Hibernate 2.1.6 jar into the JBoss lib directory (replacing the 2.1.5 jar)?

I think that the only caveat here would be if the implementation in 2.1.6 was incompatible with the JBoss/Hibernate HAR stuff.

Worth a try anyway...

-- D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 11, 2004 3:38 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
damien wrote:
Why don't you just drop the Hibernate 2.1.6 jar into the JBoss lib directory (replacing the 2.1.5 jar)?


Damien, I do it. But as I said, it makes production deployment a bit more complex. If you have 10 app servers you should copy it 10 times :) we have ant task for this, but our offshore customers .... :) (command lines, ant tasks and etc)

Steve, and what about updating hibernate jars in the jboss 4.0.0 distribution by new ones. Our customers (not only mine:) will download new jboss 4.0.1 distribution and will get all tings right. As I see hibernate team has working partnership with jboss group and with hibernate 2.1.6 jboss will get more better than with hibernate 2.1.5 ;)

steve wrote:
if you come up with the fix I'll consider it for commit.

Where shall I dig from?

Thanks for the replies

_________________
Leonid Shlyapnikov


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 10:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
2.1.6 is now the version included in jboss...

Quote:
Where shall I dig from?

From what I understand, the Tomcat deployer in JBoss does something very similiar. Try taking a look at that code to see how it partitions the classloaders.


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