1 Reply Latest reply on Nov 3, 2011 8:06 AM by ssilvert

    jboss 6  deploy new version mojarra 2.1.2

    couse1

      Hi,

       

      I've some problems to add a new mojarra version (2.1.2) to jboss 6

       

      1- I modified the file META-INF\jsf-integration-deployer-jboss-beans.xml

      ...

      <entry> 

                <key>Mojarra-2.1.2</key> 

                <value>${jboss.server.home.url}deployers/jsf.deployer/Mojarra-2.1.2</value> 

      </entry>

       

      ...

      <bean name="JSFUrlIntegrationDeployer-212" class="org.jboss.jsf.deployer.JSFUrlIntegrationDeployer">

          <property name="JSFConfigName">

            <value>Mojarra-2.1.2</value>

          </property>

          <property name="JSFImplManagementDeployer">

            <inject bean="JSFImplManagementDeployer"/>

          </property>

        </bean>

       

       

      2- I added this code in my web.xml(war)

      <context-param>  
              <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>  
              <param-value>Mojarra-2.1.2</param-value>  
            </context-param>
      

       

      3- And in the folder ...\deployers\jsf.deployer\Mojarra-2.1.2, i've got :

      - jsf-libs with jars

      - META-INF with web.xml

       

      I took the web.xml from Mojarra-2.0 :

       

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5">
         <!-- ======================== Introduction ============================== -->
         <!-- This document defines default values for the Mojarra-2.0 JSF config  -->
         <!--                                                                      -->
         <!-- WARNING:  Do not configure application-specific resources here!      -->
         <!-- They should go in the "/WEB-INF/web.xml" file in your application.   -->
      
         <!-- =========== Common Context Params ================================== -->
      
         <!-- Regular expression to determine if two different URLs actually point -->
         <!-- to the same jar file.  This keeps faces-config files from being      -->
         <!-- read twice.                                                          -->
         <context-param>
           <param-name>com.sun.faces.duplicateJARPattern</param-name>
           <param-value>^tmp\d+(\S*\.jar)</param-value>
         </context-param>
          
         <!-- JBossInjectionProvider provides resource injection for managed beans. -->
         <!-- See JSF 1.2 spec section 5.4 for details.                             -->
         <context-param>
           <param-name>com.sun.faces.injectionProvider</param-name>
           <param-value>org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider</param-value>
         </context-param>
         
         <!-- ================== Common filter Configuration ==================== -->
         
          
         <!-- ================== Common Listener Configuration ==================== -->
         <!-- Configures JSF 2.0 -->
         <listener>
           <listener-class>org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener</listener-class>
         </listener>
      
      </web-app>
      

       

      And of course i've got this error  :

      org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener: java.lang.ClassNotFoundException: org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener

       

      I don't know where to find the listener-class, and  in fact i don't know to configure this web.xml.

       

      Help or sugestion will be appreciated.

       

      Best regards

      couse1