For anybody interested this is pretty common when you running JRE without the full JDK as the EJB Compiler does not have a similar option as JSP compilation:
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>true</param-value>
</init-param>
I'm not sure if the current version of Glassfish needs this anymore or is it auto detected etc.
-I
[Message sent by forum member 'ioaalto' (ioaalto)]
http://forums.java.net/jive/thread.jspa?messageID=288046