Comments (6)
I have linked the sample attached to the Log4j2 issue.
from graalvm-reachability-metadata.
I tried to provide support for this but have found a blocking issue, so I think native support for Log4j2 needs to happen directly on library side rather than here, see related comment on their bugtracker.
from graalvm-reachability-metadata.
Given the fact that Log4j2 needs to happen at least partially via builtin support, I think that's better to close this issue at least for now. Upcoming discussion should happen on https://issues.apache.org/jira/browse/LOG4J2-2649.
from graalvm-reachability-metadata.
It might be useful to update the link to the "logging-log4j2" sample in the issue description to a version of the repository that still contains this sample (now that it has been removed).
from graalvm-reachability-metadata.
@sdeleuze I believe I have found a way to do that without changing anything into Log4j2. They need LambdaMetafactory thing to work around the Security Context switching issue. However, as Graal Native Image does not have a security manager - we do not need it, so I just replaced that class and excluded that part of the code via SVM Target/Substitute functionality. I verified my idea and provided a simple PoC for that. I have generated a basic reflect-config and manually edited it to support as many features as I could, but that is not a production-ready solution, and still, it works.
Here is my PoC. I am not sure we can merge such a thing in that repo(because of NativeServiceLoaderUtil).
https://github.com/Periecle/log4j2-native-tests
from graalvm-reachability-metadata.
--enable-url-protocols=http
from graalvm-reachability-metadata.
Related Issues (20)
- Add support for `com.zaxxer:HikariCP:4.0.3` HOT 1
- Add support for `org.apache.calcite:calcite-core:1.35.0` HOT 1
- Add support for `org.slf4j:slf4j-api:1.7.36` HOT 1
- Add support for `ch.qos.logback:logback-core:1.2.12` HOT 1
- Add support for `org.jboss.narayana.jta:jta:5.12.4.Final` HOT 1
- Add support for `com.atomikos:transactions:6.0.0` HOT 1
- Add support for `org.apache.groovy:groovy:4.0.10` HOT 2
- Add more XADataSource related metadata to `com.h2database:h2:2.2.224` HOT 1
- Add more metadata to `com.mysql:mysql-connector-j:8.0.31` HOT 1
- Logback 1.4.9 reflect-config.json missing ContextInitializer HOT 2
- How to support float[].class in file: serialization-config.json HOT 3
- Introduce `tested-java-versions`?
- Add wider support for org.mockito:mockito-core
- NoSuchMethodError with Jetty 12's ForwardedRequestCustomizer
- Add hibernate-core metadata for version 6.5.0
- Missing hibernate's TenantIdBinder HOT 3
- [QUESTION] Add support for [com.dameng::DmjdbcDriver17:8.1.3.140] HOT 1
- com.github.dockerjava.api.model.RuntimeInfo
- objectInputStream.readObject() issue with springboot 3.3.0 + graalvm22 as native image HOT 1
- Run metadata tests with `-H:+ThrowMissingRegistrationErrors`.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graalvm-reachability-metadata.