dhtmlx on glassfish

i have some problems with running my app on glassfish(j2ee container). did anyone tried this ? i.e. i cant load xml for dhtmlxMenu, on apache+php the same code is working properly. any ideas ?

Client side components must work the same for any backend.
Be sure that xml output from server side is provided without modification and with correct content type - text/xml