Never mind, i solved the mystery. I'm not 100% sure what it was, because all i did was add a layer of abstraction with an intermediate object which took care of the RMIness, instead of the servlet itself.
Thanks and regards.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com