[UBI] openjdk 11 UBI image & s2i-maven, jolokia errors

Nigel Jones nigel at cherrybyte.me.uk
Mon Sep 14 15:36:37 UTC 2020


I should add that our app (which has been put by maven into the
target/assembly directory) is already built/packaged at this point - we are
not using S2I

On Mon, 14 Sep 2020 at 16:34, Nigel Jones <nigel at cherrybyte.me.uk> wrote:

> I've just started trying to use the open jdk 11 UBI-8 image, and have my
> java app launching ok
>
> However when launched I see:
>
> jonesn:egeria/ (issue3580) $ docker run egeria
>
>
>
>                                                              [16:07:29]
> /usr/local/s2i/run: line 15:
> /opt/jboss/container/maven/default//scl-enable-maven: No such file or
> directory
> Starting the Java application using
> /opt/jboss/container/java/run/run-java.sh ...
> INFO exec  java
> -javaagent:/usr/share/java/jolokia-jvm-agent/jolokia-jvm.jar=config=/opt/jboss/container/jolokia/etc/jolokia.properties
> -XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20
> -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=100m
> -XX:+ExitOnOutOfMemoryError -cp "." -jar
> /deployments/server/server-chassis-spring-2.3-SNAPSHOT.jar
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jolokia.util.ClassUtil
> (file:/usr/share/java/jolokia-jvm-agent/jolokia-jvm.jar) to constructor
> sun.security.x509.X500Name(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
> WARNING: Please consider reporting this to the maintainers of
> org.jolokia.util.ClassUtil
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> I> No access restrictor found, access to any MBean is allowed
> Jolokia: Agent started with URL https://172.17.0.2:8778/jolokia/
>  ODPi Egeria
>
> ^^ last line is our app.
>
> The key parts of the dockerfile are:
>
> FROM registry.access.redhat.com/ubi8/openjdk-11
>
> ARG version=2.3-SNAPSHOT
>
> COPY target/assembly /deployments
>
> ENV JAVA_APP_JAR=server/server-chassis-spring-${version}.jar
> ENV JAVA_LIBDIR=${JAVA_APP_DIR}/server/lib
>
>
> I'm going to research more about Jolokia (new to me) and S2I..  these
> warnings aren't preventing the app from working, but may concern anyone
> running them so I'd like to keep
> things clean if at all possible.
>
> Any pointers welcomed!
>
> Thanks
> Nigel Jones (planetf1)
> ODPi Egeria maintainer
> --
> ----
> Nigel Jones
>


-- 
----
Nigel Jones
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ubi/attachments/20200914/499bd915/attachment.htm>


More information about the Ubi mailing list