I've had a similar problem, I guess.
I've tried to start the log4j service of JBoss 3.2.1, using jdk1.3.1_07 (on Windows XP), but always failed. Once I've changed the JAVA_HOME to refer to 1.4.1_02, everything started smoothly.
I was able to use Jdk 1.3.1_08 but now 1.4.2. in window XP.
correction: I meant to say "not in 1.4.2".
I have read some advice here before:
compile the sources with 1.3 if you want to use 1.3 .
Perhaps you can give it a try.
Good luck. The current build scripts definitely depend on some of the packages that were made part of JDK 1.4 core. You will probably have to get the optional packages for 1.3 and somehow figure out where to put them in the build scripts. ugh.