Re: Third-party Jars & NoClassDefFoundError on Panther Server

emmanuel faux <[email protected]>
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
Le 9 mars 04, à 00:35, Manish Nilawar a écrit :

> Hello Everyone,
> I am using JFreeCharts for generating  graphs. On my development 
> machine,
> I am running Project Builder/Jaguar/Java 1.4.1. I copied the required 
> jars to
> /Library/WebObjects/Extensions/  folder. It runs fine in development 
> mode. When
> I deploy the application on Panther Server/Java 1.4.1 and put the jars 
> in the same
> location i.e. /Library/WebObjects/Extensions/ , I get:
>
> Error:
> com.webobjects.foundation.NSForwardException [java.lang.InternalError] 
> Can't connect to window server - not enough permissions.
> Reason:
> Can't connect to window server - not enough permissions.

Hi Manish,

JfreeChart and the underlying java2D needs a window server to run in 
order to generate its graphs.
When you're logged on your dev machine the window server is on and 
java2D can generate the graphs.
On Panther Server, the user you run your process with might not be 
logged in and your process can't access the windows
server and can't generate the graph.

To solve this add :
-Djava.awt.headless=true

to your application arguments.

It should solve your issue.
--
Emmanuel FAUX - Idtect

_______________________________________________
WebObjects-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-admin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.