I tried that change and am still having the issue. I do not have access to the code. I'm a java neophyte, so I'm afraid I can't be of much help there, but I will contact the developers to get some more info.
The developers did put a script on the server hosting Glassfish that called the java process and the file downloads fine without using the app server.
[Message sent by forum member 'isthisnecessary' (isthisnecessary)]
http://forums.java.net/jive/thread.jspa?messageID=315177