Problemas al Instalar PLJAVA

From: Romeo Belleza <rbcbelleza(at)yahoo(dot)es>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Problemas al Instalar PLJAVA
Date: 2005-07-28 18:02:27
Message-ID: 20050728180227.63083.qmail@web86910.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Saludos a todos.

Tengo un problema al realizar lo siguiente:

Estoy tratando de crear el lenguaje procedural PL/JAVA
La version del postgresql que tengo es el 8.0
El sistema operativo es el RedHAt Enterprise 3.0 (Update 2)

He configurado las variables de entorno de root de la siguiente manera
export PATH=$PATH:/usr/java/j2sdk1.4.2_08/bin
export JAVA_HOME=/usr/java/j2sdk1.4.2_08
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/server:$JAVA_HOME/jre/lib/i386/native_threads

Sele agrego las variables que indican en el manual al archivo postgresql.con:
# define "pljava" as a custom variable class. This is a comma separated
# list of names.
#
custom_variable_classes = 'pljava'
# define the class path that the JVM will use when loading the
# initial library. Only meaningful for non GJC installations
#
pljava.classpath = '/var/lib/pgsql/pljava/pljava.jar'
# Set the size of the prepared statement MRU cache
#
pljava.statement_cache_size = 10
# If true, lingering savepoints will be released on function exit. If false,
# the will be rolled back
#
pljava.release_lingering_savepoints = true
# Define startup options for the Java VM.
#
pljava.vmoptions = '-Xmx64M -Dbackchannel.port=48'
# Setting debug to true will cause the postgres process to go
# into a sleep(1) loop on its first call to java. This is
# only useful if you want to debug the PLJava internal C code.
#
pljava.debug = false

He intentado crear el lenguaje procedural PL/JAVA de la siguiente manera:
java -cp /var/lib/pgsql/pljava/deploy.jar:/usr/share/java/postgresql-8.0-310.jdbc3.jar org.postgresql.pljava.deploy.Deployer -install -user usuarioimp -database dbimportaciones

El error que me da es el siguiente:
java.sql.SQLException: ERROR: no se pudo cargar la biblioteca "/usr/lib/pgsql/libpljava.so": libjvm.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1471)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1256)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:388)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:313)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:305)
at org.postgresql.pljava.deploy.Deployer.initJavaHandlers(Deployer.java:419)
at org.postgresql.pljava.deploy.Deployer.main(Deployer.java:275)

Espero que alguno de ustedes puedan ayudarme.


---------------------------------

Correo Yahoo!
Comprueba qué es nuevo, aquí
http://correo.yahoo.es

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Cristofer Nicolas Reyes Aguilera 2005-07-28 18:41:28 Bloquear registros
Previous Message Carlos Eduardo 2005-07-28 17:46:48 JDK 1.5 & J2EE 1.4 & Postgres v8.0