Announcement Announcement Module
Collapse
No announcement yet.
Spring WS 1.5.9 StockQuote Sample problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring WS 1.5.9 StockQuote Sample problem

    Hi,

    I'm trying to run the stockquote sample from Spring ws 1.5.9 but get the following error:

    Code:
    [INFO] Scanning for projects...
    Downloading: http://repo1.maven.org/maven2/org/springframework/ws/spring-ws-samples/1.5.9/spring-ws-samples-1.5.9.pom
    [INFO] Unable to find resource 'org.springframework.ws:spring-ws-samples:pom:1.5
    .9' in repository central (http://repo1.maven.org/maven2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Error building POM (may not be this project's POM).
    
    
    Project ID: null:stockquote:jar:null
    
    Reason: Cannot find parent: org.springframework.ws:spring-ws-samples for project
    : null:stockquote:jar:null for project null:stockquote:jar:null
    
    
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.spring
    framework.ws:spring-ws-samples for project: null:stockquote:jar:null for project
     null:stockquote:jar:null
            at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
            at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
    0)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
            at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
            at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    
            at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
    : org.springframework.ws:spring-ws-samples for project: null:stockquote:jar:null
     for project null:stockquote:jar:null
            at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
    efaultMavenProjectBuilder.java:1396)
            at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
    aultMavenProjectBuilder.java:823)
            at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
    leInternal(DefaultMavenProjectBuilder.java:508)
            at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
    nProjectBuilder.java:200)
            at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
            at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
            at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
            ... 12 more
    Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.springfra
    mework.ws:spring-ws-samples' not found in repository: Unable to download the art
    ifact from any repository
    
      org.springframework.ws:spring-ws-samples:pom:1.5.9
    
    from the specified remote repositories:
      central (http://repo1.maven.org/maven2)
    
     for project org.springframework.ws:spring-ws-samples
            at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
    sitory(DefaultMavenProjectBuilder.java:605)
            at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
    efaultMavenProjectBuilder.java:1392)
            ... 18 more
    Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
    to download the artifact from any repository
    
      org.springframework.ws:spring-ws-samples:pom:1.5.9
    
    from the specified remote repositories:
      central (http://repo1.maven.org/maven2)
    
    
            at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
    faultArtifactResolver.java:228)
            at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
    faultArtifactResolver.java:90)
            at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
    sitory(DefaultMavenProjectBuilder.java:558)
            ... 19 more
    Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
    oad the artifact from any repository
            at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
    aultWagonManager.java:404)
            at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
    faultArtifactResolver.java:216)
            ... 21 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: < 1 second
    [INFO] Finished at: Wed Dec 01 15:21:35 GMT 2010
    [INFO] Final Memory: 1M/15M
    [INFO] ------------------------------------------------------------------------
    (When I paste the URL http://repo1.maven.org/maven2/org/sp...ples-1.5.9.pom
    into a browser I do get a 404)

    Can anybody suggest how else I can build & run it?

    Thanks,

    Kevin.

  • #2
    That's a strange artifact ID, did you paste it from the example itself? The Maven repo does not have this artifact, so I guess you must use another artifact ID.

    Perhaps you're looking for one (or more) of the next (available) artifact IDs:
    - spring-oxm
    - spring-oxm-tiger
    - spring-ws-archetype
    - spring-ws-core
    - spring-ws-core-tiger

    You can check the Maven repo for additional info about the artifacts. There you will see that the artifact you use does not exist.

    Comment


    • #3
      Hi,

      Thanks for your reply. I'm just following the instructions inside the readme.txt in the stockquote folder (inside the samples folder) of the Spring WS 1.5.9 download.

      Thanks,

      Kev.

      Comment


      • #4
        The problem was I had to execute 'mvn package' from within the samples directory first.

        Doh!

        Comment


        • #5
          similar issue in 2.0.0-RC2 when running samples

          In case anyone runs into trouble running the samples for ws 2.0.0-RC2, make sure to add the appropriate repositories entry to the pom in the samples folder:


          <repositories>
          <repository>
          <id>spring-maven-milestone</id>
          <name>Springframework Maven Repository</name>
          <url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
          </repository>
          </repositories>

          I actually also added the repositories entry to the pom in the tutorials folder, but i think that was redundant. Kind of new to mvn.

          Comment

          Working...
          X