From: Vadim Nasardinov <vadimn@redhat.com>
To: Andrew M <andrew@jibeya.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Date: Tue, 7 Dec 2004 11:37:04 -0500
Message-ID: <200412071137.04871@vadim.nasardinov> (raw)
In-Reply-To: <EEAE6738-484C-11D9-870C-0003938366A4@jibeya.com>
References: <73F89B04-47E1-11D9-870C-0003938366A4@jibeya.com>
<84BE6EF8-4836-11D9-870C-0003938366A4@jibeya.com>
<EEAE6738-484C-11D9-870C-0003938366A4@jibeya.com>
On Tuesday 07 December 2004 07:38, Andrew M wrote:
> I need to explain my setup here. I'm running a website via Jboss
> application server.
...
> I launch jboss like so:
>
> >cd /jboss/bin
> /jboss/bin> ./run.sh
>
> So how do I tell the driver where to find the keystore in this
> instance, as I am not running a stand alone java application?
JBoss's run.sh likely provides a way to pass command-line options to
the JRE. This is needed so can you specify the maximum heap and stack
size, among other things. The standard way of doing this is to allow
the user to set an enviroment variable called JAVA_OPTS or some
such. So, once you know what this variable is named in your
particular case, you should be able to do something along the
following lines:
$ cd /jboss/bin
$ export JAVA_OPTS="-Djavax.net.ssl.trustStore=/library/java/home/lib/security/cacert"
$ ./run.sh
The script is then responsible for splicing this additional option
onto the command line that it uses to invoke java.
See
http://www.google.com/search?q=jboss+run.sh+JAVA_OPTS&btnI=
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: vadimn@redhat.com, andrew@jibeya.com
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
In-Reply-To: <200412071137.04871@vadim.nasardinov>
References: <73F89B04-47E1-11D9-870C-0003938366A4@jibeya.com> <84BE6EF8-4836-11D9-870C-0003938366A4@jibeya.com> <EEAE6738-484C-11D9-870C-0003938366A4@jibeya.com> <200412071137.04871@vadim.nasardinov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox