1 Reply Latest reply on Jan 18, 2007 10:54 PM by Daryl Olson

    Problem with classpath, wrong jar found

    Daryl Olson Newbie

      I am using a 3rd party API which uses Trove.jar.

      My application to is deployed in an EAR to JBoss AS. The EAR contains the version of the Trove.jar required by this 3rd party API. JBoss uses a different version of the Trove.jar.

      When I execute a method from the 3rd party API I get the following exception:

      java.lang.NoSuchMethodError: gnu.trove.TIntObjectIterator.next() Ljava/lang/Object

      The version of Trove.jar used by the 3rd part API contains the gnu.trove.TIntObjectIterator.next() method but the one used by JBoss does not.

      How do I get my application to use the correct version of Trove.jar?

      TIA,
      Daryl