From: eggyknap at gmail.com (eggyknap) Date: Fri, 15 Feb 2013 14:00:36 -0700 Subject: [Pljava-dev] Building / installing for CentOS or Fedora In-Reply-To: <20130215201148.32266079@james.intern> References: <511e538b.4553420a.51be.1fa8@mx.google.com> <20130215182457.455342b1@sys-251.netcologne.de> <20130215182118.GL14298@eddie.tb20> <511e84bb.a2e8440a.3a40.ffff89f0@mx.google.com> <20130215201148.32266079@james.intern> Message-ID: <511ea1f6.c440440a.1cf5.ffff9f4f@mx.google.com> 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: