I'm not quite sure which was your previous Tomcat package but Jasper2 now uses Ant to invoke the Java compiler. This is a Tomcat development. Ant will probably have problems creating the compiler invocation and "wrapping" the path correctly.
However, you should probably avoid placing JBoss and Tomcat installations in a path with spaces in them. This tends to cause problems with JNDI namespace bindings and RMI - particularly for remote clients. This is not particularly a JBoss or Tomcat issue but related to the Sun Java implementation AFAIK from JDC postings in the past.
The previous version I used is jboss-3.0.4_tomcat-4.1.12