I have a simple application that listens to a Kafka topic and writes to another topic. It is QuarkusApplication
and has hibernate-orm
dependency.
One of the app's dependencies includes the entity the app uses and the dependency has bean.xml
.
I got NoClassDefFoundError
exception for javax/security/jacc/PolicyContextException
at native complation time.
After that, I added the javax.security.jacc-api
dependency to the pom(as @Sanne said, this is not the right solution ) and got the following error
Error: No instances of java.net.SocksSocketImpl are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use -H:+TraceClassInitialization.
Quarkus version 1.9.2.Final
GraalVM version 20.2.0
To Reproduce
entities.zip (that has the entity)
management.zip (the app)