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

    Same Classes in different jars (lib-directory)

    tbar0711

      Hello,

      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:
      org.hibernate.cache.TreeCacheProvider

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

      Thanks in advance.
      Tom