7 Replies Latest reply on Sep 24, 2012 8:18 PM by fenoloco

    Upgrade JSF Implementation

    fenoloco Newbie

      Hi all,

      Is there any way to upgrade the version of JSF to at least 2.1.10?

       

      I tried replacing the jsf module and Including the library within the war , but none worked for me

       

      Someone managed to get it working?

        • 1. Re: Upgrade JSF Implementation
          Jay SenSharma Master

          Hi,

           

             Did you try bundeling your JSF 2.1.10 related Jars inside "WEB-INF/lib" and then adding the following inside yoru "web.xml" ?

           

           

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

           

          And then try excluding the default JSF implementations provided by JBossAS7   by placing the file ""WEB-INF/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.jboss.as.web"/>
               </exclusions>
          
               <dependencies>
                   <module name="org.jboss.as.web" services="none"/>
               </dependencies>
            </deployment>
          </jboss-deployment-structure>
          
          
          
          

           

           

            Can you paste what kind of error you are getting?

          1 of 1 people found this helpful
          • 2. Re: Upgrade JSF Implementation
            fenoloco Newbie

            Hi, I have tried it and I get a strange error when loading primefaces jar.

             

            The error is the following

             

             

            <code>

            16:46:39,381 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-1) JSF1048: hay presentes anotaciones PostConstruct/PreDestroy.  Los métodos de beans administrados marcados con estas anotaciones procesarán dichas anotaciones.

            16:46:39,615 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unable to process annotations for url, vfs:/C:/trabajo/eclipse/workspace/CMS-PROJECT/domains/jboss-config-7/deployments/CMS-ISSUER.war/WEB-INF/lib/primefaces-3.4.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

            16:46:39,617 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) : java.util.zip.ZipException: error in opening zip file

                      at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_17]

                      at java.util.zip.ZipFile.<init>(ZipFile.java:114) [rt.jar:1.6.0_17]

                      at java.util.jar.JarFile.<init>(JarFile.java:133) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_17]

                      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:166) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:125) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:845) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:797) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_17]

                      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:352) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [javax.faces-2.1.10.jar:2.1.10-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(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_17]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_17]

                      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]

             

             

            16:46:39,637 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unable to process annotations for url, vfs:/C:/trabajo/eclipse/workspace/CMS-PROJECT/domains/jboss-config-7/deployments/CMS-ISSUER.war/WEB-INF/lib/primeExtension-1.3.0.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

            16:46:39,640 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) : java.util.zip.ZipException: error in opening zip file

                      at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_17]

                      at java.util.zip.ZipFile.<init>(ZipFile.java:114) [rt.jar:1.6.0_17]

                      at java.util.jar.JarFile.<init>(JarFile.java:133) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_17]

                      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:166) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:125) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:845) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:797) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_17]

                      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:352) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [javax.faces-2.1.10.jar:2.1.10-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(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_17]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_17]

                      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]

             

             

            16:46:39,660 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unable to process annotations for url, vfs:/C:/trabajo/eclipse/workspace/CMS-PROJECT/domains/jboss-config-7/deployments/CMS-ISSUER.war/WEB-INF/lib/CMS-MAJOR-Utils-1.3.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

            16:46:39,662 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) : java.util.zip.ZipException: error in opening zip file

                      at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_17]

                      at java.util.zip.ZipFile.<init>(ZipFile.java:114) [rt.jar:1.6.0_17]

                      at java.util.jar.JarFile.<init>(JarFile.java:133) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_17]

                      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:166) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:125) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:845) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:797) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_17]

                      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:352) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [javax.faces-2.1.10.jar:2.1.10-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(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_17]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_17]

                      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]

             

             

            16:46:39,686 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unable to process annotations for url, vfs:/C:/trabajo/eclipse/workspace/CMS-PROJECT/domains/jboss-config-7/deployments/CMS-ISSUER.war/WEB-INF/lib/primefaces-extensions-0.5.1.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

            16:46:39,689 GRAVE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) : java.util.zip.ZipException: error in opening zip file

                      at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_17]

                      at java.util.zip.ZipFile.<init>(ZipFile.java:114) [rt.jar:1.6.0_17]

                      at java.util.jar.JarFile.<init>(JarFile.java:133) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_17]

                      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_17]

                      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:166) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:125) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:845) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:797) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_17]

                      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_17]

                      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:352) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]

                      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [javax.faces-2.1.10.jar:2.1.10-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(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_17]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_17]

                      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]

            </code>

             

            • 3. Re: Upgrade JSF Implementation
              Jay SenSharma Master

              Hi,

               

                      Ar eyou sure that the JAR "primefaces-extensions-0.5.1.jar" is not corrupted?

               

                     make sure your jar file is not corrupted..Try to manually extract it somewhere in your file system to see if it is extractable or not?    Then try to remake the jar and try using it.

              • 4. Re: Upgrade JSF Implementation
                fenoloco Newbie

                Hi, thanks for the responde.

                The jar are runnning well with the native jsf impl so they aren´t corrupted.

                 

                It work in your envirorments?

                • 5. Re: Upgrade JSF Implementation
                  Tomaz Cerar Master

                  if you extract your deployment and then run

                  jar tf primefaces-extensions-0.5.1.jar

                  what do you get?

                  • 6. Re: Upgrade JSF Implementation
                    fenoloco Newbie

                    Hi,

                    The command list all jar´s contents as normal.