When I deployed the application in glassfish 4 saw strange characters .
After source debug, I found the problem and fix this:
I changed m_output on line 284 of file WikiJSPFilter for ByteArrayOutputStream type.
Obviously MyServletOutputStream class was modified to accept the new type.
I do not know that this change will harm other JEE Servers but I have helped