Results 1 to 1 of 1

Thread: Spring Batch Admin app throws zip error on startup

  1. #1

    Default Spring Batch Admin app throws zip error on startup

    Hi all,

    I have a web application that I am using to run Spring Batch (I am calling jobs from a servlet, not based on user input but based on a scheduler which calls a URL). I also tried integrating the Spring Batch Admin app into my app by adding the spring-batch-admin-manager-1.2.0 and spring-batch-admin-resources.1.2.0 jars to my lib folder.

    But right now the Admin app is giving a zip error when trying to read some its configuration files...

    ERROR [DispatcherServlet] Context initialization failed
    org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:/META-INF/spring/batch/servlet/resources/*.xml]
    Offending resource: URL [vfszip:/C:/jboss/jboss-5.0.0.GA/server/default/deploy/InterStreamBatch.war/WEB-INF/lib/spring-batch-admin-resources-1.2.0.RELEASE.jar/org/springframework/batch/admin/web/resources/servlet-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionSt oreException: IOException parsing XML document from ZipEntryHandler@11500919[path=resources-context.xml context=vfszip:/C:/jboss/jboss-5.0.0.GA/server/default/deploy/InterStreamBatch.war/WEB-INF/lib/spring-batch-admin-resources-1.2.0.RELEASE.jar/META-INF/spring/batch/servlet/resources/ real=vfszip:/C:/jboss/jboss-5.0.0.GA/server/default/deploy/InterStreamBatch.war/WEB-INF/lib/spring-batch-admin-resources-1.2.0.RELEASE.jar/META-INF/spring/batch/servlet/resources/resources-context.xml]; nested exception is java.util.zip.ZipException: invalid entry size (expected 4983 but got 3 bytes)
    at org.springframework.beans.factory.parsing.FailFast ProblemReporter.error(FailFastProblemReporter.java :68)
    at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderContext.java:85)
    at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderContext.java:76)


    Caused by: java.util.zip.ZipException: invalid entry size (expected 4983 but got 3 bytes)
    at java.util.zip.ZipInputStream.readEnd(ZipInputStrea m.java:376)
    at java.util.zip.ZipInputStream.read(ZipInputStream.j ava:148)
    at java.util.zip.InflaterInputStream.read(InflaterInp utStream.java:105)
    at org.apache.xerces.impl.XMLEntityManager$Rewindable InputStream.read(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.setupCurre ntEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determin eDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)

    Any help would be appreaciated.
    Last edited by Jehan99; Oct 29th, 2011 at 07:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •