I migrated a project that created a WAR file (with JSF and PrimeFaces) for Wildfly, to a Quarkus application, using the quarkus-primfaces-extension.
The application is running fine in dev mode when start it via maven quarkus:dev.
But when I build and run it as an uber-jar, as soon as I call the main page, I get the following error:
SEVERE org.apache.myfaces.application.ApplicationImpl.createComponent(1282) [executor-thread-1] - Undefined component type org.primefaces.component.Growl
jakarta.faces.FacesException: Undefined component type org.primefaces.component.Growl
at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1283)
at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1252)
at jakarta.faces.application.ApplicationWrapper.createComponent(ApplicationWrapper.java:128)
at org.apache.myfaces.view.facelets.tag.faces.ComponentTagHandlerDelegate.createComponent(ComponentTagHandlerDelegate.java:587)
at org.apache.myfaces.view.facelets.tag.faces.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:275)
at jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:52)
at jakarta.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at org.apache.myfaces.view.facelets.tag.faces.core.ViewHandler.apply(ViewHandler.java:195)
[...]
I'm using:
Any ideas why this happens?
Regards
Quarkus in Uber-JAR mode is not supported by MyFaces. See: https://issues.apache.org/jira/browse/MYFACES-4427