Adding a shared lib to payara micro

33 views
Skip to first unread message

Phillip Krüger

unread,
May 2, 2017, 4:59:15 AM5/2/17
to Payara Forum
Hi everyone.

Is it possible to add shared libs to a payara micro uberjar ?

I have more than one war file that I bundle in a uberjar pajara mirco distribution. I do not want to repeat the shared jars that is in the wars, so I am wondering to define extra jars to be included in the ubjerjar ?

Thanks

Ondrej Mihályi

unread,
May 5, 2017, 4:04:42 AM5/5/17
to Payara Forum
Hi Phillip,

Unfortunately, it's not possible to do it in a straightforward way so far, since version 171 introduced a hierarchical classloader to load internal classes and doesn't provide straightforward way to extend the classpath. We plan to support this in the future. Until then, you might be successful with a workaround I described here, with some more details about how classloading works in Payara Micro: https://groups.google.com/forum/#!msg/payara-forum/A7YghjS12u8/1shiELDpBAAJ

Ondrej

Dňa utorok, 2. mája 2017 10:59:15 UTC+2 Phillip Krüger napísal(-a):
Reply all
Reply to author
Forward
0 new messages