gbaso commented on issue #722: URL: https://github.com/apache/mina-sshd/issues/722#issuecomment-2821316796
With the help of the [tracing agent](https://www.graalvm.org/22.0/reference-manual/native-image/Agent/) I was able to get my application to work. I'm on java 21. YMMV. First, you need to add the following flags to the image builder: `-H:-AddAllFileSystemProviders --strict-image-heap`. Then register the resources (not sure if necessary): - META-INF/services/org.apache.sshd.common.io.IoServiceFactoryFactory - META-INF/services/java.nio.file.spi.FileSystemProvider - META-INF/services/org.apache.sshd.server.subsystem.SubsystemFactory - **/sshd-version.properties Proxies: - org.apache.sshd.common.session.SessionListener - org.apache.sshd.common.channel.ChannelListener - org.apache.sshd.common.forward.PortForwardingEventListener Classes: - java.security.KeyFactory - java.security.KeyPairGenerator - java.security.MessageDigest - java.security.Signature - java.security.interfaces.ECPrivateKey - java.security.interfaces.ECPublicKey - java.security.interfaces.RSAPrivateKey - java.security.interfaces.RSAPublicKey - javax.crypto.KeyAgreement - org.apache.sshd.common.io.nio2.Nio2ServiceFactoryFactory - org.apache.sshd.common.session.SessionListener - org.apache.sshd.common.util.security.SunJCESecurityProviderRegistrar - org.apache.sshd.common.util.security.bouncycastle.BouncyCastleSecurityProviderRegistrar - org.apache.sshd.common.util.security.eddsa.EdDSASecurityProviderRegistrar Hope this helps, at least as a starting point. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org