Sun GlassFish Enterprise Server 2.1 Release Notes

Solution

Set the JSP compilation switch "fork" to "false."

This can be done either of two ways:

Either setting will prevent ant from spawning a new process for javac compilation.