The behaviour you are observing is probably being caused by the fix for:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3972
In order to have the jsessionid included in the encoded url, you must bundle a sun-web.xml with the following contents with your webapp:
<?xml version="1.0" encoding="UTF-8"?>
<sun-web-app>
<session-config>
<session-properties>
<property name="enableCookies" value="false" />
</session-properties>
</session-config>
</sun-web-app>
Please let us know if you are still seeing any issues after making this change.
[Message sent by forum member 'jluehe' (jluehe)]
http://forums.java.net/jive/thread.jspa?messageID=269988