1 Reply Latest reply on Jul 24, 2014 8:37 AM by maneendra perera

    How to load MyFaces jsf 1.1.7 in jboss AS 7.1.1?

    maneendra perera Newbie

      Hi,

       

      I am migrating an application which runs on jboss 4.2.1 in to jboss AS 7.1.1 Final. In the project it uses jsf version 1.1.7(jsf title - Apache MyFaces JSF-1.1 API) . When i deploy the ear in server it prompts the following error,

       

      (Deployed the bp.ear consists of bpconsole.war, bp-proxy-install-war-4.1.0-SNAPSHOT.war and bp-sar.sar)

       

      C:\Users\madushani.p\Documents\TASK_JBOSS\jbossAS7\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>standalone.bat

      Calling "C:\Users\madushani.p\Documents\TASK_JBOSS\jbossAS7\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\standalone.conf.bat"

      ===============================================================================

       

       

        JBoss Bootstrap Environment

       

       

        JBOSS_HOME: C:\Users\madushani.p\Documents\TASK_JBOSS\jbossAS7\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final

       

       

        JAVA: C:\Program Files (x86)\Java\jdk1.7.0_45\bin\java

       

       

        JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djb

      oss.server.default.config=standalone.xml

       

       

      ===============================================================================

       

       

      17:37:42,755 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      17:37:44,224 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      17:37:44,284 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      17:37:46,486 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      17:37:46,492 INFO  [org.xnio] XNIO Version 3.0.3.GA

      17:37:46,501 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      17:37:46,547 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      17:37:46,632 INFO  [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem

      17:37:46,639 INFO  [org.jboss.as.clustering.infinispan] JBAS010280: Activating Infinispan subsystem.

      17:37:46,640 INFO  [org.jboss.as.naming] JBAS011800: Activating Naming Subsystem

      17:37:46,688 INFO  [org.jboss.as.osgi] JBAS011940: Activating OSGi Subsystem

      17:37:46,702 INFO  [org.jboss.as.security] JBAS013101: Activating Security Subsystem

      17:37:46,734 INFO  [org.jboss.as.webservices] JBAS015537: Activating WebServices Extension

      17:37:46,798 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      17:37:47,122 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]

      17:37:47,130 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      17:37:47,306 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

      17:37:47,323 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      17:37:48,121 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA

      17:37:48,478 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

      17:37:48,532 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\madushani.p\Documents\TASK_JBOSS\jbossAS7\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\standalone\deployments

      17:37:48,546 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:4447

      17:37:48,543 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found mysql-connector-java-5.1.17.jar in deployment directory. To trigger deployment create a file called mysql-connector-java-5.1.17.jar.dodeploy

      17:37:48,584 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:9999

      17:37:48,668 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      17:37:48,685 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:/MySqlDS]

      17:37:48,864 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "mysql-connector-java-5.1.17.jar"

      17:37:49,168 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

      17:37:49,170 WARN  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010402: Unable to instantiate driver class "com.mysql.jdbc.Driver": org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.mysql-connector-java-5_1_17_jar is already registered

      17:37:49,214 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990

      17:37:49,215 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 8187ms - Started 157 of 235 services (76 services are passive or on-demand)

      17:37:49,443 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "mysql-connector-java-5.1.17.jar"

      17:38:54,484 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found bp.ear in deployment directory. To trigger deployment create a file called bp.ear.dodeploy

      17:39:09,497 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "bp.ear"

      17:39:41,376 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "bp-proxy-install-war-4.1.0-SNAPSHOT.war"

      17:39:41,376 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "bpconsole.war"

      17:39:41,376 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "bp-sar.sar"

      17:39:46,162 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'

      17:39:49,435 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.discovery.DiscoveryConfigurationArrayTile

      17:39:49,688 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskgroup.AkAppDiskGroupDetailsChartTile

      17:39:49,689 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskGroup.AkArrayDiskGroupsEventDetailsPage

      17:39:50,037 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskgroup.AkDiskGroupAnlysisDGCChartTile

      17:39:50,393 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.advanced.AkAdminAdvancedImageImportTile

      17:39:50,638 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.AkServerEventDetailsPage

      17:39:50,641 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskGroup.AkArrayDiskGroupsAlarmDetailsPage

      17:39:50,653 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.cluster.AkClusterServerEventsDetailsPage

      17:39:50,699 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.ServerHostContentionDetailsPage

      17:39:50,769 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.advanced.AkAdminAdvancedInstalledImagesListTile

      17:39:50,823 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.advanced.AkAdminAdvancedProxyInstall

      17:39:50,834 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.tabs.HostServerVMsTabDetailsPage

      17:39:50,853 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.AkUserListPage

      17:39:50,885 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.fcport.AkStorageArrayFCPortSummaryTile

      17:39:50,899 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskGroup.AkArrayDiskGroupsAlarmSummaryDetailsPage

      17:39:51,195 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.fcport.AkArrayFCPortsSummaryDetailsPage

      17:39:51,203 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.cluster.AkClusterSummaryVisualizationPage

      17:39:51,226 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.config.AkApplicationConfigTile

      17:39:51,231 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.AkAppServerAlarmDetailsPage

      17:39:51,282 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.mscluster.AkMSClusterESXFolderDetailsPage

      17:39:51,301 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.AkServerAlarmSummaryDetailsPage

      17:39:51,342 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.lun.AkUnassignedArrayLunListTile

      17:39:51,368 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.AkServerSummaryDetailsPage

      17:39:51,400 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskgroup.AkArrayDiskGroupAnalysisDetailsPage

      17:39:51,457 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskGroup.AkStorageArrayDiskGroupSummaryTile

      17:39:51,468 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskgroup.tabs.charts.DiskGroupOperatingCurveChartTile

      17:39:51,516 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.AkUserDetailsPage

      17:39:51,535 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.cluster.AkClusterNavigationTile

      17:39:51,547 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.advanced.AkAdminAdvanceManageImagesDetailPage

      17:39:51,561 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.reporting.AkEMailSmtpServerConfig

      17:39:51,591 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskGroup.AkArrayDiskGroupsTopologyDetailsPage

      17:39:51,601 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.advanced.diagnostics.AkAdminAdvancedDiagnosticsNetworkTile

      17:39:51,615 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskgroup.AkAppDiskGroupAlarmDetailsPage

      17:39:51,634 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskgroup.AkArrayDiskGroupAppContentionDetailsPage

      17:39:51,667 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.AkServerApplicationFolderDetailsPage

      17:39:51,685 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.cluster.AkClusterServersListPage

      17:39:51,693 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.common.AkFilteredAlarmDetialsPage

      17:39:51,796 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskgroup.AkDiskGroupAppContentionChartTile

      17:39:51,800 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.server.AkAppServerInstanceDetailsChartTile

      17:39:51,824 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.diskGroup.AkArrayDiskGroupsFolderDetailsPage

      17:39:51,831 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.config.AkAlarmConfigTile

      17:39:51,870 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.infra.app.AkServerApplicationSummaryDetailsPage

      17:39:51,902 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018211: Could not load JSF managed bean class: com..bp.console.admin.advanced.AkAdminAdvancedAvailableImagesListTile

      17:39:55,303 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010404: Deploying non-JDBC-compliant driver class org.mariadb.jdbc.Driver (version 1.1)

      17:39:55,311 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010403: Deploying JDBC-compliant driver class com.microsoft.sqlserver.jdbc.SQLServerDriver (version 3.0)

      17:39:55,422 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)

      17:39:56,230 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /bp-proxy-install-war

      17:39:56,658 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "bp.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.mbean.service.bp:service=AkSMS.startjboss.mbean.service.\"jboss.j2ee:servic

      e=EARDeployment,url='bp.ear'\".startMissing[jboss.mbean.service.bp:service=AkSMS.startjboss.mbean.service.\"jboss.j2ee:service=EARDeployment,url='bp.ear'\".start]","jboss.web.deployment.default-host./bp.realmjboss.security.security-domain.Missing[jboss.web.deployment.default-host./bp.realmjbos

      s.security.security-domain.]","jboss.mbean.service.bp:service=AkSMS.createjboss.mbean.service.\"jboss.j2ee:service=EARDeployment,url='bp.ear'\".createMissing[jboss.mbean.service.bp:service=AkSMS.createjboss.mbean.service.\"jboss.j2ee:service=EARDeployment,url='bp.ear'\".create]"]}

      17:39:56,671 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.mbean.service."jboss.j2ee:service=EARDeployment,url='bp.ear'".create (missing) dependents: [service jboss.mbean.service.bp:service=AkSMS.create]

            service jboss.mbean.service."jboss.j2ee:service=EARDeployment,url='bp.ear'".start (missing) dependents: [service jboss.mbean.service.bp:service=AkSMS.start]

            service jboss.security.security-domain.(missing) dependents: [service jboss.web.deployment.default-host./bp.realm]

       

       

      17:39:56,733 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.mbean.service.bp:service=Ak

      SMS.startjboss.mbean.service.\"jboss.j2ee:service=EARDeployment,url='bp.ear'\".startMissing[jboss.mbean.service.bp:service=AkSMS.startjboss.mbean.service.\"jboss.j2ee:service=EARDeployment,url='bp.ear'\".start]","jboss.web.deployment.default-host./bp.realmjboss.security.security-domain.Missing

      [jboss.web.deployment.default-host./bp.realmjboss.security.security-domain.]","jboss.mbean.service.bp:service=AkSMS.createjboss.mbean.service.\"jboss.j2ee:service=EARDeployment,url='bp.ear'\".createMissing[jboss.mbean.service.bp:service=AkSMS.createjboss.mbean.service.\"jboss.j2ee:service=EARD

      eployment,url='bp.ear'\".create]"]}}}

      17:39:56,896 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment bp-proxy-install-war-4.1.0-SNAPSHOT.war in 213ms

      17:39:56,897 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment bp-sar.sar in 214ms

      17:40:03,407 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment bpconsole.war in 6724ms

      17:40:03,870 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment bp.ear in 7190ms

      17:40:03,873 INFO  [org.jboss.as.controller] (MSC service thread 1-3) JBAS014774: Service status report

      JBAS014776:    Newly corrected services:

            service jboss.mbean.service."jboss.j2ee:service=EARDeployment,url='bp.ear'".create (new available)

            service jboss.mbean.service."jboss.j2ee:service=EARDeployment,url='bp.ear'".start (new available)

            service jboss.security.security-domain.(new available)

       

      I tried the below solutions but the error was same,

       

      1. MyFaces jars are already in bpconsole.war/WEB-INF/lib and web.xml has the following property

         <context-param>

              <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

              <param-value>true</param-value>

          </context-param>

       

      2. Exclude the jsf jars via jboss-deployment-structure.xml

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

        <deployment>

        <exclusions>

                <module name="javax.faces.api" slot="main"/>

         <module name="com.sun.jsf-impl" slot="main"/>

              </exclusions>

        </deployment>

      </jboss-deployment-structure>

       

      3. Exclude the jsf jars + other transitive dependencies via jboss-deployment-structure.xml

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

        <deployment>

        <exclusions>

                <module name="javax.faces.api" slot="main"/>

         <module name="com.sun.jsf-impl" slot="main"/>

         <module name="org.apache.commons.beanutils" slot="main"/>

         <module name="org.apache.commons.codec" slot="main"/>

         <module name="org.apache.commons.collections" slot="main"/>

              </exclusions>

        </deployment>

      </jboss-deployment-structure>

       

       

      Thanks in advance.

       

      Maneendra

        • 1. Re: How to load MyFaces jsf 1.1.7 in jboss AS 7.1.1?
          maneendra perera Newbie

          "Could not load JSF managed bean class..." has occurred when the class is not available in the source, but the reference is present in the "faces-config.xml"

           

          Can load myfaces jsf version 1.1.7 by adding jars in to WEB/lib and adding following to web.xml .

          <context-param>

                  <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

                  <param-value>true</param-value>

              </context-param>