-
Notifications
You must be signed in to change notification settings - Fork 86
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
Can't get PrettyFaces running with Quarkus & Primefaces #296
Comments
I would also like to see this updated for Quarkus |
Hey folks. Apologies for the very late reply on this (was dealing with some family stuff.) If you can provide a sample app with Quarkus and Rewrite, I'd be happy to take a look at what's going on here. I have never used Quarkus so I can't say what might be going wrong without a reproduction/sample. |
I have this fully runnable application using Quarkus and PrimeFaces etc. https://github.com/melloware/quarkus-faces It should be easy to modify it to use Rewrite and see what is wrong. |
@melloware @dmarko484 there has been a new alpha release for usage with EE9 and EE10. Could you test things again with those? I also saw that Prettyfaces makes heavy usage of CDI at runtime in lots of the Arquillian tests, so maybe using Quarkus deployment model of injection at compile time is problematic here? Is it possible to run the Arquillian tests on Quarkus as a target container? That might help with getting things going. |
I will say Quarkus is very particular and there are some things not even allowed like CDI Extensions etc. So there is a good possibility that Rewrite needs to change for Quarkus. |
Hey @melloware - Thanks, yes, It would be great if you could modify that project, and post steps here so that we can reproduce the issue. If you could please also provide stack traces or other errors you receive, that would be very helpful. It's hard to diagnose an issue without this. Thanks! |
I would also recommend trying to use Rewrite Servlet directly instead of Rewrite Config PrettyFaces. If that works, which is my guess, it would still be nice to know what errors PrettyFaces is causing. |
Hi @lincolnthree , I clone this project , and added the rewrite branch with dependencies, but not working. Below, the stacktrace. I run quarkus with command
|
Hi @lincolnthree , any news about this ? |
I ended up here because I was having trouble with Annotations. It seems like it's trying to scan I was able to get it working fine with |
I'm experimenting with Quarkus + Myfaces/Primefaces based on this repo https://github.com/apache/myfaces/tree/master/extensions/quarkus/showcase.
Here I'm trying to include Prettyfaces to get nicer URLs. More specifically I'm trying to use Rewrite by following this guide https://github.com/ocpsoft/rewrite/blob/master/documentation/src/main/asciidoc/configuration/annotations/index.asciidoc by using annotation.
Seems to me that, when using annotations, I just need to add dependency into pom and annotate a page like this:
@Join(path="/welcome", to="/demo/index.xhtml")
. I did both, can see"RewritePhaseListener starting up"
in console but URL /welcome is not working. Do you have any working example of Rewrite together with Quarkus?The text was updated successfully, but these errors were encountered: