Re: PostgreSQL + SSL - sun.security.validator.ValidatorException

From: Vadim Nasardinov <vadimn(at)redhat(dot)com>
To: Andrew M <andrew(at)jibeya(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Date: 2004-12-07 16:37:04
Message-ID: 200412071137.04871@vadim.nasardinov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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=

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Xavier Poinsard 2004-12-08 09:53:56 Re: Patch for jdbc escaped functions
Previous Message Andrew M 2004-12-07 12:38:44 Re: PostgreSQL + SSL - sun.security.validator.ValidatorException