When sending SOAP request, I get "java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file"

Solution Verified - Updated -

Issue

I am using WS-Security and JBossWS Native. When making a request to the service, I receive the following error:

2012-06-21 11:34:58,619 ERROR [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] (ajp-10.34.140.71-8109-2) Exception during handler processing
java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
    at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
...
    at org.jboss.virtual.protocol.AbstractVFSHandler.openConnection(AbstractVFSHandler.java:71)
    at java.net.URL.openConnection(URL.java:945)
    at java.net.URL.openStream(URL.java:1010)
    at org.jboss.ws.extensions.security.SecurityStore.loadStore(SecurityStore.java:146)
    at org.jboss.ws.extensions.security.SecurityStore.loadKeyStore(SecurityStore.java:102)
    at org.jboss.ws.extensions.security.SecurityStore.<init>(SecurityStore.java:92)
    at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeHeader(WSSecurityDispatcher.java:120)
    at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeMessage(WSSecurityDispatcher.java:101)
    at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:81)
    at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:39)
    at org.jboss.wsf.common.handler.GenericHandler.handleMessage(GenericHandler.java:53)
...
Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:135)
    at java.util.jar.JarFile.<init>(JarFile.java:99)
    at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:173)
...

Environment

  • JBoss Enterprise Application Platform (EAP) 5
  • JBossWS Native

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.