Announcement Announcement Module
Collapse
No announcement yet.
Problems with spring roo and sts Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with spring roo and sts

    Hello,
    I am new to the spring framework and wanted to creat a new roo project with the springsource toolsuite.
    Ive installed:
    - jdk 1.7.0_02
    - roo 1.2.0
    - sts Version: 2.8.1.RELEASE
    - Apache Maven 3.0.4

    When I creat a new roo project ("tenminutes") in sts, I get the following problems:

    ---Java Build Path Problem----
    Code:
    Description	Resource	Path	Location	Type
    Project 'tenminutes' is missing required source folder: 'src/main/java'	tenminutes		Build path	Build Path Problem
    Project 'tenminutes' is missing required source folder: 'src/test/java'	tenminutes		Build path	Build Path Problem
    Project 'tenminutes' is missing required source folder: 'src/test/resources'	tenminutes		Build path	Build Path Problem
    ---Java Problems -----
    Code:
    The project was not built since it depends on tenminutes, which has build path errors	tenminutes		Unknown	Java Problem
    ---Maven Problems---
    Code:
    Failure to transfer org.codehaus.mojo:aspectj-maven-plugin:pom:1.2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.mojo:aspectj-maven-plugin:pom:1.2 from/to spring-maven-release (http://maven.springframework.org/release): maven.springframework.org	pom.xml	/tenminutes	line 1	Maven pom Loading Problem
    ---Maven Dependency Problem---
    Code:
    ArtifactDescriptorException: Failed to read artifact descriptor for javax.servlet:servlet-api:jar:2.5: ArtifactResolutionException: Failure to transfer javax.servlet:servlet-api:pom:2.5 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact javax.servlet:servlet-api:pom:2.5 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for junit:junit:jar:4.9: ArtifactResolutionException: Failure to transfer junit:junit:pom:4.9 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact junit:junit:pom:4.9 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/junit/junit/4.9/junit-4.9.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for log4j:log4j:jar:1.2.16: ArtifactResolutionException: Failure to transfer log4j:log4j:pom:1.2.16 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact log4j:log4j:pom:1.2.16 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/log4j/log4j/1.2.16/log4j-1.2.16.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for net.sf.flexjson:flexjson:jar:2.1: ArtifactResolutionException: Failure to transfer net.sf.flexjson:flexjson:pom:2.1 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact net.sf.flexjson:flexjson:pom:2.1 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/net/sf/flexjson/flexjson/2.1/flexjson-2.1.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.commons:commons-lang3:jar:3.0.1: ArtifactResolutionException: Failure to transfer org.apache.commons:commons-lang3:pom:3.0.1 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.commons:commons-lang3:pom:3.0.1 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/apache/commons/commons-lang3/3.0.1/commons-lang3-3.0.1.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.aspectj:aspectjrt:jar:1.6.12.M2: ArtifactResolutionException: Failure to transfer org.aspectj:aspectjrt:pom:1.6.12.M2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.aspectj:aspectjrt:pom:1.6.12.M2 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/aspectj/aspectjrt/1.6.12.M2/aspectjrt-1.6.12.M2.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.aspectj:aspectjweaver:jar:1.6.12.M2: ArtifactResolutionException: Failure to transfer org.aspectj:aspectjweaver:pom:1.6.12.M2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.aspectj:aspectjweaver:pom:1.6.12.M2 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/aspectj/aspectjweaver/1.6.12.M2/aspectjweaver-1.6.12.M2.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.slf4j:jcl-over-slf4j:jar:1.6.2: ArtifactResolutionException: Failure to transfer org.slf4j:jcl-over-slf4j:pom:1.6.2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.slf4j:jcl-over-slf4j:pom:1.6.2 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/slf4j/jcl-over-slf4j/1.6.2/jcl-over-slf4j-1.6.2.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.slf4j:slf4j-api:jar:1.6.2: ArtifactResolutionException: Failure to transfer org.slf4j:slf4j-api:pom:1.6.2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.slf4j:slf4j-api:pom:1.6.2 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.slf4j:slf4j-log4j12:jar:1.6.2: ArtifactResolutionException: Failure to transfer org.slf4j:slf4j-log4j12:pom:1.6.2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.slf4j:slf4j-log4j12:pom:1.6.2 from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/slf4j/slf4j-log4j12/1.6.2/slf4j-log4j12-1.6.2.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework:spring-aop:jar:3.1.0.RELEASE: ArtifactResolutionException: Failure to transfer org.springframework:spring-aop:pom:3.1.0.RELEASE from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework:spring-aop:pom:3.1.0.RELEASE from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/springframework/spring-aop/3.1.0.RELEASE/spring-aop-3.1.0.RELEASE.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework:spring-aspects:jar:3.1.0.RELEASE: ArtifactResolutionException: Failure to transfer org.springframework:spring-aspects:pom:3.1.0.RELEASE from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework:spring-aspects:pom:3.1.0.RELEASE from/to spring-maven-release (http://maven.springframework.org/release): null to http://maven.springframework.org/release/org/springframework/spring-aspects/3.1.0.RELEASE/spring-aspects-3.1.0.RELEASE.pom	pom.xml	/tenminutes	line 1	Maven Dependency Problem
    ....
    Does anyone know a solution?

    Best Regards
    Veote

  • #2
    Hi Veote
    I'm new to SpringRoo too, but I've faced some of the problems you mentioned.
    First, with SpringRoo 1.2.0 the project does not come completely configured: you have to create by hand and then add to the build path the folders src/main/java and src/test/java

    For the Maven problems, it looks like a problem on your local repository, often due to Maven version change.
    I suggest you to reset it, by renaming the folder .m2/repository to .m2/repository_old, for example

    One easier solution, is to switch to SpringRoo 1.1.x (which is the default shipped with STS 2.8.1). I never had problems with this version.

    Bye,
    Stefano

    Comment


    • #3
      STS 2.9.0 will ship with Roo 1.2.1 soon

      Comment


      • #4
        Ok, thanks.
        I will try with Roo 1.1.x.

        Best Regards
        Veote

        Comment


        • #5
          Issues in building & testing sample Pizza Application

          Hi, I am new to Spring ROO and STS.

          I have the same problem too.
          I am trying to test the sample application Pizza.

          Environment: Jdk1.6_26, STS 2.8.1 for windows 32, Windows 7

          When I am in last two steps of executing perform tests, getting errors:
          ================================================== ==================================

          [INFO] Scanning for projects...
          [INFO]
          [INFO] ------------------------------------------------------------------------
          [INFO] Building PizzaApp 0.1.0.BUILD-SNAPSHOT
          [INFO] ------------------------------------------------------------------------
          Downloading: http://maven.springframework.org/rel...plugin-1.2.pom

          Downloading: http://maven.springframework.org/mil...plugin-1.2.pom

          Downloading: http://spring-roo-repository.springs...plugin-1.2.pom

          Downloading: http://repo1.maven.org/maven2/org/co...plugin-1.2.pom

          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 1:26.057s
          [INFO] Finished at: Wed Feb 15 13:20:58 IST 2012
          [INFO] Final Memory: 2M/15M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Plugin org.codehaus.mojo:aspectj-maven-plugin:1.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.2: Could not transfer artifact org.codehaus.mojo:aspectj-maven-pluginom:1.2 from/to spring-maven-release (http://maven.springframework.org/release): Error transferring file: Connection timed out: connect -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please read the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException
          The command 'mvn.bat test' did not complete successfully
          ~.domain.PizzaOrder roo>
          ================================================== ==============================

          Same is the case when I do mvn tomcat:run

          [WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:tomcat-maven-plugin:1.1: Plugin
          org.codehaus.mojo:tomcat-maven-plugin:1.1 or one of its dependencies could not be resolved: Failed
          to read artifact descriptor for org.codehaus.mojo:tomcat-maven-plugin:jar:1.1
          Downloading: http://maven.springframework.org/rel...ugin/7.4.2.v20
          110526/jetty-maven-plugin-7.4.2.v20110526.pom
          Downloading: http://maven.springframework.org/mil...plugin/7.4.2.v
          20110526/jetty-maven-plugin-7.4.2.v20110526.pom

          ================================================== ===============================

          If anyone has faced same issue and resolved it, please do share.

          Note: Versions of STS and its build in s/w

          apache-maven-3.0.3
          spring-roo-1.1.5.RELEASE
          sts-2.8.1.RELEASE
          vfabric-tc-server-developer-2.6.1.RELEASE

          Thanks,
          Hanumesh
          Last edited by hanumesh_m; Feb 15th, 2012, 03:15 AM.

          Comment


          • #6
            Has anyone solved this issue?

            Thank you.
            CJ

            Comment

            Working...
            X