• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FOP and WebObjects yet again.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FOP and WebObjects yet again.


  • Subject: FOP and WebObjects yet again.
  • From: Zac Konopa <email@hidden>
  • Date: Thu, 6 Apr 2006 18:01:00 -0700

All right I've got some more ApacheFOP/WebObjects issues. If you search the list for FOP you'll see a whole bunch of messages from me about getting apache's fop module working with webobjects. Last time I wrote I reported that I had gotten it working. Well apparently I was wrong. If you have any experience using java libraries external to webobjects you might know what's going on here. So heres the situation. Using the org.apache.apps.Driver class I was able to turn xml into pdf. I wrote a bunch of xml into a WOComponent then overrode the append to response method. In my new appendToResponse method I read the content of the repsonse to a InputStream, used an instance of the Driver class to render the inputStream to pdf which I stored in a BinaryOutpuStream which I then stuffed into the WOResponse. And it works great at the developement level. When I deployed the application for testing purposes it broke, and here's what I think is happening. When instances of the driver have to have an instance of the org.apache.avalon.framework.logger.* set. By default (ie if you don't set the logger) the Driver object uses avalons' ConsoleLogger. When I try to run this Driver in a deployed app, the app crashes and I see this message in the console logger...

kCGErrorRangeCheck Window Server communications from outside of session allowed for root and console user only

Here is what I think is happening. When I run the app on my local machine I own the process and have access to the window server so everything is fine. When I deploy the application the process is owned by appserve which doesn't have access to the window server so the app crashes. Now I have no idea why not having access to the window server makes a bit of difference but the owner of the process is the only apparent difference between the two running applications. So, does anybody have any suggestions?

I'm about to try moving the instance of the Driver object into the application layer instead of inside a session based object (should probably be there anyway) and we'll see how that goes.

Thx,

Zac
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: FOP and WebObjects yet again.
      • From: Zak Burke <email@hidden>
  • Prev by Date: Re: Problem of Building project converted from Objective C
  • Next by Date: Re: FOP and WebObjects yet again.
  • Previous by thread: Lightbox anyone?
  • Next by thread: Re: FOP and WebObjects yet again.
  • Index(es):
    • Date
    • Thread