Hello guys,
I finally managed to solve this. The problem was that my servlets performed redirections against JSP resources in order to fulfil requests. The result of redirections is a complete rewrite of the original URL with the URL of the redirection target. In my case this mechanism also changed the protocol from https to http. I solved by using forward instead.
-Redirect approach-
response.sendRedirect("path to resource");
-Forward approach-
RequestDispatcher dispatcher = request.getRequestDispatcher("path to resource");
dispatcher.forward(request, response);
I hope this could help someone else,
Cheers,
--
Andrea