Thread: SOLVED - Apex + Cocoon = Blank Page?


Permlink Replies: 2 - Pages: 1 - Last Post: May 25, 2007 1:27 PM Last Post By: carl.backstrom@...
cedwards

Posts: 402
Registered: 10/20/98
SOLVED - Apex + Cocoon = Blank Page?
Posted: May 25, 2007 11:29 AM
Click to report abuse...   Click to reply to this thread Reply
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
Dimitri Gielis

Posts: 1,859
Registered: 04/21/07
Re: SOLVED - Apex + Cocoon = Blank Page?
Posted: May 25, 2007 12:54 PM   in response to: cedwards in response to: cedwards
Click to report abuse...   Click to reply to this thread Reply
Thanks for sharing Chad. I'll include it into the weekly APEX Forum wrap-up.

I sometimes see the same thing ;-) Oh that should be right!! And you check 50 times, finally you ask somebody else to have a look at it and in a second they see it!

We at AE are using XP (Extreme Programming) methodology a lot. It works great for us, sometimes I can't even belief the amazing speed we develop.

Thanks,
Dimitri
-- APEX Forum wrap-up --
@ http://dgielis.blogspot.com/search/label/apex%20forum
carl.backstrom@...

Posts: 3,792
Registered: 06/05/02
Re: SOLVED - Apex + Cocoon = Blank Page?
Posted: May 25, 2007 1:12 PM   in response to: cedwards in response to: cedwards
Click to report abuse...   Click to reply to this thread Reply
Hello,

The script should not be /cocoon/fop_post. No! It should be /cocoon/fop_post/. Darn trailing slashes.

I just want you to know I never release code with bugs, only features , unfortunately you were hit by the trailing slash feature ;)

I'm in the process of putting together another release of this code both to help with debugging issues and to make it a little more fault tolerant. I'll see what I can do to make it ignore trailing slashes so no one else gets hit by said feature ;)

Carl
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums