6 Replies Latest reply on May 28, 2013 7:03 PM by wlovett

    org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL SNAFU with ADF 11g

    wlovett

      Hi All,

       

      I'm trying to port a very simple ADF 11g application to JBoss.  I've got somewhere between 60-80 hours in this thing and I'm still getting errors.  I'd prefer JBoss 7.1, but I'll take anything.  It works on Tomcat 7.

       

      To keep it as simple as possible, the deployment is only a WAR and I packaged all ADF Essentials libraries into my WEB-INF/lib folder.  That includes client files such as the components, server files, and the jsf implementation.  All those menacing .tld errors have been cleaned up as well so they get parsed correctly.  I also included the following in my web.xml

       

         <context-param>
              <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
              <param-value>true</param-value>
          </context-param>
      

       

      However, when I deploy, the server log says

       

      Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/SimpleADF'
      

       

      Booo ... Booooooooo Hissssss.  I'm not sure why it's trying to load that implementation when I explicitly told it to use my own included JSF implementation.

       

      This leads to the following error log.

       

       

      12:46:50,307 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
      12:46:50,320 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
      12:46:50,331 INFO  [org.jboss.as.connector] (MSC service thread 1-3) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
      12:46:50,362 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
      12:46:50,367 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
      12:46:50,380 INFO  [org.jboss.as.security] (MSC service thread 1-8) JBAS013100: Current PicketBox version=4.0.7.Final
      12:46:50,381 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
      12:46:50,385 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
      12:46:50,486 INFO  [org.jboss.as.naming] (MSC service thread 1-6) JBAS011802: Starting Naming Service
      12:46:50,489 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
      12:46:50,499 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      12:46:50,575 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
      12:46:50,725 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
      12:46:50,766 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) JBAS015012: Started FileSystemDeploymentService for directory C:\P2MC\JBoss\7.1.1\standalone\deployments
      12:46:50,771 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:4447
      12:46:50,772 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:9999
      12:46:50,902 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
      12:46:50,928 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
      12:46:50,929 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 1578ms - Started 133 of 208 services (74 services are passive or on-demand)
      12:51:23,120 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 5) JBAS014900: Content added at location C:\P2MC\JBoss\7.1.1\standalone\data\content\ab\d1010ef2eb4e8188f7f3ea52c182d6c52810bc\content
      12:52:11,603 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "SimpleADF.war"
      12:52:22,942 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry jgoodies-looks.jar in "/C:/P2MC/JBoss/7.1.1/bin/content/SimpleADF.war/WEB-INF/lib/jewt4.jar"  does not point to a valid jar for a Class-Path reference.
      12:52:22,947 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry gdk_custom.jar in "/C:/P2MC/JBoss/7.1.1/bin/content/SimpleADF.war/WEB-INF/lib/orai18n-mapping.jar"  does not point to a valid jar for a Class-Path reference.
      12:52:23,141 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
      12:52:23,144 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
      12:52:25,814 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)
      12:52:25,922 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/SimpleADF'
      12:52:27,647 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Unsanitized stacktrace from failed start...: javax.faces.FacesException: Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
                at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:752) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:330) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_45]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_45]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_45]
      
      
      12:52:27,669 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:357) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_45]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_45]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_45]
      Caused by: javax.faces.FacesException: Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
                at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:752) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:330) [jsf-impl.jar:2.0.9-SNAPSHOT]
                ... 9 more
      
      
      12:52:27,694 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SimpleADF]] (MSC service thread 1-6) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:293) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_45]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_45]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_45]
      Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:357) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl.jar:2.0.9-SNAPSHOT]
                ... 8 more
      Caused by: javax.faces.FacesException: Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
                at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:752) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:330) [jsf-impl.jar:2.0.9-SNAPSHOT]
                ... 9 more
      
      
      12:52:27,726 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-6) Error listenerStart
      12:52:27,727 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-6) Context [/SimpleADF] startup failed due to previous errors
      12:52:27,744 SEVERE [javax.faces] (MSC service thread 1-6) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
      12:52:27,747 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory. 
                at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:996) [jsf-api.jar:2.0.9-SNAPSHOT]
                at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:331) [jsf-api.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:329) [jsf-impl.jar:2.0.9-SNAPSHOT]
                at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3917) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_45]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_45]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_45]
      
      
      12:52:27,773 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.web.deployment.default-host./SimpleADF: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./SimpleADF: JBAS018040: Failed to start context
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_45]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_45]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_45]
      
      
      12:52:27,987 INFO  [org.jboss.as.server] (HttpManagementService-threads - 5) JBAS015870: Deploy of deployment "SimpleADF.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./SimpleADF" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./SimpleADF: JBAS018040: Failed to start context"}}
      12:52:28,525 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment SimpleADF.war in 538ms
      12:52:28,528 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 5) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./SimpleADF: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./SimpleADF: JBAS018040: Failed to start context
      
      
      

       

      My list of jars included in my WEB-INF/lib directory is as below

       

      Client Jars

       

      adf-controller-api.jar
      adf-controller-rt-common.jar
      adf-controller-schema.jar
      adf-controller.jar
      adf-dt-at-rt.jar
      adf-dynamic-faces.jar
      adf-faces-changemanager-rt.jar
      adf-faces-databinding-dt-core.jar
      adf-faces-databinding-rt.jar
      adf-faces-registration.jar
      adf-faces-templating-dt-core.jar
      adf-faces-templating-dtrt.jar
      adf-pageflow-dtrt.jar
      adf-pageflow-fwk.jar
      adf-pageflow-impl.jar
      adf-pageflow-rc.jar
      adf-richclient-api-11.jar
      adf-richclient-automation-11.jar
      adf-richclient-impl-11.jar
      adf-runtime-mbean.jar
      adf-sec-idm-dc.jar
      adf-share-glassfish.jar
      adf-share-web.jar
      adf-view-databinding-dt-core.jar
      adfbcsvc-client.jar
      adfbcsvc-registration.jar
      adfbcsvc-share.jar
      adfbcsvc.jar
      adfdt_common.jar
      adflibfilter.jar
      adflibrary.jar
      adfm-debugger.jar
      adfm-sqldc.jar
      adfm.jar
      adfmportlet.jar
      adfmweb.jar
      adftags.jar
      adftransactionsdt.jar
      bc4j-mbeans.jar
      bc4jhtml.jar
      bc4jimdomains.jar
      bc4jsyscat.jar
      bi.tld
      bundleresolver.jar
      datatags.jar
      db-ca.jar
      dvt-databinding-dt-core.jar
      dvt-databindings-mds.jar
      dvt-databindings.jar
      dvt-faces.jar
      dvt-facesbindings.jar
      dvt-jclient.jar
      dvt-trinidad.jar
      dvt-utils.jar
      facesconfigmodel.jar
      groovy-all-1.6.4.jar
      inspect4.jar
      jdev-cm.jar
      jewt4.jar
      jmxdc.jar
      jr_dav.jar
      mds-dc.jar
      oicons.jar
      ojsp.jar
      ordhttp.jar
      ordim.jar
      prefuse.jar
      print.txt
      rcs-adflib-rt.jar
      rcsrt.jar
      regexp.jar
      taglib.jar
      trinidad-api.jar
      trinidad-impl.jar
      velocity-dep-1.4.jar
      

       

      JSF Jars

       

      glassfish.jstl_1.2.0.1.jar
      jsf-api.jar
      jsf-impl.jar
      

       

      Server Jars

       

      adf-controller-security.jar
      adf-share-base.jar
      adf-share-ca.jar
      adf-share-security.jar
      adf-share-support.jar
      adflogginghandler.jar
      adfsharembean.jar
      commons-el.jar
      dms.jar
      javamodel-rt.jar
      javatools-nodeps.jar
      jrf-api.jar
      jsp-el-api.jar
      mdsrt.jar
      oc4j-ws-support.jar
      ojdbc6dms.jar
      ojdl.jar
      ojdl2.jar
      oracle-el.jar
      oracle.classloader_11.1.1.jar
      oracle.http_client_11.1.1.jar
      oracle.logging-utils_11.1.1.jar
      oracle.web-common_11.1.1.jar
      oracle.xdb_11.1.0.jar
      orai18n-mapping.jar
      org.apache.bcel_5.1.jar
      org.apache.commons.beanutils_1.8.3.jar
      org.apache.commons.logging_1.1.1.jar
      print.txt
      resourcebundle.jar
      share.jar
      xmlef.jar
      xmlparserv2_sans_jaxp_services.jar
      

       

      I've scoured google for days and tried several different iterations on multiple server configurations.  I'm finally breaking down and asking for some help.  I'm definitely open to ideas. 

        • 1. Re: org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL SNAFU with ADF 11g
          ssilvert

          If you are running AS7 then you should not be seeing Mojarra 2.0.x.  It uses a JBoss version of Mojarra 2.1.x.  So I'm wondering where that is coming from.

           

          If you are running AS6 or earlier then what I see makes a little more sense.  In those earlier versions, WAR_BUNDLES_JSF_IMPL only works when you are bundling MyFaces.  Bundling a different Mojarra version is known to cause problems.  It might work with AS7, and I'm fairly sure it will work with AS8/WildFly.

           

          But you are much better off not bundling JSF with your app.  And you never need to bundle JSTL, but it doesn't usually cause problems.

           

          Stan

          1 of 1 people found this helpful
          • 2. Re: org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL SNAFU with ADF 11g
            wlovett

            Stan!  I've been reading your posts quite a bit.

             

            My implementation is 7.1.1 Final.  I thought I might be doing something wrong so I deleted my app server, unzipped jboss-as-7.1.1.Final.zip, added a management user, changed my standalone.conf.bat file to include the following:

             

            set "JBOSS_HOME=C:\P2MC\JBoss\7.1.1"
            set "JAVA_HOME=C:\Program Files\Java\jre6"
            set "JAVA_OPTS=%JAVA_OPTS% -Djboss.server.default.config=standalone.xml"
            set "JAVA_OPTS=%JAVA_OPTS% -Doracle.mds.simple=true"
            

             

            Booted up the server.  Logged in as admin and uploaded SimpleADF.  Then enabled it. 

             

            I've attached the server and boot logs.

            • 3. Re: org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL SNAFU with ADF 11g
              wlovett

              Seems like trying to bundle your own JSF with AS 7 results in an error.  See ticket below.

               

              https://issues.jboss.org/browse/AS7-3940

               

              But the ticket says it's fixed in EAP 6.1.0!  So I installed that version, repeated steps from my previous post, and was greeted with new errors.

               

               

              15:19:25,708 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "SimpleADF.war" (runtime-name: "SimpleADF.war")
              15:19:36,702 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry jgoodies-looks.jar in /C:/P2MC/JBoss/eap/bin/content/SimpleADF.war/WEB-INF/lib/jewt4.jar  does not point to a valid jar for a Class-Path reference.
              15:19:36,705 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry gdk_custom.jar in /C:/P2MC/JBoss/eap/bin/content/SimpleADF.war/WEB-INF/lib/orai18n-mapping.jar  does not point to a valid jar for a Class-Path reference.
              15:19:37,092 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
              15:19:37,093 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
              15:19:39,834 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)
              15:19:39,973 INFO  [org.jboss.web] (ServerService Thread Pool -- 80) JBAS018210: Register web context: /SimpleADF
              15:19:40,072 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 80) Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/SimpleADF'
              15:19:41,692 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 80) Unable to process annotations for url, vfs:/C:/P2MC/JBoss/eap/bin/content/SimpleADF.war/WEB-INF/lib/bundleresolver.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file
              15:19:41,693 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 80) : java.util.zip.ZipException: error in opening zip file
                        at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_45]
                        at java.util.zip.ZipFile.<init>(Unknown Source) [rt.jar:1.6.0_45]
                        at java.util.jar.JarFile.<init>(Unknown Source) [rt.jar:1.6.0_45]
                        at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source) [rt.jar:1.6.0_45]
                        at sun.net.www.protocol.jar.URLJarFile$1.run(Unknown Source) [rt.jar:1.6.0_45]
                        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_45]
                        at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source) [rt.jar:1.6.0_45]
                        at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) [rt.jar:1.6.0_45]
                        at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) [rt.jar:1.6.0_45]
                        at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) [rt.jar:1.6.0_45]
                        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source) [rt.jar:1.6.0_45]
                        at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:302) [jsf-impl.jar:2.0.9-SNAPSHOT]
                        at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:221) [jsf-impl.jar:2.0.9-SNAPSHOT]
                        at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:768) [jsf-impl.jar:2.0.9-SNAPSHOT]
                        at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:739) [jsf-impl.jar:2.0.9-SNAPSHOT]
                        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_45]
                        at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_45]
                        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) [jsf-impl.jar:2.0.9-SNAPSHOT]
                        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl.jar:2.0.9-SNAPSHOT]
                        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
                        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
                        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.6.0_45]
                        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_45]
                        at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_45]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_45]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_45]
                        at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_45]
                        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
              
              

               

              It's STILL initializing the older version of Mojarra.  Plus, it's now having a heck of a time reading zip files.  If anyone has more ideas I'm all up for trying them.

              • 4. Re: org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL SNAFU with ADF 11g
                ssilvert

                Which version of JSF are you bundling?  The one that comes with EAP 6.1 is going to be 2.1.x, not 2.0.x.  So it looks like somehow you are bundling Mojarra 2.0.9.

                 

                It also looks like you are running into this: https://issues.jboss.org/browse/RF-12637.  It won't be easy to work around when you bundle JSF.  Are you sure you need to bundle it?

                 

                Stan

                • 5. Re: org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL SNAFU with ADF 11g
                  wlovett

                  HOLY CRAP!  It works now!   I can boot it up and do a simple navigation case with ADF.

                   

                  I deleted the jsf files I was packaging and removed the org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL from my web.xml.  Since Tomcat 7 needed these files I was under the impression the easiest approach would be to package all the needed files together and then use some kind of classloading/web.xml to override the JBoss defaults.

                   

                  Stan, I'm giving you a big fat sloppy virtual kiss.  I've been working on this in some form or fashion for a week and a half.  Thanks for the help.

                   

                  I'm still getting a couple of errors on bootup.  I'm not sure what they are referring to, but I'll open another ticket for that.

                   

                  Again, thanks alot!

                  • 6. Re: org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL SNAFU with ADF 11g
                    wlovett

                    Oh, and the jsf files I was using came from JDeveloper 11.2.4.0 and the included weblogic server.  Turns out they were Mojarra 2.0.9 files.  A tutorial I had followed to get Tomcat 7 working recommended using those files.