I know there's a ton of threads on this, but I felt entitled to start my own.
Followed the viewlet from here:
http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
The only exception here is that the version of tomcat that I downloaded was slightly newer.
Compiled the war okay and deployed it.
Everything is hunky dory. Cocoon page and tomcat pages come up fine and all examples work fine. This is regardless of whether I use 127.0.0.1, localhost or my actually real host name.
I then enabled the print server and set the hostname (I've tried all three ways) port 8080 and the script /cocoon/fop_post.
I then tried to print a report, but kept getting the blank page. The funny thing is...I checked every single log file I could fine and couldn't see where there were any errors...much less where the cocoon process was even running.
Well lo and behold. While I was typing this up, I was referencing Carl's site again and then it hit me square between the eyes.
Here is what I did wrong.
The script should not be /cocoon/fop_post. No! It should be /cocoon/fop_post/. Darn trailing slashes.
So maybe if you're having troubles getting a blank page with this setup, make sure you too check for the trailing slash. I must have looked at that thing a hundred times and said "yep..it's fine.".
I don't know whether or not we'll use this or not in production (Not knowing a lot about it, I'm apprehensive about trying to make sure it's secure in addition to all the APEX and database stuff that needs to be locked down), but at least I know I can make it work.
Chad