2005-05-27 21:35:54,421 ERROR [SocketListener0-1] compiler.Compiler (Compiler.java:412) - Javac exception
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407)
.....
....
It took my 2 hours to setup JAVA_HOME even though it was setted up right. I changes the registry entries because on googling someone specified this as a solution.
But finally what worked was copying $JAVA_HOME\lib\tools.jar under $JBOSS_HOME\server\default\lib
So this post is for saving time for those who are also struggling with the same problem. Its worth giving this as your first try and I am sure it will take you through.