Skip to content

Instantly share code, notes, and snippets.

@rmpestano
Last active June 21, 2019 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmpestano/d4f08562bf3b4ab2f007dc0a315a4bfc to your computer and use it in GitHub Desktop.
Save rmpestano/d4f08562bf3b4ab2f007dc0a315a4bfc to your computer and use it in GitHub Desktop.
Quarkus native build and execution log output
[INFO] [io.quarkus.creator.phase.nativeimage.NativeImagePhase] Running Quarkus native-image plugin on OpenJDK 64-Bit Server VM
[INFO] [io.quarkus.creator.phase.nativeimage.NativeImagePhase] docker run -v /home/rafael-pestano/projetos/quarkus-myfaces-native/quarkus-myfaces/quarkus-myfaces-showcase/target:/project:z --rm --user 74086768:560800513 quay.io/quarkus/centos-quarkus-native-image:graalvm-1.0.0-rc16 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy$BySpaceAndTime -jar quarkus-myfaces-showcase-1.0-SNAPSHOT-runner.jar -J-Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:+PrintAnalysisCallTree -H:-AddAllCharsets -H:EnableURLProtocols=http -H:-SpawnIsolates -H:-JNI --no-server -H:-UseServiceLoaderFeature -H:+StackTrace
WARNING: Error loading config file: /home/rafael-pestano/.docker/config.json: open /home/rafael-pestano/.docker/config.json: permission denied
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]    classlist:   6,201.36 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]        (cap):   1,142.31 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]        setup:   2,650.84 ms
17:34:55,530 INFO  [jav.fac.FactoryFinder] FactoryFInder CL: com.oracle.svm.hosted.NativeImageClassLoader@45342985
17:34:56,248 WARN  [io.und.web.jsr] UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
17:34:56,270 INFO  [org.apa.myf.web.MyFacesContainerInitializer] Using org.apache.myfaces.webapp.MyFacesContainerInitializer
17:34:56,284 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 1
17:34:56,284 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 3
17:34:56,322 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 4
17:34:56,323 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 5 - default=io.undertow.servlet.spec.ServletRegistrationImpl@6c6a3d56
17:34:56,323 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 5 - Faces Servlet=io.undertow.servlet.spec.ServletRegistrationImpl@17897756
17:34:56,326 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 6 - javax.faces.webapp.FacesServlet
17:34:56,326 INFO  [org.apa.myf.web.MyFacesContainerInitializer] Using org.apache.myfaces.webapp.MyFacesContainerInitializer
17:34:56,327 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 1
17:34:56,327 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 3
17:34:56,327 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 4
17:34:56,327 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 5 - default=io.undertow.servlet.spec.ServletRegistrationImpl@15bb0279
17:34:56,328 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 5 - Faces Servlet=io.undertow.servlet.spec.ServletRegistrationImpl@5c94e3d9
17:34:56,328 INFO  [org.apa.myf.web.MyFacesContainerInitializer] 6 - javax.faces.webapp.FacesServlet
17:34:56,330 INFO  [org.apa.myf.web.StartupServletContextListener] 1
17:34:56,331 INFO  [org.apa.myf.web.StartupServletContextListener] 2: io.undertow.servlet.spec.ServletContextImpl@61a9f590
17:34:56,332 INFO  [org.apa.myf.web.StartupServletContextListener] 3
17:34:56,332 INFO  [org.apa.myf.web.StartupServletContextListener] 4
17:34:56,332 INFO  [org.apa.myf.web.StartupServletContextListener] 5
17:34:56,333 INFO  [org.apa.myf.web.StartupServletContextListener] 6
17:34:56,333 INFO  [org.apa.myf.web.StartupServletContextListener] 7
17:34:56,335 INFO  [org.apa.myf.web.StartupServletContextListener] 8
17:34:56,612 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.application.ApplicationFactory impl: org.apache.myfaces.application.ApplicationFactoryImpl
17:34:56,612 INFO  [jav.fac.FactoryFinder] Initializing factoryFinderProviderFactoryInstance
17:34:56,612 INFO  [jav.fac.FactoryFinder] Initialized!
17:34:56,613 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.application.ApplicationFactory impl: io.quarkus.myfaces.runtime.QuarkusApplicationFactory
17:34:56,614 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.ExceptionHandlerFactory impl: org.apache.myfaces.context.ExceptionHandlerFactoryImpl
17:34:56,614 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.ExceptionHandlerFactory impl: io.quarkus.myfaces.runtime.exception.QuarkusExceptionHandlerFactory
17:34:56,614 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.ExternalContextFactory impl: org.apache.myfaces.context.ExternalContextFactoryImpl
17:34:56,614 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.FacesContextFactory impl: org.apache.myfaces.context.FacesContextFactoryImpl
17:34:56,614 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.FacesContextFactory impl: org.primefaces.context.PrimeFacesContextFactory
17:34:56,614 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.lifecycle.LifecycleFactory impl: org.apache.myfaces.lifecycle.LifecycleFactoryImpl
17:34:56,615 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.render.RenderKitFactory impl: org.apache.myfaces.renderkit.RenderKitFactoryImpl
17:34:56,615 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.view.facelets.TagHandlerDelegateFactory impl: org.apache.myfaces.view.facelets.tag.jsf.TagHandlerDelegateFactoryImpl
17:34:56,615 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.PartialViewContextFactory impl: org.apache.myfaces.context.PartialViewContextFactoryImpl
17:34:56,615 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.PartialViewContextFactory impl: org.primefaces.context.PrimePartialViewContextFactory
17:34:56,615 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.component.visit.VisitContextFactory impl: org.apache.myfaces.component.visit.VisitContextFactoryImpl
17:34:56,615 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.view.ViewDeclarationLanguageFactory impl: org.apache.myfaces.view.ViewDeclarationLanguageFactoryImpl
17:34:56,616 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.view.facelets.FaceletCacheFactory impl: org.apache.myfaces.view.facelets.impl.FaceletCacheFactoryImpl
17:34:56,616 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.context.FlashFactory impl: org.apache.myfaces.context.servlet.ServletFlashFactoryImpl
17:34:56,616 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.lifecycle.ClientWindowFactory impl: org.apache.myfaces.lifecycle.ClientWindowFactoryImpl
17:34:56,616 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.flow.FlowHandlerFactory impl: org.apache.myfaces.flow.FlowHandlerFactoryImpl
17:34:56,617 INFO  [jav.fac.FactoryFinder] SetFactory: javax.faces.component.search.SearchExpressionContextFactory impl: org.apache.myfaces.component.search.SearchExpressionContextFactoryImpl
17:34:56,629 INFO  [org.apa.myf.uti.ExternalSpecifications] MyFaces Core Bean Validation support disabled
17:34:56,649 INFO  [org.apa.myf.uti.ExternalSpecifications] MyFaces Core CDI support enabled
17:34:56,649 INFO  [org.apa.myf.uti.ExternalSpecifications] MyFaces Core EL 3.0 support enabled
17:34:56,650 INFO  [org.apa.myf.uti.ExternalSpecifications] MyFaces Core Servlet 4.0 support enabled
17:34:56,679 INFO  [org.pri.web.PostConstructApplicationEventListener] Running on PrimeFaces 7.0
17:34:56,681 INFO  [io.und.web.jsr] UT026005: Adding programmatic server endpoint class org.apache.myfaces.push.EndpointImpl for path /javax.faces.push/{channel}
17:34:56,682 WARNING [org.apa.myf.web.AbstractFacesInitializer]

********************************************************************
*** WARNING: Apache MyFaces Core is running in DEVELOPMENT mode. ***
***                                            ^^^^^^^^^^^       ***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getProjectStage() for more information.      ***
********************************************************************


17:34:56,683 INFO  [org.apa.myf.web.StartupServletContextListener] 9
17:34:56,683 INFO  [org.apa.myf.web.StartupServletContextListener] 10
17:34:56,684 INFO  [org.apa.myf.web.StartupServletContextListener] 11
17:34:56,684 INFO  [org.apa.myf.web.StartupServletContextListener] 12
17:34:56,684 INFO  [org.apa.myf.web.StartupServletContextListener] MyFaces Core has started, it took [352] ms.
17:34:56,685 INFO  [org.apa.myf.web.StartupServletContextListener] 1
17:34:56,686 INFO  [org.apa.myf.web.StartupServletContextListener] 2: io.undertow.servlet.spec.ServletContextImpl@61a9f590
17:34:56,686 INFO  [org.apa.myf.web.StartupServletContextListener] 3
17:34:56,686 INFO  [org.apa.myf.web.StartupServletContextListener] MyFaces already initialized
17:34:58,136 INFO  [org.jbo.threads] JBoss Threads version 3.0.0.Beta4
17:34:58,999 INFO  [org.xnio] XNIO version 3.7.1.Final
17:34:59,094 INFO  [org.xni.nio] XNIO NIO Implementation Version 3.7.1.Final
Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to sun.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of io.quarkus.runtime.CleanableExecutor$Resetter. Detailed failure reason(s): The argument of Unsafe.objectFieldOffset(Field) is not a constant field., Could not determine the field where the value produced by the call to sun.misc.Unsafe.objectFieldOffset(Field) for the field offset computation is stored. The call is not directly followed by a field store or by a sign extend node followed directly by a field store.
Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to sun.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of io.quarkus.runtime.CleanableExecutor$Resetter. Detailed failure reason(s): The argument of Unsafe.objectFieldOffset(Field) is not a constant field., Could not determine the field where the value produced by the call to sun.misc.Unsafe.objectFieldOffset(Field) for the field offset computation is stored. The call is not directly followed by a field store or by a sign extend node followed directly by a field store.
Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to sun.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of org.jboss.threads.ThreadLocalResettingRunnable$Resetter. Detailed failure reason(s): The argument of Unsafe.objectFieldOffset(Field) is not a constant field., Could not determine the field where the value produced by the call to sun.misc.Unsafe.objectFieldOffset(Field) for the field offset computation is stored. The call is not directly followed by a field store or by a sign extend node followed directly by a field store.
Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to sun.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of org.jboss.threads.ThreadLocalResettingRunnable$Resetter. Detailed failure reason(s): The argument of Unsafe.objectFieldOffset(Field) is not a constant field., Could not determine the field where the value produced by the call to sun.misc.Unsafe.objectFieldOffset(Field) for the field offset computation is stored. The call is not directly followed by a field store or by a sign extend node followed directly by a field store.
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]   (typeflow):  28,219.59 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]    (objects):  16,904.65 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]   (features):     997.08 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]     analysis:  47,271.39 ms
Printing call tree to /project/reports/call_tree_quarkus-myfaces-showcase-1.0-SNAPSHOT-runner_20190621_173548.txt
Printing list of used classes to /project/reports/used_classes_quarkus-myfaces-showcase-1.0-SNAPSHOT-runner_20190621_173551.txt
Printing list of used packages to /project/reports/used_packages_quarkus-myfaces-showcase-1.0-SNAPSHOT-runner_20190621_173551.txt
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]     universe:   1,319.46 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]      (parse):   4,865.46 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]     (inline):   6,286.15 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]    (compile):  37,753.37 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]      compile:  51,081.24 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]        image:   4,919.39 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]        write:   1,023.68 ms
[quarkus-myfaces-showcase-1.0-SNAPSHOT-runner:8]      [total]: 123,524.97 ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:11 min
[INFO] Finished at: 2019-06-21T14:36:51-03:00
[INFO] ------------------------------------------------------------------------
Quarkus 0.17.0 started in 0.004s. Listening on: http://0.0.0.0:8080
Installed features: [cdi, myfaces, undertow-websockets]
FactoryFInder CL: java.lang.ClassLoader@2b705e8
Initializing factoryFinderProviderFactoryInstance
Initialized!
java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

        at javax.faces.FactoryFinder._getFactory(FactoryFinder.java:309)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
        at org.apache.myfaces.lifecycle.RestoreViewSupport.<init>(RestoreViewSupport.java:49)
        at org.apache.myfaces.lifecycle.RestoreViewExecutor.getRestoreViewSupport(RestoreViewExecutor.java:565)
        at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:98)
        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:164)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment