This looks like a permission issue for me.On Author, you will would have logged in as Admin and you will get the admin session from the resolver where as in publish instance you wouldnt have logged in and hence you are not able to write to JCR. Instead of using from the request, create a system user...