You haven't provided enough information about your configuration and environment. It is possible that tools.jar (the compiler libraries) are not in your run classpath - JAVA_HOME needs to be set to the root directory of your JDK. You can check the classpath from the starting output of your run.sh script.
Secondly, insufficient permissions to write the generated Java and class files from the JSP might also cause a problem.
However, you need to locate the portion of the error stacktrace that would reveal the relevant information.
Also make sure you haven't installed JBoss into a directory that has spaces in it.