[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Upgrading hibernate in JBoss 4.2.2.GA

jinpsu do-not-reply at jboss.com
Fri Aug 15 15:45:46 EDT 2008


OK, thanks for bearing with me.  I'm now back to the NoSuchMethodException: org.hibernate.validator.ClassValidator exception.  There was an error in my ant script and the hibernate jars went into the ear root instead of lib/... oops!

Now, after jboss starts and I try to use hibernate from my .war, I see classes being loaded from my ear hibernate jars (hooray).  Correct versions are printed by hibernate, hibernate annotations, and hibernate entity manager.

All appears to go well until my jpa entities get mapped.  Classes start being loaded from the old hibernate (starting with ClassValidator) and then the exception is generated.

Here is the relevant portion of the log:


  | [Loaded org.hibernate.mapping.OneToMany from file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp54556application.ear-contents/lib/hibernate3.jar]
  | 
  |    ...Debug from CollectionBinder "Mapping Collection: ..."
  | 
  | [Loaded org.hibernate.cfg.Mappings$PropertyReference from file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp54556application.ear-contents/lib/hibernate3.jar]
  | 
  |    ...Debug from CollectionBinder "Mapping Collection: ..."
  | 
  | [Loaded org.hibernate.mapping.UniqueKey from file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp54556application.ear-contents/lib/hibernate3.jar]
  | [Loaded org.hibernate.validator.ClassValidator from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.hibernate.validator.MessageInterpolator from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.hibernate.validator.InvalidStateException from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.hibernate.reflection.XAnnotatedElement from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.hibernate.reflection.XMember from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.hibernate.exception.Nestable from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate3.jar]
  | [Loaded org.hibernate.exception.NestableRuntimeException from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate3.jar]
  | [Loaded org.hibernate.AssertionFailure from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate3.jar]
  | [Loaded org.hibernate.HibernateException from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate3.jar]
  | [Loaded org.hibernate.MappingException from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate3.jar]
  | [Loaded org.hibernate.reflection.ReflectionManager from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.hibernate.reflection.Filter from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.hibernate.reflection.XClass from file:/opt/jboss-4.2.2.GA/server/default/lib/hibernate-annotations.jar]
  | [Loaded org.apache.log4j.spi.ThrowableInformation from file:/opt/jboss-4.2.2.GA/lib/log4j-boot.jar]
  | [Loaded org.apache.log4j.spi.VectorWriter from file:/opt/jboss-4.2.2.GA/lib/log4j-boot.jar]
  | [Loaded org.apache.log4j.spi.NullWriter from file:/opt/jboss-4.2.2.GA/lib/log4j-boot.jar]
  | 
  |   ... EXCEPTION ...
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170854#4170854

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170854



More information about the jboss-user mailing list