-
Notifications
You must be signed in to change notification settings - Fork 71
Quarkus native mode support #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- adds tests for jvm and native mode
- adds readme for showcase
|
Thanks Rafael, However i will remove the showcase from the normal build from now, to not "influence" the normal MF builds |
|
Yes sure, thank you for the guidance on this PR! Also for the showcase, maybe we can put it on the PrimeFaces extension module (not sure you want to have one on this repo) and maybe create a simpler showcase for pure MyFaces. This way we could cleanup this extension (mainly the required deps for PrimeFaces on runtime module, primefaces application marker and resource bundle entries), I can help in case you need, just let me know |
|
@rmpestano sure :) I already splitted up the methods for now. Will commit it soon. Some questions:
import com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl; do we really need this reflection support? |
|
For 1, if we remove it we get: For some reason it not gets collected in For 2, i get: even though the application works without issues. I only get that message on the console and nothing more, for some reason on MacOS the native image is not generating the debug.log file, I need to test on Ubuntu to see if I get a stack trace. This is what I got: |
|
By the way, I'm using this command to run the test against a generated native image:
Note that failsafe is overriding the quarkus.log.file.path parameter (we also have it on application.properties) |
|
@rmpestano can you give it a try? |
|
It is working great @tandraschko, awesome work! |
|
great! Can we also remove RestoreViewSupport from reflection support? |
|
i also added DocumentBuilderFactory as class/subclass instead of using the Impl name directly |
Yes, we can 👍 |
|
If someone is watching this thread and uses a MacOS (probably also linuxes distros), can you try to run following native binary and access localhost:8080/index.xhtml? https://drive.google.com/open?id=1m7pNtWu3Gz7YVXkcJH-fqMYVP45GennE |
|
great, removed it! I will try to setup the PF quarkus soon |
|
@rmpestano at a glance, the binary runs fine on my MacOS Mojave system |
|
Thank you for looking at it @wtlucy! PS: I am also on Mojave, maybe someone with Catalina would be a nice test. |
|
Following is the linux_x64 native image, if someone wants to try: I've tested on Ubuntu 18.04.4 |

We still miss an automatic way to register JSF managed beans for reflection