riwarek opened a new issue, #2179:
URL: https://github.com/apache/logging-log4j2/issues/2179
I see such exception:
`Exception in thread "main" java.lang.reflect.InvocationTargetException
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at
org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:62)
Caused by: java.lang.NoClassDefFoundError:
org/apache/logging/log4j/LogManager
at rmdev.scolog.log.Log.getLogger(Log.java:48)
at rmdev.scolog.SCoLog.handleInputParameters(SCoLog.java:93)
at rmdev.scolog.SCoLog.main(SCoLog.java:33)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 2 more
Caused by: java.lang.ClassNotFoundException:
org.apache.logging.log4j.LogManager
at
java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 6 more`
when I tried to run app with jar-in-jar-loader created by Eclipse 2023-12
(using Oracle jdk21).
Content of MANIFEST.FM file is:
`Manifest-Version: 1.0
Ant-Version: Apache Ant 1.10.14
Created-By: 21+35-LTS-2513 (Oracle Corporation)
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader
Rsrc-Main-Class: rmdev.scolog.SCoLog
Rsrc-Class-Path: ./ lib/log4j/log4j-api-3.0.-beta1.jar lib/log4j/log4j
-core-3.0.-beta1.jar lib/log4j/log4j-plugins-3.0.-beta1.jar lib/jdate
picker-1.3.4.jar
Class-Path: .`
All expected files (including jars) are in places in main jar file.
--
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]