Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Initial Build Failure

  1. #11
    Join Date
    Apr 2007
    Posts
    307

    Default

    @f.shantanu, @eric. - the issue mentioned above is now resolved. Please update your sources and build again. If anything goes wrong, reopen the bug.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  2. #12
    Join Date
    Mar 2011
    Posts
    6

    Default

    @Chris,
    Thank you for your work. But there is another test failed:

    Code:
        [junit] Testsuite: org.springframework.http.converter.FormHttpMessageConverterTests
        [junit] Tests run: 5, Failures: 0, Errors: 1, Time elapsed: 0.4 sec
        [junit] 
        [junit] Testcase: writeMultipart(org.springframework.http.converter.FormHttpMessageConverterTests):	Caused an ERROR
        [junit] expected:<[image/jpeg]> but was:<[application/octet-stream]>
        [junit] 	at org.springframework.http.converter.FormHttpMessageConverterTests.writeMultipart(FormHttpMessageConverterTests.java:152)
    It looks like the the default content type for jpeg file was not set correctly, but I failed to figure out it. How can I do about this?

    BTW, I deem you're using maven to do the test, but I got something like the following when I perform the mvn test:
    Code:
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    Missing:
    ----------
    1) org.springframework:spring-aop:jar:3.1.0.BUILD-SNAPSHOT
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command: 
          mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-aop -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    
      Alternatively, if you host your own repository you can deploy the file there: 
          mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring-aop -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    
      Path to dependency: 
      	1) org.springframework:spring-web:jar:3.1.0.BUILD-SNAPSHOT
      	2) org.springframework:spring-aop:jar:3.1.0.BUILD-SNAPSHOT
    Would you like to give some advices on that? Thanks in advance.
    Sorry for bothering since I'm not familiar with neither Maven nor Spring.

  3. #13
    Join Date
    Mar 2011
    Posts
    2

    Default

    Quote Originally Posted by adam.fitzgerald View Post
    If you are new to Spring I would not recommend building the distribution from source and, in particular, I would not recommend trying to build an older version when newer versions are easily available. Visit the community download center and you will be able to retrieve already built versions of Spring 3.0 and the new Spring 3.1 milestone.

    You can try following along with the recent Green Beans series of blog posts that are designed to give developers an overview of the basic fundamental approaches used in developing with Spring.

    Adam FitzGerald
    SpringSource


    Hi,
    In community download page,spring 3 jar that is already built is not available. Please let us know Where can we find spring 3 jar direct download as I am facing several problems while building source downloaded from the community page.

    kar.

  4. #14
    Join Date
    Mar 2011
    Posts
    6

    Default

    @Chris,

    Now I know the Maven error is a package dependency error after reading the Maven document, so I tried to build them in order: org.springframework.asm, org.springframework.core, org.springframework.beans.

    The script is as follows:
    Code:
    #!/bin/sh
    
    SPRING_FRAMEWORK_DIR=`pwd`
    IVY_CACHE_REPO=$SPRING_FRAMEWORK_DIR/ivy-cache/repository
    MAVEN_INSTALL="mvn install:install-file "
    MAVEN_TEST="mvn test"
    
    ##asm
    cd $SPRING_FRAMEWORK_DIR/org.springframework.asm
    
    $MAVEN_INSTALL -DgroupId=com.google.code -DartifactId=jarjar -Dversion=1.0 -Dpackaging=jar -Dfile=$IVY_CACHE_REPO/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/com.springsource.com.tonicsystems.jarjar-1.0.0.jar
    
    $MAVEN_TEST
    
    ##core
    cd $SPRING_FRAMEWORK_DIR/org.springframework.core
    
    $MAVEN_INSTALL -DgroupId=org.springframework -DartifactId=spring-asm -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=$SPRING_FRAMEWORK_DIR/org.springframework.asm/target/spring-asm-3.1.0.BUILD-SNAPSHOT-jarjar.jar
    
    $MAVEN_TEST
    
    ##beans
    cd $SPRING_FRAMEWORK_DIR/org.springframework.beans
    
    $MAVEN_INSTALL -DgroupId=org.springframework -DartifactId=spring-core -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=../org.springframework.core/target/artifacts/org.springframework.core.jar
    
    $MAVEN_TEST
    Here is the error message while building beans:
    Code:
    $ mvn test
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - org.springframework:spring-beans:jar:3.1.0.BUILD-SNAPSHOT
    [INFO]    task-segment: [test]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 21 resources
    [INFO] [compiler:compile {execution: default-compile}]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [resources:testResources {execution: default-testResources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 50 resources
    [INFO] [compiler:testCompile {execution: default-testCompile}]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [surefire:test {execution: default-test}]
    [INFO] Surefire report directory: /home/sunny/workshop/codes_in_git/spring-framework/org.springframework.beans/target/surefire-reports
    
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Running org.springframework.beans.factory.xml.BeanNameGenerationTests
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE!
    Running org.springframework.beans.factory.access.SingletonBeanFactoryLocatorTests
    Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE!
    
    ......
    
    Tests run: 831, Failures: 5, Errors: 649, Skipped: 5
    
    [INFO] ------------------------------------------------------------------------
    The purpose I'm using Maven is to do the individual Junit test to debug the framework which got error mentioned previously. Is there anything wrong with my operations or my build environment?

    Meanwhile, my way on checking the dependencies is inefficient, would you mind to tell something about the daily-build? or any document related in the web? TIA.

    Any other suggestions will also be appreciated. Thanks.

  5. #15
    Join Date
    Mar 2008
    Posts
    79

    Default Downloading Spring 3

    Quote Originally Posted by ksalic View Post
    Hi,
    In community download page,spring 3 jar that is already built is not available. Please let us know Where can we find spring 3 jar direct download as I am facing several problems while building source downloaded from the community page.

    kar.
    Hi ksalic,

    I just tested this and the download files that are at the community download center worked just fine for me. Specifically I was able to download Spring 3.0.5 which is the latest GA release.

    If you continue to have problems, please post your OS and browser version details here so that we can see if there is a problem with your environment.

    Regards
    Adam

    Adam FitzGerald
    SpringSource

  6. #16
    Join Date
    Apr 2007
    Posts
    307

    Default

    @eric. - the Maven POMs you see in the source tree exist primarily as dependency descriptors only. We publish these poms when uploading Spring Jars to our internal Maven repositories and to Maven Central, but we do not use them to build. For that, we use ant (which I thought you were doing too).

    Simply run the following from the root of the source tree. It should work.
    Code:
    >$ ant -f build-spring-framework/build.xml jar
    This will build all the jars

    To install those jars in your local Maven ~/.m2/repository cache:
    Code:
    >$ ant -f build-spring-framework/build.xml install-maven
    To run all tests:

    Code:
    >$ ant -f build-spring-framework/build.xml test
    The point is, that if you're having trouble with the tests, you don't necessarily have to run them just to build spring locally.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  7. #17
    Join Date
    Mar 2011
    Posts
    2

    Default spring3.0.5 direct jar

    Quote Originally Posted by adam.fitzgerald View Post
    Hi ksalic,

    I just tested this and the download files that are at the community download center worked just fine for me. Specifically I was able to download Spring 3.0.5 which is the latest GA release.

    If you continue to have problems, please post your OS and browser version details here so that we can see if there is a problem with your environment.

    Regards
    Adam

    Adam FitzGerald
    SpringSource
    . Hi Adam, Thankyou for your response. I am saying that unlike spring2.5.6 direct jar, spring 3.0.5 jar is not available.we have to build it from release.Can we have a direct jar instead of entire release to build like for spring 2.5.6

  8. #18
    Join Date
    Mar 2008
    Posts
    79

    Default Re: spring3.0.5 direct jar

    , Thankyou for your response. I am saying that unlike spring2.5.6 direct jar, spring 3.0.5 jar is not available.we have to build it from release.Can we have a direct jar instead of entire release to build like for spring 2.5.6
    Hi ksalic,

    I'm not quite sure that I understand your request. What do you mean by "direct jar"? You do not have to build Spring from source for any released version. The complete compiled jar file is available from the community download center, specifically the Spring 3.0.5 release is there.

    If you are referring to the old Spring-with-dependencies versions that we previously made available then that is a different matter. We have stopped releasing those because of the prevalence of common build systems like Maven that help you add only the libraries you need to your project. If you are not familiar with Maven then I recommend reading the Green Beans post: Getting Started with Maven and Spring.

    If you continue to have problems or are not able to see the files I have identified in the links above, please post your OS and browser version details here so that we can see if there is a problem with your environment.

    Regards
    Adam

    Adam FitzGerald
    SpringSource

  9. #19
    Join Date
    Mar 2011
    Posts
    6

    Default

    Quote Originally Posted by Chris Beams View Post
    @eric. - the Maven POMs you see in the source tree exist primarily as dependency descriptors only. We publish these poms when uploading Spring Jars to our internal Maven repositories and to Maven Central, but we do not use them to build. For that, we use ant (which I thought you were doing too).

    Simply run the following from the root of the source tree. It should work.
    Code:
    >$ ant -f build-spring-framework/build.xml jar
    This will build all the jars

    To install those jars in your local Maven ~/.m2/repository cache:
    Code:
    >$ ant -f build-spring-framework/build.xml install-maven
    To run all tests:

    Code:
    >$ ant -f build-spring-framework/build.xml test
    The point is, that if you're having trouble with the tests, you don't necessarily have to run them just to build spring locally.
    @Chris Beams,

    Thank you for your reply.

    These commands do work. But I still have questions might be bothering ( sorry for that ): How can I trust them if their tests fail? How can I develop over them if I can't make the tests run?

    Anyway, would you mind to give a trustful version which all tests run successfully (older version is ok) ? Thanks in advance.

    Regards,
    Eric

  10. #20
    Join Date
    Apr 2007
    Posts
    307

    Default

    Quote Originally Posted by eric. View Post
    Anyway, would you mind to give a trustful version which all tests run successfully (older version is ok) ? Thanks in advance.
    Sure. Just check out the 3.0.5.RELEASE tag and build from there.

    https://src.springframework.org/svn/...3.0.5.RELEASE/

    - C
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

Posting Permissions

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