"WebBeansConfigurationListener not found" loading Tobago demo on Karaf 4.2.8

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"WebBeansConfigurationListener not found" loading Tobago demo on Karaf 4.2.8

Paul Spencer
Karaf 4.2.8

I am trying to run the Tobago v4.4.1 Demo Example under a virgin instance of Karaf but I am getting the error below.  I packaged the Tobago war using the command "mvn -Djsf=provided clean package" and copied the war to the /deploy directory of the instance.

I did add the "demo-realm" configuration to etc/jetty.xml and uncomment the <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> from web.xml in the project.  Also "mvn jetty:run" works as expected.

Ideas?

***
* From Karaf.log
***
2020-04-27T15:21:26,130 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | 105 - org.ops4j.pax.web.pax-web-runtime - 7.2.14 | Binding bundle: [tobago-example-demo [110]] to http service
2020-04-27T15:21:26,146 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer to ServletContainerInitializers
2020-04-27T15:21:26,148 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | added ServletContainerInitializer: org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer
2020-04-27T15:21:26,148 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.apache.jasper.servlet.JasperInitializer to ServletContainerInitializers
2020-04-27T15:21:26,150 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | Skipt org.apache.jasper.servlet.JasperInitializer, because specialized handler will be present
2020-04-27T15:21:26,150 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.apache.myfaces.ee6.MyFacesContainerInitializer to ServletContainerInitializers
2020-04-27T15:21:26,151 | WARN  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | failed to parse and instantiate of javax.servlet.ServletContainerInitializer in classpath
2020-04-27T15:21:26,151 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer to ServletContainerInitializers
2020-04-27T15:21:26,154 | INFO  | FelixStartLevel  | CdiExtender                      | 129 - org.ops4j.pax.cdi.extender - 1.1.2 | starting CDI extender org.ops4j.pax.cdi.extender
2020-04-27T15:21:27,974 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | added ServletContainerInitializer: org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer
2020-04-27T15:21:28,010 | INFO  | paxweb-extender-1-thread-1 | HttpServiceContext               | 103 - org.ops4j.pax.web.pax-web-jetty - 7.2.14 | registering context WebAppHttpContext{tobago-example-demo - 110}, with context-name: tobago-example-demo
2020-04-27T15:21:28,052 | ERROR | paxweb-extender-1-thread-1 | RegisterWebAppVisitorWC          | 101 - org.ops4j.pax.web.pax-web-extender-war - 7.2.14 | Registration exception. Skipping.
java.lang.ClassNotFoundException: org.apache.webbeans.servlet.WebBeansConfigurationListener not found by tobago-example-demo [110]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
        at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) ~[?:?]
        at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) ~[?:?]
        at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176) ~[?:?]
...
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
2020-04-27T15:21:28,073 | INFO  | paxweb-extender-1-thread-1 | HttpServiceContext               | 103 - org.ops4j.pax.web.pax-web-jetty - 7.2.14 | registering JasperInitializer
2020-04-27T15:21:28,104 | INFO  | paxweb-extender-1-thread-1 | WebSocketServerFactory           | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | No DecoratedObjectFactory provided, using new org.eclipse.jetty.util.DecoratedObjectFactory[decorators=1]
2020-04-27T15:21:28,157 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_0-rt.tld
2020-04-27T15:21:28,171 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_0.tld
2020-04-27T15:21:28,178 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_1.tld
2020-04-27T15:21:28,182 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c.tld
2020-04-27T15:21:28,186 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt-1_0-rt.tld
2020-04-27T15:21:28,192 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt-1_0.tld
2020-04-27T15:21:28,196 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt.tld
2020-04-27T15:21:28,199 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fn.tld
2020-04-27T15:21:28,202 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/permittedTaglibs.tld
2020-04-27T15:21:28,203 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/scriptfree.tld
2020-04-27T15:21:28,205 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql-1_0-rt.tld
2020-04-27T15:21:28,208 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql-1_0.tld
2020-04-27T15:21:28,212 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql.tld
2020-04-27T15:21:28,214 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x-1_0-rt.tld
2020-04-27T15:21:28,217 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x-1_0.tld
2020-04-27T15:21:28,221 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x.tld
2020-04-27T15:21:28,224 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://61.0:1/META-INF/myfaces_core.tld
2020-04-27T15:21:28,230 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://61.0:1/META-INF/myfaces_html.tld
2020-04-27T15:21:28,274 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | DefaultSessionIdManager workerName=node0
2020-04-27T15:21:28,274 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | No SessionScavenger set, using defaults
2020-04-27T15:21:28,276 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | node0 Scavenging every 660000ms
2020-04-27T15:21:28,345 | INFO  | paxweb-extender-1-thread-1 | DefaultFacesConfigurationProvider | 61 - org.apache.myfaces.core.impl - 2.2.12 | Reading standard config META-INF/standard-faces-config.xml
2020-04-27T15:21:28,368 | ERROR | paxweb-extender-1-thread-1 | Digester                         | 62 - org.apache.servicemix.bundles.commons-digester - 1.8.0.4 | Begin event threw exception
java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
        at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) ~[?:?]
        at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) ~[?:?]
        at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176) ~[!/:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_172]
        at org.ops4j.pax.swissbox.core.BundleClassLoader.loadClass(BundleClassLoader.java:192) ~[!/:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
        at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205) ~[!/:?]
        at org.apache.commons.digester.Rule.begin(Rule.java:175) ~[!/:?]
        at org.apache.commons.digester.Digester.startElement(Digester.java:1453) ~[!/:?]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[?:1.8.0_172]
...        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
2020-04-27T15:21:28,373 | ERROR | paxweb-extender-1-thread-1 | AbstractFacesInitializer         | 61 - org.apache.myfaces.core.impl - 2.2.12 | An error occured while initializing MyFaces: org.xml.sax.SAXParseException; systemId: file:///Users/paul/Downloads/apache-karaf-4.2.8/instances/jetty/META-INF/standard-faces-config.xml; lineNumber: 25; columnNumber: 29; Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
javax.faces.FacesException: org.xml.sax.SAXParseException; systemId: file:///Users/paul/Downloads/apache-karaf-4.2.8/instances/jetty/META-INF/standard-faces-config.xml; lineNumber: 25; columnNumber: 29; Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
        at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:193) ~[!/:2.2.12]
        at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:69) ~[!/:2.2.12]
        at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:592) ~[!/:2.2.12]
        at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:416) ~[!/:2.2.12]
        at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) ~[!/:2.2.12]
...
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_172]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_172]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
Caused by: org.xml.sax.SAXParseException: Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
        at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) ~[!/:?]
        at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) ~[!/:?]
        at org.apache.commons.digester.Digester.startElement(Digester.java:1456) ~[!/:?]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[?:1.8.0_172]
...
        at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:501) ~[!/:2.2.12]
        at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:38) ~[!/:2.2.12]
        at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:183) ~[!/:2.2.12]
        ... 43 more
Caused by: java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
        at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
...
        at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:183) ~[!/:2.2.12]
        ... 43 more
2020-04-27 15:21:28,378 | INFO  | ender-1-thread-1 | StartupServletContextListener    | 61 - org.apache.myfaces.core.impl - 2.2.12 | MyFaces Core has started, it took [93] ms.
2020-04-27 15:21:28,379 | INFO  | ender-1-thread-1 | StartupServletContextListener    | 61 - org.apache.myfaces.core.impl - 2.2.12 | MyFaces already initialized
2020-04-27 15:21:28,382 | INFO  | ender-1-thread-1 | LoggingMdcFilter                 | 110 - tobago-example-demo - 0.0.0 | init org.apache.myfaces.tobago.internal.webapp.LoggingMdcFilter
2020-04-27 15:21:28,382 | INFO  | ender-1-thread-1 | FixCharacterEncodingFilter       | 110 - tobago-example-demo - 0.0.0 | Filter initialized: Setting characterEncoding to UTF-8 to all requests.
2020-04-27 15:21:28,392 | WARN  | ender-1-thread-1 | default                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | unavailable
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:305) ~[!/:2.2.12]


***
* Additional environment information
***
karaf@jetty()> bundle:list
START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version     │ Name
────┼────────┼─────┼─────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────
 22 │ Active │  80 │ 4.2.8       │ Apache Karaf :: OSGi Services :: Event
 46 │ Active │  80 │ 1.2.0       │ CDI APIs
 47 │ Active │  80 │ 1.2         │ javax.interceptor API
 49 │ Active │  80 │ 1.1.0.Final │ Bean Validation API
 52 │ Active │  80 │ 1.11.0      │ Apache Commons Codec
 53 │ Active │  80 │ 3.2.2       │ Apache Commons Collections
 54 │ Active │  80 │ 1.9.4       │ Apache Commons BeanUtils
 60 │ Active │  80 │ 2.2.12      │ Apache MyFaces JSF-2.2 Core API
 61 │ Active │  80 │ 2.2.12      │ Apache MyFaces JSF-2.2 Core Impl
 62 │ Active │  80 │ 1.8.0.4     │ Apache ServiceMix :: Bundles :: commons-digester
 63 │ Active │  80 │ 1.0.0.2     │ Apache ServiceMix :: Bundles :: javax.inject
 64 │ Active │  80 │ 4.14.0      │ Apache XBean OSGI Bundle Utilities
 65 │ Active │  80 │ 4.14.0      │ Apache XBean :: Classpath Resource Finder
 94 │ Active │  80 │ 7.2.0       │ org.objectweb.asm
 95 │ Active │  80 │ 7.2.0       │ org.objectweb.asm.commons
 96 │ Active │  80 │ 7.2.0       │ org.objectweb.asm.tree
110 │ Active │  80 │ 0.0.0       │ tobago-example-demo
126 │ Active │  80 │ 1.1.2.Final │ classfilewriter
127 │ Active │  80 │ 2.4.8.Final │ Weld OSGi Bundle
128 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Bean Bundle API
129 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Extender for Bean Bundles
130 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Portable Extension for OSGi
131 │ Active │  80 │ 1.1.2       │ OPS4j Pax CDI Jetty Weld Adapter
132 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Service Provider Interface
133 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Web Adapter
134 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Weld Adapter
karaf@jetty()>                                                                                                                                                                                                        
karaf@jetty()> feature:list --installed
Name                   │ Version          │ Required │ State   │ Repository               │ Description
───────────────────────┼──────────────────┼──────────┼─────────┼──────────────────────────┼──────────────────────────────────────────────────
pax-cdi                │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Provide CDI support
pax-cdi-weld           │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld CDI 1.2 support
pax-cdi-web            │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Web CDI support
pax-cdi-web-weld       │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld Web CDI support
pax-cdi-web-weld-jetty │ 1.1.2            │ x        │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld Web CDI / Jetty support
feature                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Features Support
shell                  │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Karaf Shell
deployer               │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Karaf Deployer
bundle                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Bundle support
config                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide OSGi ConfigAdmin support
diagnostic             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Diagnostic support
instance               │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Instance support
jaas                   │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide JAAS support
log                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Log support
package                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Package commands and mbeans
service                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Service support
system                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide System support
http                   │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Implementation of the OSGI HTTP Service
pax-http-service       │ 7.2.14           │          │ Started │ standard-4.2.8           │ Pax-Web OSGi HTTP Service
kar                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide KAR (KARaf archive) support
ssh                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide a SSHd server on Karaf
management             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide a JMX MBeanServer and a set of MBeans in
eventadmin             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ OSGi Event Admin service specification for event-
scr                    │ 4.2.8            │          │ Started │ standard-4.2.8           │ Declarative Service support
wrap                   │ 2.6.2            │ x        │ Started │ standard-4.2.8           │ Wrap URL handler
pax-web-core           │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide Core pax-web bundles
pax-jetty              │ 9.4.22.v20191022 │ x        │ Started │ org.ops4j.pax.web-7.2.14 │ Provide Jetty engine support
pax-http-jetty         │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │
pax-http               │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │ Implementation of the OSGI HTTP Service
pax-http-whiteboard    │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide HTTP Whiteboard pattern support
pax-war                │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide support of a full WebContainer
pax-jsf-support        │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │
karaf@jetty()>

karaf@jetty()> bundle:tree-show 110
Bundle tobago-example-demo [110] is currently ACTIVE

tobago-example-demo [110]
+- javax.el-api [45]
+- org.ops4j.pax.web.pax-web-jsp [104]
|  +- javax.el-api [45]
|  +- org.ops4j.pax.logging.pax-logging-api [5]
|  |  +- org.apache.karaf.services.eventadmin [2]
|  |     +- org.apache.felix.configadmin [9]
|  |     |  +- org.apache.felix.coordinator [8]
|  |     +- org.apache.felix.metatype [4]
|  +- org.ops4j.pax.web.pax-web-spi [106]
|  |  +- org.ops4j.pax.logging.pax-logging-api [5]
|  |  +- org.ops4j.pax.web.pax-web-api [98]
|  |  |  +- org.ops4j.pax.logging.pax-logging-api [5]
|  |  |  +- javax.servlet-api [48]
|  |  |  +- org.apache.xbean.finder [65]
|  |  |     +- org.objectweb.asm.commons [95]
|  |  |     |  +- org.objectweb.asm [94]
|  |  |     |  +- org.objectweb.asm.tree [96]
|  |  |     |     +- org.objectweb.asm [94]
|  |  |     +- org.ops4j.pax.logging.pax-logging-api [5]
|  |  |     +- org.apache.xbean.bundleutils [64]
|  |  |     |  +- org.ops4j.pax.logging.pax-logging-api [5]
|  |  |     +- org.objectweb.asm [94]
|  |  +- javax.servlet-api [48]
|  +- org.ops4j.pax.web.pax-web-api [98]
|  +- org.eclipse.jdt.core.compiler.batch [66]
|  +- javax.servlet-api [48]
+- org.ops4j.pax.logging.pax-logging-api [5]
+- org.apache.myfaces.core.api [60]
|  +- javax.el-api [45]
|  +- org.ops4j.pax.web.pax-web-jsp [104]
|  +- org.ops4j.pax.logging.pax-logging-api [5]
|  +- javax.validation.api [49]
|  +- javax.servlet-api [48]
+- javax.enterprise.cdi-api [46]
|  +- javax.el-api [45]
|  +- org.apache.servicemix.bundles.javax-inject [63]
|  +- javax.interceptor-api [47]
+- org.apache.servicemix.bundles.javax-inject [63]
+- javax.interceptor-api [47]
+- javax.servlet-api [48]
karaf@jetty()>    



Paul Spencer      

Reply | Threaded
Open this post in threaded view
|

Re: "WebBeansConfigurationListener not found" loading Tobago demo on Karaf 4.2.8

jbonofre
Hi Paul,

Does the war include myface and web beans jar in META-INF/lib ?

Regards
JB

> Le 27 avr. 2020 à 21:54, Paul Spencer <[hidden email]> a écrit :
>
> Karaf 4.2.8
>
> I am trying to run the Tobago v4.4.1 Demo Example under a virgin instance of Karaf but I am getting the error below.  I packaged the Tobago war using the command "mvn -Djsf=provided clean package" and copied the war to the /deploy directory of the instance.
>
> I did add the "demo-realm" configuration to etc/jetty.xml and uncomment the <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> from web.xml in the project.  Also "mvn jetty:run" works as expected.
>
> Ideas?
>
> ***
> * From Karaf.log
> ***
> 2020-04-27T15:21:26,130 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | 105 - org.ops4j.pax.web.pax-web-runtime - 7.2.14 | Binding bundle: [tobago-example-demo [110]] to http service
> 2020-04-27T15:21:26,146 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer to ServletContainerInitializers
> 2020-04-27T15:21:26,148 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | added ServletContainerInitializer: org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer
> 2020-04-27T15:21:26,148 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.apache.jasper.servlet.JasperInitializer to ServletContainerInitializers
> 2020-04-27T15:21:26,150 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | Skipt org.apache.jasper.servlet.JasperInitializer, because specialized handler will be present
> 2020-04-27T15:21:26,150 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.apache.myfaces.ee6.MyFacesContainerInitializer to ServletContainerInitializers
> 2020-04-27T15:21:26,151 | WARN  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | failed to parse and instantiate of javax.servlet.ServletContainerInitializer in classpath
> 2020-04-27T15:21:26,151 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer to ServletContainerInitializers
> 2020-04-27T15:21:26,154 | INFO  | FelixStartLevel  | CdiExtender                      | 129 - org.ops4j.pax.cdi.extender - 1.1.2 | starting CDI extender org.ops4j.pax.cdi.extender
> 2020-04-27T15:21:27,974 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | added ServletContainerInitializer: org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer
> 2020-04-27T15:21:28,010 | INFO  | paxweb-extender-1-thread-1 | HttpServiceContext               | 103 - org.ops4j.pax.web.pax-web-jetty - 7.2.14 | registering context WebAppHttpContext{tobago-example-demo - 110}, with context-name: tobago-example-demo
> 2020-04-27T15:21:28,052 | ERROR | paxweb-extender-1-thread-1 | RegisterWebAppVisitorWC          | 101 - org.ops4j.pax.web.pax-web-extender-war - 7.2.14 | Registration exception. Skipping.
> java.lang.ClassNotFoundException: org.apache.webbeans.servlet.WebBeansConfigurationListener not found by tobago-example-demo [110]
>        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
>        at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
>        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
>        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) ~[?:?]
>        at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) ~[?:?]
>        at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176) ~[?:?]
> ...
>        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
> 2020-04-27T15:21:28,073 | INFO  | paxweb-extender-1-thread-1 | HttpServiceContext               | 103 - org.ops4j.pax.web.pax-web-jetty - 7.2.14 | registering JasperInitializer
> 2020-04-27T15:21:28,104 | INFO  | paxweb-extender-1-thread-1 | WebSocketServerFactory           | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | No DecoratedObjectFactory provided, using new org.eclipse.jetty.util.DecoratedObjectFactory[decorators=1]
> 2020-04-27T15:21:28,157 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_0-rt.tld
> 2020-04-27T15:21:28,171 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_0.tld
> 2020-04-27T15:21:28,178 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_1.tld
> 2020-04-27T15:21:28,182 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c.tld
> 2020-04-27T15:21:28,186 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt-1_0-rt.tld
> 2020-04-27T15:21:28,192 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt-1_0.tld
> 2020-04-27T15:21:28,196 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt.tld
> 2020-04-27T15:21:28,199 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fn.tld
> 2020-04-27T15:21:28,202 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/permittedTaglibs.tld
> 2020-04-27T15:21:28,203 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/scriptfree.tld
> 2020-04-27T15:21:28,205 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql-1_0-rt.tld
> 2020-04-27T15:21:28,208 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql-1_0.tld
> 2020-04-27T15:21:28,212 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql.tld
> 2020-04-27T15:21:28,214 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x-1_0-rt.tld
> 2020-04-27T15:21:28,217 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x-1_0.tld
> 2020-04-27T15:21:28,221 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x.tld
> 2020-04-27T15:21:28,224 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://61.0:1/META-INF/myfaces_core.tld
> 2020-04-27T15:21:28,230 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://61.0:1/META-INF/myfaces_html.tld
> 2020-04-27T15:21:28,274 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | DefaultSessionIdManager workerName=node0
> 2020-04-27T15:21:28,274 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | No SessionScavenger set, using defaults
> 2020-04-27T15:21:28,276 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | node0 Scavenging every 660000ms
> 2020-04-27T15:21:28,345 | INFO  | paxweb-extender-1-thread-1 | DefaultFacesConfigurationProvider | 61 - org.apache.myfaces.core.impl - 2.2.12 | Reading standard config META-INF/standard-faces-config.xml
> 2020-04-27T15:21:28,368 | ERROR | paxweb-extender-1-thread-1 | Digester                         | 62 - org.apache.servicemix.bundles.commons-digester - 1.8.0.4 | Begin event threw exception
> java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
>        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
>        at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
>        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
>        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) ~[?:?]
>        at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) ~[?:?]
>        at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176) ~[!/:?]
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_172]
>        at org.ops4j.pax.swissbox.core.BundleClassLoader.loadClass(BundleClassLoader.java:192) ~[!/:?]
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
>        at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205) ~[!/:?]
>        at org.apache.commons.digester.Rule.begin(Rule.java:175) ~[!/:?]
>        at org.apache.commons.digester.Digester.startElement(Digester.java:1453) ~[!/:?]
>        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[?:1.8.0_172]
> ...        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
>        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
> 2020-04-27T15:21:28,373 | ERROR | paxweb-extender-1-thread-1 | AbstractFacesInitializer         | 61 - org.apache.myfaces.core.impl - 2.2.12 | An error occured while initializing MyFaces: org.xml.sax.SAXParseException; systemId: file:///Users/paul/Downloads/apache-karaf-4.2.8/instances/jetty/META-INF/standard-faces-config.xml; lineNumber: 25; columnNumber: 29; Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
> javax.faces.FacesException: org.xml.sax.SAXParseException; systemId: file:///Users/paul/Downloads/apache-karaf-4.2.8/instances/jetty/META-INF/standard-faces-config.xml; lineNumber: 25; columnNumber: 29; Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
>        at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:193) ~[!/:2.2.12]
>        at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:69) ~[!/:2.2.12]
>        at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:592) ~[!/:2.2.12]
>        at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:416) ~[!/:2.2.12]
>        at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) ~[!/:2.2.12]
> ...
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_172]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_172]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
> Caused by: org.xml.sax.SAXParseException: Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
> at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) ~[!/:?]
> at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) ~[!/:?]
> at org.apache.commons.digester.Digester.startElement(Digester.java:1456) ~[!/:?]
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[?:1.8.0_172]
> ...
> at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:501) ~[!/:2.2.12]
> at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:38) ~[!/:2.2.12]
> at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:183) ~[!/:2.2.12]
> ... 43 more
> Caused by: java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
> at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
> at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
> at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
> ...
> at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:183) ~[!/:2.2.12]
> ... 43 more
> 2020-04-27 15:21:28,378 | INFO  | ender-1-thread-1 | StartupServletContextListener    | 61 - org.apache.myfaces.core.impl - 2.2.12 | MyFaces Core has started, it took [93] ms.
> 2020-04-27 15:21:28,379 | INFO  | ender-1-thread-1 | StartupServletContextListener    | 61 - org.apache.myfaces.core.impl - 2.2.12 | MyFaces already initialized
> 2020-04-27 15:21:28,382 | INFO  | ender-1-thread-1 | LoggingMdcFilter                 | 110 - tobago-example-demo - 0.0.0 | init org.apache.myfaces.tobago.internal.webapp.LoggingMdcFilter
> 2020-04-27 15:21:28,382 | INFO  | ender-1-thread-1 | FixCharacterEncodingFilter       | 110 - tobago-example-demo - 0.0.0 | Filter initialized: Setting characterEncoding to UTF-8 to all requests.
> 2020-04-27 15:21:28,392 | WARN  | ender-1-thread-1 | default                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | unavailable
> 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:305) ~[!/:2.2.12]
>
>
> ***
> * Additional environment information
> ***
> karaf@jetty()> bundle:list
> START LEVEL 100 , List Threshold: 50
> ID │ State  │ Lvl │ Version     │ Name
> ────┼────────┼─────┼─────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────
> 22 │ Active │  80 │ 4.2.8       │ Apache Karaf :: OSGi Services :: Event
> 46 │ Active │  80 │ 1.2.0       │ CDI APIs
> 47 │ Active │  80 │ 1.2         │ javax.interceptor API
> 49 │ Active │  80 │ 1.1.0.Final │ Bean Validation API
> 52 │ Active │  80 │ 1.11.0      │ Apache Commons Codec
> 53 │ Active │  80 │ 3.2.2       │ Apache Commons Collections
> 54 │ Active │  80 │ 1.9.4       │ Apache Commons BeanUtils
> 60 │ Active │  80 │ 2.2.12      │ Apache MyFaces JSF-2.2 Core API
> 61 │ Active │  80 │ 2.2.12      │ Apache MyFaces JSF-2.2 Core Impl
> 62 │ Active │  80 │ 1.8.0.4     │ Apache ServiceMix :: Bundles :: commons-digester
> 63 │ Active │  80 │ 1.0.0.2     │ Apache ServiceMix :: Bundles :: javax.inject
> 64 │ Active │  80 │ 4.14.0      │ Apache XBean OSGI Bundle Utilities
> 65 │ Active │  80 │ 4.14.0      │ Apache XBean :: Classpath Resource Finder
> 94 │ Active │  80 │ 7.2.0       │ org.objectweb.asm
> 95 │ Active │  80 │ 7.2.0       │ org.objectweb.asm.commons
> 96 │ Active │  80 │ 7.2.0       │ org.objectweb.asm.tree
> 110 │ Active │  80 │ 0.0.0       │ tobago-example-demo
> 126 │ Active │  80 │ 1.1.2.Final │ classfilewriter
> 127 │ Active │  80 │ 2.4.8.Final │ Weld OSGi Bundle
> 128 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Bean Bundle API
> 129 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Extender for Bean Bundles
> 130 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Portable Extension for OSGi
> 131 │ Active │  80 │ 1.1.2       │ OPS4j Pax CDI Jetty Weld Adapter
> 132 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Service Provider Interface
> 133 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Web Adapter
> 134 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Weld Adapter
> karaf@jetty()>                                                                                                                                                                                                        
> karaf@jetty()> feature:list --installed
> Name                   │ Version          │ Required │ State   │ Repository               │ Description
> ───────────────────────┼──────────────────┼──────────┼─────────┼──────────────────────────┼──────────────────────────────────────────────────
> pax-cdi                │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Provide CDI support
> pax-cdi-weld           │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld CDI 1.2 support
> pax-cdi-web            │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Web CDI support
> pax-cdi-web-weld       │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld Web CDI support
> pax-cdi-web-weld-jetty │ 1.1.2            │ x        │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld Web CDI / Jetty support
> feature                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Features Support
> shell                  │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Karaf Shell
> deployer               │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Karaf Deployer
> bundle                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Bundle support
> config                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide OSGi ConfigAdmin support
> diagnostic             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Diagnostic support
> instance               │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Instance support
> jaas                   │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide JAAS support
> log                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Log support
> package                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Package commands and mbeans
> service                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Service support
> system                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide System support
> http                   │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Implementation of the OSGI HTTP Service
> pax-http-service       │ 7.2.14           │          │ Started │ standard-4.2.8           │ Pax-Web OSGi HTTP Service
> kar                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide KAR (KARaf archive) support
> ssh                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide a SSHd server on Karaf
> management             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide a JMX MBeanServer and a set of MBeans in
> eventadmin             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ OSGi Event Admin service specification for event-
> scr                    │ 4.2.8            │          │ Started │ standard-4.2.8           │ Declarative Service support
> wrap                   │ 2.6.2            │ x        │ Started │ standard-4.2.8           │ Wrap URL handler
> pax-web-core           │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide Core pax-web bundles
> pax-jetty              │ 9.4.22.v20191022 │ x        │ Started │ org.ops4j.pax.web-7.2.14 │ Provide Jetty engine support
> pax-http-jetty         │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │
> pax-http               │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │ Implementation of the OSGI HTTP Service
> pax-http-whiteboard    │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide HTTP Whiteboard pattern support
> pax-war                │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide support of a full WebContainer
> pax-jsf-support        │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │
> karaf@jetty()>
>
> karaf@jetty()> bundle:tree-show 110
> Bundle tobago-example-demo [110] is currently ACTIVE
>
> tobago-example-demo [110]
> +- javax.el-api [45]
> +- org.ops4j.pax.web.pax-web-jsp [104]
> |  +- javax.el-api [45]
> |  +- org.ops4j.pax.logging.pax-logging-api [5]
> |  |  +- org.apache.karaf.services.eventadmin [2]
> |  |     +- org.apache.felix.configadmin [9]
> |  |     |  +- org.apache.felix.coordinator [8]
> |  |     +- org.apache.felix.metatype [4]
> |  +- org.ops4j.pax.web.pax-web-spi [106]
> |  |  +- org.ops4j.pax.logging.pax-logging-api [5]
> |  |  +- org.ops4j.pax.web.pax-web-api [98]
> |  |  |  +- org.ops4j.pax.logging.pax-logging-api [5]
> |  |  |  +- javax.servlet-api [48]
> |  |  |  +- org.apache.xbean.finder [65]
> |  |  |     +- org.objectweb.asm.commons [95]
> |  |  |     |  +- org.objectweb.asm [94]
> |  |  |     |  +- org.objectweb.asm.tree [96]
> |  |  |     |     +- org.objectweb.asm [94]
> |  |  |     +- org.ops4j.pax.logging.pax-logging-api [5]
> |  |  |     +- org.apache.xbean.bundleutils [64]
> |  |  |     |  +- org.ops4j.pax.logging.pax-logging-api [5]
> |  |  |     +- org.objectweb.asm [94]
> |  |  +- javax.servlet-api [48]
> |  +- org.ops4j.pax.web.pax-web-api [98]
> |  +- org.eclipse.jdt.core.compiler.batch [66]
> |  +- javax.servlet-api [48]
> +- org.ops4j.pax.logging.pax-logging-api [5]
> +- org.apache.myfaces.core.api [60]
> |  +- javax.el-api [45]
> |  +- org.ops4j.pax.web.pax-web-jsp [104]
> |  +- org.ops4j.pax.logging.pax-logging-api [5]
> |  +- javax.validation.api [49]
> |  +- javax.servlet-api [48]
> +- javax.enterprise.cdi-api [46]
> |  +- javax.el-api [45]
> |  +- org.apache.servicemix.bundles.javax-inject [63]
> |  +- javax.interceptor-api [47]
> +- org.apache.servicemix.bundles.javax-inject [63]
> +- javax.interceptor-api [47]
> +- javax.servlet-api [48]
> karaf@jetty()>    
>
>
>
> Paul Spencer      
>

Reply | Threaded
Open this post in threaded view
|

Re: "WebBeansConfigurationListener not found" loading Tobago demo on Karaf 4.2.8

Paul Spencer-3
JB,
I realized over night the issue, as you suggested, is related to what is on the class path.  So I need to step back and start over with a focus one ensuring the "war" list its requirements and the karaf environment has the appropriate bundles.  

I will keep this list apprised of my progress.

Paul Spencer  

> On Apr 28, 2020, at 1:27 AM, Jean-Baptiste Onofre <[hidden email]> wrote:
>
> Hi Paul,
>
> Does the war include myface and web beans jar in META-INF/lib ?
>
> Regards
> JB
>
>> Le 27 avr. 2020 à 21:54, Paul Spencer <[hidden email]> a écrit :
>>
>> Karaf 4.2.8
>>
>> I am trying to run the Tobago v4.4.1 Demo Example under a virgin instance of Karaf but I am getting the error below.  I packaged the Tobago war using the command "mvn -Djsf=provided clean package" and copied the war to the /deploy directory of the instance.
>>
>> I did add the "demo-realm" configuration to etc/jetty.xml and uncomment the <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> from web.xml in the project.  Also "mvn jetty:run" works as expected.
>>
>> Ideas?
>>
>> ***
>> * From Karaf.log
>> ***
>> 2020-04-27T15:21:26,130 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | 105 - org.ops4j.pax.web.pax-web-runtime - 7.2.14 | Binding bundle: [tobago-example-demo [110]] to http service
>> 2020-04-27T15:21:26,146 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer to ServletContainerInitializers
>> 2020-04-27T15:21:26,148 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | added ServletContainerInitializer: org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer
>> 2020-04-27T15:21:26,148 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.apache.jasper.servlet.JasperInitializer to ServletContainerInitializers
>> 2020-04-27T15:21:26,150 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | Skipt org.apache.jasper.servlet.JasperInitializer, because specialized handler will be present
>> 2020-04-27T15:21:26,150 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.apache.myfaces.ee6.MyFacesContainerInitializer to ServletContainerInitializers
>> 2020-04-27T15:21:26,151 | WARN  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | failed to parse and instantiate of javax.servlet.ServletContainerInitializer in classpath
>> 2020-04-27T15:21:26,151 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | will add org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer to ServletContainerInitializers
>> 2020-04-27T15:21:26,154 | INFO  | FelixStartLevel  | CdiExtender                      | 129 - org.ops4j.pax.cdi.extender - 1.1.2 | starting CDI extender org.ops4j.pax.cdi.extender
>> 2020-04-27T15:21:27,974 | INFO  | paxweb-extender-1-thread-1 | ServletContainerInitializerScanner | 98 - org.ops4j.pax.web.pax-web-api - 7.2.14 | added ServletContainerInitializer: org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer
>> 2020-04-27T15:21:28,010 | INFO  | paxweb-extender-1-thread-1 | HttpServiceContext               | 103 - org.ops4j.pax.web.pax-web-jetty - 7.2.14 | registering context WebAppHttpContext{tobago-example-demo - 110}, with context-name: tobago-example-demo
>> 2020-04-27T15:21:28,052 | ERROR | paxweb-extender-1-thread-1 | RegisterWebAppVisitorWC          | 101 - org.ops4j.pax.web.pax-web-extender-war - 7.2.14 | Registration exception. Skipping.
>> java.lang.ClassNotFoundException: org.apache.webbeans.servlet.WebBeansConfigurationListener not found by tobago-example-demo [110]
>>       at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
>>       at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
>>       at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
>>       at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) ~[?:?]
>>       at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) ~[?:?]
>>       at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176) ~[?:?]
>> ...
>>       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
>> 2020-04-27T15:21:28,073 | INFO  | paxweb-extender-1-thread-1 | HttpServiceContext               | 103 - org.ops4j.pax.web.pax-web-jetty - 7.2.14 | registering JasperInitializer
>> 2020-04-27T15:21:28,104 | INFO  | paxweb-extender-1-thread-1 | WebSocketServerFactory           | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | No DecoratedObjectFactory provided, using new org.eclipse.jetty.util.DecoratedObjectFactory[decorators=1]
>> 2020-04-27T15:21:28,157 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_0-rt.tld
>> 2020-04-27T15:21:28,171 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_0.tld
>> 2020-04-27T15:21:28,178 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c-1_1.tld
>> 2020-04-27T15:21:28,182 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/c.tld
>> 2020-04-27T15:21:28,186 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt-1_0-rt.tld
>> 2020-04-27T15:21:28,192 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt-1_0.tld
>> 2020-04-27T15:21:28,196 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fmt.tld
>> 2020-04-27T15:21:28,199 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/fn.tld
>> 2020-04-27T15:21:28,202 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/permittedTaglibs.tld
>> 2020-04-27T15:21:28,203 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/scriptfree.tld
>> 2020-04-27T15:21:28,205 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql-1_0-rt.tld
>> 2020-04-27T15:21:28,208 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql-1_0.tld
>> 2020-04-27T15:21:28,212 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/sql.tld
>> 2020-04-27T15:21:28,214 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x-1_0-rt.tld
>> 2020-04-27T15:21:28,217 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x-1_0.tld
>> 2020-04-27T15:21:28,221 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://104.0:1/META-INF/x.tld
>> 2020-04-27T15:21:28,224 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://61.0:1/META-INF/myfaces_core.tld
>> 2020-04-27T15:21:28,230 | INFO  | paxweb-extender-1-thread-1 | TldScanner                       | 104 - org.ops4j.pax.web.pax-web-jsp - 7.2.14 | found TLD bundle://61.0:1/META-INF/myfaces_html.tld
>> 2020-04-27T15:21:28,274 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | DefaultSessionIdManager workerName=node0
>> 2020-04-27T15:21:28,274 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | No SessionScavenger set, using defaults
>> 2020-04-27T15:21:28,276 | INFO  | paxweb-extender-1-thread-1 | session                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | node0 Scavenging every 660000ms
>> 2020-04-27T15:21:28,345 | INFO  | paxweb-extender-1-thread-1 | DefaultFacesConfigurationProvider | 61 - org.apache.myfaces.core.impl - 2.2.12 | Reading standard config META-INF/standard-faces-config.xml
>> 2020-04-27T15:21:28,368 | ERROR | paxweb-extender-1-thread-1 | Digester                         | 62 - org.apache.servicemix.bundles.commons-digester - 1.8.0.4 | Begin event threw exception
>> java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
>>       at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
>>       at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
>>       at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
>>       at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) ~[?:?]
>>       at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) ~[?:?]
>>       at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176) ~[!/:?]
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_172]
>>       at org.ops4j.pax.swissbox.core.BundleClassLoader.loadClass(BundleClassLoader.java:192) ~[!/:?]
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
>>       at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205) ~[!/:?]
>>       at org.apache.commons.digester.Rule.begin(Rule.java:175) ~[!/:?]
>>       at org.apache.commons.digester.Digester.startElement(Digester.java:1453) ~[!/:?]
>>       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[?:1.8.0_172]
>> ...        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
>>       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
>> 2020-04-27T15:21:28,373 | ERROR | paxweb-extender-1-thread-1 | AbstractFacesInitializer         | 61 - org.apache.myfaces.core.impl - 2.2.12 | An error occured while initializing MyFaces: org.xml.sax.SAXParseException; systemId: file:///Users/paul/Downloads/apache-karaf-4.2.8/instances/jetty/META-INF/standard-faces-config.xml; lineNumber: 25; columnNumber: 29; Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
>> javax.faces.FacesException: org.xml.sax.SAXParseException; systemId: file:///Users/paul/Downloads/apache-karaf-4.2.8/instances/jetty/META-INF/standard-faces-config.xml; lineNumber: 25; columnNumber: 29; Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
>>       at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:193) ~[!/:2.2.12]
>>       at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:69) ~[!/:2.2.12]
>>       at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:592) ~[!/:2.2.12]
>>       at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:416) ~[!/:2.2.12]
>>       at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) ~[!/:2.2.12]
>> ...
>> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_172]
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_172]
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
>> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
>> Caused by: org.xml.sax.SAXParseException: Error at line 25 char 29: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
>> at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) ~[!/:?]
>> at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) ~[!/:?]
>> at org.apache.commons.digester.Digester.startElement(Digester.java:1456) ~[!/:?]
>> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[?:1.8.0_172]
>> ...
>> at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:501) ~[!/:2.2.12]
>> at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:38) ~[!/:2.2.12]
>> at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:183) ~[!/:2.2.12]
>> ... 43 more
>> Caused by: java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl not found by tobago-example-demo [110]
>> at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
>> at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
>> at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
>> ...
>> at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getStandardFacesConfig(DefaultFacesConfigurationProvider.java:183) ~[!/:2.2.12]
>> ... 43 more
>> 2020-04-27 15:21:28,378 | INFO  | ender-1-thread-1 | StartupServletContextListener    | 61 - org.apache.myfaces.core.impl - 2.2.12 | MyFaces Core has started, it took [93] ms.
>> 2020-04-27 15:21:28,379 | INFO  | ender-1-thread-1 | StartupServletContextListener    | 61 - org.apache.myfaces.core.impl - 2.2.12 | MyFaces already initialized
>> 2020-04-27 15:21:28,382 | INFO  | ender-1-thread-1 | LoggingMdcFilter                 | 110 - tobago-example-demo - 0.0.0 | init org.apache.myfaces.tobago.internal.webapp.LoggingMdcFilter
>> 2020-04-27 15:21:28,382 | INFO  | ender-1-thread-1 | FixCharacterEncodingFilter       | 110 - tobago-example-demo - 0.0.0 | Filter initialized: Setting characterEncoding to UTF-8 to all requests.
>> 2020-04-27 15:21:28,392 | WARN  | ender-1-thread-1 | default                          | 83 - org.eclipse.jetty.util - 9.4.22.v20191022 | unavailable
>> 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:305) ~[!/:2.2.12]
>>
>>
>> ***
>> * Additional environment information
>> ***
>> karaf@jetty()> bundle:list
>> START LEVEL 100 , List Threshold: 50
>> ID │ State  │ Lvl │ Version     │ Name
>> ────┼────────┼─────┼─────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────
>> 22 │ Active │  80 │ 4.2.8       │ Apache Karaf :: OSGi Services :: Event
>> 46 │ Active │  80 │ 1.2.0       │ CDI APIs
>> 47 │ Active │  80 │ 1.2         │ javax.interceptor API
>> 49 │ Active │  80 │ 1.1.0.Final │ Bean Validation API
>> 52 │ Active │  80 │ 1.11.0      │ Apache Commons Codec
>> 53 │ Active │  80 │ 3.2.2       │ Apache Commons Collections
>> 54 │ Active │  80 │ 1.9.4       │ Apache Commons BeanUtils
>> 60 │ Active │  80 │ 2.2.12      │ Apache MyFaces JSF-2.2 Core API
>> 61 │ Active │  80 │ 2.2.12      │ Apache MyFaces JSF-2.2 Core Impl
>> 62 │ Active │  80 │ 1.8.0.4     │ Apache ServiceMix :: Bundles :: commons-digester
>> 63 │ Active │  80 │ 1.0.0.2     │ Apache ServiceMix :: Bundles :: javax.inject
>> 64 │ Active │  80 │ 4.14.0      │ Apache XBean OSGI Bundle Utilities
>> 65 │ Active │  80 │ 4.14.0      │ Apache XBean :: Classpath Resource Finder
>> 94 │ Active │  80 │ 7.2.0       │ org.objectweb.asm
>> 95 │ Active │  80 │ 7.2.0       │ org.objectweb.asm.commons
>> 96 │ Active │  80 │ 7.2.0       │ org.objectweb.asm.tree
>> 110 │ Active │  80 │ 0.0.0       │ tobago-example-demo
>> 126 │ Active │  80 │ 1.1.2.Final │ classfilewriter
>> 127 │ Active │  80 │ 2.4.8.Final │ Weld OSGi Bundle
>> 128 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Bean Bundle API
>> 129 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Extender for Bean Bundles
>> 130 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Portable Extension for OSGi
>> 131 │ Active │  80 │ 1.1.2       │ OPS4j Pax CDI Jetty Weld Adapter
>> 132 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Service Provider Interface
>> 133 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Web Adapter
>> 134 │ Active │  80 │ 1.1.2       │ OPS4J Pax CDI Weld Adapter
>> karaf@jetty()>                                                                                                                                                                                                        
>> karaf@jetty()> feature:list --installed
>> Name                   │ Version          │ Required │ State   │ Repository               │ Description
>> ───────────────────────┼──────────────────┼──────────┼─────────┼──────────────────────────┼──────────────────────────────────────────────────
>> pax-cdi                │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Provide CDI support
>> pax-cdi-weld           │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld CDI 1.2 support
>> pax-cdi-web            │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Web CDI support
>> pax-cdi-web-weld       │ 1.1.2            │          │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld Web CDI support
>> pax-cdi-web-weld-jetty │ 1.1.2            │ x        │ Started │ org.ops4j.pax.cdi-1.1.2  │ Weld Web CDI / Jetty support
>> feature                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Features Support
>> shell                  │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Karaf Shell
>> deployer               │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Karaf Deployer
>> bundle                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Bundle support
>> config                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide OSGi ConfigAdmin support
>> diagnostic             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Diagnostic support
>> instance               │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Instance support
>> jaas                   │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide JAAS support
>> log                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Log support
>> package                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Package commands and mbeans
>> service                │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide Service support
>> system                 │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide System support
>> http                   │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Implementation of the OSGI HTTP Service
>> pax-http-service       │ 7.2.14           │          │ Started │ standard-4.2.8           │ Pax-Web OSGi HTTP Service
>> kar                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide KAR (KARaf archive) support
>> ssh                    │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide a SSHd server on Karaf
>> management             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ Provide a JMX MBeanServer and a set of MBeans in
>> eventadmin             │ 4.2.8            │ x        │ Started │ standard-4.2.8           │ OSGi Event Admin service specification for event-
>> scr                    │ 4.2.8            │          │ Started │ standard-4.2.8           │ Declarative Service support
>> wrap                   │ 2.6.2            │ x        │ Started │ standard-4.2.8           │ Wrap URL handler
>> pax-web-core           │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide Core pax-web bundles
>> pax-jetty              │ 9.4.22.v20191022 │ x        │ Started │ org.ops4j.pax.web-7.2.14 │ Provide Jetty engine support
>> pax-http-jetty         │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │
>> pax-http               │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │ Implementation of the OSGI HTTP Service
>> pax-http-whiteboard    │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide HTTP Whiteboard pattern support
>> pax-war                │ 7.2.14           │          │ Started │ org.ops4j.pax.web-7.2.14 │ Provide support of a full WebContainer
>> pax-jsf-support        │ 7.2.14           │ x        │ Started │ org.ops4j.pax.web-7.2.14 │
>> karaf@jetty()>
>>
>> karaf@jetty()> bundle:tree-show 110
>> Bundle tobago-example-demo [110] is currently ACTIVE
>>
>> tobago-example-demo [110]
>> +- javax.el-api [45]
>> +- org.ops4j.pax.web.pax-web-jsp [104]
>> |  +- javax.el-api [45]
>> |  +- org.ops4j.pax.logging.pax-logging-api [5]
>> |  |  +- org.apache.karaf.services.eventadmin [2]
>> |  |     +- org.apache.felix.configadmin [9]
>> |  |     |  +- org.apache.felix.coordinator [8]
>> |  |     +- org.apache.felix.metatype [4]
>> |  +- org.ops4j.pax.web.pax-web-spi [106]
>> |  |  +- org.ops4j.pax.logging.pax-logging-api [5]
>> |  |  +- org.ops4j.pax.web.pax-web-api [98]
>> |  |  |  +- org.ops4j.pax.logging.pax-logging-api [5]
>> |  |  |  +- javax.servlet-api [48]
>> |  |  |  +- org.apache.xbean.finder [65]
>> |  |  |     +- org.objectweb.asm.commons [95]
>> |  |  |     |  +- org.objectweb.asm [94]
>> |  |  |     |  +- org.objectweb.asm.tree [96]
>> |  |  |     |     +- org.objectweb.asm [94]
>> |  |  |     +- org.ops4j.pax.logging.pax-logging-api [5]
>> |  |  |     +- org.apache.xbean.bundleutils [64]
>> |  |  |     |  +- org.ops4j.pax.logging.pax-logging-api [5]
>> |  |  |     +- org.objectweb.asm [94]
>> |  |  +- javax.servlet-api [48]
>> |  +- org.ops4j.pax.web.pax-web-api [98]
>> |  +- org.eclipse.jdt.core.compiler.batch [66]
>> |  +- javax.servlet-api [48]
>> +- org.ops4j.pax.logging.pax-logging-api [5]
>> +- org.apache.myfaces.core.api [60]
>> |  +- javax.el-api [45]
>> |  +- org.ops4j.pax.web.pax-web-jsp [104]
>> |  +- org.ops4j.pax.logging.pax-logging-api [5]
>> |  +- javax.validation.api [49]
>> |  +- javax.servlet-api [48]
>> +- javax.enterprise.cdi-api [46]
>> |  +- javax.el-api [45]
>> |  +- org.apache.servicemix.bundles.javax-inject [63]
>> |  +- javax.interceptor-api [47]
>> +- org.apache.servicemix.bundles.javax-inject [63]
>> +- javax.interceptor-api [47]
>> +- javax.servlet-api [48]
>> karaf@jetty()>    
>>
>>
>>
>> Paul Spencer      
>>
>