Announcement Announcement Module
No announcement yet.
1.0.1 Final release with dependencies Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 1.0.1 Final release with dependencies

    When I try to download the latest release with dependencies, after the download while opening the zip file it gives me the following error: "The Compressed (zipped) Folder is invalid or corrupted.

    Can someone check?


  • #2
    Works for me. What are you using to unzip the package? If you are on a Windoze platform I recommend you don't use the native uncompressor - get Winzip or 7Zip or something.


    • #3
      It reminded me about what happened when I downloaded 1.0.1

      I saw the source directories are a bit strange:
      /sources/sprint-batch-dist contains two pom.xml under the same directory (infrastructure and core)

      I think that's what caused the problem when I extracted (using 7-zip)


      • #4
        There's definitely an issue with 1.0.1 with dependencies release. I talked to Ben about it and he's looking into it today. There should be a fix out for it today or tomorrow.


        • #5

          Just now I saw 1.0.1.a release in the downloaded section, this release does not have any unzip problem. But both these release give me following exception while trying to run my job from commandline, the same job used to run with previous jars. No path or classpath settings were changed, just replaced the jars.

          Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/batch/core/launch/support/ExitCodeMapper

          I can see this class in the jar and also the job runs just fine in my eclipse environment. Only when I copy these jars along with my application jars to my linux box, it throws the above exception.... I cant proceed further anywhere after that exception.

          Any help!?!?!??



          • #6
            That's odd, if you see the class in the jar, and the jar is on your classpath, then it shouldn't be any different. Also, if it's working in eclipse, then it must be some issues with how java is being called.


            • #7
              I downloaded the 1.0.1a-release-with depedencies and I got problem running the mvn test command like said on the getting started guide page.

              Does not work (maybe because files are missing )... The pom needs spring-batch-infrastructure project...

              Can you fix this please ? Or give me some help ... Thanks

              :mvn test
              [INFO] Scanning for projects...
              [INFO] ------------------------------------------------------------------------
              [ERROR] FATAL ERROR
              [INFO] ------------------------------------------------------------------------
              [INFO] Error building POM (may not be this project's POM).

              Project ID: unknown

              Reason: Could not find the model file 'C:\telechargement\spring-batch-dist-1.0.1
              .RELEASE\samples\spring-batch-infrastructure\pom.xml'. for project unknown

              [INFO] ------------------------------------------------------------------------
              [INFO] Trace
              org.apache.maven.reactor.MavenExecutionException: Could not find the model file
              ucture\pom.xml'. for project unknown
              at org.apache.maven.DefaultMaven.getProjects(DefaultM
              at org.apache.maven.DefaultMaven.doExecute(DefaultMav
              at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:125)
              at org.apache.maven.cli.MavenCli.main( 80)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
              at java.lang.reflect.Method.invoke(
              at org.codehaus.classworlds.Launcher.launchEnhanced(L
              at org.codehaus.classworlds.Launcher.launch(Launcher. java:255)
              at org.codehaus.classworlds.Launcher.mainWithExitCode (

              at org.codehaus.classworlds.Launcher.main(Launcher.ja va:375)
              Caused by: org.apache.maven.project.ProjectBuildingException: Could not find the
              model file 'C:\telechargement\spring-batch-dist-1.0.1.RELEASE\samples\spring-ba
              tch-infrastructure\pom.xml'. for project unknown
              at org.apache.maven.project.DefaultMavenProjectBuilde r.readModel(Default
              at org.apache.maven.project.DefaultMavenProjectBuilde r.buildFromSourceFi
              at org.apache.maven.project.DefaultMavenProjectBuilde
              at org.apache.maven.DefaultMaven.getProject(DefaultMa
              at org.apache.maven.DefaultMaven.collectProjects(Defa
              at org.apache.maven.DefaultMaven.collectProjects(Defa
              at org.apache.maven.DefaultMaven.getProjects(DefaultM
              ... 11 more
              Caused by: C:\telechargement\spring-batch-dist-1.
              0.1.RELEASE\samples\spring-batch-infrastructure\pom.xml (Le chemin d'accs spci
              fi est introuvable)
              at Method)
              at<init>(FileInputStream.jav a:106)
              at org.apache.maven.project.DefaultMavenProjectBuilde r.readModel(Default
              ... 17 more
              [INFO] ------------------------------------------------------------------------
              [INFO] Total time: < 1 second
              [INFO] Finished at: Thu Jul 10 12:07:50 CEST 2008
              [INFO] Final Memory: 1M/2M
              [INFO] ------------------------------------------------------------------------


              • #8
                I'll take a look at the with-dependencies release. However, in the meantime, can you download the -no-dependencies version and give it a try? Since you're using maven, you really don't need the dependencies. Maven will download them for you.


                • #9
                  Thanks Lucas for your response.

                  I have tried with the no-dependency zip file. I have the same problem.

                  In fact, I found the problem. In your main pom.xml (located in the samples directory), you declare 5 modules :

                  So maven try to find a subdirectory for each module and there is only one directory : spring-batch-samples.

                  Can you fix this (removing the modules or including them in your distribution) ?



                  • #10
                    You should be able to build from the samples directory. The parent pom is the parent pom - I don't think we'll be packaging a different one just for the .zip release.


                    • #11
                      Sorry, that was wrong - the "samples" directory is the one with that parent pom in it. Build from one level below that (there is only one directory there, either called "spring-batch-samples" or "spring-batch-dist" depending on which release you have).