It depends on how the jars are ordered in classpath.
It's on the find-first basis in this case.
Thanks, but what do I have to do to have a look into the classpath and see the order of the jars? I don't now how to reach the classpath.
JBoss is running on a LINUX plattform.
One way if finding out which class gets used is to add the -verbose:class JVM option to JAVA_OPTS in run.conf. This option causes the JVM to print out each class loaded and the JAR from which it came.