-->
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.  [ 10 posts ] 
Author Message
 Post subject: HibernateEntityManager 3.3.0 incompatibe with Jboss EJB3?
PostPosted: Tue Mar 20, 2007 2:21 pm 
Newbie

Joined: Wed Jan 31, 2007 2:00 pm
Posts: 8
Location: Canada
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
Hibernate EntityManager 3.3.0 GA

Hello,

I just downloaded Hibernate Entity Manager 3.3.0 GA which was released today; my JBoss does not deploy the ejbs becaues of the following exception:

Stack trace of any exception that occurs:

Quote:
java.lang.NoSuchMethodError: org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(Ljava/net/URL;Ljava/util/Map;Lorg/xml/sax/EntityResolver;)Ljava/util/List;
at org.jboss.ejb3.Ejb3Deployment.initializePersistenceUnits(Ejb3Deployment.java:444)


And I have the latest version of jboss ejb3 ... Is it possible that these two libraries incampatible?

Thanks

_________________
Sara


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 3:32 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yes it is possible, The next EJB3 version should work smoothly though. I'll make sure it does.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 3:36 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
http://jira.jboss.com/jira/browse/EJBTHREE-920

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 3:46 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
BTW which version of JBoss AS are you using?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 4:35 pm 
Newbie

Joined: Wed Jan 31, 2007 2:00 pm
Posts: 8
Location: Canada
Thanks :-)

We are using JBoss 4.0.5.GA, I checked the version of jboss-ejb3.jar inside it (which includes the class that throws that exception) and its version is JBoss EJB 3.0 RC9 Patch 1 which seems to be the latest version ...

_________________
Sara


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 5:05 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I don't know if you can move to it, but JBoss 4.2 is CR1, I think it's already compatible with this change.
If you give it a try before me, let me know the result.

Also, if you are adventurous, get Hibernate EntityManager from SVN and add the method in PersistenceXmlLoader

Code:
public static List<PersistenceMetadata> deploy(URL url, Map overrides, EntityResolver resolver) {
    return this.deploy(URL url, Map overrides, EntityResolver resolver, PersistenceUnitTransactionType.JTA);
}

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 21, 2007 5:13 pm 
Newbie

Joined: Wed Jan 31, 2007 2:00 pm
Posts: 8
Location: Canada
Thank you, everything seems to be fine after I added the method.

_________________
Sara


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 2:33 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Cool
http://opensource.atlassian.com/projects/hibernate/browse/EJB-281
I will try and release this week

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 6:58 am 
Newbie

Joined: Wed Feb 07, 2007 1:10 pm
Posts: 7
Location: Kent, UK
I'm running JBoss AS 4.2.0.CR1 with Hibernate 3.2.2.GA, Hibernate Entity Manager 3.3.0.GA, Hibernate Annotations 3.3.0.GA and Hibernate Validator 3.0.0.GA with no apparent problems.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 7:01 am 
Newbie

Joined: Wed Feb 07, 2007 1:10 pm
Posts: 7
Location: Kent, UK
I'm running JBoss AS 4.2.0.CR1 with Hibernate 3.2.2.GA, Hibernate Entity Manager 3.3.0.GA, Hibernate Annotations 3.3.0.GA and Hibernate Validator 3.0.0.GA with no apparent problems.

EDIT - For some reason my post has been duplicated!


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