Authenticity Token error with Rails 3 java servlet store

When i use java_serlvet_store it gives me different authenticity token
everytime, however when i switch to cookie store it doesnt. Please let
me know whats the cause it is a major production issue.
We have wrapper Api’s calling JROR code which is failing in production.

Environment:

Jruby 1.6.3
rails 3.0.0