agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] org.postgresql.pljava.internal.ServerException running linux headless mode
Date: Tue, 31 Oct 2006 09:27:12 -0700
Message-ID: <45477960.5070604@softhome.net> (raw)

Supportive helpers,

I am running Postgresql 8.1.3 on a Linux machine and attempting to 
execute some Java code that needs to access libawt.so in headless mode.  
After looking at the page 
http://wiki.tada.se/wiki/display/pljava/Module+Configuration I do not 
seem to find a way to do this.  In reviewing the page 
http://forum.java.sun.com/thread.jspa?threadID=760969&start=105 it 
instructs me to start java with "-Djava.awt.headless=true".  I need some 
direction on how to accomplish this task.

My code has been tested and works fine on Windows running PLJava 1.2 
with postgresql 8.1.5 and Java 5 build 9.

The problem is when I attempt to run on Linux running PLJava 1.2 with 
postgresql 8.1.3 and Java 5 build 9.

It seems to revolve around attempting to run in Linux headless mode.

At the present time I am receiving the following error:
org.postgresql.pljava.internal.ServerException: 31 Oct 06 08:48:29 
org.apache.commons.digester.Digester Begin event threw error
java.lang.UnsatisfiedLinkError: 
/usr/java/jre1.5.0_09/lib/i386/libawt.so: libmlib_image.so: cannot open 
shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Unknown Source)
    at java.awt.Toolkit.<clinit>(Unknown Source)
    at java.awt.Color.<clinit>(Unknown Source)
    at 
net.sf.jasperreports.engine.xml.JRBoxFactory.setBoxAttributes(JRBoxFactory.java:102)
    at 
net.sf.jasperreports.engine.xml.JRBoxFactory.createObject(JRBoxFactory.java:71)
    at 
org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:389)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1361)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
    at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1647)
    at 
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)
    at 
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)
    at 
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)
    at print.Print.print(Print.java:116)
    at executive.Dispatcher.dispatch(Dispatcher.java:112)
    at executive.Dispatcher.dispatch(Dispatcher.java:833)

    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1647)
    at 
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)
    at 
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)
    at 
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)
    at print.Print.print(Print.java:116)
    at executive.Dispatcher.dispatch(Dispatcher.java:112)
    at executive.Dispatcher.dispatch(Dispatcher.java:833)

There are 7 more stack dumps, but this was the first and the most 
informative.

Any and all help would be appreciated.

thanks Scott




view thread (6+ messages)  latest in thread

Message-ID: <45477960.5070604@softhome.net>
Permalink:  ../45477960.5070604@softhome.net/
Also on:    postgresql.org/message-id/45477960.5070604@softhome.net

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] org.postgresql.pljava.internal.ServerException running linux headless mode
  In-Reply-To: <45477960.5070604@softhome.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox