[Pljava-dev] Re: latest pljava rebuild on PG8 failure

Lists: pljava-dev
From: rcolmegna at tiscali(dot)it (rcolmegna at tiscali(dot)it)
To:
Subject: [Pljava-dev] latest pljava rebuild on PG8 failure
Date: 2005-10-28 13:59:06
Message-ID: 43620B82000008A7@mail-2.mail.tiscali.sys
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pljava-dev

Hi,

I rebuilded lastest PLJAVA/CVS on krn 2.6.11, with PG8.0.3 and JDK 1.5.0_04.
The rebuild is executed correctly but when I obtain a run-time error:

-bash-3.00$ psql -d javatest
javatest=# SELECT sqlj.remove_jar('log4j','true');
INFO: Exception
INFO: in thread "main"
ERROR: Unable to register native methods

javatest=# SELECT sqlj.remove_jar('log4j','true');
ERROR: Failed to create Java VM

I have already tried (before psql launch) with:
export LD_LIBRARY_PATH=/usr/java/java/jre/lib/i386:/usr/java/java/jre/lib/i386/client/

without any positive result. :(

Note: before rebuild PLJAVA, the sqlj.remove_jar works correctly.

Another question: which compiler I must use to build under Windows?

TIA
Roberto Colmegna

__________________________________________________________________
TISCALI ADSL
Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone
Telecom a partire da 19,95 Euro/mese.
Attivala subito, I PRIMI DUE MESI SONO GRATIS! CLICCA QUI:
http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/


From: thomas(dot)hallgren at home(dot)se (Thomas Hallgren)
To:
Subject: [Pljava-dev] Re: latest pljava rebuild on PG8 failure
Date: 2005-10-28 14:36:02
Message-ID: 43623752.60300@home.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pljava-dev

rcolmegna at tiscali.it wrote:
> Another question: which compiler I must use to build under Windows?
>
You must use the gcc compiler (3.4 or later) and a MinGW environment (i.e. you should *not*
use cygwin).

I committed some new stuff to PL/Java so in order to get the latest and greatest, you must
do a cvs update now.

Regards,
Thomas Hallgren


From: thomas at tada(dot)se (Thomas Hallgren)
To:
Subject: [Pljava-dev] Re: latest pljava rebuild on PG8 failure
Date: 2005-10-28 14:37:58
Message-ID: 436237C6.4000109@tada.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pljava-dev

I'll check the CVS again to see if I've made a mistake there. Meanwhile, perhaps you can
check that your environment is consistent. The problem you are experiencing would typically
happen if your backend still points to the old pljava.jar but uses the new compiled binary.

Regards,
Thomas Hallgren

rcolmegna at tiscali.it wrote:
> Hi,
>
> I rebuilded lastest PLJAVA/CVS on krn 2.6.11, with PG8.0.3 and JDK 1.5.0_04.
> The rebuild is executed correctly but when I obtain a run-time error:
>
> -bash-3.00$ psql -d javatest
> javatest=# SELECT sqlj.remove_jar('log4j','true');
> INFO: Exception
> INFO: in thread "main"
> ERROR: Unable to register native methods
>
> javatest=# SELECT sqlj.remove_jar('log4j','true');
> ERROR: Failed to create Java VM
>
> I have already tried (before psql launch) with:
> export LD_LIBRARY_PATH=/usr/java/java/jre/lib/i386:/usr/java/java/jre/lib/i386/client/
>
> without any positive result. :(
>
> Note: before rebuild PLJAVA, the sqlj.remove_jar works correctly.
>
> Another question: which compiler I must use to build under Windows?
>
> TIA
> Roberto Colmegna
>
> __________________________________________________________________
> TISCALI ADSL
> Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone
> Telecom a partire da 19,95 Euro/mese.
> Attivala subito, I PRIMI DUE MESI SONO GRATIS! CLICCA QUI:
> http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/


From: rakesh at rakeshv(dot)org (Rakesh Vidyadharan)
To:
Subject: [Pljava-dev] Re: latest pljava rebuild on PG8 failure
Date: 2005-10-28 14:41:35
Message-ID: DE5E1591-DFD8-4EB2-A8A8-AA0155E34852@rakeshv.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pljava-dev


On Oct 28, 2005, at 9:37 AM, Thomas Hallgren wrote:

> I'll check the CVS again to see if I've made a mistake there.
> Meanwhile, perhaps you can check that your environment is
> consistent. The problem you are experiencing would typically happen
> if your backend still points to the old pljava.jar but uses the new
> compiled binary.
>
> Regards,
> Thomas Hallgren

I rebuilt PL/Java earlier today from the sources from CVS and did
some rudimentary tests. No problems, so I do not think there is
anything wrong with the sources in CVS.

Rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20051028/f2fe485f/attachment.html>