[jruby-user] Re: classpath issues

snacktime <[email protected]>
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CABFnarYRLLBHNxcZTBTY9Ozqj-RfnsfnXAeM5f9B3FtgwiTT8A@mail.gmail.com>
So the best solution ended up just having my gem binary call itself if no
classpath was set, and set the classpath on that second run.

Chris

On Sun, Oct 12, 2014 at 2:00 PM, snacktime <[email protected]> wrote:

> When using jdbc connection pools, reconnects end up using a classloader
> that doesn't use any of the existing classloaders that have the driver jar
> so they fail.
>
> The only way I have gotten it to work is to set the classpath using a
> wildcard entry or explicit entry for the jarfile.  Just having the jars in
> the start path or lib doesn't work.
>
> So is having OS/shell specific start scripts that set the classpath before
> loading jruby the only way to handle this?  That appears to be the case but
> thought I would ask before converting my gem binaries.
>
> Chris
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.