title: WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0003: Could not index class
body: <p>I have following pom.xml</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.mkyong&lt;/groupId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;spring3 mvc maven&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;jdk.version&gt;1.6&lt;/jdk.version&gt;
      &lt;spring.version&gt;3.0.0.RELEASE&lt;/spring.version&gt;
      &lt;jstl.version&gt;1.2&lt;/jstl.version&gt;
      &lt;jackson.version&gt;1.9.10&lt;/jackson.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;version&gt;${jstl.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
          &lt;artifactId&gt;gson&lt;/artifactId&gt;
          &lt;version&gt;2.8.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  
  
  
  
  
  &lt;/dependencies&gt;
  
  &lt;build&gt;
  
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;${jdk.version}&lt;/source&gt;
                  &lt;target&gt;${jdk.version}&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.wildfly.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;wildfly-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.1.0.Alpha5&lt;/version&gt;
          &lt;/plugin&gt;
  
          &lt;!-- &lt;plugin&gt; &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt; &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt; 
              &lt;version&gt;9.2.11.v20150529&lt;/version&gt; &lt;configuration&gt; &lt;scanIntervalSeconds&gt;10&lt;/scanIntervalSeconds&gt; 
              &lt;webApp&gt; &lt;contextPath&gt;/spring3&lt;/contextPath&gt; &lt;/webApp&gt; &lt;/configuration&gt; &lt;/plugin&gt; --&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.9&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;downloadSources&gt;true&lt;/downloadSources&gt;
                  &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt;
                  &lt;wtpversion&gt;2.0&lt;/wtpversion&gt;
                  &lt;wtpContextName&gt;spring3&lt;/wtpContextName&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;artifactId&gt;kuppiWar&lt;/artifactId&gt;
  </code></pre>
  
  <p></p>
  
  <p>after successfull build when I try to deploy on wildfly 10.0 I get following warning error for each dependency jar</p>
  
  <pre><code>22:57:12,211 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0003: Could not index class org/springframework/remoting/jaxws/LocalJaxWsServiceFactoryBean.class at /C:/Users/admin/wildfly-10.0.0.Final/standalone/deployments/kuppiWar.war/WEB-INF/lib/spring-web-3.0.0.RELEASE.jar: java.util.zip.ZipException: invalid LOC header (bad signature)
  at java.util.zip.ZipFile.read(Native Method)
  at java.util.zip.ZipFile.access$1400(Unknown Source)
  at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
  at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)
  at java.util.zip.InflaterInputStream.read(Unknown Source)
  at java.io.BufferedInputStream.fill(Unknown Source)
  at java.io.BufferedInputStream.read1(Unknown Source)
  at java.io.BufferedInputStream.read(Unknown Source)
  at java.io.DataInputStream.readFully(Unknown Source)
  at java.io.DataInputStream.readFully(Unknown Source)
  at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:1146)
  at org.jboss.jandex.Indexer.index(Indexer.java:1433)
  at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99)
  at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>At end I get following error msg</p>
  
  <pre><code>22:57:12,315 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" =&gt; {"jboss.deployment.unit.\"kuppiWar.war\".STRUCTURE" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"kuppiWar.war\".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"kuppiWar.war\"
  Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0161: Failed to get manifest for deployment \"/C:/Users/admin/wildfly-10.0.0.Final/standalone/deployments/kuppiWar.war/WEB-INF/lib/spring-beans-3.0.0.RELEASE.jar\"
  Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)"}}
  </code></pre>
  
  <p>22:57:12,387 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0016: Replaced deployment "kuppiWar.war" with deployment "kuppiWar.war"
  22:57:12,388 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
  WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."kuppiWar.war".STRUCTURE
        service jboss.deployment.unit."kuppiWar.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."kuppiWar.war".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "kuppiWar.war"</p>