Hmm, what version of sun compiler is that? Smells like a compiler bug...
I upgraded the sun compiler from 1.3.1_03 to 1.3.1_06 and that fixed the compiler error, but now I am getting the same behavior with both sun javac and jikes.
When I run
I get up to the 'compile-mbean-sources' task and then hang here
sourcepath is deprecated. the preferred way to design sources is via nested
Running xdoclet.XDocletMain loaded by sun.misc.Launcher$AppClassLoader. Forked:true
[xdoclet] Generating output for 'org.jboss.deployment.cache.DeploymentStore' using template file 'jar:file:/home/users/fd99tlc/jboss/workspace/jboss-3.0/tools/lib/xdoclet.jar!/xdoclet/jmx/mbean.j'.
[xdoclet] Generating output for 'org.jboss.deployment.cache.FileDeploymentStore' using template file 'jar:file:/home/users/fd99tlc/jboss/workspace/jboss-3.0/tools/lib/xdoclet.jar!/xdoclet/jmx/mbean.j'.
...Hangs here indefinitely.....
Don't know why it hangs.. sometimes running xdoclet can eat up alot of memory so you need to set your max heap bigger than the default but you usually see this as an OutOfMemoryError.
I had a similar problem with the "compiler message file broken" errors while building the sources using the Sun JDK version 1.3.1_06 on a RedHat 8.0 distribution.
Apparently, Red Hat changed the default locale from en_US to en_US.UTF-8 in 8.0 which seemed to break my build. I set my LANG environment variable back to en_US and tried building and didn't get any of the errors again. It might be worth a try for you.
Hope this helps