agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
8+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
@ 2006-02-12 13:14 
  2006-02-12 13:23 ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  0 siblings, 1 reply; 8+ messages in thread

From:  @ 2006-02-12 13:14 UTC (permalink / raw)

Hello,

According to my configuration, system environnement variables are :

	CLASSPATH = c:\pljava
	PATH =  
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C: 
\Program Files\ATI Technologies\ATI Control Panel;C:\Program  
Files\ZipGenius 6\;c:\pljava;C:\Program  
Files\Java\jre1.5.0_06\bin\client;C:\Program  
Files\Java\jre1.5.0_06\bin;C:\Program Files\Java\jre1.5.0_06\lib\i386

In postgresql.conf file, I set :

	dynamic_library_path = '$libdir;c:\\pljava'
	log_min_messages = info
	custom_variable_classes = 'pljava'
	pljava.classpath = 'c:\\pljava\\pljava.jar'

I have installed PL/JAVA thanks to C:\pljava\install.sql script

BUT, when I run

	SELECT sqlj.install_jar('file:///c/pljava/examples.jar', 'samples',   
true);

within pgAdmin III query window, I get the following error :

	ERROR:  Unable to register native methods

In postgresql-[date].log I can see following message :

	in thread "main" java.lang.NoSuchMethodError:_addEOXactListener

I think that CLASSPATH may not be sean by postgres user. I don't know  
how to do it.

Please help me. In advance, thanks.

Olivier Peaucelle
--------------------------------------





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
  2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
@ 2006-02-12 13:23 ` 
  2006-02-12 13:45   ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  0 siblings, 1 reply; 8+ messages in thread

From:  @ 2006-02-12 13:23 UTC (permalink / raw)

Hi Olivier,
To my knowledge, the only way this can happen is if there's a version 
discrepancy between pljava.jar and pljava.dll. Somehow they stem from 
different versions of PL/Java so it's likely that your PL/Java 
installation is corrupt. Perhaps you have an older version of pljava.dll 
lingering somewhere on your system?

Kind regards,
Thomas Hallgren


Synth?se Graphique wrote:
> Hello,
>
> According to my configuration, system environnement variables are :
>
> 	CLASSPATH = c:\pljava
> 	PATH =  
> %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C: 
> \Program Files\ATI Technologies\ATI Control Panel;C:\Program  
> Files\ZipGenius 6\;c:\pljava;C:\Program  
> Files\Java\jre1.5.0_06\bin\client;C:\Program  
> Files\Java\jre1.5.0_06\bin;C:\Program Files\Java\jre1.5.0_06\lib\i386
>
> In postgresql.conf file, I set :
>
> 	dynamic_library_path = '$libdir;c:\\pljava'
> 	log_min_messages = info
> 	custom_variable_classes = 'pljava'
> 	pljava.classpath = 'c:\\pljava\\pljava.jar'
>
> I have installed PL/JAVA thanks to C:\pljava\install.sql script
>
> BUT, when I run
>
> 	SELECT sqlj.install_jar('file:///c/pljava/examples.jar', 'samples',   
> true);
>
> within pgAdmin III query window, I get the following error :
>
> 	ERROR:  Unable to register native methods
>
> In postgresql-[date].log I can see following message :
>
> 	in thread "main" java.lang.NoSuchMethodError:_addEOXactListener
>
> I think that CLASSPATH may not be sean by postgres user. I don't know  
> how to do it.
>
> Please help me. In advance, thanks.
>
> Olivier Peaucelle
> --------------------------------------
>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>   





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
  2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:23 ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
@ 2006-02-12 13:45   ` 
  2006-02-12 14:04     ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  0 siblings, 1 reply; 8+ messages in thread

From:  @ 2006-02-12 13:45 UTC (permalink / raw)

Hi Thomas,

You are very active on this mailing list, even Synday !

The fact is I had allready installed Oracle 9i that also uses Java.
So to avoid this kind of conflit, I installed a second WXP (without 
Oracle), but Oracle directories still are visible.

I am now scanning all disks to find this older pljava.dll.
But, when I find it, what should I do ?

Thks,

Olivier Peaucelle
--------------------------------------
Le 12 f?vr. 06, ? 14:23, Thomas Hallgren a ?crit :

> Hi Olivier,
> To my knowledge, the only way this can happen is if there's a version 
> discrepancy between pljava.jar and pljava.dll. Somehow they stem from 
> different versions of PL/Java so it's likely that your PL/Java 
> installation is corrupt. Perhaps you have an older version of 
> pljava.dll lingering somewhere on your system?
>
> Kind regards,
> Thomas Hallgren





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
  2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:23 ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:45   ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
@ 2006-02-12 14:04     ` 
  2006-02-12 15:21       ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  0 siblings, 1 reply; 8+ messages in thread

From:  @ 2006-02-12 14:04 UTC (permalink / raw)

Olivier,
You should make sure that:
- The 'dynamic_library_path' configuration variable in your 
postgresql.conf includes the location of the pljava.dll.
- The 'pljava.classpath' configuration variable in your postgresql.conf 
is the full path of the pljava.jar.
- The appointed dll and jar must stem from the same PL/Java installation.
- You should *not* have a CLASSPATH setting that is visible to the 
backend (i.e. no CLASSPATH system environment setting).
- Your PATH setting must include the bin and bin/client of the JRE 
installation (so your present setting is correct in that respect).

Everything else is irrelevant to PL/Java.

Regards,
Thomas Hallgren

Synth?se Graphique wrote:
> Hi Thomas,
>
> You are very active on this mailing list, even Synday !
>
> The fact is I had allready installed Oracle 9i that also uses Java.
> So to avoid this kind of conflit, I installed a second WXP (without 
> Oracle), but Oracle directories still are visible.
>
> I am now scanning all disks to find this older pljava.dll.
> But, when I find it, what should I do ?
>
> Thks,
>
> Olivier Peaucelle
> --------------------------------------
> Le 12 f?vr. 06, ? 14:23, Thomas Hallgren a ?crit :
>
>   
>> Hi Olivier,
>> To my knowledge, the only way this can happen is if there's a version 
>> discrepancy between pljava.jar and pljava.dll. Somehow they stem from 
>> different versions of PL/Java so it's likely that your PL/Java 
>> installation is corrupt. Perhaps you have an older version of 
>> pljava.dll lingering somewhere on your system?
>>
>> Kind regards,
>> Thomas Hallgren
>>     
>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>   





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
  2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:23 ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:45   ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 14:04     ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
@ 2006-02-12 15:21       ` 
  2006-02-12 18:05         ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  0 siblings, 1 reply; 8+ messages in thread

From:  @ 2006-02-12 15:21 UTC (permalink / raw)

I have not any pljava.dll on any directory !
I only have a libpljava.dll in c:\pljava.

Where does this dll comes from ?

Olivier Peaucelle
--------------------------------------

Le 12 f?vr. 06, ? 15:04, Thomas Hallgren a ?crit :

> Olivier,
> You should make sure that:
> - The 'dynamic_library_path' configuration variable in your 
> postgresql.conf includes the location of the pljava.dll.
> - The 'pljava.classpath' configuration variable in your 
> postgresql.conf is the full path of the pljava.jar.
> - The appointed dll and jar must stem from the same PL/Java 
> installation.
> - You should *not* have a CLASSPATH setting that is visible to the 
> backend (i.e. no CLASSPATH system environment setting).
> - Your PATH setting must include the bin and bin/client of the JRE 
> installation (so your present setting is correct in that respect).
>
> Everything else is irrelevant to PL/Java.
>
> Regards,
> Thomas Hallgren
>
> Synth?se Graphique wrote:
>> Hi Thomas,
>>
>> You are very active on this mailing list, even Synday !
>>
>> The fact is I had allready installed Oracle 9i that also uses Java.
>> So to avoid this kind of conflit, I installed a second WXP (without 
>> Oracle), but Oracle directories still are visible.
>>
>> I am now scanning all disks to find this older pljava.dll.
>> But, when I find it, what should I do ?
>>
>> Thks,
>>
>> Olivier Peaucelle
>> --------------------------------------
>> Le 12 f?vr. 06, ? 14:23, Thomas Hallgren a ?crit :
>>
>>
>>> Hi Olivier,
>>> To my knowledge, the only way this can happen is if there's a 
>>> version discrepancy between pljava.jar and pljava.dll. Somehow they 
>>> stem from different versions of PL/Java so it's likely that your 
>>> PL/Java installation is corrupt. Perhaps you have an older version 
>>> of pljava.dll lingering somewhere on your system?
>>>
>>> Kind regards,
>>> Thomas Hallgren
>>>
>>
>> _______________________________________________
>> Pljava-dev mailing list
>> Pljava-dev at gborg.postgresql.org
>> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>>
>
>





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
  2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:23 ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:45   ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 14:04     ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 15:21       ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
@ 2006-02-12 18:05         ` 
  2006-02-12 18:24           ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  0 siblings, 1 reply; 8+ messages in thread

From:  @ 2006-02-12 18:05 UTC (permalink / raw)

Sorry, libpljava.dll is the one I meant. Not pljava.dll. It's part of 
the PL/Java distribution. Somehow, that file is from another PL/Java 
distribution then the pljava.jar file that is used.

- thomas

Synth?se Graphique wrote:
> I have not any pljava.dll on any directory !
> I only have a libpljava.dll in c:\pljava.
>
> Where does this dll comes from ?
>
> Olivier Peaucelle
> --------------------------------------
>
> Le 12 f?vr. 06, ? 15:04, Thomas Hallgren a ?crit :
>
>   
>> Olivier,
>> You should make sure that:
>> - The 'dynamic_library_path' configuration variable in your 
>> postgresql.conf includes the location of the pljava.dll.
>> - The 'pljava.classpath' configuration variable in your 
>> postgresql.conf is the full path of the pljava.jar.
>> - The appointed dll and jar must stem from the same PL/Java 
>> installation.
>> - You should *not* have a CLASSPATH setting that is visible to the 
>> backend (i.e. no CLASSPATH system environment setting).
>> - Your PATH setting must include the bin and bin/client of the JRE 
>> installation (so your present setting is correct in that respect).
>>
>> Everything else is irrelevant to PL/Java.
>>
>> Regards,
>> Thomas Hallgren
>>
>> Synth?se Graphique wrote:
>>     
>>> Hi Thomas,
>>>
>>> You are very active on this mailing list, even Synday !
>>>
>>> The fact is I had allready installed Oracle 9i that also uses Java.
>>> So to avoid this kind of conflit, I installed a second WXP (without 
>>> Oracle), but Oracle directories still are visible.
>>>
>>> I am now scanning all disks to find this older pljava.dll.
>>> But, when I find it, what should I do ?
>>>
>>> Thks,
>>>
>>> Olivier Peaucelle
>>> --------------------------------------
>>> Le 12 f?vr. 06, ? 14:23, Thomas Hallgren a ?crit :
>>>
>>>
>>>       
>>>> Hi Olivier,
>>>> To my knowledge, the only way this can happen is if there's a 
>>>> version discrepancy between pljava.jar and pljava.dll. Somehow they 
>>>> stem from different versions of PL/Java so it's likely that your 
>>>> PL/Java installation is corrupt. Perhaps you have an older version 
>>>> of pljava.dll lingering somewhere on your system?
>>>>
>>>> Kind regards,
>>>> Thomas Hallgren
>>>>
>>>>         
>>> _______________________________________________
>>> Pljava-dev mailing list
>>> Pljava-dev at gborg.postgresql.org
>>> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>>>
>>>       
>>     
>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>   





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
  2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:23 ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:45   ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 14:04     ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 15:21       ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 18:05         ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
@ 2006-02-12 18:24           ` 
  2006-02-12 18:42             ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  0 siblings, 1 reply; 8+ messages in thread

From:  @ 2006-02-12 18:24 UTC (permalink / raw)

Ok, so :

> - The 'dynamic_library_path' configuration variable in your 
> postgresql.conf includes the location of the pljava.dll.
this point is ok : dynamic_library_path = '$libdir;c:\\pljava'
> - The 'pljava.classpath' configuration variable in your 
> postgresql.conf is the full path of the pljava.jar.
this point is ok : pljava.classpath = 'c:\\pljava\\pljava.jar'
> - The appointed dll and jar must stem from the same PL/Java 
> installation.
they are from the same downloaded file
> - You should *not* have a CLASSPATH setting that is visible to the 
> backend (i.e. no CLASSPATH system environment setting).
OK, deleted
> - Your PATH setting must include the bin and bin/client of the JRE 
> installation (so your present setting is correct in that respect).
I think its ok like : PATH =
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:
\Program Files\ATI Technologies\ATI Control Panel;C:\Program
Files\ZipGenius 6\;c:\pljava;C:\Program
Files\Java\jre1.5.0_06\bin\client;C:\Program
Files\Java\jre1.5.0_06\bin;C:\Program Files\Java\jre1.5.0_06\lib\i386

I dont know how to set de CLASSPATH on windows plateform as required in 
PL/Java Readme.

Should I open a dos window and enter :
	set classpath=c:\pljava

Olivier Peaucelle

Le 12 f?vr. 06, ? 19:05, Thomas Hallgren a ?crit :

> Sorry, libpljava.dll is the one I meant. Not pljava.dll. It's part of 
> the PL/Java distribution. Somehow, that file is from another PL/Java 
> distribution then the pljava.jar file that is used.
>
> - thomas




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro
  2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:23 ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 13:45   ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 14:04     ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 15:21       ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 18:05         ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
  2006-02-12 18:24           ` [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
@ 2006-02-12 18:42             ` 
  0 siblings, 0 replies; 8+ messages in thread

From:  @ 2006-02-12 18:42 UTC (permalink / raw)

Synth?se Graphique wrote:
> I dont know how to set de CLASSPATH on windows plateform as required in 
> PL/Java Readme.
>
> Should I open a dos window and enter :
> 	set classpath=c:\pljava
>
>   

With the settings you've described, your backend process should be all 
set. You don't need a CLASSPATH and you should make sure the backend 
doesn't see a classpath. Your environment settings can be edited using 
the control panel (System -> Advanced -> Environment Variables). The 
System variables are of particular interest to you. If you have a 
CLASSPATH there, then you should probably remove it.

The client programs (like the deploy program) will use a classpath but 
you can add that on the command line. Like so:

java -cp <classpath to jdbc driver and deploy.jar> 
org.postgresql.pljava.deploy.Deployer -install

Regards,
Thomas Hallgren





^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2006-02-12 18:42 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-12 13:14 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro 
2006-02-12 13:23 ` 
2006-02-12 13:45   ` 
2006-02-12 14:04     ` 
2006-02-12 15:21       ` 
2006-02-12 18:05         ` 
2006-02-12 18:24           ` 
2006-02-12 18:42             ` 

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