[ https://issues.apache.org/jira/browse/MYFACES-4427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541446#comment-17541446 ]
Thomas Andraschko commented on MYFACES-4427: -------------------------------------------- the concept of JSF will not work in a uber jar as its not possible to have multiple files in the same path (e.g. /META-INF/faces-config.xml), which JSF apps heavily rely on even if just add primefaces, you already have 2 faces-config.xml MyFaces-Impl and PrimeFaces > Cant open any pages in quarkus when using quarkus.package.type=uber-jar > ----------------------------------------------------------------------- > > Key: MYFACES-4427 > URL: https://issues.apache.org/jira/browse/MYFACES-4427 > Project: MyFaces Core > Issue Type: Bug > Components: Extension Feature > Affects Versions: 2.3-next-M6 > Environment: JDK17 and JDK11 with Quarkus 2.6.2.Final > Reporter: Carlos Matos > Priority: Major > > When you package your quarkus jsf app using: mvn package and use > quarkus.package.type=uber-jar, you can't open any pages inside the > application, shows the following error: > {code:java} > 2022-01-21 20:10:37,884 ERROR [io.und.req.io] (executor-thread-0) Exception > handling request a9490912-cc69-46bb-8af2-7cf23c0fcf5c-1 to /settings.xhtml: > javax.servlet.ServletException > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:239) > at > io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) > at > io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:63) > at > io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68) > at > io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) > at > io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:67) > at > io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:133) > at > io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > at > io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) > at > io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:65) > at > io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) > at > io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) > at > io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) > at > io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > at > io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:247) > at > io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:56) > at > io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:111) > at > io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:108) > at > io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) > at > io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) > at > io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1.call(UndertowDeploymentRecorder.java:590) > at > io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) > at > io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:152) > at > io.quarkus.undertow.runtime.UndertowDeploymentRecorder$1.handleRequest(UndertowDeploymentRecorder.java:119) > at > io.undertow.server.Connectors.executeRootHandler(Connectors.java:290) > at > io.undertow.server.DefaultExchangeHandler.handle(DefaultExchangeHandler.java:18) > at > io.quarkus.undertow.runtime.UndertowDeploymentRecorder$5$1.run(UndertowDeploymentRecorder.java:412) > at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543) > at > org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449) > at > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478) > at > org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29) > at > org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29) > at > io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) > at java.base/java.lang.Thread.run(Thread.java:833) > Caused by: java.lang.UnsupportedOperationException > at > io.quarkus.arc.impl.BeanManagerImpl.getELResolver(BeanManagerImpl.java:225) > at > org.apache.myfaces.el.ELResolverBuilderForFaces.getCDIELResolver(ELResolverBuilderForFaces.java:188) > at > org.apache.myfaces.el.ELResolverBuilderForFaces.build(ELResolverBuilderForFaces.java:101) > at > org.apache.myfaces.application.ApplicationImpl.lambda$new$0(ApplicationImpl.java:287) > at org.apache.myfaces.util.lang.Lazy.get(Lazy.java:64) > at > org.apache.myfaces.application.ApplicationImpl.getELResolver(ApplicationImpl.java:352) > at > javax.faces.application.ApplicationWrapper.getELResolver(ApplicationWrapper.java:234) > at > org.apache.myfaces.context.servlet.FacesContextImplBase.getELContext(FacesContextImplBase.java:230) > at > org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.<init>(DefaultFaceletContext.java:140) > at > org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:159) > at > org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage$FaceletViewMetadata.createMetadataView(FaceletViewDeclarationLanguage.java:2483) > at > org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:253) > at > org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:172) > {code} > If I remove quarkus.package.type=uber-jar from my application.properties, > quarkus will use the default packaging mode called "fast-jar" and that works. -- This message was sent by Atlassian Jira (v8.20.7#820007)