"indefiniatly" was incorrect. It does eventually finish. What's weird is that it seams to take a different number of cycles each time. Some as little as two, most many more.
I've used JBoss for several years and this is the weirdest thing i've ever seen.
Does anyone have a clue what could be causing it?
I am running JBoss 3.2.3 with JDK 1.4.2_04 and was having the same problem (although I never let mine go beyond 3 restarts, so I don't know that it ever finished).
To fix this I looked at my run.bat that had the following:
set JAVA_OPTS=-server -Xms128m -Xmx512m %JAVA_OPTS%
This worked in previous versions of the JDK (I recently upgraded). After removing the -server option, everything started up fine. If this doesn't work for you, maybe someone else will have a solution.
As a note, this is my development environment so this will work fine, but may not be an acceptable solution in other circumstances.