weizhouapache commented on PR #7131: URL: https://github.com/apache/cloudstack/pull/7131#issuecomment-1692228686
> > @JoaoJandre see the errors below > > ``` > > 18:44:16 stderr: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager > > 18:44:16 at com.cloud.utils.crypt.CloudStackEncryptor.<init>(CloudStackEncryptor.java:33) > > 18:44:16 at com.cloud.utils.crypt.EncryptionCLI.main(EncryptionCLI.java:63) > > 18:44:16 Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager > > 18:44:16 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > > 18:44:16 at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > > 18:44:16 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) > > 18:44:16 ... 2 more > > ``` > > > > > > > > > > > > > > > > > > > > > > > > I think you need to replace `ch.qos.reload4j` with `org.apache.logging.log4j` in the list below > > https://github.com/apache/cloudstack/blob/3b05797344c15a9fbd6bee4ecd38281b677f24a2/utils/pom.xml#L266-L274 > > @weizhouapache Thank you for sharing, this situation has already been discussed, see [#7131 (comment)](https://github.com/apache/cloudstack/pull/7131#issuecomment-1564282630). The problem is with Trillian calling the EncriptionCLI and not passing log4j2 on the classpath. This is the reason why @DaanHoogland made a special branch on Trillian to run tests on this PR. @JoaoJandre cloudstack-utils.jar should work without any other dependency. log4j should be included in the cloudstack-utils.jar -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
