Hi. Look at this thread
In jboss 4.0.2 two things are wrong for nukes.
-You need to move files from /lib/endorsed into /lib as they are needed during compilation.
-I think that there is some differences in classes in /lib/jboss-jmx.jar between 4.0.2 and 3.2.3
Try jboss AS 3.2.3 - nukes from cvs head should deploy there for sure (just set JBOSS_HOME, provide proper JavaCC.zip and follow the instructions in wiki - carefully - there are some minor differences).
Please let me know if you'll be able to deploy on 4.0.2...