Deploying my application with JBoss 3.2.7 and Java 1.4.2 works just fine.
When i changed the VM to Java 5, i got the following error:
org.jboss.mx.util.MBeanProxyCreationException: Object name jboss.cache:service=TreeCache not found:
Fabiano G. Souza
Last I knew only the JBoss 4.x branch is jdk 1.5 (java 5 as your calling it) compatible.
If you try using 3.x.x with 1.5 you can expect much carnage.