[Pljava-dev] Building / installing for CentOS or Fedora

From: eggyknap at gmail(dot)com (eggyknap)
To:
Subject: [Pljava-dev] Building / installing for CentOS or Fedora
Date: 2013-02-15 21:00:36
Message-ID: 511ea1f6.c440440a.1cf5.ffff9f4f@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

On Fri, Feb 15, 2013 at 08:11:48PM +0100, Christian Hammers wrote:
> > Well, it's a qualified success. After running maven, I couldn't find
> > any pljava.so or pljava.jar files anywhere
>
> Maven calls the file slightly different:
> pljava-so/target/nar/pljava-so-0.0.1-SNAPSHOT-amd64-Linux-gpp-shared/lib/amd64-Linux-gpp/shared/libpljava-so-0.0.1-SNAPSHOT.so
>
> Running "mvn deploy" as root inside the pljava-so directory will
> automatically copy it to /usr/lib/postgresql/9.2/main/pljava.so (or
> whereever it belongs). Has still to be documented though :)

Cool, that worked.

> The Backend class is part of pljava-jdbc so I assume that you did not
> add the following lines (paths adjusted!) to your
> /etc/postgresql/9.2/main/postgresql.conf:
>
> pljava.classpath =
> '.../pljava-api/target/pljava-api-0.0.1-SNAPSHOT.jar:.../pljava-jdbc/target/pljava-jdbc-0.0.1-SNAPSHOT.jar'
> pljava.statement_cache_size = 10 pljava.release_lingering_savepoints =
> true pljava.vmoptions = '-Xmx64M'
> pljava.debug = false
>
> More about this can be read in docs/userguide.html.

Ok, I admit not having read the documentation closely before asking. Thanks
for putting up with it. It works now, though I still don't have a single
pljava.jar file (another undocumented "mvn deploy" somewhere?) so I copied the
.jar files from pljava-*/ to some other directory, added each to the
pljava.classpath, and then found I got Java SecurityErrors. Mailing list
archives said only pljava.jar should be in the classpath, so I removed all but
"pljava-jdbc-0.0.1-SNAPSHOT.jar". That got me exceptions with classes not
being found, but adding "pljava-api-0.0.1-SNAPSHOT.jar" fixed those, and now
the tests finish.

Now to figure out what to do with it... thanks.

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20130215/e385f042/attachment.bin>

In response to

Browse pljava-dev by date

  From Date Subject
Next Message Christian Hammers 2013-02-17 20:15:19 [Pljava-dev] Switching pljava-examples to Junit and the examples.ddr deployment descriptor
Previous Message Christian Hammers 2013-02-15 19:11:48 [Pljava-dev] Building / installing for CentOS or Fedora