Re: Framework Permission Issue
Patrick Robinson <[email protected]> Thu, 24 Jun 2004 17:21:32 -0400
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
I'm thinking that if you start your WO app with
-Djava.awt.headless=true
then it might not require window-server permissions in order to do
image processing.
This is new functionality in java 1.4.2. See the docs at:
http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
We have a WO app that uses the Apache Batik SVG Toolkit, and it's
deployed on a Solaris 9 server that isn't running a GUI. Prior to java
1.4.2, we were able to work around the problem by using the PJA Toolkit
(http://www.eteks.com/pja/en/). But now that WO works with 1.4.2,
we're able to run it on this server using the headless option (and
without PJA), and it works great.
--
Patrick Robinson
AHNR Info Technology, Virginia Tech
[email protected]
On Jun 23, 2004, at 1:38 PM, Jean-François Veillette wrote:
> on OS-X, it's the permission the owner of the process have with the
> window-server.
> to access and use the window-server, the owner of a process have to be
> the same user as the one graphicaly logged in, or be root.
>
> so if nobody is logged on that machine, and that the process that
> start the woapp is not root, then most likely this is the cause.
> To fix it, you have to graphicaly login on that machine as the same
> user on that start your woapps, or start your woapps as root.
>
> - jfv
>
> Le 04-06-23, à 13:27, Dave Edwards a écrit :
>
>> I am using the QTJava.zip framework, so that I can do image resizing
>> from within my application... now I have it working just fine on my
>> Dev and Production boxes, but I keep getting an exception on my test
>> server. As long as it works on Production I am happy, but the fact
>> that it doesn't work on all is annoying to me... This is the error
>> that I get:
>>
>> com.webobjects.foundation.NSForwardException
>> [java.lang.InternalError] Can't connect to window server - not enough
>> permissions.
>>
>> The permissions are set the same on the framework file for each
>> box... and the file itself is located at
>> /System/Library/Java/Extensions/QTJava.zip
>>
>> I am not familiar with this error, and was wondering if anyone could
>> give me any ideas what the problem might be, thanks!
>>
>> -Dave