You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a hollow JAR. Then, I create a JIB base image and I extend it to add an application deployed as ROOT.war. Running the final image with Docker raises the following exception:
17:14:22,585 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /secured: org.glassfish.soteria.identitystores.IdentityStoreRuntimeException: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.ROOT.war" from Service Module Loader [Root exception is java.lang.IllegalAccessException: class org.jboss.as.naming.InitialContext cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @34d8388b]
However, looking in the hollow JAR MANIFEST.MF file I can see:
Isn't it supposed to avoid this exception ? Does the fact of extending the associated image have an impact in this case ? The final image is built with the JIB plugin, as follows:
Hi,
It would really help to have a reproducer for your issue (having a simplified github project that highlights the problem).
I suspect that you could reproduce the problem on bare-metal, jib docker image shouldn't be bound to the problem.
Thank-you.
Hello,
I'm using
wildfly-jar-maven-plugin:10.0.0.Final
to provision a wildfly bootable 30.0.1.Final. Here is the config:This is a hollow JAR. Then, I create a JIB base image and I extend it to add an application deployed as ROOT.war. Running the final image with Docker raises the following exception:
However, looking in the hollow JAR
MANIFEST.MF
file I can see:Isn't it supposed to avoid this exception ? Does the fact of extending the associated image have an impact in this case ? The final image is built with the JIB plugin, as follows:
The
MANIFEST.MF
file of the associated WAR doesn't contain the requiredAdd-Exports
andAdd-Open
as does the hollow JAR. Is that normal ?In any case, what am I supposed to do in order to avoid this exception ?
Many thanks in advance.
Kind regards,
Nicolas
The text was updated successfully, but these errors were encountered: