3 Replies Latest reply on Aug 28, 2009 11:13 AM by Peter Johnson

    Same Classes in different jars (lib-directory)

    tbar0711 Newbie


      I have a question about the behavior of JBoss if there are 2 different jars in the lib-directory with the same class inside.

      For example:
      I have the hibernate3.jar and the hibernate-jbosscache-3.3.2.GA.jar in the JBoss-lib-directory. Both have org.hibernate.cache.TreeCacheProvider inside.

      In the hibernate.cfg.xml I have a reference to this class:

      Which one will JBoss use? The one from hibernate3.jar or the one inside hibernate-jbosscache-3.3.2.GA.jar?

      Thanks in advance.