Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running JBoss EAP6 on two servers and I am trying to get CAS working. It works on node 1 great but on node 2 I am getting a error:

Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path

If I run the following on node 1:

find / -name log4j-over-slf4j.jar 2>errors.txt I

get this output:


But if I run it on node 2 I get the following:


if I run: find / -name slf4j-log4j12.jar 2>errors.txt

is at /usr/share/java/slf4j-eap6/slf4j-log4j12.jar on both nodes.

I have a feeling that node2 is using /usr/share/java/slf4j-eap6/ before /usr/share/java/slf4j/ which has both jars in them making the error.. Keep in mind node 1 works..

share|improve this question
sounds less like a find error, and more like a jBoss CLASSPATH issue to me. I'm no jBoss guru, but I'd wager you can add directories to the app server's classpath; and that would be where I'd look first. – Gus Jan 22 '13 at 16:26
i think you are right but why would FIND find them in two diff orders – user150591 Jan 22 '13 at 16:51
See this question. TL;DR version: find returns results in the order it finds them; which is determined by their position within the file system. Operating systems can move them around if they want to. – Gus Jan 22 '13 at 17:25
up vote 0 down vote accepted

Maybe (I cannot be sure in this case as there can be other causes) the two servers have different locale setting, which can affect sort order.

To check system locale setting, run locale.

PS: Maybe comment from Gus above is more accurate. However I cannot find additional documentation to support either case.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.