[jboss-jira] [JBoss JIRA] (WFLY-6916) Wildfly 10 with JSF(mojarra 2.1.18) give java.util.zip.ZipException: zip file is empty
Rodrigo Veleda (JIRA)
issues at jboss.org
Thu Mar 9 10:18:00 EST 2017
[ https://issues.jboss.org/browse/WFLY-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13375458#comment-13375458 ]
Rodrigo Veleda edited comment on WFLY-6916 at 3/9/17 10:17 AM:
---------------------------------------------------------------
I was struggling with exactly the same issue. I also followed the steps for setting up multiple JSF installations on Wildfly 10. The only difference was that my target mojarra version was 2.1.29-01.
Anyway, I've found out that even after setting up multiple JSF installations, it is still necessary to add the following context param to the web.xml:
<context-param>
<param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>
<param-value>mojarra-2.1.29-01</param-value>
</context-param>
Hope this helps people facing the same issue, since this is not mentioned on the document regarding how to set up multiple JSF installations. Cheers.
was (Author: rveleda):
I was struggling with exactly the same issue. I also followed the steps for setting up multiple JSF installations on Wildfly 10. The only difference was that my target mojarra version was 2.1.29-01.
Anyway, I've found out that even after setting up multiple JSF installations, it is still necessary to add the following context param to the web.xml:
<context-param>
<param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>
<param-value>mojarra-2.1.29-01</param-value>
</context-param>
Hope this helps people facing the same issue. Cheers.
> Wildfly 10 with JSF(mojarra 2.1.18) give java.util.zip.ZipException: zip file is empty
> --------------------------------------------------------------------------------------
>
> Key: WFLY-6916
> URL: https://issues.jboss.org/browse/WFLY-6916
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Environment: Wildfly 10 final
> Java 8
> Reporter: Prakash Boda
> Assignee: Farah Juma
>
> Below is the stacktrace.
> 2016-08-03 15:26:50,061 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 98) WFLYUT0021: Registered web context: /productName-services
> 2016-08-03 15:26:52,532 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 69) Unable to process annotations for url, vfs:/E:/V6/productName/wildfly-10.0.0.Final/bin/content/virtuosoapp.ear/jboss-seam-2.3.0.Final.jar/META-INF/faces-config.xml. Reason: java.util.zip.ZipException: zip file is empty
> 2016-08-03 15:26:52,570 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 69) : java.util.zip.ZipException: zip file is empty
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:219)
> at java.util.zip.ZipFile.<init>(ZipFile.java:149)
> at java.util.jar.JarFile.<init>(JarFile.java:166)
> at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:88)
> at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:221)
> at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:216)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:215)
> at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:71)
> at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109)
> at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
> at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
> at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:166)
> at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:125)
> at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85)
> at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:841)
> at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:793)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351)
> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
> at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:198)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> at org.jboss.threads.JBossThread.run(JBossThread.java:320)
> Suppressed: java.nio.file.NoSuchFileException: C:\Users\bodap\AppData\Local\Temp\jar_cache5902044866304783743.tmp
> at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
> at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
> at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
> at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
> at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
> at java.nio.file.Files.delete(Files.java:1126)
> at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:226)
> ... 25 more
> After this error also deployment is successful.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list